parted/0090-Fix-atari-label-false-positives.patch
Brian C. Lane c7e5ffd322 - Use python3 in buildroot
- Add make to BuildRequires
- Switch gpt-header-move and msdos-overlap to python3 (bcl)
- Modify gpt-header-move and msdos-overlap to work with py2 or py3 (bcl)
- Fix atari label false positives (psusi)
- Lift 512 byte restriction on fat resize (psusi)
- build: Remove unused traces of dynamic loading (cjwatson)
- Fix resizepart iec unit end sector (psusi)
- mkpart: Allow negative start value when FS-TYPE is not given (mail)
- Fix set and disk_set to not crash when no flags are supported (psusi)
- tests: fix t6100-mdraid-partitions (psusi)
- Fix make check (psusi)
- linux: Include <sys/sysmacros.h> for major() macro. (rjones)
2018-06-27 15:07:57 -07:00

43 lines
1.2 KiB
Diff

From 80e2dcfb6253d6e2af51b4a4458acdef18438ff5 Mon Sep 17 00:00:00 2001
From: Phillip Susi <psusi@ubuntu.com>
Date: Fri, 11 May 2018 11:01:01 -0400
Subject: [PATCH 90/92] Fix atari label false positives
The atari label gets false positives easily, so probe it after
all other labels have said no.
(cherry picked from commit 395f8aabfecb28820006d37ec37e9ffe1d2eb1e3)
---
libparted/libparted.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libparted/libparted.c b/libparted/libparted.c
index d855d0e..3bd071d 100644
--- a/libparted/libparted.c
+++ b/libparted/libparted.c
@@ -80,12 +80,13 @@ extern void ped_disk_atari_init ();
static void
init_disk_types ()
{
+ /* Note that probing is done in the reverse order of init */
ped_disk_loop_init (); /* must be last in the probe list */
#if defined __s390__ || defined __s390x__
ped_disk_dasd_init();
#endif
-
+ ped_disk_atari_init (); /* easy false positives, so probe others first */
ped_disk_sun_init ();
#ifdef ENABLE_PC98
ped_disk_pc98_init ();
@@ -97,7 +98,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.1