[PATCH] doc: update NEWS

2011-05-27 Thread Jim Meyering
Here's the NEWS addition: >From 7e560ac205e62866a4162957d60da99abc36bef1 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 27 May 2011 17:54:46 +0200 Subject: [PATCH] doc: update NEWS * NEWS (Changes in behavior): Describe the change. (Bug fixes): Mention the leak fixes. --- NEWS | 34 ++

[PATCH 13/17] doc: remove FS-related documentation and other stale bits

2011-05-27 Thread Jim Meyering
From: Jim Meyering * doc/parted.texi: Remove FS-related documentation and other stale bits. --- doc/parted.texi | 105 +-- 1 files changed, 9 insertions(+), 96 deletions(-) diff --git a/doc/parted.texi b/doc/parted.texi index ecb6574..162f192

[PATCH 08/17] reiserfs: remove all-but-probe FS-related code

2011-05-27 Thread Jim Meyering
From: Jim Meyering --- libparted/fs/reiserfs/Makefile.am |3 +- libparted/fs/reiserfs/geom_dal.c | 138 --- libparted/fs/reiserfs/geom_dal.h | 60 --- libparted/fs/reiserfs/reiserfs.c | 733 + 4 files changed, 4 insertions(+), 930 deletions(-)

[PATCH 15/17] tests: make t0220 more useful when it fails

2011-05-27 Thread Jim Meyering
From: Jim Meyering --- tests/t0220-gpt-msftres.sh | 11 --- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/t0220-gpt-msftres.sh b/tests/t0220-gpt-msftres.sh index 300c26f..1247ee0 100755 --- a/tests/t0220-gpt-msftres.sh +++ b/tests/t0220-gpt-msftres.sh @@ -54,20 +

[PATCH 02/17] remove all top-level FS-op code and the clearfat program

2011-05-27 Thread Jim Meyering
From: Jim Meyering --- configure.ac |1 - debug/Makefile.am|2 +- debug/clearfat/.gitignore|1 - debug/clearfat/Makefile.am | 15 - debug/clearfat/clearfat.c| 353 - include/parted/fi

[PATCH 01/17] UI: remove all file-system-aware sub-commands

