- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 53 for Lstat (0.04 sec)
-
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) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Feb 15 01:09:38 UTC 2024 - 6.3K bytes - Viewed (0) -
internal/mountinfo/mountinfo_linux.go
) // IsLikelyMountPoint determines if a directory is a mountpoint. func IsLikelyMountPoint(path string) bool { s1, err := os.Lstat(path) if err != nil { return false } // A symlink can never be a mount point if s1.Mode()&os.ModeSymlink != 0 { return false } s2, err := os.Lstat(filepath.Dir(strings.TrimSuffix(path, "/"))) if err != nil { return false }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 4.7K bytes - Viewed (0) -
cmd/os_windows.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "os" "path/filepath" "syscall" ) func access(name string) error { _, err := os.Lstat(name) return err } func osMkdirAll(dirPath string, perm os.FileMode, _ string) error { // baseDir is not honored in windows platform return os.MkdirAll(dirPath, perm) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Oct 18 18:08:15 UTC 2023 - 5.1K bytes - Viewed (0) -
cmd/speedtest.go
FileSize: opts.FileSize, } localPaths := globalEndpoints.LocalDisksPaths() var ignoredPaths []string paths := func() (tmpPaths []string) { for _, lp := range localPaths { if _, err := Lstat(pathJoin(lp, minioMetaBucket, formatConfigFile)); err == nil { tmpPaths = append(tmpPaths, pathJoin(lp, minioMetaTmpBucket)) } else { // Use dperf on only formatted drives.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon May 06 09:45:10 UTC 2024 - 9.2K bytes - Viewed (0) -
cmd/os_other.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "io" "os" "syscall" ) func access(name string) error { _, err := os.Lstat(name) return err } func osMkdirAll(dirPath string, perm os.FileMode, _ string) error { // baseDir is not honored in plan9 and solaris platforms. return os.MkdirAll(dirPath, perm) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Sep 13 15:14:36 UTC 2023 - 4K bytes - Viewed (0) -
cmd/os_unix.go
"fmt" "os" "strings" "sync" "syscall" "unsafe" "golang.org/x/sys/unix" ) func access(name string) error { if err := unix.Access(name, unix.F_OK); err != nil { return &os.PathError{Op: "lstat", Path: name, Err: err} } return nil } // openFileWithFD return 'fd' based file descriptor func openFileWithFD(name string, flag int, perm os.FileMode) (fd int, err error) { switch flag & writeMode {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 9.3K bytes - Viewed (0) -
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
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Feb 26 19:34:50 UTC 2024 - 4.8K bytes - Viewed (0) -
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
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Feb 15 15:23:28 UTC 2024 - 6.2K bytes - Viewed (0) -
internal/disk/stat_test.go
package disk import ( "os" "reflect" "testing" ) func TestReadDriveStats(t *testing.T) { 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{
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 3.5K bytes - Viewed (0) -
manifests/addons/dashboards/lib/panels.libsonnet
stat(title, targets, desc=''): stat.new(title) + stat.queryOptions.withTargets(targets) + stat.queryOptions.withInterval('5s') + options.legend.withDisplayMode('table') + options.legend.withCalcs([ 'last', 'max', ]) + stat.standardOptions.color.withFixedColor('blue') + stat.standardOptions.color.withMode('fixed')
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jul 26 23:54:32 UTC 2024 - 9.5K bytes - Viewed (0)