Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 127 for StatFS (0.21 sec)

  1. src/io/fs/stat.go

    package fs
    
    // A StatFS is a file system with a Stat method.
    type StatFS interface {
    	FS
    
    	// Stat returns a FileInfo describing the file.
    	// If there is an error, it should be of type *PathError.
    	Stat(name string) (FileInfo, error)
    }
    
    // Stat returns a [FileInfo] describing the named file from the file system.
    //
    // If fs implements [StatFS], Stat calls fs.Stat.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 11 20:25:50 UTC 2023
    - 803 bytes
    - Viewed (0)
  2. pkg/volume/metrics_du_unix_test.go

    limitations under the License.
    */
    
    package volume_test
    
    import (
    	"golang.org/x/sys/unix"
    )
    
    func getExpectedBlockSize(path string) int64 {
    	statfs := &unix.Statfs_t{}
    	err := unix.Statfs(path, statfs)
    	if err != nil {
    		return 0
    	}
    
    	return int64(statfs.Bsize)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 01 00:18:31 UTC 2023
    - 840 bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go

    //sys	Lstat(path string, stat *Stat_t) (err error)
    //sys	ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) = SYS_ptrace
    //sys	Stat(path string, stat *Stat_t) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go

    //sys	Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
    //sys	ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) = SYS_ptrace
    //sys	Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  5. internal/disk/stat_freebsd.go

    import (
    	"errors"
    	"fmt"
    	"syscall"
    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, _ bool) (info Info, err error) {
    	s := syscall.Statfs_t{}
    	err = syscall.Statfs(path, &s)
    	if err != nil {
    		return Info{}, err
    	}
    	reservedBlocks := s.Bfree - uint64(s.Bavail)
    	info = Info{
    		Total:  uint64(s.Bsize) * (s.Blocks - reservedBlocks),
    		Free:   uint64(s.Bsize) * uint64(s.Bavail),
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. internal/disk/stat_bsd.go

    import (
    	"errors"
    	"fmt"
    	"syscall"
    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, _ bool) (info Info, err error) {
    	s := syscall.Statfs_t{}
    	err = syscall.Statfs(path, &s)
    	if err != nil {
    		return Info{}, err
    	}
    	reservedBlocks := s.Bfree - s.Bavail
    	info = Info{
    		Total:  uint64(s.Bsize) * (s.Blocks - reservedBlocks),
    		Free:   uint64(s.Bsize) * s.Bavail,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go

    	SYS_QUOTACTL               = 148 // { int quotactl(char *path, int cmd, int uid, caddr_t arg); }
    	SYS_STATFS                 = 157 // { int statfs(char *path, struct statfs *buf); }
    	SYS_FSTATFS                = 158 // { int fstatfs(int fd, struct statfs *buf); }
    	SYS_GETFH                  = 161 // { int getfh(char *fname, struct fhandle *fhp); }
    	SYS_SYSARCH                = 165 // { int sysarch(int op, char *parms); }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 27.6K bytes
    - Viewed (0)
  8. internal/disk/stat_openbsd.go

    import (
    	"errors"
    	"fmt"
    	"syscall"
    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, _ bool) (info Info, err error) {
    	s := syscall.Statfs_t{}
    	err = syscall.Statfs(path, &s)
    	if err != nil {
    		return Info{}, err
    	}
    	reservedBlocks := uint64(s.F_bfree) - uint64(s.F_bavail)
    	info = Info{
    		Total:  uint64(s.F_bsize) * (uint64(s.F_blocks) - reservedBlocks),
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. pkg/volume/util/fsquota/common/quota_common_linux_impl.go

    }
    
    func isFilesystemOfType(mountpoint string, backingDev string, typeMagic int64) bool {
    	var buf syscall.Statfs_t
    	err := syscall.Statfs(mountpoint, &buf)
    	if err != nil {
    		klog.Warningf("Warning: Unable to statfs %s: %v", mountpoint, err)
    		return false
    	}
    	if int64(buf.Type) != typeMagic {
    		return false
    	}
    	if answer, _ := SupportsQuotas(mountpoint, FSQuotaAccounting); answer {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go

    	SYS_GETFSSTAT      = 62  // { int sys_getfsstat(struct statfs *buf, size_t bufsize, int flags); }
    	SYS_STATFS         = 63  // { int sys_statfs(const char *path, struct statfs *buf); }
    	SYS_FSTATFS        = 64  // { int sys_fstatfs(int fd, struct statfs *buf); }
    	SYS_FHSTATFS       = 65  // { int sys_fhstatfs(const fhandle_t *fhp, struct statfs *buf); }
    	SYS_VFORK          = 66  // { int sys_vfork(void); }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 17.9K bytes
    - Viewed (0)
Back to top