OSDN Git Service

android-x86/external-parted.git
17 years agoAvoid compiler warnings with gcc -Wall -Wshadow.
Jim Meyering [Fri, 16 Feb 2007 14:55:40 +0000 (15:55 +0100)]
Avoid compiler warnings with gcc -Wall -Wshadow.

* libparted/arch/linux.c (init_ide): Add missing "break" at end of
final case: stmt.
Add "default:" in the same switch to avoid a compiler warning.
* libparted/fs/fat/bootsector.c (fat_boot_sector_analyse): Likewise.
* libparted/fs/fat/resize.c (ask_type): Likewise.
* libparted/fs/fat/traverse.c (fat_dir_entry_set_first_cluster):
Likewise.
* debug/clearfat/clearfat.c (_calc_fat_entry_offset): Likewise.

* parted/parted.c (_timer_handler): Cast time_t values to "int"
to agree with %d printf format.
(g_timer): Rename file-scoped global from shadowed "timer".
Update all uses of the global.
(version_msg): Remove decl of unused global.

* parted/ui.c (current_exception_opt): Remove decl of unused global.

* libparted/filesys.c (ped_file_system_close): Remove unused label.
* libparted/unit.c (parse_chs): Likewise.

* libparted/debug.c (ped_assert): Use "int" as type of backtrace
return value, not size_t.

* libparted/fs/reiserfs/reiserfs.c (reiserfs_check):
Guard declaration of local with #ifdef HAVE_REISERFS_FS_CHECK,
since it's used only in a similarly-guarded block.
(reiserfs_fs_check): Likewise for this file-scoped global.

Avoid warnings about unused file-scoped global variables.
* libparted/fs/hfs/hfs.h (hfs_type, hfsplus_type): Remove these
declarations of file-scoped static variables.
* libparted/fs/hfs/hfs.c: Put them here, instead.

* libparted/fs/fat/table.c (_test_code_active): Remove unused function.

* libparted/arch/linux.c: Add casts to avoid performing
pointer arithmetic on "void *" pointers.

* libparted/fs/hfs/file_plus.c (hfsplus_file_read):
Don't do pointer arithmetic on a "void *" pointer.
(hfsplus_file_write): Likewise.

* libparted/fs/fat/count.c (flag_traverse_dir): Move decl of
unused local into #if-0'd block where it is referenced.
(print_chain): Guard definition with #ifdef PED_VERBOSE,
since the sole use of this function is guarded the same way.

* libparted/fs/amiga/amiga.c: (_amiga_valid_block_id):
Remove unused function.
(_amiga_get_bstr): Likewise.
(_amiga_set_bstr): Likewise.

Remove unused labels and/or declarations of unused variables.
* parted/ui.c (_readline): Likewise.
* libparted/cs/constraint.c (_constraint_get_canonical_start_range):
Likewise.
* libparted/cs/geom.c (ped_geometry_read): Likewise.
* libparted/fs/amiga/apfs.c (_generic_apfs_probe): Likewise.
* libparted/fs/ext2/ext2_mkfs.c (ext2_mkfs_write_meta): Likewise.
* libparted/disk.c: Likewise.
* libparted/fs/hfs/hfs.c: Likewise.
* libparted/fs/fat/fat.c: Likewise.
* libparted/fs/fat/clstdup.c: Likewise.
* libparted/fs/fat/calc.c: Likewise.
* libparted/fs/ext2/ext2.c: Likewise.
* libparted/fs/amiga/affs.c: Likewise.
* libparted/fs/amiga/asfs.c: Likewise.
* libparted/labels/aix.c: Likewise.
* libparted/labels/sun.c: Likewise.
* libparted/labels/pc98.c: Likewise.
* libparted/labels/mac.c: Likewise.
* libparted/labels/dos.c: Likewise.
* libparted/labels/loop.c (loop_alloc): Likewise.
* libparted/labels/gpt.c: Likewise.
* libparted/labels/dvh.c (dvh_alloc): Likewise.
(dvh_read) [!DISCOVER_ONLY]: Add "default:" in a switch.

* libparted/labels/fdasd.c (fdasd_reread_partition_table):
Remove decl of unused local(s).
(fdasd_get_partition_data): Likewise.
(fdasd_partition_type): Remove unused function.
(fdasd_write_vtoc_labels): Likewise.
(fdasd_change_volser): Likewise.
(fdasd_check_volser): Likewise.
(fdasd_reread_partition_table): Likewise.

Signed-off-by: Jim Meyering <jim@meyering.net>
17 years ago* libparted/labels/rdb.c (amiga_read): Remove decl of unused local(s).
Jim Meyering [Thu, 15 Feb 2007 15:05:17 +0000 (16:05 +0100)]
* libparted/labels/rdb.c (amiga_read): Remove decl of unused local(s).

Signed-off-by: Jim Meyering <jim@meyering.net>
17 years ago* libparted/labels/bsd.c (bsd_partition_new): Remove unused label.
Jim Meyering [Thu, 15 Feb 2007 14:56:23 +0000 (15:56 +0100)]
* libparted/labels/bsd.c (bsd_partition_new): Remove unused label.

Signed-off-by: Jim Meyering <jim@meyering.net>
17 years ago* libparted/labels/dasd.c: Remove unused labels and declarations
Jim Meyering [Thu, 15 Feb 2007 14:53:44 +0000 (15:53 +0100)]
* libparted/labels/dasd.c: Remove unused labels and declarations

of unused variables.

Signed-off-by: Jim Meyering <jim@meyering.net>
17 years agoFix the style of typedef, enum, struct and __attribute__ ((packed)).
Debarshi Ray [Fri, 16 Feb 2007 04:40:17 +0000 (10:10 +0530)]
Fix the style of typedef, enum, struct and __attribute__ ((packed)).

17 years agoDeprecating ped_[register|unregister]_disk_type in favour of ped_disk_type_[register...
Debarshi Ray [Thu, 15 Feb 2007 04:55:41 +0000 (10:25 +0530)]
Deprecating ped_[register|unregister]_disk_type in favour of ped_disk_type_[register|unregister].

17 years agoUse lighter-weight fputs and putchar in place of printf, when possible.
Jim Meyering [Tue, 13 Feb 2007 21:51:56 +0000 (22:51 +0100)]
Use lighter-weight fputs and putchar in place of printf, when possible.

* parted/ui.c (wipe_line, _dump_history, reset_env):
(sigsegv_handler, sigfpe_handler, sigill_handler, _readline):
(help_msg, interactive_mode, non_interactive_mode): Use puts,
fputs, and putchar in place of printf, when possible.
(reset_env): Correct misleading indentation.
(wipe_line): Split a long string.

Signed-off-by: Jim Meyering <jim@meyering.net>
17 years agoMake it so "make distcheck" passes.
Jim Meyering [Wed, 14 Feb 2007 11:37:45 +0000 (12:37 +0100)]
Make it so "make distcheck" passes.

* doc/po4a.mk (updatepo): Don't choke when *.$(lang).po matches no file.
* doc/C/Makefile.am (updatepo): Don't do anything when $(srcdir) is not writable.

Signed-off-by: Jim Meyering <jim@meyering.net>
17 years agoFixed the copyright notices.
Debarshi Ray [Wed, 14 Feb 2007 16:49:42 +0000 (22:19 +0530)]
Fixed the copyright notices.

17 years agoCleaned up the formatting of AUTHORS.
Debarshi Ray [Wed, 14 Feb 2007 16:09:57 +0000 (21:39 +0530)]
Cleaned up the formatting of AUTHORS.

17 years agoTidying up the formatting and comments in linux_swap.c.
Debarshi Ray [Wed, 14 Feb 2007 14:55:12 +0000 (20:25 +0530)]
Tidying up the formatting and comments in linux_swap.c.

17 years agoDon't define _GNU_SOURCE manually.
Jim Meyering [Tue, 13 Feb 2007 20:02:08 +0000 (21:02 +0100)]
Don't define _GNU_SOURCE manually.

It's better not to define _GNU_SOURCE manually.
By using AC_GNU_SOURCE, you get the definition in exactly one place:
in config.h.  I verified that each affected file also includes config.h.

Don't define _GNU_SOURCE manually.
* configure.ac: Use AC_GNU_SOURCE instead.
* libparted/arch/gnu.c: Remove definition of _GNU_SOURCE.
* libparted/arch/linux.c: Likewise.
* libparted/device.c: Likewise.
* parted/table.c: Likewise.
* parted/table.h: Likewise.

Signed-off-by: Jim Meyering <jim@meyering.net>
17 years agoRemove some #ifdefs
Jim Meyering [Tue, 13 Feb 2007 16:10:18 +0000 (17:10 +0100)]
Remove some #ifdefs

Remove some #ifdefs.
* parted/table.c (L_): define.
Remove in-function #ifdefs; use L_(str) instead.

Signed-off-by: Jim Meyering <jim@meyering.net>
17 years ago* libparted/labels/fdasd.c (GETARG): Remove unused definition.
Jim Meyering [Tue, 13 Feb 2007 16:08:35 +0000 (17:08 +0100)]
* libparted/labels/fdasd.c (GETARG): Remove unused definition.

A tiny change...

Signed-off-by: Jim Meyering <jim@meyering.net>
17 years agoCreate 'm4' directory when generating the building system
Otavio Salvador [Tue, 13 Feb 2007 11:44:33 +0000 (09:44 -0200)]
Create 'm4' directory when generating the building system

17 years agoWork with automake-1.10.
Jim Meyering [Mon, 12 Feb 2007 22:30:46 +0000 (23:30 +0100)]
Work with automake-1.10.

I've just tried building parted from scratch (running ./autogen.sh
after git-clone) and hit a couple of snags:

