goduf-byinode_fallback.go
changeset 3 d08d45871171
parent 0 a5642cd03cef
child 11 47e45453b705
equal deleted inserted replaced
2:55098d552ae2 3:d08d45871171
    12 func (a ByInode) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
    12 func (a ByInode) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
    13 func (a ByInode) Less(i, j int) bool {
    13 func (a ByInode) Less(i, j int) bool {
    14 	return true
    14 	return true
    15 }
    15 }
    16 
    16 
       
    17 // OSHasInodes returns true iff the O.S. uses inodes for its filesystems.
    17 func OSHasInodes() bool {
    18 func OSHasInodes() bool {
    18 	return false
    19 	return false
    19 }
    20 }
    20 
    21 
       
    22 // GetDevIno returns the device and inode IDs of a given file.
       
    23 // This is not supported on Windows and Plan9.
    21 func GetDevIno(fi os.FileInfo) (uint64, uint64) {
    24 func GetDevIno(fi os.FileInfo) (uint64, uint64) {
    22 	return 0, 0 // Not supported
    25 	return 0, 0 // Not supported
    23 }
    26 }