Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,746 for Statfs (0.21 sec)

  1. api/except.txt

    pkg syscall (openbsd-amd64), type Stat_t struct, Lspare1 int32
    pkg syscall (openbsd-amd64), type Stat_t struct, Qspare [2]int64
    pkg syscall (openbsd-amd64), type Statfs_t struct, F_ctime uint32
    pkg syscall (openbsd-amd64), type Statfs_t struct, F_spare [3]uint32
    pkg syscall (openbsd-amd64), type Statfs_t struct, Pad_cgo_1 [4]uint8
    pkg syscall (openbsd-amd64), type Timespec struct, Pad_cgo_0 [4]uint8
    pkg syscall (openbsd-amd64), type Timespec struct, Sec int32
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu May 25 00:13:30 GMT 2023
    - 34.6K bytes
    - Viewed (0)
  2. 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,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  3. 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),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  4. api/go1.12.txt

    pkg syscall (freebsd-386), type Stat_t struct, Rdev uint64
    pkg syscall (freebsd-386), type Stat_t struct, Spare [10]uint64
    pkg syscall (freebsd-386), type Statfs_t struct, Mntfromname [1024]int8
    pkg syscall (freebsd-386), type Statfs_t struct, Mntonname [1024]int8
    pkg syscall (freebsd-386-cgo), const S_IRWXG = 56
    pkg syscall (freebsd-386-cgo), const S_IRWXG ideal-int
    pkg syscall (freebsd-386-cgo), const S_IRWXO = 7
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 02 21:21:53 GMT 2019
    - 13.5K bytes
    - Viewed (0)
  5. internal/disk/stat_linux_s390x.go

    		return "UNKNOWN"
    	}
    	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,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 2.6K bytes
    - Viewed (2)
  6. internal/disk/stat_linux_32bit.go

    		return "UNKNOWN"
    	}
    	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,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  7. 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),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  8. internal/disk/stat_linux.go

    	iostats = IOStats{
    		ReadIOs:      stats[0],
    		ReadMerges:   stats[1],
    		ReadSectors:  stats[2],
    		ReadTicks:    stats[3],
    		WriteIOs:     stats[4],
    		WriteMerges:  stats[5],
    		WriteSectors: stats[6],
    		WriteTicks:   stats[7],
    		CurrentIOs:   stats[8],
    		TotalTicks:   stats[9],
    		ReqTicks:     stats[10],
    	}
    	// as per the doc, only 11 fields are guaranteed
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  9. api/go1.2.txt

    pkg syscall (freebsd-386-cgo), type Statfs_t struct, Mntfromname [88]int8
    pkg syscall (freebsd-386-cgo), type Statfs_t struct, Mntonname [88]int8
    pkg syscall (freebsd-386-cgo), type Statfs_t struct, Namemax uint32
    pkg syscall (freebsd-386-cgo), type Statfs_t struct, Owner uint32
    pkg syscall (freebsd-386-cgo), type Statfs_t struct, Spare [10]uint64
    pkg syscall (freebsd-386-cgo), type Statfs_t struct, Syncreads uint64
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 18 04:36:59 GMT 2013
    - 1.9M bytes
    - Viewed (2)
  10. api/go1.3.txt

    pkg syscall (openbsd-386), type RtMetrics struct, Pad uint32
    pkg syscall (openbsd-386), type Stat_t struct, Ino uint64
    pkg syscall (openbsd-386), type Statfs_t struct, F_ctime uint64
    pkg syscall (openbsd-386), type Statfs_t struct, F_mntfromspec [90]int8
    pkg syscall (openbsd-386), type Statfs_t struct, Pad_cgo_0 [2]uint8
    pkg syscall (openbsd-386), type Termios struct
    pkg syscall (openbsd-386), type Termios struct, Cc [20]uint8
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Jun 02 02:45:00 GMT 2014
    - 117K bytes
    - Viewed (0)
Back to top