From: Yan, Zheng Date: Mon, 14 Oct 2013 08:34:26 +0000 (+0800) Subject: mds: flock: fix F_GETLK X-Git-Tag: v0.72-rc1~71^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f5685013a4ff4f569413945f380dd48b6cdbfaad;p=ceph.git mds: flock: fix F_GETLK fixes #5025 Signed-off-by: Yan, Zheng --- diff --git a/src/mds/Server.cc b/src/mds/Server.cc index 869f37734419..41862847e27d 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -3086,6 +3086,7 @@ void Server::handle_client_file_readlock(MDRequest *mdr) checking_lock.length = req->head.args.filelock_change.length; checking_lock.client = req->get_orig_source().num(); checking_lock.pid = req->head.args.filelock_change.pid; + checking_lock.pid_namespace = req->head.args.filelock_change.pid_namespace; checking_lock.type = req->head.args.filelock_change.type; // get the appropriate lock state diff --git a/src/mds/flock.h b/src/mds/flock.h index ae93d1660f07..b767fe585079 100644 --- a/src/mds/flock.h +++ b/src/mds/flock.h @@ -12,7 +12,7 @@ inline ostream& operator<<(ostream& out, ceph_filelock& l) { out << "start: " << l.start << ", length: " << l.length << ", client: " << l.client << ", pid: " << l.pid - << ", type: " << (int)l.type + << ", pid_ns: " << l.pid_namespace << ", type: " << (int)l.type << std::endl; return out; }