Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-7033

Mke2fs: cannot parse recent mke2fs.conf file

    • Yes
    • Moderate
    • rhel-sst-virtualization
    • ssg_virtualization
    • 5
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:
      After the rebase of e2fsprogs to 1.45.4 done in version e2fsprogs-1.45.4-1.el8.x86_64, the newly shipped /etc/mke2fs.conf cannot be parsed anymore by the Mke2fs lens:

      $ augtool print /augeas//error | grep /etc/mke2fs.conf
      /augeas/files/etc/mke2fs.conf/error = "parse_failed"
      /augeas/files/etc/mke2fs.conf/error/pos = "384"
      /augeas/files/etc/mke2fs.conf/error/line = "17"
      /augeas/files/etc/mke2fs.conf/error/char = "0"
      /augeas/files/etc/mke2fs.conf/error/lens = "/usr/share/augeas/lenses/dist/mke2fs.aug:135.10-.49:"
      /augeas/files/etc/mke2fs.conf/error/message = "Get did not match entire input"

      The issues are various:

      • all the options available for filesystems are not handled (inside the [fs_types] stanza)
      • boolean values are not parsed correctly (i.e. all the possible values for them)
      • quoted values are not handled

      I fixed some of the issues in the past with an already-merged MR [1], and a more recent one handles almost all the remaining issues [2].

      Version-Release number of selected component (if applicable):
      augeas-1.12.0-5.el8

      Steps to Reproduce:
      $ augtool print /augeas//error | grep /etc/mke2fs.conf

      Actual results:
      /augeas/files/etc/mke2fs.conf/error = "parse_failed"
      /augeas/files/etc/mke2fs.conf/error/pos = "384"
      /augeas/files/etc/mke2fs.conf/error/line = "17"
      /augeas/files/etc/mke2fs.conf/error/char = "0"
      /augeas/files/etc/mke2fs.conf/error/lens = "/usr/share/augeas/lenses/dist/mke2fs.aug:135.10-.49:"
      /augeas/files/etc/mke2fs.conf/error/message = "Get did not match entire input"

      Expected results:

      • no output for errors
      • `augtool print /files/etc/mke2fs.conf/` that prints the actual content of the file

              rhn-eng-rjones Richard Jones
              ptoscano@redhat.com Pino Toscano
              Richard Jones Richard Jones
              Yongkui Guo Yongkui Guo
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: