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

e2fsck kill all files with Large EA.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • Lustre 2.8.0
    • Lustre 2.8.0
    • None
    • e2fsck 1.42.12 (and looks 1.42.13)
    • 3
    • 9223372036854775807

    Description

      e2fsck start a killing any Large EA enabled files after wrong merging in 1.42.9 e2fsprogs.
      after it point any run e2fsck produce an output

      Pass 1: Checking inodes, blocks, and sizes
      Extended attribute in inode 755994480 has a value size (5674) which is invalid
      

      fix is simple - just restore old behavior in pass1.c : check_ea_in_inode() function.

                      /* check value size */
      -                if (entry->e_value_size > remain) {
      +               if (entry->e_value_size == 0) {
                              pctx->num = entry->e_value_size;
                              problem = PR_1_ATTR_VALUE_SIZE;
                              goto fix;
                      }
       
                      if (entry->e_value_inum == 0) {
                              /* check value size */
                              if (entry->e_value_size > remain) {
                                      pctx->num = entry->e_value_size;
                                      problem = PR_1_ATTR_VALUE_SIZE;
                                      goto fix;
                              }
      

      Attachments

        Activity

          People

            niu Niu Yawei (Inactive)
            shadow Alexey Lyashkov
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: