]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
blkid: add tests for FSLASTBLOCK tag
authorAndrey Albershteyn <aalbersh@redhat.com>
Wed, 27 Apr 2022 15:33:33 +0000 (17:33 +0200)
committerAndrey Albershteyn <aalbersh@redhat.com>
Mon, 2 May 2022 10:13:06 +0000 (12:13 +0200)
Signed-off-by: Andrey Albershteyn <aalbersh@redhat.com>
misc-utils/blkid.c
tests/expected/blkid/low-probe-btrfs
tests/expected/blkid/low-probe-ext2
tests/expected/blkid/low-probe-ext3
tests/expected/blkid/low-probe-jbd
tests/expected/blkid/low-probe-xfs
tests/expected/blkid/low-probe-xfs-v5

index 2edcd2b4156201dcbe3a023cd692ed3e01b8d019..5a3e43624125a82e2e00047714350a9d0714157e 100644 (file)
@@ -922,7 +922,7 @@ int main(int argc, char **argv)
                                BLKID_SUBLKS_LABEL | BLKID_SUBLKS_UUID |
                                BLKID_SUBLKS_TYPE | BLKID_SUBLKS_SECTYPE |
                                BLKID_SUBLKS_USAGE | BLKID_SUBLKS_VERSION |
-                               BLKID_SUBLKS_FSSIZE);
+                               BLKID_SUBLKS_FSSIZE | BLKID_SUBLKS_FSLASTBLOCK);
 
 
                        if (fltr_usage &&
index 509fac378cc682d944390768956ca519c57a0955..48649389abc63cedf1d60bf3d9ec79999ab5e2ad 100644 (file)
@@ -1,4 +1,5 @@
 ID_FS_BLOCK_SIZE=4096
+ID_FS_FSLASTBLOCK=29440
 ID_FS_TYPE=btrfs
 ID_FS_USAGE=filesystem
 ID_FS_UUID=d4a78b72-55e4-4811-86a6-09af936d43f9
index 087da97a45d8ce33a86ee12f0de4c53c1e80d4ad..e236c6e8a42e8e6a871b5496a5f3baeb461f21ac 100644 (file)
@@ -1,4 +1,5 @@
 ID_FS_BLOCK_SIZE=1024
+ID_FS_FSLASTBLOCK=100
 ID_FS_LABEL=test-ext2
 ID_FS_LABEL_ENC=test-ext2
 ID_FS_TYPE=ext2
index 8684884c17ab85052b72c322224c3cc02c44d8cd..164fefb7bdd4213381affca4bd62d8d22fd33cb5 100644 (file)
@@ -1,4 +1,5 @@
 ID_FS_BLOCK_SIZE=1024
+ID_FS_FSLASTBLOCK=2048
 ID_FS_LABEL=test-ext3
 ID_FS_LABEL_ENC=test-ext3
 ID_FS_SEC_TYPE=ext2
index c9f9f6b79a6eac5d02493195c0d57301eba9613b..f5462a2a3e23c51a09bcf8deadcaf30e40ea6f66 100644 (file)
@@ -1,4 +1,5 @@
 ID_FS_BLOCK_SIZE=1024
+ID_FS_FSLASTBLOCK=1024
 ID_FS_LOGUUID=0d7a07df-7b06-4829-bce7-3b9c3ece570c
 ID_FS_TYPE=jbd
 ID_FS_USAGE=other
index a91e92bcc3ccde63b58ec9ab72c4d13fa127fa50..be9c4194a837ba333b6a77c93e89245a60f49ba0 100644 (file)
@@ -1,4 +1,5 @@
 ID_FS_BLOCK_SIZE=512
+ID_FS_FSLASTBLOCK=4096
 ID_FS_FSSIZE=11862016
 ID_FS_LABEL=test-xfs
 ID_FS_LABEL_ENC=test-xfs
index 129b41f2696cc6e0b90bf7de32146bd28581649f..fd2cba933d9d91376c52754883e47defbe954282 100644 (file)
@@ -1,4 +1,5 @@
 ID_FS_BLOCK_SIZE=512
+ID_FS_FSLASTBLOCK=5120
 ID_FS_FSSIZE=17469440
 ID_FS_LABEL=test-xfs-v5
 ID_FS_LABEL_ENC=test-xfs-v5