]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
filepath: always prepend ino if it's nonzero
authorSage Weil <sage@newdream.net>
Sat, 7 Mar 2009 00:45:55 +0000 (16:45 -0800)
committerSage Weil <sage@newdream.net>
Sat, 7 Mar 2009 00:45:55 +0000 (16:45 -0800)
That means the only time we don't have an ino perfix is for fully
relative paths.

src/include/filepath.h

index d8650fcc391af76bb6760f8b74c7aba1280305ea..63d2d8e112a12e865bb528e22a0c2b82af93973c 100644 (file)
@@ -195,7 +195,7 @@ WRITE_CLASS_ENCODER(filepath)
 
 inline ostream& operator<<(ostream& out, const filepath& path)
 {
-  if (path.get_ino() > 1)
+  if (path.get_ino())
     out << '#' << hex << path.get_ino() << dec << '/';
   return out << path.get_path();
 }