Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 388 for stwat (0.04 sec)

  1. src/syscall/fs_wasip1.go

    	var stat fdstat
    	errno := fd_fdstat_get(int32(fd), unsafe.Pointer(&stat))
    	return uint32(stat.fdflags), errnoErr(errno)
    }
    
    // fd_fdstat_get_type is accessed from net
    //go:linkname fd_fdstat_get_type
    
    func fd_fdstat_get_type(fd int) (uint8, error) {
    	var stat fdstat
    	errno := fd_fdstat_get(int32(fd), unsafe.Pointer(&stat))
    	return stat.filetype, errnoErr(errno)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  2. cmd/tier.go

    func (t *tierMetrics) logSuccess(tier string) {
    	t.Lock()
    	defer t.Unlock()
    
    	stat := t.requestsCount[tier]
    	stat.success++
    	t.requestsCount[tier] = stat
    }
    
    func (t *tierMetrics) logFailure(tier string) {
    	t.Lock()
    	defer t.Unlock()
    
    	stat := t.requestsCount[tier]
    	stat.failure++
    	t.requestsCount[tier] = stat
    }
    
    var (
    	// {minio_node}_{tier}_{ttlb_seconds_distribution}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 09 08:44:07 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  3. cmd/xl-storage-format_test.go

    	}
    	if unMarshalXLMeta.Stat.Size != jsoniterXLMeta.Stat.Size {
    		t.Errorf("Expected the stat size to be %v, but got %v.", unMarshalXLMeta.Stat.Size, jsoniterXLMeta.Stat.Size)
    	}
    	if !unMarshalXLMeta.Stat.ModTime.Equal(jsoniterXLMeta.Stat.ModTime) {
    		t.Errorf("Expected the modTime to be \"%v\", but got \"%v\".", unMarshalXLMeta.Stat.ModTime, jsoniterXLMeta.Stat.ModTime)
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  4. src/testing/fstest/testfs.go

    			t.errorf("%s: mismatch:\n\tentry.Info() = %s\n\tfile.Stat() = %s\n", path, feinfo, finfo)
    		}
    	}
    
    	// Stat should be the same as Open+Stat, even for symlinks.
    	info2, err := fs.Stat(t.fsys, path)
    	if err != nil {
    		t.errorf("%s: fs.Stat: %w", path, err)
    		return
    	}
    	finfo2 := formatInfo(info2)
    	if finfo2 != finfo {
    		t.errorf("%s: fs.Stat(...) = %s\n\twant %s", path, finfo2, finfo)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/podcgroupns_linux.go

    // limitations under the License.
    
    package nodeagent
    
    import (
    	"fmt"
    	"io/fs"
    	"syscall"
    )
    
    func GetInode(fi fs.FileInfo) (uint64, error) {
    	if stat, ok := fi.Sys().(*syscall.Stat_t); ok {
    		return stat.Ino, nil
    	}
    	return 0, fmt.Errorf("unable to get inode")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 814 bytes
    - Viewed (0)
  6. pkg/util/filesystem/util_unix.go

    	"fmt"
    	"os"
    	"path/filepath"
    )
    
    // IsUnixDomainSocket returns whether a given file is a AF_UNIX socket file
    func IsUnixDomainSocket(filePath string) (bool, error) {
    	fi, err := os.Stat(filePath)
    	if err != nil {
    		return false, fmt.Errorf("stat file %s failed: %v", filePath, err)
    	}
    	if fi.Mode()&os.ModeSocket == 0 {
    		return false, nil
    	}
    	return true, nil
    }
    
    // IsAbs is same as filepath.IsAbs on Unix.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 17:13:59 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. docs/debugging/reorder-disks/main.go

    }
    
    type localDisk struct {
    	index int
    	path  string
    }
    
    func getMajorMinor(path string) (string, error) {
    	var stat syscall.Stat_t
    	if err := syscall.Stat(path, &stat); err != nil {
    		return "", fmt.Errorf("unable to stat `%s`: %w", path, err)
    	}
    
    	devID := uint64(stat.Dev)
    	major := (devID & 0x00000000000fff00) >> 8
    	major |= (devID & 0xfffff00000000000) >> 32
    	minor := (devID & 0x00000000000000ff) >> 0
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modfetch/cache.go

    	}, nil
    }
    
    type cachedInfo struct {
    	info *RevInfo
    	err  error
    }
    
    func (r *cachingRepo) Stat(ctx context.Context, rev string) (*RevInfo, error) {
    	if gover.IsToolchain(r.path) {
    		// Skip disk cache; the underlying golang.org/toolchain repo is cached instead.
    		return r.repo(ctx).Stat(ctx, rev)
    	}
    	info, err := r.statCache.Do(rev, func() (*RevInfo, error) {
    		file, info, err := readDiskStat(ctx, r.path, rev)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  9. src/os/read_test.go

    import (
    	"bytes"
    	. "os"
    	"path/filepath"
    	"runtime"
    	"testing"
    )
    
    func checkNamedSize(t *testing.T, path string, size int64) {
    	dir, err := Stat(path)
    	if err != nil {
    		t.Fatalf("Stat %q (looking for size %d): %s", path, size, err)
    	}
    	if dir.Size() != size {
    		t.Errorf("Stat %q: size %d want %d", path, dir.Size(), size)
    	}
    }
    
    func TestReadFile(t *testing.T) {
    	t.Parallel()
    
    	filename := "rumpelstilzchen"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 02:36:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. cmd/xl-storage-format-v1.go

    type xlMetaV1Object struct {
    	Version string   `json:"version"` // Version of the current `xl.meta`.
    	Format  string   `json:"format"`  // Format of the current `xl.meta`.
    	Stat    StatInfo `json:"stat"`    // Stat of the current object `xl.meta`.
    	// Erasure coded info for the current object `xl.meta`.
    	Erasure ErasureInfo `json:"erasure"`
    	// MinIO release tag for current object `xl.meta`.
    	Minio struct {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 8.2K bytes
    - Viewed (0)
Back to top