]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
statfs better
authorsageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Wed, 22 Aug 2007 20:35:46 +0000 (20:35 +0000)
committersageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Wed, 22 Aug 2007 20:35:46 +0000 (20:35 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1657 29311d96-e01e-0410-9327-a35deaab8ce9

trunk/fusetrace/fusetrace_ll.cc

index f3b542bd51e4716d917b695c69ff4588167a8f16..361248a9cb9fd4ac96f8be2171148840f11b9dcf 100644 (file)
@@ -489,10 +489,14 @@ static void ft_ll_symlink(fuse_req_t req, const char *value, fuse_ino_t parent,
 static void ft_ll_statfs(fuse_req_t req, fuse_ino_t ino)
 {
     string path;
-    lock.Lock();
-    make_ino_path(path, ino);
-    lock.Unlock();
-    
+    if (ino) {
+       lock.Lock();
+       make_ino_path(path, ino);
+       lock.Unlock();
+    } else {
+       path = basedir;
+    }
+
     trace_lock.Lock();
     traceout << "ll_statfs" << endl << ino << endl;
     trace_lock.Unlock();