diff -r 55098d552ae2 -r d08d45871171 goduf-byinode_unix.go --- a/goduf-byinode_unix.go Sat Jun 28 18:28:09 2014 +0200 +++ b/goduf-byinode_unix.go Sat Jun 28 20:36:10 2014 +0200 @@ -26,10 +26,12 @@ return iInode < jInode } +// OSHasInodes returns true iff the O.S. uses inodes for its filesystems. func OSHasInodes() bool { return true } +// GetDevIno returns the device and inode IDs of a given file. func GetDevIno(fi os.FileInfo) (uint64, uint64) { dev := fi.Sys().(*syscall.Stat_t).Dev ino := fi.Sys().(*syscall.Stat_t).Ino