Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 191 for Lstat (0.21 sec)

  1. 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 23 11:13:09 GMT 2024
    - Last Modified: Thu May 25 00:13:30 GMT 2023
    - 34.6K bytes
    - Viewed (0)
  2. 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 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 15 01:09:38 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  3. internal/mountinfo/mountinfo_linux.go

    	if s1.Sys().(*syscall.Stat_t).Dev != s2.Sys().(*syscall.Stat_t).Dev {
    		//  path/.. on a different device as path
    		return true
    	}
    
    	// path/.. is the same i-node as path - this check is for bind mounts.
    	return s1.Sys().(*syscall.Stat_t).Ino == s2.Sys().(*syscall.Stat_t).Ino
    }
    
    // CheckCrossDevice - check if any list of paths has any sub-mounts at /proc/mounts.
    func CheckCrossDevice(absPaths []string) error {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 4.7K bytes
    - Viewed (0)
  4. doc/next/6-stdlib/99-minor/os/61893.md

    On Windows, the mode bits reported by [Lstat] and [Stat] for
    reparse points changed. Mount points no longer have [ModeSymlink] set,
    and reparse points that are not symlinks, Unix sockets, or dedup files
    now always have [ModeIrregular] set.
    This behavior is controlled by the `winsymlink` setting.
    For Go 1.23, it defaults to `winsymlink=1`.
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 386 bytes
    - Viewed (0)
  5. 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)
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Sep 13 15:14:36 GMT 2023
    - 4K bytes
    - Viewed (0)
  6. 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)
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  7. doc/godebug.md

    There are no runtime metrics for this change,
    This setting may be removed in a future release, Go 1.27 at the earliest.
    
    Go 1.23 changed the mode bits reported by [`os.Lstat`](/pkg/os#Lstat) and [`os.Stat`](/pkg/os#Stat)
    for reparse points, which can be controlled with the `winsymlink` setting.
    As of Go 1.23 (`winsymlink=1`), mount points no longer have [`os.ModeSymlink`](/pkg/os#ModeSymlink)
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Apr 16 17:29:58 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  8. cmd/xl-storage.go

    		if err := checkPathLength(filePath); err != nil {
    			return stat, err
    		}
    		st, _ := Lstat(filePath)
    		if st == nil {
    			if !skipAccessChecks(volume) {
    				// Stat a volume entry.
    				if verr := Access(volumeDir); verr != nil {
    					return stat, convertAccessError(verr, errVolumeAccessDenied)
    				}
    			}
    			return stat, errPathNotFound
    		}
    		name, err := filepath.Rel(volumeDir, filePath)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 11:26:59 GMT 2024
    - 82.4K bytes
    - Viewed (0)
  9. 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.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 28 18:04:17 GMT 2024
    - 9K bytes
    - Viewed (0)
  10. 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 {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.3K bytes
    - Viewed (0)
Back to top