linux-m68k.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix atari label false positives
@ 2018-06-05 14:30 Phillip Susi
       [not found] ` <20180605143045.23875-1-psusi-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Phillip Susi @ 2018-06-05 14:30 UTC (permalink / raw)
  To: glaubitz-1Olz3AKvcsuAKZTfuerNgRvVK+yQ3ZXh
  Cc: debian-68k-0aAXYlwwYIJuHlm7Suoebg,
	linux-m68k-u79uwXL29TY76Z2rM5mHXA,
	parted-devel-XbBxUvOt3X2LieD7tvxI8l/i77bcL1HB

The atari label gets false positives easily, so probe it after
all other labels have said no.
---
 NEWS                  | 2 ++
 libparted/libparted.c | 3 +--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index 2c903ca5..a5ec44ee 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,8 @@ GNU parted NEWS                                    -*- outline -*-
 
 ** Bug Fixes
 
+  Fix atari disklabel false positives by probing other labels first.
+
   Fix set and disk_set to not crash when there are no flags to set.
 
   Fix resizepart to adjust the end to be -1 sector when using iec
diff --git a/libparted/libparted.c b/libparted/libparted.c
index d855d0e6..e864d1b3 100644
--- a/libparted/libparted.c
+++ b/libparted/libparted.c
@@ -85,7 +85,7 @@ init_disk_types ()
 #if defined __s390__ || defined __s390x__
 	ped_disk_dasd_init();
 #endif
-
+	ped_disk_atari_init ();
 	ped_disk_sun_init ();
 #ifdef ENABLE_PC98
 	ped_disk_pc98_init ();
@@ -97,7 +97,6 @@ init_disk_types ()
 	ped_disk_bsd_init ();
 	ped_disk_amiga_init ();
 	ped_disk_aix_init ();
-	ped_disk_atari_init ();
 }
 
 extern void ped_file_system_amiga_init (void);
-- 
2.17.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-06-06 13:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-05 14:30 [PATCH] Fix atari label false positives Phillip Susi
     [not found] ` <20180605143045.23875-1-psusi-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org>
2018-06-05 14:35   ` John Paul Adrian Glaubitz
2018-06-05 14:40     ` Phillip Susi
     [not found]       ` <208fded9-0bfc-0578-7a57-98b5c3af78dc-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org>
2018-06-05 14:43         ` John Paul Adrian Glaubitz
2018-06-05 20:08   ` Håkon Løvdal
     [not found]     ` <CAACXqO8f-=-Bj6JiddnQM5GMFenDUj-MBO7ZTUcPh1tAKWtTmQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-06-06 13:14       ` Phillip Susi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).