Without aclocal's -I m4, ./autogen.sh produced this:

  configure.ac:192: warning: macro `AM_GNU_GETTEXT_VERSION' not found in library
  configure.ac:193: warning: macro `AM_GNU_GETTEXT' not found in library
  configure.ac:192: error: possibly undefined macro: AM_GNU_GETTEXT_VERSION
        If this token and others are legitimate, please use m4_pattern_allow.
        See the Autoconf documentation.

With automake-1.10, I got this:

    parted/Makefile.am:5: compiling `command.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.ac'

Here's a patch that fixes those and also removes some trailing blanks.

17 years agoCompile warning-free with "gcc -Wall -Wshadow".
Jim Meyering [Mon, 12 Feb 2007 22:35:30 +0000 (23:35 +0100)]
Compile warning-free with "gcc -Wall -Wshadow".

Hello,

I find that keeping code warning-free (wrt gcc -Wall -Wshadow)
makes it easier to avoid certain classes of bugs.

Compiling with gcc -Wall -Wshadow evoked a few warnings
on a Debian/unstable system.  Here are patches to fix those:

* libparted/exception.c (default_handler): Rename parameter "ex"
to "e", to avoid shadowing file-scoped global.
* libparted/fs/linux_swap/linux_swap.c (_generic_swap_probe): Add a
"can't happen" (with current callers) "default: goto error" clause
in a switch to avoid a may-be-used-uninitialized warning.
(_generic_swap_clobber): Likewise.
* libparted/fs/hfs/reloc_plus.c (hfsplus_pack_free_space_from_block):
Rename local variable "div" to "divisor", to avoid shadowing
the function in <stdlib.h>.
* libparted/fs/hfs/reloc.c (hfs_pack_free_space_from_block): Likewise.
* libparted/fs/hfs/cache.c (hfsc_cache_add_extent): Rename parameter
"index" to "ref_index" to avoid shadowing the <string.h> function.
* libparted/labels/sun.c (sun_partition_enumerate): Rename local
variable "i" to "j", to avoid shadowing another local.

Signed-off-by: Jim Meyering <jim@meyering.net>
17 years agoconfigure.ac: Add LOCALEDIR definition to CFLAGS only once.
Jim Meyering [Mon, 12 Feb 2007 22:38:07 +0000 (23:38 +0100)]
configure.ac: Add LOCALEDIR definition to CFLAGS only once.

I noticed that there were two identical lines in configure.ac,
adding the same LOCALEDIR definition to CFLAGS.
This change removes the latter.

* configure.ac: Add LOCALEDIR definition to CFLAGS only once.

Signed-off-by: Jim Meyering <jim@meyering.net>
17 years agoAdded a pkgconfig file for libparted, adjusted Makefile.am and configure.ac for refle...
Riccardo Setti [Mon, 12 Feb 2007 12:24:29 +0000 (13:24 +0100)]
Added a pkgconfig file for libparted, adjusted Makefile.am and configure.ac for reflect the canges

modified:   Makefile.am
modified:   configure.ac
new file:   libparted.pc.in

17 years agoRenaming PARTITION_EXT to PARTITION_DOS_EXT in MSDOS disk-label code, to maintain...
Debarshi Ray [Tue, 30 Jan 2007 20:31:43 +0000 (02:01 +0530)]
Renaming PARTITION_EXT to PARTITION_DOS_EXT in MSDOS disk-label code, to maintain similarity with Linux v2.6.18.2

17 years agoEnable support for swsusp partitions, and the ability to differentiate between old...
Debarshi Ray [Wed, 17 Jan 2007 13:26:46 +0000 (18:56 +0530)]
Enable support for swsusp partitions, and the ability to differentiate between old and new versions of linux-swap partitions. Changed the swap_init signature and removed extra ped_geometry_read from _swap*_open.

17 years agoSynchronize the linux-swap (new version) header according to the Linux kernel sources.
Debarshi Ray [Tue, 16 Jan 2007 17:43:09 +0000 (23:13 +0530)]
Synchronize the linux-swap (new version) header according to the Linux kernel sources.

17 years agocb6ca73be06f360308e6a2fccb7142ed8175af29 continued.
Debarshi Ray [Tue, 16 Jan 2007 17:11:47 +0000 (22:41 +0530)]
cb6ca73be06f360308e6a2fccb7142ed8175af29 continued.

17 years agoAdd stdint.h stdlib.h & string.h to include/parted/parted.h and remove them from...
Debarshi Ray [Tue, 16 Jan 2007 01:13:36 +0000 (06:43 +0530)]
Add stdint.h stdlib.h & string.h to include/parted/parted.h and remove them from other files.

17 years agoSynchronise manual page and --help documentation.
Debarshi Ray [Sun, 14 Jan 2007 15:36:58 +0000 (21:06 +0530)]
Synchronise manual page and --help documentation.

17 years agoUpdated i18n information.
David Cantrell [Fri, 12 Jan 2007 17:47:13 +0000 (12:47 -0500)]
Updated i18n information.

17 years agoAdd ped_device_cache_remove() prototype.
David Cantrell [Fri, 12 Jan 2007 15:05:08 +0000 (10:05 -0500)]
Add ped_device_cache_remove() prototype.
(cherry picked from commit cb53b87ab2f779633f152f478c7f8c99c2fd1817)

17 years agoOnly call _disk_warn_loss(disk) in do_mklabel() if disk is not NULL. Fixes a segfaul...
David Cantrell [Fri, 12 Jan 2007 15:06:40 +0000 (10:06 -0500)]
Only call _disk_warn_loss(disk) in do_mklabel() if disk is not NULL.  Fixes a segfault when initializing new volumes.
(cherry picked from commit 70e3bf5e7818df49a11e203ac8519e037818d592)

17 years agoFix a segfault in ped_assert() where the wrong pointer is freed in the backtrace.
David Cantrell [Fri, 12 Jan 2007 15:07:17 +0000 (10:07 -0500)]
Fix a segfault in ped_assert() where the wrong pointer is freed in the backtrace.
(cherry picked from commit 63f7b33b352d0d699efeb1095340ed6139c49e3b)

17 years agoAdd the ped_device_cache_remove() function to remove a device from the cache.
David Cantrell [Fri, 12 Jan 2007 15:07:45 +0000 (10:07 -0500)]
Add the ped_device_cache_remove() function to remove a device from the cache.
(cherry picked from commit 5fb6658d124050a9dc27a87f2e1c3ffd3d1ad7c0)

17 years agoUpdated the AUTHORS file.
David Cantrell [Fri, 12 Jan 2007 15:10:07 +0000 (10:10 -0500)]
Updated the AUTHORS file.
(cherry picked from commit 7ab32d423cc43a5e9372a7dc000feb183db9a89a)

17 years agoRectify segmentation fault caused by 9e05418de3477666b0709f5d1996149febd33100
Debarshi Ray [Fri, 12 Jan 2007 02:40:15 +0000 (08:10 +0530)]
Rectify segmentation fault caused by 9e05418de3477666b0709f5d1996149febd33100

17 years agoUpdate doc/C/parted.8 to document --list.
Debarshi Ray [Fri, 12 Jan 2007 01:05:58 +0000 (06:35 +0530)]
Update doc/C/parted.8 to document --list.

17 years agoparted/parted.c: Destroy all objects before return when called with --list or --all...
Otavio Salvador [Sat, 16 Dec 2006 20:47:53 +0000 (18:47 -0200)]
parted/parted.c: Destroy all objects before return when called with --list or --all option.

17 years agoDump readline history on crash
Anant Narayanan [Fri, 5 Jan 2007 18:12:23 +0000 (23:42 +0530)]
Dump readline history on crash

17 years agoLoosen requirement for the 'check' library.
Anant Narayanan [Thu, 14 Dec 2006 16:30:59 +0000 (22:00 +0530)]
Loosen requirement for the 'check' library.

17 years agoUpdate AUTHORS.
Debarshi Ray [Thu, 14 Dec 2006 19:56:03 +0000 (01:26 +0530)]
Update AUTHORS.

17 years agoadded scripts/update-po
Leslie P. Polzer [Wed, 13 Dec 2006 16:23:15 +0000 (17:23 +0100)]
added scripts/update-po

17 years agoMerge branches 'master' and 'master' of git+ssh://dcantrell-guest@git.debian.org...
David Cantrell [Wed, 13 Dec 2006 00:26:09 +0000 (19:26 -0500)]
Merge branches 'master' and 'master' of git+ssh://dcantrell-guest@git.debian.org/git/parted/parted

17 years agoUpdated translations.
Leslie P. Polzer [Mon, 11 Dec 2006 17:00:00 +0000 (18:00 +0100)]
Updated translations.

17 years agoAlias 'print list' with 'print all'.
Debarshi Ray [Fri, 8 Dec 2006 19:41:49 +0000 (01:11 +0530)]
Alias 'print list' with 'print all'.

17 years agoInclude a disk probing test
Otavio Salvador [Mon, 11 Dec 2006 09:46:34 +0000 (07:46 -0200)]
Include a disk probing test

17 years agoIf CHECK is installed on configure time, build our unittest framework
Otavio Salvador [Mon, 11 Dec 2006 09:46:34 +0000 (07:46 -0200)]
If CHECK is installed on configure time, build our unittest framework

17 years agoAdd CHECK unittext library detection to Autoconf script
Otavio Salvador [Mon, 11 Dec 2006 09:46:33 +0000 (07:46 -0200)]
Add CHECK unittext library detection to Autoconf script

17 years agoRelease script: cannot call "return" from top level; replaced with "exit".
Leslie P. Polzer [Sat, 9 Dec 2006 09:51:43 +0000 (10:51 +0100)]
Release script: cannot call "return" from top level;  replaced with "exit".

17 years agoZero sized device is shown as 0.00B and not -0.00kB.
Debarshi Ray [Thu, 7 Dec 2006 19:21:06 +0000 (00:51 +0530)]
Zero sized device is shown as 0.00B and not -0.00kB.

17 years agolibparted/exception.c: Dynamically allow space of exception message.
Otavio Salvador [Thu, 7 Dec 2006 01:33:52 +0000 (23:33 -0200)]
libparted/exception.c: Dynamically allow space of exception message.

17 years agoOutput a backtrace when catching SEGV_MAPERR or a general SIGSEGV signals.
Otavio Salvador [Thu, 7 Dec 2006 00:44:40 +0000 (22:44 -0200)]
Output a backtrace when catching SEGV_MAPERR or a general SIGSEGV signals.

17 years agoImplement 'print devices'.
Debarshi Ray [Thu, 7 Dec 2006 02:01:39 +0000 (07:31 +0530)]
Implement 'print devices'.

17 years agoTranslate the copyright message, and hard wrap it
Benno Schulenberg [Tue, 5 Dec 2006 23:00:03 +0000 (00:00 +0100)]
Translate the copyright message, and hard wrap it

17 years agolibparted/disk.c: Standarize the way we walk throught the disk types overall the...
Otavio Salvador [Tue, 5 Dec 2006 17:32:26 +0000 (15:32 -0200)]
libparted/disk.c: Standarize the way we walk throught the disk types overall the code

17 years agoRevert "Add check unittest support and a initial test for a resizing bug."
Otavio Salvador [Tue, 5 Dec 2006 16:16:04 +0000 (14:16 -0200)]
Revert "Add check unittest support and a initial test for a resizing bug."

This code wasn't ready for commit yet.

This reverts commit ba43cb6ff7bb1d945062e25b94efecb1b84c0c33.

17 years agoparted/parted.c: Remove useless line break
Otavio Salvador [Tue, 5 Dec 2006 16:12:24 +0000 (14:12 -0200)]
parted/parted.c: Remove useless line break

17 years agoAdd check unittest support and a initial test for a resizing bug.
Otavio Salvador [Tue, 5 Dec 2006 01:40:54 +0000 (23:40 -0200)]
Add check unittest support and a initial test for a resizing bug.

17 years agoFix the upload script to correctly reference the sig files.
David Cantrell [Mon, 4 Dec 2006 03:20:25 +0000 (22:20 -0500)]
Fix the upload script to correctly reference the sig files.

17 years agoRemove ChangeLog, doc/mdate-sh, and doc/texinfo.tex since they are unmanaged files...
David Cantrell [Mon, 4 Dec 2006 01:31:10 +0000 (20:31 -0500)]
Remove ChangeLog, doc/mdate-sh, and doc/texinfo.tex since they are unmanaged files and get generated automatically at release time.

17 years agoGenerate ChangeLog before running the autogen tools because we need a file called...
David Cantrell [Mon, 4 Dec 2006 01:30:44 +0000 (20:30 -0500)]
Generate ChangeLog before running the autogen tools because we need a file called 'ChangeLog' to exist when running those tools.

17 years agoPass git changelog through 'fold -s' to wrap long lines.
David Cantrell [Sun, 3 Dec 2006 23:37:45 +0000 (18:37 -0500)]
Pass git changelog through 'fold -s' to wrap long lines.

17 years agoAdded the --enable-selinux switch to the configure script. If set, it adds -lselinux...
David Cantrell [Sun, 3 Dec 2006 23:25:41 +0000 (18:25 -0500)]
Added the --enable-selinux switch to the configure script.  If set, it adds -lselinux and -lsepol to the list of libraries to link libparted with.  Bumped the version number to 1.9.9 since this is the edge branch.

17 years agoRename all old ChangeLog files to ChangeLog.0. Added code to the tarball_upload...
David Cantrell [Sun, 3 Dec 2006 23:09:54 +0000 (18:09 -0500)]
Rename all old ChangeLog files to ChangeLog.0.  Added code to the tarball_upload.sh script to generate a toplevel ChangeLog from the git changelog.

17 years agoUpdated URL of static parted in docs.
Leslie P. Polzer [Sat, 2 Dec 2006 20:43:02 +0000 (21:43 +0100)]
Updated URL of static parted in docs.

17 years agoMake parted ignore '-i' option instead of failing
Anant Narayanan [Sat, 2 Dec 2006 20:15:14 +0000 (01:45 +0530)]
Make parted ignore '-i' option instead of failing

17 years agoSupport machine parseable output.
Anant Narayanan [Sat, 2 Dec 2006 18:54:34 +0000 (00:24 +0530)]
Support machine parseable output.

17 years agoCleanup _partition_warn_busy, _disk_warn_busy, _partition_warn_loss and _disk_warn_loss.
Debarshi Ray [Thu, 30 Nov 2006 02:39:08 +0000 (08:09 +0530)]
Cleanup _partition_warn_busy, _disk_warn_busy, _partition_warn_loss and _disk_warn_loss.

17 years agoProper print when there're no extended partitions, but partition names (patch from...
Otavio Salvador [Wed, 29 Nov 2006 00:26:50 +0000 (22:26 -0200)]
Proper print when there're no extended partitions, but partition names (patch from Sven Luther)

17 years agolibparted/arch/linux.c: initialize task point to please GCC
Otavio Salvador [Tue, 28 Nov 2006 19:36:03 +0000 (17:36 -0200)]
libparted/arch/linux.c: initialize task point to please GCC

17 years agoDon't enforce libselinux and libsepol linking when using device-mapper support
Otavio Salvador [Tue, 28 Nov 2006 19:35:00 +0000 (17:35 -0200)]
Don't enforce libselinux and libsepol linking when using device-mapper support

17 years agoWarn before mklabel and mkfs.
Debarshi Ray [Tue, 28 Nov 2006 22:13:05 +0000 (03:43 +0530)]
Warn before mklabel and mkfs.

17 years agoMake mktable aliased to mklabel.
Debarshi Ray [Tue, 28 Nov 2006 18:40:04 +0000 (00:10 +0530)]
Make mktable aliased to mklabel.

17 years agoFix 'print' command help
Otavio Salvador [Tue, 28 Nov 2006 00:06:20 +0000 (22:06 -0200)]
Fix 'print' command help

'print' command help was missing a new line at end and then breaking
the help printing.

17 years agoUpdated translations.
Leslie P. Polzer [Mon, 27 Nov 2006 16:59:14 +0000 (17:59 +0100)]
Updated translations.

17 years agoRemove doc/mdate-sh and doc/texinfo.tex since they are included when we run autogen.sh
Otavio Salvador [Mon, 27 Nov 2006 00:47:11 +0000 (22:47 -0200)]
Remove doc/mdate-sh and doc/texinfo.tex since they are included when we run autogen.sh

17 years agoIntroduce the -list command-line switch, patch by Debarshi Ray
Anant Narayanan [Thu, 23 Nov 2006 08:16:13 +0000 (13:46 +0530)]
Introduce the -list command-line switch, patch by Debarshi Ray

17 years agoAvoid warning about user permissions when using --version
Otavio Salvador [Wed, 22 Nov 2006 20:38:59 +0000 (18:38 -0200)]
Avoid warning about user permissions when using --version

17 years agoparted/parted.c: Remove redeclaration of current_dev fixing a compilation error
Otavio Salvador [Wed, 22 Nov 2006 20:22:39 +0000 (18:22 -0200)]
parted/parted.c: Remove redeclaration of current_dev fixing a compilation error

17 years agoReadd the 'return 0;' to please GCC
Otavio Salvador [Wed, 22 Nov 2006 17:40:44 +0000 (15:40 -0200)]
Readd the 'return 0;' to please GCC

The commit d000de8f062ce070d5310f164ebf4f5ed26fcad0 included a
compilation warning that makes sense when Parted is built without
debugging. To solve the warning and ensure that when running without
debugging we return a sinsible value I've reverted
d000de8f062ce070d5310f164ebf4f5ed26fcad0 change and added a nice
comment to avoid misunderstandings again.

17 years agoFix loop in print_all, thanks to Debarshi Ray for the patch.
Anant [Wed, 22 Nov 2006 19:42:04 +0000 (01:12 +0530)]
Fix loop in print_all, thanks to Debarshi Ray for the patch.

17 years agoRemove useless 'return 0;' call
Otavio Salvador [Mon, 20 Nov 2006 23:45:13 +0000 (21:45 -0200)]
Remove useless 'return 0;' call

Since PED_ASSERT will always be run, the return 0 is useless, hence
removed.

17 years agoRemove useless semicolon from PED_ASSERT calls
Otavio Salvador [Mon, 20 Nov 2006 23:44:13 +0000 (21:44 -0200)]
Remove useless semicolon from PED_ASSERT calls

17 years agoGenerate SHA-1 digests of the archive files and upload those along with the actual...
David Cantrell [Mon, 20 Nov 2006 17:34:49 +0000 (12:34 -0500)]
Generate SHA-1 digests of the archive files and upload those along with the actual archive files.

17 years agoRework backtrace support
Otavio Salvador [Mon, 20 Nov 2006 20:16:12 +0000 (18:16 -0200)]
Rework backtrace support

While doing a deeply check about the backtrace support I found that
-rdynamic is useless on CFLAGS and my previous change was wrong since
it wasn't avoiding -rdynamic on LFLAGS if the running system missed
the execinfo.h support. That would probably cause a build error on
some systems.

17 years agoFinal changes for parted-1.8.0
David Cantrell [Fri, 17 Nov 2006 15:42:05 +0000 (15:42 +0000)]
Final changes for parted-1.8.0

git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@896 2d424fd7-7fe2-0310-af74-8bc65edeb173

17 years agoApply changes done on Darcs and suitable for release on 1.8 final:
Otavio Salvador [Sat, 11 Nov 2006 20:30:57 +0000 (20:30 +0000)]
Apply changes done on Darcs and suitable for release on 1.8 final:

Sat Nov 11 18:09:17 BRST 2006  Otavio Salvador <otavio@debian.org>
  * Enable backtrace just if it's has support on libc.

Sat Nov 11 17:41:12 BRST 2006  Otavio Salvador <otavio@debian.org>
  * Add -rdynamic to LDFLAGS.

Sat Nov 11 17:40:19 BRST 2006  Otavio Salvador <otavio@debian.org>
  * Add -rdynamic to CFLAGS

Sat Nov 11 17:38:11 BRST 2006  Otavio Salvador <otavio@debian.org>
  * Print backtrace stack when throwing an exception

git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@895 2d424fd7-7fe2-0310-af74-8bc65edeb173

17 years agoRemove files that can be generated.
Otavio Salvador [Sat, 11 Nov 2006 17:23:46 +0000 (17:23 +0000)]
Remove files that can be generated.

git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@894 2d424fd7-7fe2-0310-af74-8bc65edeb173

17 years agoChanges done on darcs repository suitable for 1.8 release:
Otavio Salvador [Sat, 11 Nov 2006 12:45:23 +0000 (12:45 +0000)]
Changes done on darcs repository suitable for 1.8 release:

Sat Nov 11 10:41:54 BRST 2006  Otavio Salvador <otavio@debian.org>
  * Break lines bigger then 80 columns.

Sat Nov 11 02:02:26 BRST 2006  Otavio Salvador <otavio@debian.org>
  * Fix autogen.sh script to call autopoint with -f

git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@892 2d424fd7-7fe2-0310-af74-8bc65edeb173

17 years agoChanges done on darcs repository suitable for 1.8 release:
Otavio Salvador [Sat, 11 Nov 2006 01:32:58 +0000 (01:32 +0000)]
Changes done on darcs repository suitable for 1.8 release:

Fri Nov 10 23:19:15 BRST 2006  Otavio Salvador <otavio@debian.org>
  * Code clean-up on registering and unregistering of disks

        * libparted/disk.c (ped_register_disk_type, ped_unregister_disk_type):
        Clean-up. Patch sent by Debarshi 'Rishi' Ray <debarshi.ray@gmail.com>.

Fri Nov 10 23:14:58 BRST 2006  Otavio Salvador <otavio@debian.org>
  * Fix filesystem unregistering

        * libparted/filesys.c (ped_file_system_type_unregister): Handle
        instances where fs_types == NULL and the given fs_type is not in
        the list of registered file-system types. Some code clean-up.
        Patch sent by Debarshi 'Rishi' Ray <debarshi.ray@gmail.com>.

git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@891 2d424fd7-7fe2-0310-af74-8bc65edeb173

17 years agoChanges done on darcs repository suitable for 1.8 release:
Otavio Salvador [Fri, 10 Nov 2006 14:05:18 +0000 (14:05 +0000)]
Changes done on darcs repository suitable for 1.8 release:

Wed Nov  8 20:40:43 BRST 2006  Otavio Salvador <otavio@debian.org>
  * Merge libparted/ChangeLog conflict caused by Subversion syncing

Wed Nov  8 21:15:58 BRST 2006  Otavio Salvador <otavio@debian.org>
  * doc/C/parted.8: small documentation simplification

Wed Nov  8 20:09:03 BRST 2006  Otavio Salvador <otavio@debian.org>
  * libparted/fs/hfs/probe.c: Fix a segmentation fault when running without debug

git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@890 2d424fd7-7fe2-0310-af74-8bc65edeb173

17 years agoUpdates for parted-1.8.0rc3
David Cantrell [Mon, 6 Nov 2006 00:34:57 +0000 (00:34 +0000)]
Updates for parted-1.8.0rc3

git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@882 2d424fd7-7fe2-0310-af74-8bc65edeb173

17 years ago * arch/linux.c: Define PROC_DEVICES_BUFSIZ for reading /proc/devices,
David Cantrell [Mon, 6 Nov 2006 00:01:01 +0000 (00:01 +0000)]
   * arch/linux.c: Define PROC_DEVICES_BUFSIZ for reading /proc/devices,
   set to 16384.

git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@881 2d424fd7-7fe2-0310-af74-8bc65edeb173

17 years ago * labels/mac.c (_rawpart_is_boot): Check for Apple_Boot type.
David Cantrell [Thu, 2 Nov 2006 23:35:31 +0000 (23:35 +0000)]
   * labels/mac.c (_rawpart_is_boot): Check for Apple_Boot type.
   * labels/mac.c (_rawpart_analyse): Don't check the data_region_length
   against the part->geom.length for boot partitions.

git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@880 2d424fd7-7fe2-0310-af74-8bc65edeb173

17 years ago2048 -> 1024
David Cantrell [Tue, 31 Oct 2006 20:06:25 +0000 (20:06 +0000)]
2048 -> 1024

git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@871 2d424fd7-7fe2-0310-af74-8bc65edeb173

17 years ago * device.c (canonicalize_file_name): calloc should use sizeof(char)
David Cantrell [Tue, 31 Oct 2006 20:05:55 +0000 (20:05 +0000)]
    * device.c (canonicalize_file_name): calloc should use sizeof(char)
        instead of 1 (from Debarshi Ray).
        * arch/linux.c (readFD): Use a 1KB buffer to read /proc/devices
        rather than a 16KB buffer.  Init filesize to zero at declaration.
        Combine error and EOF check for read() loop.  Memory cleanups at
        function exit.  Use malloc() instead of calloc() (from Debarshi
        Ray).
        * arch/linux.c (_is_dm_major): Test expression and loop cleanups
        (from Debarshi Ray).

git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@870 2d424fd7-7fe2-0310-af74-8bc65edeb173

17 years ago * parted.c (do_print): Add device-mapper type to the transport type
David Cantrell [Tue, 31 Oct 2006 20:05:42 +0000 (20:05 +0000)]
    * parted.c (do_print): Add device-mapper type to the transport type
        list (from Debarshi Ray).

git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@869 2d424fd7-7fe2-0310-af74-8bc65edeb173

17 years ago * arch/linux.c: Go to error_free_arch_specific rather than
David Cantrell [Thu, 26 Oct 2006 20:23:20 +0000 (20:23 +0000)]
    * arch/linux.c: Go to error_free_arch_specific rather than
        error_free_dev for init_generic() failure on PED_DEVICE_UBD.

git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@866 2d424fd7-7fe2-0310-af74-8bc65edeb173

17 years agoLine length fixes.
David Cantrell [Thu, 26 Oct 2006 20:22:59 +0000 (20:22 +0000)]
Line length fixes.

git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@865 2d424fd7-7fe2-0310-af74-8bc65edeb173

17 years agoNeed the filename: directive as well.
David Cantrell [Wed, 11 Oct 2006 20:52:58 +0000 (20:52 +0000)]
Need the filename: directive as well.

git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@858 2d424fd7-7fe2-0310-af74-8bc65edeb173

17 years agoSet directive file version to 1.1.
David Cantrell [Wed, 11 Oct 2006 20:35:24 +0000 (20:35 +0000)]
Set directive file version to 1.1.

git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@855 2d424fd7-7fe2-0310-af74-8bc65edeb173

17 years agoConditionalize the device-mapper stuff.
David Cantrell [Wed, 11 Oct 2006 19:55:58 +0000 (19:55 +0000)]
Conditionalize the device-mapper stuff.

git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@852 2d424fd7-7fe2-0310-af74-8bc65edeb173

17 years agoi18n updates.
David Cantrell [Wed, 11 Oct 2006 19:48:29 +0000 (19:48 +0000)]
i18n updates.

git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@850 2d424fd7-7fe2-0310-af74-8bc65edeb173

17 years agoBump version.
David Cantrell [Wed, 11 Oct 2006 19:46:07 +0000 (19:46 +0000)]
Bump version.

git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@849 2d424fd7-7fe2-0310-af74-8bc65edeb173