# HG changeset patch # User Mikael Berthe # Date 1403980570 -7200 # Node ID d08d458711715f44bc183c08d0db5ae7b944ce81 # Parent 55098d552ae2d4e29cc13b4be636f644ebf663d2 Add descriptions to exported functions diff -r 55098d552ae2 -r d08d45871171 goduf-byinode_fallback.go --- a/goduf-byinode_fallback.go Sat Jun 28 18:28:09 2014 +0200 +++ b/goduf-byinode_fallback.go Sat Jun 28 20:36:10 2014 +0200 @@ -14,10 +14,13 @@ return true } +// OSHasInodes returns true iff the O.S. uses inodes for its filesystems. func OSHasInodes() bool { return false } +// GetDevIno returns the device and inode IDs of a given file. +// This is not supported on Windows and Plan9. func GetDevIno(fi os.FileInfo) (uint64, uint64) { return 0, 0 // Not supported } 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