rpms/parted/devel parted-1.9.0-export-alignment-info.patch, 1.1, 1.2 parted.spec, 1.152, 1.153
Hans de Goede
jwrdegoede at fedoraproject.org
Fri Oct 30 11:58:36 UTC 2009
- Previous message (by thread): rpms/openoffice.org/devel .cvsignore, 1.231, 1.232 openoffice.org.spec, 1.2053, 1.2054 sources, 1.378, 1.379
- Next message (by thread): rpms/qt/F-12 qeventdispatcher_glib_fix.diff, NONE, 1.1 qt.spec, 1.340, 1.341
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jwrdegoede
Update of /cvs/extras/rpms/parted/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv524
Modified Files:
parted-1.9.0-export-alignment-info.patch parted.spec
Log Message:
* Fri Oct 30 2009 Hans de Goede <hdegoede at redhat.com> 1.9.0-19
- Fix a segfault introduced by -18 when operating on plain files
parted-1.9.0-export-alignment-info.patch:
configure.ac | 12 ++++
include/parted/device.h | 13 ++++
include/parted/disk.h | 3 +
include/parted/natmath.h | 1
libparted/Makefile.am | 1
libparted/arch/linux.c | 67 ++++++++++++++++++++++-
libparted/arch/linux.h | 8 ++
libparted/device.c | 135 +++++++++++++++++++++++++++++++++++++++++++----
libparted/disk.c | 20 ++++++
libparted/labels/dasd.c | 11 +++
libparted/labels/mac.c | 11 +++
libparted/labels/pc98.c | 12 +++-
libparted/labels/rdb.c | 12 +++-
libparted/labels/sun.c | 10 +++
14 files changed, 299 insertions(+), 17 deletions(-)
Index: parted-1.9.0-export-alignment-info.patch
===================================================================
RCS file: /cvs/extras/rpms/parted/devel/parted-1.9.0-export-alignment-info.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- parted-1.9.0-export-alignment-info.patch 29 Oct 2009 19:05:50 -0000 1.1
+++ parted-1.9.0-export-alignment-info.patch 30 Oct 2009 11:58:36 -0000 1.2
@@ -102,7 +102,7 @@ diff -up parted-1.9.0/libparted/Makefile
diff -up parted-1.9.0/libparted/arch/linux.c.export-align parted-1.9.0/libparted/arch/linux.c
--- parted-1.9.0/libparted/arch/linux.c.export-align 2009-10-29 15:19:31.000000000 +0100
+++ parted-1.9.0/libparted/arch/linux.c 2009-10-29 15:22:59.000000000 +0100
-@@ -598,7 +598,26 @@ _have_kern26 ()
+@@ -598,7 +598,24 @@ _have_kern26 ()
kver = _get_linux_version();
return have_kern26 = kver >= KERNEL_VERSION (2,6,0) ? 1 : 0;
}
@@ -112,8 +112,6 @@ diff -up parted-1.9.0/libparted/arch/lin
+static void
+get_blkid_topology (LinuxSpecific *arch_specific)
+{
-+ arch_specific->topology = NULL;
-+
+ arch_specific->probe = blkid_new_probe ();
+ if (!arch_specific->probe)
+ return;
@@ -140,6 +138,17 @@ diff -up parted-1.9.0/libparted/arch/lin
/* Return PED_SECTOR_SIZE_DEFAULT for DASDs. */
if (dev->type == PED_DEVICE_DASD) {
dev->sector_size = PED_SECTOR_SIZE_DEFAULT;
+@@ -1237,6 +1235,10 @@ linux_new (const char* path)
+ goto error_free_path;
+ arch_specific = LINUX_SPECIFIC (dev);
+ arch_specific->dmtype = NULL;
++#if USE_BLKID
++ arch_specific->probe = NULL;
++ arch_specific->topology = NULL;
++#endif
+
+ dev->open_count = 0;
+ dev->read_only = 0;
@@ -1335,7 +1357,12 @@ error:
static void
linux_destroy (PedDevice* dev)
@@ -164,7 +173,7 @@ diff -up parted-1.9.0/libparted/arch/lin
+{
+ blkid_topology tp = LINUX_SPECIFIC(dev)->topology;
+
-+ if (!tp)
++ if (!tp || blkid_topology_get_minimum_io_size(tp) == 0)
+ return NULL; /* ped_alignment_none */
+
+ return ped_alignment_new(
@@ -177,7 +186,7 @@ diff -up parted-1.9.0/libparted/arch/lin
+{
+ blkid_topology tp = LINUX_SPECIFIC(dev)->topology;
+
-+ if (!tp)
++ if (!tp || blkid_topology_get_optimal_io_size(tp) == 0)
+ return NULL; /* ped_alignment_none */
+
+ return ped_alignment_new(
Index: parted.spec
===================================================================
RCS file: /cvs/extras/rpms/parted/devel/parted.spec,v
retrieving revision 1.152
retrieving revision 1.153
diff -u -p -r1.152 -r1.153
--- parted.spec 29 Oct 2009 19:05:51 -0000 1.152
+++ parted.spec 30 Oct 2009 11:58:36 -0000 1.153
@@ -4,7 +4,7 @@
Summary: The GNU disk partition manipulation program
Name: parted
Version: 1.9.0
-Release: 18%{?dist}
+Release: 19%{?dist}
License: GPLv3+
Group: Applications/System
URL: http://www.gnu.org/software/parted
@@ -148,6 +148,9 @@ fi
%{_exec_prefix}/%{_lib}/pkgconfig/libparted.pc
%changelog
+* Fri Oct 30 2009 Hans de Goede <hdegoede at redhat.com> 1.9.0-19
+- Fix a segfault introduced by -18 when operating on plain files
+
* Thu Oct 29 2009 Hans de Goede <hdegoede at redhat.com> 1.9.0-18
- Add functions to query device / partition table alignments (#528030)
- Previous message (by thread): rpms/openoffice.org/devel .cvsignore, 1.231, 1.232 openoffice.org.spec, 1.2053, 1.2054 sources, 1.378, 1.379
- Next message (by thread): rpms/qt/F-12 qeventdispatcher_glib_fix.diff, NONE, 1.1 qt.spec, 1.340, 1.341
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list