[LU-4100] lfs getstripe of directory prints an extra space char at the end of header's infos line Created: 14/Oct/13 Updated: 25/Oct/13 Resolved: 25/Oct/13 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.6.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Bruno Faccini (Inactive) | Assignee: | Bruno Faccini (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Severity: | 3 |
| Rank (Obsolete): | 11015 |
| Description |
[root@clnt ~]# mkdir /mnt/lustre2/foo [root@clnt ~]# lfs getstripe /mnt/lustre2/foo | sed 'l' /mnt/lustre2/foo$ /mnt/lustre2/foo stripe_count: 1 stripe_size: 1048576 stripe_offset: -1 $ stripe_count: 1 stripe_size: 1048576 stripe_offset: -1 [root@clnt ~]# lfs getstripe -c -s /mnt/lustre2/foo | sed 'l' stripe_count: 1 stripe_size: 1048576 $ stripe_count: 1 stripe_size: 1048576 [root@clnt ~]# lfs getstripe -c /mnt/lustre2/foo | sed 'l' 1 $ 1 [root@clnt ~]# This is particularly annoying for parsing in scripts and has been unveiled in |
| Comments |
| Comment by Li Xi (Inactive) [ 17/Oct/13 ] |
|
Hi Bruno, I've post a patch which tries to fix this problem. |
| Comment by Bruno Faccini (Inactive) [ 18/Oct/13 ] |
|
Hello Li, seems that after Andreas raised this problem, during your change #7495 review, you already worked on it and had a patch ready to go !! |
| Comment by Li Xi (Inactive) [ 23/Oct/13 ] |
|
Hello Bruno, It did not cost me much time to prepare the patch since Andreas had already pointed out where the problem is and how to fix. |
| Comment by Peter Jones [ 25/Oct/13 ] |
|
Landed for 2.6 |