Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 35 for ModeDevice (0.38 sec)

  1. pkg/volume/util/volumepathhandler/volume_path_handler_linux.go

    	// Find symbolic link named pod uuid under plugin dir
    	err := filepath.Walk(pluginDir, func(path string, fi os.FileInfo, err error) error {
    		if err != nil {
    			return err
    		}
    		if (fi.Mode()&os.ModeDevice == os.ModeDevice) && (fi.Name() == string(podUID)) {
    			klog.V(5).Infof("FindGlobalMapPathFromPod: path %s, mapPath %s", path, mapPath)
    			if res, err := compareBindMountAndSymlinks(path, mapPath); err == nil && res {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  2. src/os/stat_plan9.go

    		fs.mode |= ModeExclusive
    	}
    	if d.Mode&syscall.DMTMP != 0 {
    		fs.mode |= ModeTemporary
    	}
    	// Consider all files not served by #M as device files.
    	if d.Type != 'M' {
    		fs.mode |= ModeDevice
    	}
    	// Consider all files served by #c as character device files.
    	if d.Type == 'c' {
    		fs.mode |= ModeCharDevice
    	}
    	return fs
    }
    
    // arg is an open *File or a path string.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 08 03:57:40 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  3. src/archive/tar/common.go

    		mode |= fs.ModeSymlink
    	case c_ISBLK:
    		mode |= fs.ModeDevice
    	case c_ISCHR:
    		mode |= fs.ModeDevice
    		mode |= fs.ModeCharDevice
    	case c_ISSOCK:
    		mode |= fs.ModeSocket
    	}
    
    	switch fi.h.Typeflag {
    	case TypeSymlink:
    		mode |= fs.ModeSymlink
    	case TypeChar:
    		mode |= fs.ModeDevice
    		mode |= fs.ModeCharDevice
    	case TypeBlock:
    		mode |= fs.ModeDevice
    	case TypeDir:
    		mode |= fs.ModeDir
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 16:01:50 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  4. pkg/volume/util/hostutil/hostutil.go

    		return FileTypeDirectory, nil
    	} else if mode.IsRegular() {
    		return FileTypeFile, nil
    	} else if isSpecificMode(mode, os.ModeSocket) {
    		return FileTypeSocket, nil
    	} else if isSpecificMode(mode, os.ModeDevice) {
    		if isSpecificMode(mode, os.ModeCharDevice) {
    			return FileTypeCharDev, nil
    		}
    		return FileTypeBlockDev, nil
    	}
    
    	return pathType, errUnknownFileType
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 13:38:40 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. src/os/types_windows.go

    			m |= ModeDir | 0111
    		}
    
    		switch fs.filetype {
    		case syscall.FILE_TYPE_PIPE:
    			m |= ModeNamedPipe
    		case syscall.FILE_TYPE_CHAR:
    			m |= ModeDevice | ModeCharDevice
    		}
    	}
    
    	if fs.FileAttributes&syscall.FILE_ATTRIBUTE_REPARSE_POINT != 0 {
    		switch fs.ReparseTag {
    		case syscall.IO_REPARSE_TAG_SYMLINK:
    			m |= ModeSymlink
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. cmd/os_unix.go

    		},
    	}
    )
    
    // unexpectedFileMode is a sentinel (and bogus) os.FileMode
    // value used to represent a syscall.DT_UNKNOWN Dirent.Type.
    const unexpectedFileMode os.FileMode = os.ModeNamedPipe | os.ModeSocket | os.ModeDevice
    
    func parseDirEnt(buf []byte) (consumed int, name []byte, typ os.FileMode, err error) {
    	// golang.org/issue/15653
    	dirent := (*syscall.Dirent)(unsafe.Pointer(&buf[0]))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. pkg/volume/util/hostutil/hostutil_linux.go

    	}
    	// err in call to os.Stat
    	if err != nil {
    		return false, fmt.Errorf(
    			"PathIsDevice failed for path %q: %v",
    			pathname,
    			err)
    	}
    	// path refers to a device
    	if finfo.Mode()&os.ModeDevice != 0 {
    		isDevice = true
    	}
    
    	if !isDevice {
    		klog.Errorf("Path %q is not referring to a device.", pathname)
    		return false, nil
    	}
    	fd, errno := unix.Open(pathname, unix.O_RDONLY|unix.O_EXCL|unix.O_CLOEXEC, 0)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 23 08:36:44 UTC 2023
    - 10K bytes
    - Viewed (0)
  8. src/os/os_windows_test.go

    		t.Fatal(err)
    	}
    	if got, want := fi.Mode(), os.ModeDevice|os.ModeCharDevice|0666; got != want {
    		t.Errorf("Open(%q).Stat().Mode() = %v, want %v", "NUL", got, want)
    	}
    }
    
    func TestStatNUL(t *testing.T) {
    	t.Parallel()
    
    	fi, err := os.Stat("NUL")
    	if err != nil {
    		t.Fatal(err)
    	}
    	if got, want := fi.Mode(), os.ModeDevice|os.ModeCharDevice|0666; got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  9. src/os/os_test.go

    	pre := fmt.Sprintf("%s(%q): ", statname, devNullName)
    	if fi.Size() != 0 {
    		t.Errorf(pre+"wrong file size have %d want 0", fi.Size())
    	}
    	if fi.Mode()&ModeDevice == 0 {
    		t.Errorf(pre+"wrong file mode %q: ModeDevice is not set", fi.Mode())
    	}
    	if fi.Mode()&ModeCharDevice == 0 {
    		t.Errorf(pre+"wrong file mode %q: ModeCharDevice is not set", fi.Mode())
    	}
    	if fi.Mode().IsRegular() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  10. api/except.txt

    pkg os (linux-arm), const O_SYNC = 4096
    pkg os (linux-arm-cgo), const O_SYNC = 1052672
    pkg os (linux-arm-cgo), const O_SYNC = 4096
    pkg os, const ModeAppend FileMode
    pkg os, const ModeCharDevice FileMode
    pkg os, const ModeDevice FileMode
    pkg os, const ModeDir FileMode
    pkg os, const ModeExclusive FileMode
    pkg os, const ModeIrregular FileMode
    pkg os, const ModeNamedPipe FileMode
    pkg os, const ModePerm FileMode
    pkg os, const ModeSetgid FileMode
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:13:30 UTC 2023
    - 34.6K bytes
    - Viewed (0)
Back to top