bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [parted-devel] [PATCH] Fix mkpart linux-swap bug: would use 0x83 rat


From: Otavio Salvador
Subject: Re: [parted-devel] [PATCH] Fix mkpart linux-swap bug: would use 0x83 rather than 0x82
Date: Tue, 14 Aug 2007 10:20:42 -0300
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux)

Jim Meyering <address@hidden> writes:

> As a follow-up to the thread on bug-parted,
>   http://thread.gmane.org/gmane.comp.gnu.parted.bugs/9275
> here's the patch I outlined there:
>
> Fix mkpart linux-swap bug: would use 0x83 rather than 0x82
>
> * libparted/labels/bsd.c (bsd_partition_set_system): Include "misc.h".
> Use is_linux_swap to test whether the type string matches.
> * libparted/labels/dasd.c (dasd_read, dasd_partition_set_system): Likewise.
> * libparted/labels/dos.c (msdos_partition_set_system): Likewise.
> * libparted/labels/mac.c (mac_partition_set_system): Likewise.
> * libparted/labels/rdb.c (amiga_partition_set_system): Likewise.
> * libparted/labels/sun.c (sun_partition_set_system): Likewise.
> Based on a patch by Kenneth MacDonald, from
> <http://lists.gnu.org/archive/html/bug-parted/2007-07/msg00012.html>.
> * libparted/labels/misc.h (is_linux_swap): New function/file.
> * libparted/labels/Makefile.am (liblabels_la_SOURCES): Add misc.h.
> * tests/t2100-mkswap.sh: New file, test for the above fix.
> * tests/Makefile.am (TESTS): Add t2100-mkswap.sh.
>
> Signed-off-by: Jim Meyering <address@hidden>

Ack.

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: address@hidden      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
 you the whole house."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]