Re: Re: [PATCH 1/3] mds: update atime if client can read.

2013-07-02 Thread majianpeng
>On Tue, 2 Jul 2013, majianpeng wrote: >> Now, update atime only for CEPH_CAP_FILE_EXCL.Change this if >> CEPH_CAP_FILE_RD. > >Can we introduce a global config optoin (bool mds_atime in >common/config_opts.h, maybe) so that users can turn this off? And/or add >a 'relatime' option? More users wo

Re: [PATCH 1/3] mds: update atime if client can read.

2013-07-02 Thread Sage Weil
On Tue, 2 Jul 2013, majianpeng wrote: > Now, update atime only for CEPH_CAP_FILE_EXCL.Change this if > CEPH_CAP_FILE_RD. Can we introduce a global config optoin (bool mds_atime in common/config_opts.h, maybe) so that users can turn this off? And/or add a 'relatime' option? More users won't wan

[PATCH 1/3] mds: update atime if client can read.

2013-07-01 Thread majianpeng
Now, update atime only for CEPH_CAP_FILE_EXCL.Change this if CEPH_CAP_FILE_RD. Signed-off-by: Jianpeng Ma --- src/mds/Locker.cc | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/mds/Locker.cc b/src/mds/Locker.cc index 30e014a..58f953f 100644 --- a/src/mds/Lo