[parted-devel] [PATCH] unbreak swap creation in 1.8.7

Olaf Hering olh at suse.de
Sun May 13 17:13:43 UTC 2007


Jokers.

---
 libparted/fs/linux_swap/linux_swap.c |    8 ++++++++
 1 file changed, 8 insertions(+)

Index: parted-1.8.7/libparted/fs/linux_swap/linux_swap.c
===================================================================
--- parted-1.8.7.orig/libparted/fs/linux_swap/linux_swap.c
+++ parted-1.8.7/libparted/fs/linux_swap/linux_swap.c
@@ -719,6 +719,13 @@ static PedFileSystemType _swap_v2_type =
 	block_sizes: LINUXSWAP_BLOCK_SIZES
 };
 
+static PedFileSystemType _swap_default_type = {
+	next:	NULL,
+	ops:	&_swap_v2_ops,
+	name:	"linux-swap",
+	block_sizes: LINUXSWAP_BLOCK_SIZES
+};
+
 static PedFileSystemType _swap_swsusp_type = {
         next:   NULL,
 	ops:    &_swap_swsusp_ops,
@@ -729,6 +736,7 @@ static PedFileSystemType _swap_swsusp_ty
 void
 ped_file_system_linux_swap_init ()
 {
+	ped_file_system_type_register (&_swap_default_type);
 	ped_file_system_type_register (&_swap_v1_type);
 	ped_file_system_type_register (&_swap_v2_type);
 	ped_file_system_type_register (&_swap_swsusp_type);



More information about the parted-devel mailing list