[parted-devel] [PATCH 3/3] libparted:tests: Enable _implemented_disk_label for atari

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Sun Oct 16 10:19:32 UTC 2016


Use get_sector_size() to ensure we're testing on 512-byte
sectors only.

Signed-off-by: John Paul Adrian Glaubitz <glaubitz at physik.fu-berlin.de>
---
 libparted/tests/common.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libparted/tests/common.c b/libparted/tests/common.c
index 8ef3915..2be0e3a 100644
--- a/libparted/tests/common.c
+++ b/libparted/tests/common.c
@@ -82,7 +82,9 @@ _implemented_disk_label (const char *label)
 {
         /* FIXME: these have minor problems, so skip them, temporarily.  */
         if (STREQ (label, "amiga")) return 0;
-        if (STREQ (label, "atari")) return 0;
+
+        if (STREQ (label, "atari") && get_sector_size() != 512)
+                return 0;
 
         /* Not implemented yet */
         if (STREQ (label, "aix")) return 0;
-- 
2.9.3




More information about the parted-devel mailing list