rpms/parted/F-12 parted-1.9.0-lo-as-file-rh546622.patch, NONE, 1.1 parted-1.9.0-ru-rh543029.patch, NONE, 1.1 parted.spec, 1.150, 1.151

Hans de Goede jwrdegoede at fedoraproject.org
Fri Dec 18 10:29:01 UTC 2009


Author: jwrdegoede

Update of /cvs/pkgs/rpms/parted/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24001

Modified Files:
	parted.spec 
Added Files:
	parted-1.9.0-lo-as-file-rh546622.patch 
	parted-1.9.0-ru-rh543029.patch 
Log Message:
* Fri Dec 18 2009 Hans de Goede <hdegoede at redhat.com> 1.9.0-17.1
- Allow partitioning of loopback devices (#546622)
- Don't crash when printing partition tables in Russian (#543029)


parted-1.9.0-lo-as-file-rh546622.patch:
 linux.c |    3 +++
 1 file changed, 3 insertions(+)

--- NEW FILE parted-1.9.0-lo-as-file-rh546622.patch ---
diff -up parted-1.9.0/libparted/arch/linux.c.orig parted-1.9.0/libparted/arch/linux.c
--- parted-1.9.0/libparted/arch/linux.c.orig	2009-12-14 22:44:18.000000000 +0100
+++ parted-1.9.0/libparted/arch/linux.c	2009-12-15 10:25:38.000000000 +0100
@@ -259,6 +259,7 @@ struct blkdev_ioctl_param {
 #define SX8_MAJOR2              161
 #define XVD_MAJOR               202
 #define SDMMC_MAJOR             179
+#define LOOP_MAJOR              7
 
 #define SCSI_BLK_MAJOR(M) (                                             \
                 (M) == SCSI_DISK0_MAJOR                                 \
@@ -561,6 +562,8 @@ _device_probe_type (PedDevice* dev)
                 dev->type = PED_DEVICE_SDMMC;
         } else if (_is_virtblk_major(dev_major)) {
                 dev->type = PED_DEVICE_VIRTBLK;
+        } else if (dev_major == LOOP_MAJOR) {
+                dev->type = PED_DEVICE_FILE;
         } else {
                 dev->type = PED_DEVICE_UNKNOWN;
         }

parted-1.9.0-ru-rh543029.patch:
 parted.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE parted-1.9.0-ru-rh543029.patch ---
diff -up parted-1.9.0/parted/parted.c.ru parted-1.9.0/parted/parted.c
--- parted-1.9.0/parted/parted.c.ru	2009-12-17 10:32:41.000000000 +0100
+++ parted-1.9.0/parted/parted.c	2009-12-17 10:32:01.000000000 +0100
@@ -1227,7 +1227,7 @@ partition_print_flags (PedPartition* par
                         ped_realloc (&_res, strlen (res) + 1
                                                    + strlen (name));
                         res = _res;
-                        strncat (res, name, 21);
+                        strcat (res, name);
                 }
         }
 


Index: parted.spec
===================================================================
RCS file: /cvs/pkgs/rpms/parted/F-12/parted.spec,v
retrieving revision 1.150
retrieving revision 1.151
diff -u -p -r1.150 -r1.151
--- parted.spec	8 Oct 2009 09:14:57 -0000	1.150
+++ parted.spec	18 Dec 2009 10:29:01 -0000	1.151
@@ -4,7 +4,7 @@
 Summary: The GNU disk partition manipulation program
 Name:    parted
 Version: 1.9.0
-Release: 17%{?dist}
+Release: 17.1%{?dist}
 License: GPLv3+
 Group:   Applications/System
 URL:     http://www.gnu.org/software/parted
@@ -27,6 +27,8 @@ Patch14:  %{name}-1.9.0-commit-without-c
 Patch15:  %{name}-1.9.0-dont-touch-part-nodes.patch
 Patch16:  %{name}-1.9.0-ped_partition_is_busy-no-exception.patch
 Patch17:  %{name}-1.9.0-gpt-big-endian.patch
+Patch18:  %{name}-1.9.0-lo-as-file-rh546622.patch
+Patch19:  %{name}-1.9.0-ru-rh543029.patch
 
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: e2fsprogs-devel
@@ -81,6 +83,8 @@ Parted library, you need to install this
 %patch15 -p1 -b .dont-touch-part-nodes
 %patch16 -p1 -b .ped_partition_is_busy
 %patch17 -p1 -b .gpt-big-endian
+%patch18 -p1
+%patch19 -p1
 
 
 %build
@@ -142,6 +146,10 @@ fi
 %{_exec_prefix}/%{_lib}/pkgconfig/libparted.pc
 
 %changelog
+* Fri Dec 18 2009 Hans de Goede <hdegoede at redhat.com> 1.9.0-17.1
+- Allow partitioning of loopback devices (#546622)
+- Don't crash when printing partition tables in Russian (#543029)
+
 * Thu Oct  8 2009 Hans de Goede <hdegoede at redhat.com> 1.9.0-17
 - Only change the partition type to 82 when setting the swap flag on dos
   labels, not when resetting it




More information about the fedora-extras-commits mailing list