|
|
05ad79 |
From b4d5cf4819023ce07ecd39729cdd4cde8b59ca35 Mon Sep 17 00:00:00 2001
|
|
|
05ad79 |
From: Nate Clark <nate@neworld.us>
|
|
|
05ad79 |
Date: Wed, 4 Jan 2017 15:24:22 -0500
|
|
|
05ad79 |
Subject: [PATCH 174/176] libblkid/minix: Match minix superblock types
|
|
|
05ad79 |
|
|
|
05ad79 |
All of the types in the minix super block are unsigned but in
|
|
|
05ad79 |
probe_minix they were being treated as signed. This would cause some of
|
|
|
05ad79 |
the extra sanity checks to pass on a non minix device. The types were
|
|
|
05ad79 |
updated to match the return types of the helper functions in
|
|
|
05ad79 |
disk-utils/minix_programs.h
|
|
|
05ad79 |
|
|
|
05ad79 |
This can be checked by creating a swap partition with one of these UUIDs
|
|
|
05ad79 |
35f1f264-2468-471a-bc85-acc9f4bc04a3
|
|
|
05ad79 |
35f1f264-6824-471a-bc85-acc9f4bc04a3
|
|
|
05ad79 |
35f1f264-2478-471a-bc85-acc9f4bc04a3
|
|
|
05ad79 |
35f1f264-7824-471a-bc85-acc9f4bc04a3
|
|
|
05ad79 |
|
|
|
05ad79 |
Prior to this change they would all be considered minix and swap by
|
|
|
05ad79 |
blkid.
|
|
|
05ad79 |
|
|
|
05ad79 |
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1594681
|
|
|
05ad79 |
Upstream: http://github.com/karelzak/util-linux/commit/a9975c1072c4975ec2df958188a80d89cabc6171
|
|
|
05ad79 |
Signed-off-by: Nate Clark <nate@neworld.us>
|
|
|
05ad79 |
---
|
|
|
05ad79 |
libblkid/src/superblocks/minix.c | 3 ++-
|
|
|
05ad79 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
05ad79 |
|
|
|
05ad79 |
diff --git a/libblkid/src/superblocks/minix.c b/libblkid/src/superblocks/minix.c
|
|
|
05ad79 |
index 3e80e5b22..a20d51f2c 100644
|
|
|
05ad79 |
--- a/libblkid/src/superblocks/minix.c
|
|
|
05ad79 |
+++ b/libblkid/src/superblocks/minix.c
|
|
|
05ad79 |
@@ -87,7 +87,8 @@ static int probe_minix(blkid_probe pr, const struct blkid_idmag *mag)
|
|
|
05ad79 |
|
|
|
05ad79 |
if (version <= 2) {
|
|
|
05ad79 |
struct minix_super_block *sb = (struct minix_super_block *) data;
|
|
|
05ad79 |
- int zones, ninodes, imaps, zmaps, firstz;
|
|
|
05ad79 |
+ unsigned long zones, ninodes, imaps, zmaps;
|
|
|
05ad79 |
+ off_t firstz;
|
|
|
05ad79 |
|
|
|
05ad79 |
if (sb->s_imap_blocks == 0 || sb->s_zmap_blocks == 0)
|
|
|
05ad79 |
return 1;
|
|
|
05ad79 |
--
|
|
|
05ad79 |
2.14.4
|
|
|
05ad79 |
|