Details
-
Bug
-
Resolution: Not a Bug
-
Minor
-
None
-
Lustre 2.6.0
-
3
-
14385
Description
After creating a dangling reference, sanity-lfsck test 18d checks a file's size to make sure that there is an inconsistency. From test_18d:
echo "The file size should be incorrect since dangling referenced" local cur_size=$(ls -il $DIR/$tdir/a1/f2 | awk '{ print $6 }') [ "$cur_size" != "$saved_size" ] || error "(1) Expect incorrect file2 size"
but, when there is a dangling reference, ls does not return the file size. From the output of test_18d:
The file size should be incorrect since dangling referenced ls: cannot access /lustre/scratch/d18d.sanity-lfsck/a1/f2: Cannot allocate memory
Thus, the file size is never checked and this code does not do what is intended. This check needs to be rethought; it should probably be taken out or a different failure other than dangling reference needs to be injected here.
Attachments
Issue Links
- is related to
-
LU-4970 Test failure sanity-lfsck test_14: ls should success
-
- Resolved
-
It is the expected result. We want to check whether the injecting dangling reference failure works or not. If not, the new size will be equal to the old one.
To avoid confusing, we can change the test scripts as: