goduf-byinode_fallback.go
changeset 0 a5642cd03cef
child 3 d08d45871171
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/goduf-byinode_fallback.go	Sat Jun 28 14:03:08 2014 +0200
@@ -0,0 +1,23 @@
+
+// +build plan9 windows
+
+package main
+
+import "os"
+
+// ByInode is a FileObjList type with a sort interface
+type ByInode FileObjList
+
+func (a ByInode) Len() int      { return len(a) }
+func (a ByInode) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
+func (a ByInode) Less(i, j int) bool {
+	return true
+}
+
+func OSHasInodes() bool {
+	return false
+}
+
+func GetDevIno(fi os.FileInfo) (uint64, uint64) {
+	return 0, 0 // Not supported
+}