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

Add new xfs_info2 API to expose XFS version information

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-10.2
    • None
    • libguestfs
    • None
    • libguestfs-1.58.1-2.el10
    • None
    • 1
    • rhel-virt-tools
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • rhel-virt-tools-CY25-Sprint999
    • Unspecified Release Note Type - Unknown
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Fix the xfs_info API in libguestfs. Actually it was badly broken, so I deprecated it and replaced it with guestfs_xfs_info2 described here:

      https://libguestfs.org/guestfs.3.html#guestfs_xfs_info2

      This new API can be used to detect if an XFS filesystem is version 4 or version 5, because the new meta-data.crc field of the output will be "0" (version 4) or "1" (version 5).

      [Original bug description follows below...]

      Goal

      • RHEL 10 dropped support of XFSv4, MTV is working on tool to preform deep inspection where we query information from guest before migraiton. Knowing the XFS version would be usefull information. Right now we know just the filesystem name but we don't know the speicifc version. For this we need to query the filesystem metadata in libguestfs and expose it in the virt-inspector.

      Acceptance criteria

      A list of verification conditions, successful functional tests, or expected outcomes in order to declare this story/task successfully completed.

      • Verify that libguestfs can get version from filesystem
      • Verify that virt-inspector returns filesystem and it's versionĀ 

              rhn-eng-rjones Richard Jones
              mnecas@redhat.com Martin Necas
              virt-maint virt-maint
              Ming Xie Ming Xie
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: