Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-5184

sanity-lfsck test 18d: file size never checked

    XMLWordPrintable

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

          Activity

            People

              wc-triage WC Triage
              jamesanunez James Nunez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: