Bug 766530 - pathinfo extended attribute shows latests set block size for all the files
Summary: pathinfo extended attribute shows latests set block size for all the files
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: stripe
Version: mainline
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
Assignee: Venky Shankar
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 811632 815025 817967
TreeView+ depends on / blocked
 
Reported: 2011-12-12 09:43 UTC by shylesh
Modified: 2013-07-24 17:52 UTC (History)
1 user (show)

Fixed In Version: glusterfs-3.4.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 815025 (view as bug list)
Environment:
Last Closed: 2013-07-24 17:52:40 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions: 3.3 master
Embargoed:


Attachments (Terms of Use)

Description shylesh 2011-12-12 09:43:18 UTC
Description of problem:
Pathinfo extended attribute shows latest set block size for the files created with different block size

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

How reproducible:
Always

Steps to Reproduce:
1.Create a stripe volume and mount it 

2.Create some file on mount points , now these files have block size 128KB

3.Change the block size for the volume through volume set, say 1MB

4. Now create some files on the mount point, these files should have block size as 1MB

5. Now execute the command " getfattr -m . -n trusted.glusterfs.pathinfo * "

Actual results:
For all the files block size shown as 1MB

Expected results:
Block size should be same as the size with which the file was created

Additional info:

Comment 1 shylesh 2011-12-12 09:58:20 UTC
Actually it's showing 64MB no matter whatever the blocksize is

Comment 2 Anand Avati 2012-01-03 17:15:37 UTC
CHANGE: http://review.gluster.com/2545 (cluster/stripe: Fix block size reported in pathinfo xattr) merged in master by Vijay Bellur (vijay)

Comment 3 Anand Avati 2012-01-04 07:10:59 UTC
CHANGE: http://review.gluster.com/2549 (cluster/stripe: Fix block size reported in pathinfo xattr) merged in release-3.2 by Vijay Bellur (vijay)

Comment 4 shylesh 2012-01-16 12:48:28 UTC
Now another issue is while verifying this bug

1. Created a stripe volume , touched some files , block size was default
2. changed the block size using volume set to 2MB, whatever the files created after this and previously created files has proper block sizes.
3. Now i changed the stripe size to 8MB, files created after this still shows 2MB as block size

so reopening the bug

Comment 5 Venky Shankar 2012-01-16 15:54:16 UTC
(In reply to comment #4)
> Now another issue is while verifying this bug
> 
> 1. Created a stripe volume , touched some files , block size was default
> 2. changed the block size using volume set to 2MB, whatever the files created
> after this and previously created files has proper block sizes.
> 3. Now i changed the stripe size to 8MB, files created after this still shows
> 2MB as block size

If this is on 3.2, this is known problem as the update is not handled in the reconfigure part. I'll get look that up. It should be fine in master, can you please check that.

Also, for now you remount the volume and then check the block sizes for freshly created files.

> 
> so reopening the bug

Comment 6 Venky Shankar 2012-01-17 05:37:54 UTC
Sorry, my bad. The fix in the reconfigure part is still not in master yet.

Comment 7 shylesh 2012-04-20 09:59:42 UTC
Verified on 3.3 master working fine.


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