[Libguestfs] [PATCH v2 0/5] work around part table type misreporting by "parted"

Laszlo Ersek lersek at redhat.com
Wed Nov 24 10:37:42 UTC 2021


Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1931821
v1:       https://listman.redhat.com/archives/libguestfs/2021-November/msg00211.html

In version 2, "list-filesystems" works with the bogus MBR partition
table, as long as the FAT variant in use is FAT16 or FAT32. (Parted
completely chokes on bogus MBR + FAT12, but that's arguably a rare
corner case with libguestfs.) See also the patch-level Notes sections.

Thanks,
Laszlo

Laszlo Ersek (5):
  daemon/mkfs: disable creation of fake MBR partition table with
    "mkfs.fat"
  daemon/9p: fix wrong pathname in error message
  daemon/parted: simplify print_partition_table() prototype
  daemon/parted: work around part table type misreporting by "parted"
  daemon/listfs: don't call "sgdisk -i" on bogus MBR partition table
    entry

 daemon/9p.c      |  4 ++--
 daemon/listfs.ml |  5 +++++
 daemon/mkfs.c    | 27 +++++++++++++++++++++++++++
 daemon/parted.c  | 17 ++++++-----------
 daemon/parted.ml | 13 ++++++++-----
 daemon/utils.ml  | 44 ++++++++++++++++++++++++++++++++++++++++++++
 daemon/utils.mli | 10 ++++++++++
 7 files changed, 102 insertions(+), 18 deletions(-)


base-commit: 9fda9110e6a7afc1d418665f8f3538d87b5c8a5b
-- 
2.19.1.3.g30247aa5d201





More information about the Libguestfs mailing list