2011-05-27 Thread Jim Meyering
From: Jim Meyering Note that we are removing the resize command, even though parted appears to be the only free tool that provides the ability to resize FAT16 and FAT32 file systems. * parted/parted.c (do_mkfs, do_cp, do_mkpartfs): Remove functions. (do_move, do_check, do_resize): Likewise. (_ini

[PATCH 16/17] build: remove configure-time options: --disable-fs, --enable-Werror

2011-05-27 Thread Jim Meyering
From: Jim Meyering * configure.ac: Remove support for --enable-fs and --disable-fs. Remove support for --enable-Werror and --disable-Werror. * README: Remove paragraph about --disable-fs and --enable-discovery-only. * libparted/libparted.c: Now that --disable-fs is gone (i.e., ENABLE_FS would be

[PATCH 09/17] ufs: remove all-but-probe FS-related code

2011-05-27 Thread Jim Meyering
From: Jim Meyering --- libparted/fs/ufs/Makefile.am |1 + libparted/fs/ufs/ufs.c | 15 --- 2 files changed, 1 insertions(+), 15 deletions(-) diff --git a/libparted/fs/ufs/Makefile.am b/libparted/fs/ufs/Makefile.am index e913c2d..c63e8d2 100644 --- a/libparted/fs/ufs/Make

[PATCH 17/17] doc: reflect removal of FS-related commands

2011-05-27 Thread Jim Meyering
From: Jim Meyering * README (WARNING): Say that all FS-manipulation code is now gone. * doc/parted.texi (Command explanations): Remove descriptions of and any examples or references to the following commands: check, cp, mkfs, mkpartfs, move, resize. --- README | 33 +++ doc/parted

[PATCH 12/17] linux_swap: remove all-but-probe FS-related code

2011-05-27 Thread Jim Meyering
From: Jim Meyering --- libparted/fs/linux_swap/linux_swap.c | 276 +- 1 files changed, 1 insertions(+), 275 deletions(-) diff --git a/libparted/fs/linux_swap/linux_swap.c b/libparted/fs/linux_swap/linux_swap.c index 571433f..070f51b 100644 --- a/libparted/fs/li

[PATCH 05/17] amiga: build with warning and error options

2011-05-27 Thread Jim Meyering
From: Jim Meyering * libparted/fs/amiga/Makefile.am (AM_CFLAGS): Add $(WARN_CFLAGS) and $(WERROR_CFLAGS). --- libparted/fs/amiga/Makefile.am |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/libparted/fs/amiga/Makefile.am b/libparted/fs/amiga/Makefile.am index 599fec2..788

[PATCH 10/17] jfs: remove all-but-probe FS-related code

2011-05-27 Thread Jim Meyering
From: Jim Meyering --- libparted/fs/jfs/Makefile.am |1 + libparted/fs/jfs/jfs.c | 11 --- 2 files changed, 1 insertions(+), 11 deletions(-) diff --git a/libparted/fs/jfs/Makefile.am b/libparted/fs/jfs/Makefile.am index 9e316a0..a477874 100644 --- a/libparted/fs/jfs/Makefile

[PATCH 11/17] xfs: remove all-but-probe FS-related code

2011-05-27 Thread Jim Meyering
From: Jim Meyering --- libparted/fs/xfs/Makefile.am |1 + libparted/fs/xfs/xfs.c | 11 --- 2 files changed, 1 insertions(+), 11 deletions(-) diff --git a/libparted/fs/xfs/Makefile.am b/libparted/fs/xfs/Makefile.am index d5559c2..8e55052 100644 --- a/libparted/fs/xfs/Makefile

[PATCH 06/17] ntfs: remove all-but-probe FS-related code

2011-05-27 Thread Jim Meyering
From: Jim Meyering --- libparted/fs/ntfs/Makefile.am |1 + libparted/fs/ntfs/ntfs.c | 11 --- 2 files changed, 1 insertions(+), 11 deletions(-) diff --git a/libparted/fs/ntfs/Makefile.am b/libparted/fs/ntfs/Makefile.am index 30fca41..732692a 100644 --- a/libparted/fs/ntfs/Mak

[PATCH 14/17] maint: update po/POTFILES.in

2011-05-27 Thread Jim Meyering
From: Jim Meyering * po/POTFILES.in: Remove file names, to reflect file deletions. --- po/POTFILES.in | 30 -- 1 files changed, 0 insertions(+), 30 deletions(-) diff --git a/po/POTFILES.in b/po/POTFILES.in index 18e4b3d..eaa1f71 100644 --- a/po/POTFILES.in +++ b/po

remove nearly all file-system-aware code from Parted

2011-05-27 Thread Jim Meyering
Finally, here are the changes that remove nearly all of the FS-munging code in Parted. The FS-probing code remains, but there's hope that we'll be able to rip that out as well, and use libblkid instead. [PATCH 01/17] UI: remove all file-system-aware sub-commands [PATCH 02/17] remove all top-level

[PATCH] tests: t1100: show that adding a partition on a busy device succeeds

2011-05-27 Thread Jim Meyering
FYI, >From 077ece22959f808df80d2ffa9f0bc5fdf4a0707a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 27 May 2011 17:06:31 +0200 Subject: [PATCH] tests: t1100: show that adding a partition on a busy device succeeds * tests/t1100-busy-label.sh: Demonstrate that adding a partition succeeds,

[PATCH 1/6] bsd: avoid NULL-deref-on-OOM and an error-path leak

2011-05-27 Thread Jim Meyering
Coverity spotted these leaks: >From 3259d570c7e58d317a823994200183501eff7092 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 27 May 2011 14:24:33 +0200 Subject: [PATCH 1/6] bsd: avoid NULL-deref-on-OOM and an error-path leak * libparted/labels/bsd.c (bsd_read): Don't dereference NULL on O

[PATCH] linux: don't leak a FILE* upon /proc read failure

2011-05-27 Thread Jim Meyering
Another, very similar. >From aff3ed70d47ae8e2da057d00dd3d4ab08b0cf574 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 27 May 2011 13:53:36 +0200 Subject: [PATCH] linux: don't leak a FILE* upon /proc read failure * libparted/arch/linux.c (_probe_proc_partitions): Call fclose upon failure.

[PATCH] linux: plug a file descriptor leak

2011-05-27 Thread Jim Meyering
FYI, >From 54685b5343c39e1a82fc4fc439104600d56d9e9e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 27 May 2011 13:46:40 +0200 Subject: [PATCH] linux: plug a file descriptor leak * libparted/arch/linux.c (read_device_sysfs_file): Don't leak a file descriptor. --- libparted/arch/linux.c |

[PATCH] tests: t1100-busy-label: don't use mkpartfs; rework to use scsi_debug

2011-05-27 Thread Jim Meyering
There was one remaining use of mkpartfs in tests/. This removes it and revamps the offending test to use the scsi_debug module, so that it will now be run when "make check" is run as root. >From 0bb7d21ba6289f5aa9114ae3b4cd844c7debc07f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 27 May