]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix O_TRUNC locking
authorYan, Zheng <zheng.z.yan@intel.com>
Sat, 29 Jun 2013 23:44:04 +0000 (07:44 +0800)
committerSage Weil <sage@inktank.com>
Wed, 3 Jul 2013 18:13:35 +0000 (11:13 -0700)
commit4fb782c38cb97bc8a61fce629fb9eef4fdac9292
tree8ff6b1a80bc12be59c00c5acba5798d7251d42d6
parentcd44a623715c7010ac3733d2cc7648dd8f60c6f0
mds: fix O_TRUNC locking

When truncating a file, we should xlock the corresponding filelock.
(revoke any Fw caps from clients).

[note from sw: setattr on size also takes the filelock xlock.]

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/mds/Server.cc