[LU-2479] sanity.sh test_129: max dir size limit work incorrectly. Created: 12/Dec/12 Updated: 25/Apr/14 Resolved: 14/Jun/13 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.2.0, Lustre 2.1.1, Lustre 2.1.2, Lustre 2.1.3, Lustre 1.8.x (1.8.0 - 1.8.5) |
| Fix Version/s: | Lustre 2.6.0, Lustre 2.5.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexey Lyashkov | Assignee: | WC Triage |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | patch | ||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 5820 | ||||||||
| Description |
|
easy replicate by hand. mkdir failed due wrong assumption - if we allocate an inode that is always allocate a space in directory, but ext4 isn't truncate a directory after removing an objects from it. that is caused random fails in sanity 129. |
| Comments |
| Comment by Alexey Lyashkov [ 12/Dec/12 ] |
|
correct implementation landed into ext4 upstream as commit df981d03eeff7971ac7e6ff37000bfa702327ef1 ext4: add max_dir_size_kb mount option by checking a directory limit inside ext4_append function. |
| Comment by Keith Mannthey (Inactive) [ 16/Jan/13 ] |
|
This same issue has been seen in our test rig. https://maloo.whamcloud.com/test_sessions/00d6be9e-5fbf-11e2-84d4-52540035b04c |
| Comment by Keith Mannthey (Inactive) [ 16/Jan/13 ] |
|
Alexey Lyashkov, Have you tested the above change and does it fix the error? |
| Comment by Alexey Lyashkov [ 20/Jan/13 ] |
|
Keith, That is correct. |
| Comment by Alexander Boyko [ 22/Jan/13 ] |
| Comment by Alexander Boyko [ 24/Jan/13 ] |
|
http://review.whamcloud.com/#change,5140 |
| Comment by Alexander Boyko [ 27/Feb/13 ] |
|
Status update: |
| Comment by James A Simmons [ 27/Feb/13 ] |
|
New patch address the SLES11 issues. Will work with RHEL6.3, SLES11 SP1 and SP2. Haven't tried it on RHEL6.4 yet. |
| Comment by Keith Mannthey (Inactive) [ 14/Jun/13 ] |
|
Patch has been merged. |
| Comment by Vladimir Saveliev [ 01/Nov/13 ] |
|
The directory max size check in ldiskfs_append() should not be applied when an inode does not refer to a directory. |
| Comment by Emoly Liu [ 24/Apr/14 ] |
backport to b2_5: http://review.whamcloud.com/10043 |