]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
blkid: add FSSIZE tag with tests for XFS
authorAndrey Albershteyn <aalbersh@redhat.com>
Mon, 25 Apr 2022 15:08:39 +0000 (17:08 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 26 Apr 2022 08:26:03 +0000 (10:26 +0200)
The FSSIZE tag was added to the libblkid. Enable this tag in blkid
and update tests golden output for XFS test cases.

Signed-off-by: Andrey Albershteyn <aalbersh@redhat.com>
misc-utils/blkid.c
tests/expected/blkid/low-probe-xfs
tests/expected/blkid/low-probe-xfs-v5

index d79527e3fc225eab15d018600b0646736fbcd625..2edcd2b4156201dcbe3a023cd692ed3e01b8d019 100644 (file)
@@ -921,7 +921,8 @@ int main(int argc, char **argv)
                        blkid_probe_set_superblocks_flags(pr,
                                BLKID_SUBLKS_LABEL | BLKID_SUBLKS_UUID |
                                BLKID_SUBLKS_TYPE | BLKID_SUBLKS_SECTYPE |
-                               BLKID_SUBLKS_USAGE | BLKID_SUBLKS_VERSION);
+                               BLKID_SUBLKS_USAGE | BLKID_SUBLKS_VERSION |
+                               BLKID_SUBLKS_FSSIZE);
 
 
                        if (fltr_usage &&
index 6eb1b4600ba8928e436f2b0384136fea8ae0665c..a91e92bcc3ccde63b58ec9ab72c4d13fa127fa50 100644 (file)
@@ -1,4 +1,5 @@
 ID_FS_BLOCK_SIZE=512
+ID_FS_FSSIZE=11862016
 ID_FS_LABEL=test-xfs
 ID_FS_LABEL_ENC=test-xfs
 ID_FS_TYPE=xfs
index 513a3818f9962c23151413226e4acfa18acf5899..129b41f2696cc6e0b90bf7de32146bd28581649f 100644 (file)
@@ -1,4 +1,5 @@
 ID_FS_BLOCK_SIZE=512
+ID_FS_FSSIZE=17469440
 ID_FS_LABEL=test-xfs-v5
 ID_FS_LABEL_ENC=test-xfs-v5
 ID_FS_TYPE=xfs