Bug 1624244 - DHT: Rework the virtual xattr to get the hash subvol
Summary: DHT: Rework the virtual xattr to get the hash subvol
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: distribute
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nithya Balachandran
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1668995
TreeView+ depends on / blocked
 
Reported: 2018-08-31 05:50 UTC by Nithya Balachandran
Modified: 2019-01-24 05:38 UTC (History)
1 user (show)

Fixed In Version: glusterfs-5.0
Clone Of:
: 1668995 (view as bug list)
Environment:
Last Closed: 2018-10-23 15:18:02 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Nithya Balachandran 2018-08-31 05:50:12 UTC
Description of problem:
The earlier version would only return the hashed subvol for an existing file which has limited use.

Change this to perform a getfattr against the directory and provide the filename as part of the xattr name.

Credit: rgowdapp for the idea.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Worker Ant 2018-08-31 07:01:58 UTC
REVIEW: https://review.gluster.org/21052 (cluster/dht:  Rework the debug xattr to get hashed subvol) posted (#1) for review on master by N Balachandran

Comment 2 Worker Ant 2018-09-07 08:57:00 UTC
COMMIT: https://review.gluster.org/21052 committed in master by "N Balachandran" <nbalacha> with a commit message- cluster/dht:  Rework the debug xattr to get hashed subvol

The earlier implementation required the file to already exist
when trying to get the hashed subvol. The reworked implementation
allows a user to get the hashed subvol for any filename, whether
it exists or not.

Usage: getfattr -n "dht.file.hashed-subvol.<filename>" <parent dir>

Eg:To get the hashed subvol for file-1 inside dir-1

getfattr -n "dht.file.hashed-subvol.file-1" /mnt/gluster/dir1

credit: rgowdapp

Change-Id: Iae20bd5f56d387ef48c1c0a4ffa9f692866bf739
fixes: bz#1624244
Signed-off-by: N Balachandran <nbalacha>

Comment 3 Shyamsundar 2018-10-23 15:18:02 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-5.0, please open a new bug report.

glusterfs-5.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] https://lists.gluster.org/pipermail/announce/2018-October/000115.html
[2] https://www.gluster.org/pipermail/gluster-users/


Note You need to log in before you can comment on or make changes to this bug.