[Bugs] [Bug 1316517] [Tier]: Creation of hardlink on tiered volume failed with EXISTS
bugzilla at redhat.com
bugzilla at redhat.com
Thu Mar 10 14:01:41 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1316517
--- Comment #2 from Mohammed Rafi KC <rkavunga at redhat.com> ---
Upstream patch : http://review.gluster.org/#/c/13672/
This patch will solve the race condition with linkfile creation
When the file is in hot tier and linkfile in cold tier
1) Hardlink created on cold tier for linkfile
2) if Link creation on hot tier success then send success to application
3) else if Link creation on hot tier fails
4) Do a lookup on hot tier with source path.
5) if source is present
5.1 if (gfid differ) // File can recreate with different gfid
5.2.1 make link call success
5.2 else if same gfid
5.2.1 fail the link call
6) else if source is not present // Either migrated or deleted
6.1 Do lookup on dst loc in cold tier
6.2 if (dst is not present)
6.2.1 Created link was deleted. Fail the link call
6.3 else if dst is present
6.3.1 if it is linkto file // source could have deleted
6.3.1.1 if gfid is same
6.3.1.1.1 delete the linkfile
6.3.1.1.2 fail the link call
6.3.1.2 else if gfid differ
6.3.1.2.1 Fail the link call
6.3.2 else if it is a regular file
6.3.2.1 if gfid is same
6.3.2.1.1 Success the link call.
6.3.2.2 else if gfid is different
6.3.2.2.1 Fail the link call.
7) End
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
More information about the Bugs
mailing list