From: Sage Weil Date: Sat, 7 Mar 2009 00:45:55 +0000 (-0800) Subject: filepath: always prepend ino if it's nonzero X-Git-Tag: v0.7~11^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=626d1db18005c836c64ee29f7259268e652b423d;p=ceph.git filepath: always prepend ino if it's nonzero That means the only time we don't have an ino perfix is for fully relative paths. --- diff --git a/src/include/filepath.h b/src/include/filepath.h index d8650fcc391af..63d2d8e112a12 100644 --- a/src/include/filepath.h +++ b/src/include/filepath.h @@ -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(); }