mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
mds: flock: fix F_GETLK
fixes #5025 Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
This commit is contained in:
parent
8d8ae58c42
commit
f5685013a4
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user