From: Sage Weil Date: Tue, 14 Jul 2009 19:50:06 +0000 (-0700) Subject: uclient: make lstat() take mask X-Git-Tag: v0.10~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5249a2bd50b04ea7ef40984a88e4161d287c866f;p=ceph.git uclient: make lstat() take mask --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 6c002a58abff..affdcfb23581 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -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); diff --git a/src/client/Client.h b/src/client/Client.h index b62504a6c4fd..9703f7648b9e 100644 --- a/src/client/Client.h +++ b/src/client/Client.h @@ -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);