[Bugs] [Bug 1171703] AFR+SNAPSHOT: File with hard link have different inode number in USS
bugzilla at redhat.com
bugzilla at redhat.com
Thu Mar 10 10:43:29 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1171703
--- Comment #17 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/9255 committed in master by Rajesh Joseph
(rjoseph at redhat.com)
------
commit e0f71288d95469d7ae82473ef273c6ba43250a36
Author: vmallika <vmallika at redhat.com>
Date: Wed Feb 10 06:39:22 2016 +0530
uss/gluster: generate gfid for snapshot files from snapname and gfid
If 'a' and 'b' are hardlinks, we need to generate a virtual
gfid for these files so that the inode number for 'a' and 'b'
are same.
Generate gfid as below:
gfid_of_a = MD5(snapname + back_end_gfid(a))
if '/dir1/a' and '/dir2/b' are hardlinks, then inode number should be
same for
all below files:
/mnt/.snaps/snap1/dir1/a
/mnt/.snaps/snap1/dir2/b
/mnt/dir1/.snaps/snap1/a
/mnt/dir2/.snaps/snap1/b
Change-Id: Ifda793455610e554f3f1e4cbb90d44c02cda4b0f
BUG: 1171703
Signed-off-by: vmallika <vmallika at redhat.com>
Reviewed-on: http://review.gluster.org/9255
Smoke: Gluster Build System <jenkins at build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
CentOS-regression: Gluster Build System <jenkins at build.gluster.com>
Reviewed-by: Rajesh Joseph <rjoseph at redhat.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=09d3JvMlCI&a=cc_unsubscribe
More information about the Bugs
mailing list