Description of problem: set-label returns wrong worning message when set the ext3/ext4 filesystem label. Same result on rhel7.2 Version-Release number of selected component (if applicable): libguestfs-1.20.11-16.el6.x86_64 libguestfs-winsupport-1.0-7.el6.x86_64 How reproducible: Always Steps to Reproduce: 1. # guestfish -a test.raw ><fs> list-filesystems /dev/sda1: ext3 2. Set the label as "AAAAAAAAAAAAAAAAAA" ><fs> set-label /dev/sda1 "AAAAAAAAAAAAAAAAAA" libguestfs: error: set_label: AAAAAAAAAAAAAAAAAA: ext2 labels are limited to 16 bytes 3. ><fs> mkfs ext4 /dev/sda1 ><fs> set-label /dev/sda1 "AAAAAAAAAAAAAAAAAA" libguestfs: error: set_label: AAAAAAAAAAAAAAAAAA: ext2 labels are limited to 16 bytes Actual results: In step 2, the filesystem format, ext2 in the error message is different from the the actual filesystem format. Expected results: In step 2, the error message should be "libguestfs: error: set_label: AAAAAAAAAAAAAAAAAA: ext3 labels are limited to 16 bytes". In step 3, the error message should be "libguestfs: error: set_label: AAAAAAAAAAAAAAAAAA: ext4 labels are limited to 16 bytes". Additional info:
Upstream fix: https://github.com/libguestfs/libguestfs/commit/1007b2555c71f8cb93cbda1604ce221a4101027d
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-0762.html