Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 201 for gstat (0.19 sec)

  1. ci/official/utilities/setup_macos.sh

    # Mac version of Core utilities differ in usage. Since our scripts are written
    # with the GNU style, we need to set GNU utilities to be default on Mac.
    if [[ -n "$(which grealpath)" ]] &&  [[ -n "$(which gstat)" ]]; then
      alias realpath=grealpath
      alias stat=gstat
      # By default, aliases are only expanded in interactive shells, which means
      # that they are not substituted for their corresponding commands in shell
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 15:23:28 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  2. internal/disk/stat_linux.go

    		if err == nil {
    			devName := ""
    			diskstats, _ := bfs.ProcDiskstats()
    			for _, dstat := range diskstats {
    				// ignore all loop devices
    				if strings.HasPrefix(dstat.DeviceName, "loop") {
    					continue
    				}
    				if dstat.MajorNumber == info.Major && dstat.MinorNumber == info.Minor {
    					devName = dstat.DeviceName
    					break
    				}
    			}
    			if devName != "" {
    				info.Name = devName
    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)
  3. api/except.txt

    pkg syscall (freebsd-386), type Stat_t struct, Blksize uint32
    pkg syscall (freebsd-386), type Stat_t struct, Dev uint32
    pkg syscall (freebsd-386), type Stat_t struct, Gen uint32
    pkg syscall (freebsd-386), type Stat_t struct, Ino uint32
    pkg syscall (freebsd-386), type Stat_t struct, Lspare int32
    pkg syscall (freebsd-386), type Stat_t struct, Nlink uint16
    pkg syscall (freebsd-386), type Stat_t struct, Pad_cgo_0 [8]uint8
    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)
  4. src/archive/tar/stat_actime1.go

    //go:build aix || linux || dragonfly || openbsd || solaris
    
    package tar
    
    import (
    	"syscall"
    	"time"
    )
    
    func statAtime(st *syscall.Stat_t) time.Time {
    	return time.Unix(st.Atim.Unix())
    }
    
    func statCtime(st *syscall.Stat_t) time.Time {
    	return time.Unix(st.Ctim.Unix())
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 28 18:17:57 GMT 2021
    - 431 bytes
    - Viewed (0)
  5. internal/disk/stat_test.go

    	"testing"
    )
    
    func TestReadDriveStats(t *testing.T) {
    	if runtime.GOOS == "windows" {
    		t.Skip("skipping this test in windows")
    	}
    	testCases := []struct {
    		stat            string
    		expectedIOStats IOStats
    		expectErr       bool
    	}{
    		{
    			stat: "1432553   420084 66247626  2398227  7077314  8720147 157049224  7469810        0  7580552  9869354    46037        0 41695120     1315        0        0",
    			expectedIOStats: IOStats{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  6. src/archive/tar/stat_actime2.go

    //go:build darwin || freebsd || netbsd
    
    package tar
    
    import (
    	"syscall"
    	"time"
    )
    
    func statAtime(st *syscall.Stat_t) time.Time {
    	return time.Unix(st.Atimespec.Unix())
    }
    
    func statCtime(st *syscall.Stat_t) time.Time {
    	return time.Unix(st.Ctimespec.Unix())
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 28 18:17:57 GMT 2021
    - 421 bytes
    - Viewed (0)
  7. internal/disk/stat_windows.go

    //
    // https://msdn.microsoft.com/en-us/library/windows/desktop/aa364937(v=vs.85).aspx
    func GetInfo(path string, _ bool) (info Info, err error) {
    	// Stat to know if the path exists.
    	if _, err = os.Stat(path); err != nil {
    		return Info{}, err
    	}
    
    	lpFreeBytesAvailable := int64(0)
    	lpTotalNumberOfBytes := int64(0)
    	lpTotalNumberOfFreeBytes := int64(0)
    
    	// Extract values safely
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  8. src/archive/tar/stat_unix.go

    // The downside is that renaming uname or gname by the OS never takes effect.
    var userMap, groupMap sync.Map // map[int]string
    
    func statUnix(fi fs.FileInfo, h *Header, doNameLookups bool) error {
    	sys, ok := fi.Sys().(*syscall.Stat_t)
    	if !ok {
    		return nil
    	}
    	h.Uid = int(sys.Uid)
    	h.Gid = int(sys.Gid)
    	if doNameLookups {
    		// Best effort at populating Uname and Gname.
    		// The os/user functions may fail for any number of reasons
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  9. cmd/os-instrumented.go

    	defer updateOSMetrics(osMetricOpenFileDirectIO, name)(err)
    	return disk.OpenFileDirectIO(name, flag, perm)
    }
    
    // Lstat captures time taken to call os.Lstat
    func Lstat(name string) (info os.FileInfo, err error) {
    	defer updateOSMetrics(osMetricLstat, name)(err)
    	return os.Lstat(name)
    }
    
    // Remove captures time taken to call os.Remove
    func Remove(deletePath string) (err error) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 15 01:09:38 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  10. cmd/bucket-replication-stats.go

    				ReplicatedSize:  stat.ReplicatedSize + oldst.ReplicatedSize,
    				ReplicatedCount: stat.ReplicatedCount + oldst.ReplicatedCount,
    				Latency:         stat.Latency.merge(oldst.Latency),
    				XferRateLrg:     &lrg,
    				XferRateSml:     &sml,
    			}
    			totReplicatedSize += stat.ReplicatedSize
    			totReplicatedCount += stat.ReplicatedCount
    			totFailed = totFailed.merge(stat.FailStats)
    		}
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
Back to top