]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
uclient: set fsid in statfs request
authorSage Weil <sage@newdream.net>
Tue, 7 Apr 2009 22:36:07 +0000 (15:36 -0700)
committerSage Weil <sage@newdream.net>
Tue, 7 Apr 2009 23:58:55 +0000 (16:58 -0700)
src/client/Client.cc
src/messages/MStatfs.h

index 187f18bff93f24fe47f22c113ec0954e4a06c964..77e7d11f2c5be88448b32ea372bd9eda48363e63 100644 (file)
@@ -4001,7 +4001,7 @@ int Client::_statfs(struct statvfs *stbuf)
   statfs_requests[tid] = req;
 
   int mon = monmap->pick_mon();
-  messenger->send_message(new MStatfs(req->tid), monmap->get_inst(mon));
+  messenger->send_message(new MStatfs(monmap->fsid, req->tid), monmap->get_inst(mon));
 
   while (req->reply == 0)
     cond.Wait(client_lock);
index e44a965455814fda54a9aa5a70f7fc35d63517fd..0e0bb2f425fa83ef7db0819dc1c66820aaad2eb9 100644 (file)
@@ -24,7 +24,7 @@ public:
   tid_t tid;
 
   MStatfs() : Message(CEPH_MSG_STATFS) {}
-  MStatfs(tid_t t) : Message(CEPH_MSG_STATFS), tid(t) {}
+  MStatfs(ceph_fsid_t& f, tid_t t) : Message(CEPH_MSG_STATFS), fsid(f), tid(t) {}
 
   const char *get_type_name() { return "statfs"; }
   void print(ostream& out) {