[Bugs] [Bug 1468202] inodelk in dht_migrate_file is ineffective for hardlink migration

bugzilla at redhat.com bugzilla at redhat.com
Mon Jan 8 15:35:36 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1468202



--- Comment #1 from Nithya Balachandran <nbalacha at redhat.com> ---
The inodelk APIs get the lk_owner from the frame->root->lk_owner (not the
flock->l_owner) which is set to the process pid if not explicitly set by the
caller. dht_migrate_file uses syncop_inodelk which does not provide access to
the frame, so the lk_owner is always 0xfdfffff (-3 which is
GF_CLIENT_PID_DEFRAG). As the owner is the same, the inodelk is always granted
for all hardlinks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list