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

e2fsck should avoid moving files into lost+found

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • 9223372036854775807

      When e2fsck finds a directory that is hard-linked between an existing directory and lost+found, it appears to prefer moving the file into lost+found rather than keeping it connected to the original parent directory:

      '..' in /lost+found/#471345273 (471345273) is /ROOT/RUNDIRS/2018051500/output (471373040), should be /lost+found (11).
      Fix? no
      Entry 'tmp249767' in /ROOT/RUNDIRS/2018051500/output (471373040) is a link to directory /lost+found/#471345273 (471345273 fid=[0x200039c0f:0x1d51c:0x0]).
      Inode 471345273 ref count is 2, should be 3.  Fix? no
      Entry '#471345273' in /lost+found (11) has an incorrect filetype (was 1, should be 2).
      Fix? no
      

      It would make more sense for e2fsck to prefer not moving files into lost+found if there is somewhere else that the inode could be attached.

            wc-triage WC Triage
            adilger Andreas Dilger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: