Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 119 for ino (0.02 sec)

  1. src/cmd/go/internal/lockedfile/internal/filelock/filelock_fcntl.go

    	if err != nil {
    		return err
    	}
    	ino := fi.Sys().(*syscall.Stat_t).Ino
    
    	mu.Lock()
    	if i, dup := inodes[f]; dup && i != ino {
    		mu.Unlock()
    		return &fs.PathError{
    			Op:   lt.String(),
    			Path: f.Name(),
    			Err:  errors.New("inode for file changed since last Lock or RLock"),
    		}
    	}
    	inodes[f] = ino
    
    	var wait chan File
    	l := locks[ino]
    	if l.owner == f {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 17 02:24:35 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  2. src/os/types_unix.go

    func (fs *fileStat) ModTime() time.Time { return fs.modTime }
    func (fs *fileStat) Sys() any           { return &fs.sys }
    
    func sameFile(fs1, fs2 *fileStat) bool {
    	return fs1.sys.Dev == fs2.sys.Dev && fs1.sys.Ino == fs2.sys.Ino
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 776 bytes
    - Viewed (0)
  3. src/os/dirent_aix.go

    // license that can be found in the LICENSE file.
    
    package os
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    func direntIno(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Ino), unsafe.Sizeof(syscall.Dirent{}.Ino))
    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Reclen), unsafe.Sizeof(syscall.Dirent{}.Reclen))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 00:59:20 UTC 2020
    - 759 bytes
    - Viewed (0)
  4. src/os/dirent_solaris.go

    // license that can be found in the LICENSE file.
    
    package os
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    func direntIno(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Ino), unsafe.Sizeof(syscall.Dirent{}.Ino))
    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Reclen), unsafe.Sizeof(syscall.Dirent{}.Reclen))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 00:59:20 UTC 2020
    - 759 bytes
    - Viewed (0)
  5. src/os/dirent_linux.go

    // license that can be found in the LICENSE file.
    
    package os
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    func direntIno(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Ino), unsafe.Sizeof(syscall.Dirent{}.Ino))
    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Reclen), unsafe.Sizeof(syscall.Dirent{}.Reclen))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 00:59:20 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  6. src/os/dirent_wasip1.go

    // https://github.com/WebAssembly/WASI/blob/main/legacy/preview1/docs.md#-dirent-record
    const sizeOfDirent = 24
    
    func direntIno(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Ino), unsafe.Sizeof(syscall.Dirent{}.Ino))
    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    	namelen, ok := direntNamlen(buf)
    	return sizeOfDirent + namelen, ok
    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. src/syscall/dirent.go

    		if !ok || reclen > uint64(len(buf)) {
    			return origlen, count, names
    		}
    		rec := buf[:reclen]
    		buf = buf[reclen:]
    		ino, ok := direntIno(rec)
    		if !ok {
    			break
    		}
    		// See src/os/dir_unix.go for the reason why this condition is
    		// excluded on wasip1.
    		if ino == 0 && runtime.GOOS != "wasip1" { // File absent in directory.
    			continue
    		}
    		const namoff = uint64(unsafe.Offsetof(Dirent{}.Name))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:13:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go

    	Fsid    uint64
    	Namelen uint64
    	Frsize  uint64
    	Flags   uint64
    	_       [4]uint64
    }
    
    type direntLE struct {
    	Reclen uint16
    	Namlen uint16
    	Ino    uint32
    	Extra  uintptr
    	Name   [256]byte
    }
    
    type Dirent struct {
    	Ino    uint64
    	Off    int64
    	Reclen uint16
    	Type   uint8
    	Name   [256]uint8
    	_      [5]byte
    }
    
    type FdSet struct {
    	Bits [64]int32
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/dirent.go

    		reclen, ok := direntReclen(buf)
    		if !ok || reclen > uint64(len(buf)) {
    			return origlen, count, names
    		}
    		rec := buf[:reclen]
    		buf = buf[reclen:]
    		ino, ok := direntIno(rec)
    		if !ok {
    			break
    		}
    		if ino == 0 { // File absent in directory.
    			continue
    		}
    		const namoff = uint64(unsafe.Offsetof(Dirent{}.Name))
    		namlen, ok := direntNamlen(rec)
    		if !ok || namoff+namlen > uint64(len(rec)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3K bytes
    - Viewed (0)
  10. pkg/volume/util/fs/fs.go

    		if s.Dev != topLevelStat.Dev {
    			// don't descend into directories on other devices
    			return filepath.SkipDir
    		}
    
    		// Dedupe hardlinks
    		if s.Nlink > 1 {
    			if _, ok := dedupedInodes[s.Ino]; !ok {
    				dedupedInodes[s.Ino] = struct{}{}
    			} else {
    				return nil
    			}
    		}
    
    		if consumption == nil {
    			usage.Bytes += int64(s.Blocks) * int64(512) // blocksize in bytes
    		}
    
    		if inodes == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 20 02:56:02 UTC 2022
    - 3.8K bytes
    - Viewed (0)
Back to top