]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
uclient: make lstat() take mask
authorSage Weil <sage@newdream.net>
Tue, 14 Jul 2009 19:50:06 +0000 (12:50 -0700)
committerSage Weil <sage@newdream.net>
Tue, 14 Jul 2009 19:50:06 +0000 (12:50 -0700)
src/client/Client.cc
src/client/Client.h

index 6c002a58abff2d7afdbd815bb1f82103ce867a1e..affdcfb2358198100960ab272d114fd33e0c6fa6 100644 (file)
@@ -3131,7 +3131,7 @@ int Client::fill_stat(Inode *in, struct stat *st, frag_info_t *dirstat, nest_inf
 }
 
 
-int Client::lstat(const char *relpath, struct stat *stbuf, frag_info_t *dirstat)
+int Client::lstat(const char *relpath, struct stat *stbuf, frag_info_t *dirstat, int mask)
 {
   Mutex::Locker lock(client_lock);
   tout << "lstat" << std::endl;
@@ -3141,7 +3141,7 @@ int Client::lstat(const char *relpath, struct stat *stbuf, frag_info_t *dirstat)
   int r = path_walk(path, &in);
   if (r < 0)
     return r;
-  r = _getattr(in, CEPH_STAT_CAP_INODE_ALL);
+  r = _getattr(in, mask);
   if (r < 0)
     return r;
   fill_stat(in, stbuf, dirstat);
index b62504a6c4fd00045255933750b5d4887cafe219..9703f7648b9e7c946ecd0c9e2c8e4a4809ab75fd 100644 (file)
@@ -1087,7 +1087,7 @@ public:
   int symlink(const char *existing, const char *newname);
 
   // inode stuff
-  int lstat(const char *path, struct stat *stbuf, frag_info_t *dirstat=0);
+  int lstat(const char *path, struct stat *stbuf, frag_info_t *dirstat=0, int mask=CEPH_STAT_CAP_INODE_ALL);
   int lstatlite(const char *path, struct statlite *buf);
 
   int setattr(const char *relpath, struct stat *attr, int mask);