[Parted-commits] GNU Parted Official Repository: Changes to 'stable-1.8.x'

Jim Meyering meyering at alioth.debian.org
Sun May 13 12:03:37 UTC 2007


 NEWS                     |   76 +++++++++++------------------------------------
 configure.ac             |    4 +-
 libparted/disk.c         |   29 +++++++++--------
 parted.lsm               |    8 ++--
 parted/table.c           |    7 +---
 scripts/release/clean.sh |   22 -------------
 6 files changed, 42 insertions(+), 104 deletions(-)

New commits:
commit 6a9b85014a7193d6bb08cc376fc8eca62de71806
Author: David Cantrell <dcantrel at mortise.boston.redhat.com>
Date:   Wed May 9 16:45:38 2007 -0400

    Removed clean.sh script.  Using git now, we don't need it anymore (git clean -d -x).

diff --git a/scripts/release/clean.sh b/scripts/release/clean.sh
deleted file mode 100755
index 6bb52fc..0000000
--- a/scripts/release/clean.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash
-# Clean tree of unmanaged files after a 'make distclean'
-
-if [ ! -d parted ] && [ ! -d libparted ]; then
-	echo "Run this from the toplevel parted directory."
-	exit 1
-fi
-
-rm -rf ChangeLog doc/mdate-sh doc/texinfo.tex
-rm -rf m4 configure config.rpath depcomp
-rm -rf parted-*.*.*
-rm -rf compile config.guess config.sub ltmain.sh mkinstalldirs
-rm -rf config.h.in autom4te.cache missing aclocal.m4 install-sh
-rm -rf doc/stamp-vti doc/version.texi doc/parted.info
-rm -rf ABOUT-NLS INSTALL
-
-rm -rf po/*.gmo po/stamp-po po/Makevars.template po/Rules-quot
-rm -rf po/Makefile.in.in
-
-find . -type f -name Makefile.in | xargs rm -f
-
-exit 0

commit cda0b9bf4ad99a8c06a831e0efc46aeefdcfbc4c
Author: David Cantrell <dcantrel at mortise.boston.redhat.com>
Date:   Wed May 9 16:41:30 2007 -0400

    Updated NEWS file for 1.8.7.

diff --git a/NEWS b/NEWS
index 7041d7c..cb1598f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,2 +1,21 @@
 1.8.7
 =====
+
+libparted:
+- Prevent compilation of DASD code on GNU Hurd systems.
+- Integrate new unit testing framework for parted and libparted.
+- Fix primary partition cylinder alignment error for DOS disk labels.
+- Use PED_PARTITION_NORMAL in place of PED_PARTITION_PRIMARY.
+- Avoid segfault due to a double free on reiserfs support.
+
+parted:
+- Fix script mode (-s) for mkfs command in parted.
+- Suppress "you are not superuser..." warning in script mode.
+- Fix off-by-one bug in parted when displaying information about the disk.
+- Do not translate partition names in the 'parted print' command.  This
+  causes problems for non-Latin-based character sets.
+- Send errors to stderr rather than stdout.
+- Handle command line options independent of the order.
+- Abort on any invalid option and handle -v and -h first.
+- Only display the update /etc/fstab message when there has been a change
+  to the disk (a shorter and more direct message too).

commit 5dae040800b2862280a3a4b65bc3cbbe01350cac
Author: David Cantrell <dcantrel at mortise.boston.redhat.com>
Date:   Wed May 9 15:15:47 2007 -0400

    Use gnulib xmalloc() and xrealloc().

diff --git a/parted/table.c b/parted/table.c
index c44db10..8768a92 100644
--- a/parted/table.c
+++ b/parted/table.c
@@ -47,6 +47,7 @@
         size_t strnlen (const char *, size_t);
 #endif
 
+#include "xalloc.h"
 #include "strlist.h"
 
 
@@ -191,16 +192,14 @@ static void table_render_row (Table* t, int rownum, int ncols, wchar_t** s)
         len += wcslen(COLSUFFIX);
 
         newsize = (wcslen(*s) + len + 1) * sizeof(wchar_t);
-        *s = (wchar_t *) realloc (*s, newsize);
-        assert(*s != NULL);
+        *s = xrealloc (*s, newsize);
 
         for (i = 0; i < ncols; ++i)
         {
                 int j;
                 int nspaces = max(t->widths[i] - wcswidth(row[i], MAX_WIDTH),
                                   0);
-                wchar_t* pad = malloc ( (nspaces + 1) * sizeof(wchar_t) );
-                assert(pad != NULL);
+                wchar_t* pad = xmalloc ((nspaces + 1) * sizeof(wchar_t));
 
                 for (j = 0; j < nspaces; ++j)
                        pad[j] = L' '; 

commit 774b5839c04173eccebee905b3d3fc08d464bf4e
Author: David Cantrell <dcantrel at mortise.boston.redhat.com>
Date:   Wed May 9 15:14:29 2007 -0400

    Whitespace cleanups.

diff --git a/libparted/disk.c b/libparted/disk.c
index 2e3feaf..9831702 100644
--- a/libparted/disk.c
+++ b/libparted/disk.c
@@ -154,25 +154,26 @@ ped_disk_type_get (const char* name)
 PedDiskType*
 ped_disk_probe (PedDevice* dev)
 {
-	PedDiskType*	walk = NULL;
+        PedDiskType *walk = NULL;
 
-	PED_ASSERT (dev != NULL, return NULL);
+        PED_ASSERT (dev != NULL, return NULL);
 
-	if (!ped_device_open (dev))
-		return NULL;
+        if (!ped_device_open (dev))
+                return NULL;
 
-	ped_exception_fetch_all ();
-	for (walk = ped_disk_type_get_next (NULL); walk;
-	     walk = ped_disk_type_get_next (walk))
-			if (walk->ops->probe (dev))
-					break;
+        ped_exception_fetch_all ();
+        for (walk = ped_disk_type_get_next (NULL); walk;
+             walk = ped_disk_type_get_next (walk)) {
+                if (walk->ops->probe (dev))
+                        break;
+        }
 
-	if (ped_exception)
-		ped_exception_catch ();
-	ped_exception_leave_all ();
+        if (ped_exception)
+                ped_exception_catch ();
+        ped_exception_leave_all ();
 
-	ped_device_close (dev);
-	return walk;
+        ped_device_close (dev);
+        return walk;
 }
 
 /**

commit a65a6ee30e13cdb3354a51b67687b0ac6a7089c7
Author: David Cantrell <dcantrel at mortise.boston.redhat.com>
Date:   Tue May 8 18:44:44 2007 -0400

    Bump version to 1.8.7.

diff --git a/configure.ac b/configure.ac
index df48796..bc08cc5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,7 +5,7 @@ dnl
 dnl This file may be modified and/or distributed without restriction.
 
 AC_PREREQ(2.61)
-AC_INIT([GNU parted],[1.8.5],[bug-parted at gnu.org])
+AC_INIT([GNU parted],[1.8.7],[bug-parted at gnu.org])
 
 AC_CONFIG_SRCDIR(include/parted/parted.h)
 
@@ -24,7 +24,7 @@ dnl function signatures changed),
 dnl set PED_BINARY_AGE _and_ PED_INTERFACE_AGE to 0.
 PED_MAJOR_VERSION=1
 PED_MINOR_VERSION=8
-PED_MICRO_VERSION=5
+PED_MICRO_VERSION=7
 PED_INTERFACE_AGE=0
 PED_BINARY_AGE=0
 PED_VERSION_SUFFIX=
diff --git a/parted.lsm b/parted.lsm
index 18faef1..c298040 100644
--- a/parted.lsm
+++ b/parted.lsm
@@ -1,6 +1,6 @@
 Begin4
-Title: parted 
-Version: 1.8.5
+Title: parted
+Version: 1.8.7
 Entered-date: 
 Description: GNU Parted is a program for creating, destroying, resizing,
 checking and copying partitions, and the filesystems on them. This is useful for
@@ -10,8 +10,8 @@ Keywords: partition, partitioning, file system, format, hard disk, storage, disk
 Author: <clausen at gnu.org> (Andrew Clausen)
 Maintained-by: <parted-devel at lists.alioth.debian.org> (GNU Parted development team)
 Primary-site: ftp://ftp.gnu.org/gnu/parted
-1.4M parted-1.8.5.tar.bz2
-2.1M parted-1.8.5.tar.gz
+1.4M parted-1.8.7.tar.bz2
+2.1M parted-1.8.7.tar.gz
 Platforms: Linux, FreeBSD, BeOS; compiles with GCC and probably other C99 compilers.
 Copying-policy: GPL
 End

commit 9e5e55c7a7f2be4ec819d08b99023d20d18f358a
Author: David Cantrell <dcantrel at mortise.boston.redhat.com>
Date:   Tue May 8 18:44:23 2007 -0400

    Blank the NEWS file in preparation for 1.8.7.

diff --git a/NEWS b/NEWS
index 10fe829..7041d7c 100644
--- a/NEWS
+++ b/NEWS
@@ -1,61 +1,2 @@
-1.8.5
+1.8.7
 =====
-
-Another minor update.  Both versions 1.8.3 and 1.8.4 lacked po translation
-files.  These are included with version 1.8.5.
-
-
-1.8.4
-=====
-
-Minor bug fix release for 1.8.3 to fix build issues on various platforms:
-* Use 'uname -m' to determine if we build on System Z or not.
-* Include <parted/vtoc.h> in <parted/fdasd.h> for format1_label_t definition.
-* Remove unused variables in libparted/arch/linux.c (-Werror).
-* Check return values on fgets() and asprint() in libparted/arch/linux.c
-  (-Werror).
-* Check for tgetent() in libtinfo in the configure script.
-* Move some macro definitions in <parted/disk.h> to fix a compile problem
-  with gcc-4.1.2 as indicated here:
-  http://lists.gnu.org/archive/html/bug-parted/2007-03/msg00008.html
-
-
-1.8.3
-=====
-
-libparted:
-* Header file clean ups.
-* Sync the linux-swap header according to the Linux kernel sources.
-* Enable support for swsusp partitions and the ability to differentiate
-  between old and new versions of linux-swap partitions.
-* Renaming PARTITION_EXT to PARTITION_DOS_EXT in the DOS disklabel
-  code (consitency with Linux kernel source).
-* Added libparted.pc pkg-config file.
-* Remove unused functions, ifdefs, and other code.
-* Deprecate ped_[register|unregister]_disk_type in favor of
-  ped_disk_type_[register|unregister].
-* Small test program fixes (in label.c and common.c).
-* Make functions const-correct.
-* Handle systems where libreadline is not available.
-* Preserve starting sector for primary NTFS 3.1 partitions on DOS disklabel.
-* Handle 2048-byte logical sectors in linux_read().
-* Use PED_SECTOR_SIZE_DEFAULT macro in place of 512.
-* Don't assume logical sector size is <= 512B on AIX.
-* Detect HFS write failure.
-* Use mkstemp() in place of mktemp().
-* Added HFS+ resize support.
-* Don't build DASD support on non-zSeries hardware.
-
-parted/partprobe:
-* Use fputs() and putchar() in place for printf(), when possible.
-* Detect/report stdout write errors.
-* Accept the --version and --help options.
-* Fix memory leaks in parted(8).
-
-general:
-* Synchronize the manual page and --help documentation.
-* GNU autoconf and automake updates.
-* 'gcc -Wall -Wshadow' warning cleanups.
-* Don't define _GNU_SOURCE manually.
-* Documentation updates and cleanups (AUTHORS, copyright notices, etc).
-* Use gnulib (http://www.gnu.org/software/gnulib/).



More information about the Parted-commits mailing list