Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,403 for Statfs (0.18 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 May 07 11:14:38 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 May 05 19:28:20 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 May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  4. 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 May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 1.8K 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 May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 2.6K bytes
    - Viewed (2)
  6. 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 May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  7. 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 May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  8. api/go1.20.txt

    pkg syscall (freebsd-riscv64), type Statfs_t struct #53466
    pkg syscall (freebsd-riscv64), type Statfs_t struct, Asyncreads uint64 #53466
    pkg syscall (freebsd-riscv64), type Statfs_t struct, Asyncwrites uint64 #53466
    pkg syscall (freebsd-riscv64), type Statfs_t struct, Bavail int64 #53466
    pkg syscall (freebsd-riscv64), type Statfs_t struct, Bfree uint64 #53466
    pkg syscall (freebsd-riscv64), type Statfs_t struct, Blocks uint64 #53466
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Feb 17 21:23:32 GMT 2023
    - 602.6K bytes
    - Viewed (0)
  9. api/go1.14.txt

    pkg syscall (freebsd-arm64), type Statfs_t struct, Charspare [80]int8
    pkg syscall (freebsd-arm64), type Statfs_t struct, Ffree int64
    pkg syscall (freebsd-arm64), type Statfs_t struct, Files uint64
    pkg syscall (freebsd-arm64), type Statfs_t struct, Flags uint64
    pkg syscall (freebsd-arm64), type Statfs_t struct, Fsid Fsid
    pkg syscall (freebsd-arm64), type Statfs_t struct, Fstypename [16]int8
    pkg syscall (freebsd-arm64), type Statfs_t struct, Iosize uint64
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 508.9K bytes
    - Viewed (0)
  10. api/go1.16.txt

    pkg syscall (darwin-arm64), type Statfs_t struct, Flags uint32
    pkg syscall (darwin-arm64), type Statfs_t struct, Fsid Fsid
    pkg syscall (darwin-arm64), type Statfs_t struct, Fssubtype uint32
    pkg syscall (darwin-arm64), type Statfs_t struct, Fstypename [16]int8
    pkg syscall (darwin-arm64), type Statfs_t struct, Iosize int32
    pkg syscall (darwin-arm64), type Statfs_t struct, Mntfromname [1024]int8
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Dec 02 16:30:41 GMT 2022
    - 479.2K bytes
    - Viewed (0)
Back to top