Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 43 for StatFS (0.1 sec)

  1. 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)
  2. src/syscall/syscall_darwin_amd64.go

    //sysnb	Gettimeofday(tp *Timeval) (err error)
    //sys	Lstat(path string, stat *Stat_t) (err error) = SYS_lstat64
    //sys	Stat(path string, stat *Stat_t) (err error) = SYS_stat64
    //sys	Statfs(path string, stat *Statfs_t) (err error) = SYS_statfs64
    //sys   fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_fstatat64
    //sys   ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 27 21:34:30 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. src/syscall/syscall_darwin_arm64.go

    //sys	Fstatfs(fd int, stat *Statfs_t) (err error)
    //sysnb	Gettimeofday(tp *Timeval) (err error)
    //sys	Lstat(path string, stat *Stat_t) (err error)
    //sys	Stat(path string, stat *Stat_t) (err error)
    //sys	Statfs(path string, stat *Statfs_t) (err error)
    //sys	fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
    //sys	ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 27 21:34:30 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. internal/disk/stat_linux_s390x.go

    	}
    	return fsTypeString
    }
    
    // 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.Frsize) * (s.Blocks - reservedBlocks),
    		Free:   uint64(s.Frsize) * s.Bavail,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. pkg/volume/metrics_statfs.go

    // and gathering filesystem info for the Volume path.
    func (md *metricsStatFS) GetMetrics() (*Metrics, error) {
    	startTime := time.Now()
    	defer servermetrics.CollectVolumeStatCalDuration("statfs", startTime)
    
    	metrics := &Metrics{Time: metav1.Now()}
    	if md.path == "" {
    		return metrics, NewNoPathDefinedError()
    	}
    
    	err := md.getFsInfo(metrics)
    	if err != nil {
    		return metrics, err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 19 14:33:37 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  6. src/syscall/types_aix.go

    package syscall
    
    /*
    #include <sys/types.h>
    #include <sys/time.h>
    #include <sys/limits.h>
    #include <sys/un.h>
    #include <sys/utsname.h>
    #include <sys/ptrace.h>
    #include <sys/statfs.h>
    
    #include <net/if.h>
    #include <net/if_dl.h>
    #include <netinet/in.h>
    #include <netinet/icmp6.h>
    
    #include <termios.h>
    
    #include <dirent.h>
    #include <fcntl.h>
    #include <gcrypt.h>
    
    enum {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  7. internal/disk/stat_linux_32bit.go

    	}
    	return fsTypeString
    }
    
    // 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.Frsize) * (s.Blocks - reservedBlocks),
    		Free:   uint64(s.Frsize) * s.Bavail,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  8. internal/disk/stat_linux.go

    	"golang.org/x/sys/unix"
    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, firstTime 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.Frsize) * (s.Blocks - reservedBlocks),
    		Free:  uint64(s.Frsize) * s.Bavail,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go

    //sys	Shutdown(fd int, how int) (err error)
    //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
    //sys	Stat(path string, stat *Stat_t) (err error)
    //sys	Statfs(path string, buf *Statfs_t) (err error)
    //sys	Truncate(path string, length int64) (err error)
    //sys	Ustat(dev int, ubuf *Ustat_t) (err error)
    //sys	accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5K bytes
    - Viewed (0)
  10. src/syscall/syscall_linux_amd64.go

    //sysnb	setrlimit(resource int, rlim *Rlimit) (err error) = SYS_SETRLIMIT
    //sys	Shutdown(fd int, how int) (err error)
    //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
    //sys	Statfs(path string, buf *Statfs_t) (err error)
    //sys	SyncFileRange(fd int, off int64, n int64, flags int) (err error)
    //sys	Truncate(path string, length int64) (err error)
    //sys	Ustat(dev int, ubuf *Ustat_t) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 4.8K bytes
    - Viewed (0)
Back to top