[Parted-commits] GNU Parted Official Repository: Changes to 'stable-1.8.x'
Otavio Salvador
otavio at alioth.debian.org
Wed Apr 9 16:48:25 UTC 2008
configure.ac | 9 -------
doc/parted.texi | 60 +++++++++++++++++++++++------------------------
libparted/labels/fdasd.c | 2 -
parted/ui.c | 4 ++-
4 files changed, 35 insertions(+), 40 deletions(-)
New commits:
commit 1fcec2f3331d2fa22868a947c2b4d75d2f43dd37
Author: Jim Meyering <meyering at redhat.com>
Date: Mon Feb 4 08:35:17 2008 +0100
Don't write into line[-1] when line starts with a NUL byte.
* parted/ui.c (_readline): Check strlen first.
(cherry picked from commit cf282a908ec143e7ec8c8068fdc246b8bfaf8f33)
diff --git a/parted/ui.c b/parted/ui.c
index a53643f..4a3f954 100644
--- a/parted/ui.c
+++ b/parted/ui.c
@@ -569,7 +569,9 @@ _readline (const char* prompt, const StrList* possibilities)
fputs (line, stdout);
fflush (stdout);
#endif
- line [strlen (line) - 1] = 0; /* kill trailing CR */
+ /* kill trailing NL */
+ if (strlen (line))
+ line [strlen (line) - 1] = 0;
} else {
free (line);
line = NULL;
commit e1a07b1ac48b0dd18e090e7fb8eb3167dc3f3d3f
Author: Bastian Blank <waldi at waldi.track.rz.uni-augsburg.de>
Date: Mon Apr 7 13:18:45 2008 +0200
Fix syntax error.
(cherry picked from commit efccb8de8bc59c3dcb433e3782c681fbda1c2522)
diff --git a/libparted/labels/fdasd.c b/libparted/labels/fdasd.c
index e4ecf52..7adf12f 100644
--- a/libparted/labels/fdasd.c
+++ b/libparted/labels/fdasd.c
@@ -149,7 +149,7 @@ fdasd_error (fdasd_anchor_t *anc, enum fdasd_failure why, char * str)
case device_verification_failed:
sprintf(error, "fdasd: %s -- %s\n",
_("Device verification failed"),
- _("The specified device is not a valid DASD device"));,
+ _("The specified device is not a valid DASD device"));
break;
default:
sprintf(error, "fdasd: %s: %s\n", _("Fatal error"), str);
commit 6803dfc1edf7a301c6feb5d3c4dbdce315bb9a98
Author: Bastian Blank <waldi at waldi.track.rz.uni-augsburg.de>
Date: Mon Apr 7 13:07:12 2008 +0200
Use host_cpu for s390 check.
(cherry picked from commit fbab61bcead981b604d8d3969ab274b8c63809c2)
diff --git a/configure.ac b/configure.ac
index f1284a0..a6be2e6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -471,14 +471,7 @@ AC_CHECK_HEADER([execinfo.h], [
])
])
-dnl Checks for #defines.
-AC_COMPILE_IFELSE([
- AC_LANG_PROGRAM([[
- #if defined __s390__ || defined __s390x__
- # message s390 defined
- #endif
- ]])], [compile_for_s390="no"], [compile_for_s390="yes"])
-AM_CONDITIONAL([COMPILE_FOR_S390], [test "$compile_for_s390" = "yes"])
+AM_CONDITIONAL([COMPILE_FOR_S390], [test "$host_cpu" = s390 || test "$host_cpu" = s390x])
dnl check for "check", unit testing library/header
PKG_CHECK_MODULES([CHECK], [check >= 0.9.3], have_check=yes, have_check=no)
commit 8a4f71e09664a92c2b8358603e7af709ed192bcb
Author: Jim Meyering <meyering at redhat.com>
Date: Sun Mar 30 14:15:26 2008 +0200
Fix a typo: s/to defragmenting/to defragment/, Remove trailing blanks.
(cherry picked from commit 22117d23582041549dc3fbdb1806e6197c17c56b)
diff --git a/doc/parted.texi b/doc/parted.texi
index 139ea77..86ec076 100644
--- a/doc/parted.texi
+++ b/doc/parted.texi
@@ -14,7 +14,7 @@ resizing, checking and copy partitions and file systems on them.
@ifnottex @c texi2pdf don't understand copying and insertcopying ???
@c modifications must also be done in the titlepage
@copying
-Copyright @copyright{} 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
+Copyright @copyright{} 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
@@ -63,7 +63,7 @@ Free Documentation License''.
@c WTF doesn't texi2html include the titlepage?
@ifhtml
- at insertcopying
+ at insertcopying
@end ifhtml
This document describes the use of GNU Parted, a program for creating,
@@ -257,7 +257,7 @@ $ @kbd{make}
However, there are a few options for @command{configure}:
@table @code
- at item --without-readline
+ at item --without-readline
turns off use of readline. This is useful for making rescue disks,
etc., where few libraries are available.
@@ -275,12 +275,12 @@ you don't need the flexibility.
@item --disable-fs
disable all file system support
- at item --disable-nls
+ at item --disable-nls
turns off native language support. This is useful for use with old
versions of glibc, or a trimmed down version of glibc suitable for
rescue disks.
- at item --disable-shared
+ at item --disable-shared
turns off shared libraries. This may be necessary for use with old
versions of GNU libc, if you get a compile error about a ``spilled
register''. Also useful for boot/rescue disks.
@@ -301,7 +301,7 @@ disable writing (for debugging)
@node Static binaries
@section Using static binaries of GNU Parted
- at cindex static binary
+ at cindex static binary
@cindex unsupported platforms
@cindex resizing root device
@@ -320,7 +320,7 @@ of the latest GNU Parted version is available, which you can use thus:
@subsection Creating the Parted disk
@enumerate
- at item Boot your system
+ at item Boot your system
@item Download @file{parted-static-VERSION.tgz} from @uref{ftp://ftp.gnu.org/gnu/parted/static}
@item Unpack the tarball, resulting in a file called ``parted.static".
@@ -329,7 +329,7 @@ of the latest GNU Parted version is available, which you can use thus:
@item Do a low-level format on it (on GNU/Linux this can be achieved with
the tool ``fdformat" from the ``util-linux" package.
- This is basically a sanity check because floppy disks often
+ This is basically a sanity check because floppy disks often
contain bad blocks.
@item Create a file system. Example:
@@ -359,7 +359,7 @@ $ @kbd{umount /mnt/floppy}
@subsection Using the Parted disk
@enumerate
- at item Choose a rescue disk that suits you.
+ at item Choose a rescue disk that suits you.
@item Boot off your rescue disk. Mount the disk you copied Parted onto.
@@ -383,7 +383,7 @@ $ @kbd{umount /mnt/floppy}
@end menu
@node Partitioning
- at section Introduction to Partitioning
+ at section Introduction to Partitioning
@cindex partitioning overview
Unfortunately, partitioning your disk is rather complicated. This is
@@ -566,7 +566,7 @@ Supported file systems:
(provided the destination partition is larger than the source partition)
@item fat16, fat32
- at item linux-swap
+ at item linux-swap
(equivalent to mkswap on destination partition)
@item reiserfs (if libreiserfs is installed)
@@ -918,7 +918,7 @@ partitions can be resized only so long as the new extended partition
completely contains all logical partitions.
Note that Parted can manipulate partitions whether or not they have been
-defragmented, so you do not need to defragmenting the disk before
+defragmented, so you do not need to defragment the disk before
using Parted.
Supported file systems:
@@ -1031,7 +1031,7 @@ Microsoft operating systems.
@item raid
(MS-DOS) - this flag can be enabled to tell linux the partition is a
-software RAID partition.
+software RAID partition.
@item LVM
(MS-DOS) - this flag can be enabled to tell linux the partition is a
@@ -1109,59 +1109,59 @@ specified after an input number. Input numbers can be followed by
an unit (without any space or other character between them), in
which case this unit apply instead of the default unit for this
particular number, but CHS and cylinder units are not supported as
-a suffix. If no suffix is given, then the default unit is assumed.
+a suffix. If no suffix is given, then the default unit is assumed.
Parted will compute sensible ranges for the locations you specify
(e.g. a range of +/- 500 MB when you specify the location in ``G'')
and will select the nearest location in this range from the one you
wrote that satisfies constraints from both the operation, the
filesystem being worked on, the disk label, other partitions and so
on. Use the sector unit ``s'' to specify exact locations (if they
-do not satisfy all onstraints, Parted will ask you for the nearest
+do not satisfy all onstraints, Parted will ask you for the nearest
solution). Note that negative numbers count back from the end of
-the disk, with ``-1s'' pointing to the end of the disk.
+the disk, with ``-1s'' pointing to the end of the disk.
Example:
@example
@group
-(parted) unit compact
-(parted) print
+(parted) unit compact
+(parted) print
Disk geometry for /dev/hda: 0kB - 123GB
Disk label type: msdos
Number Start End Size Type File system Flags
1 32kB 1078MB 1077MB primary reiserfs boot
-2 1078MB 2155MB 1078MB primary linux-swap
-3 2155MB 123GB 121GB extended
-5 2155MB 7452MB 5297MB logical reiserfs
+2 1078MB 2155MB 1078MB primary linux-swap
+3 2155MB 123GB 121GB extended
+5 2155MB 7452MB 5297MB logical reiserfs
@end group
@group
-(parted) unit chs print
+(parted) unit chs print
Disk geometry for /dev/hda: 0,0,0 - 14946,225,62
BIOS cylinder,head,sector geometry: 14946,255,63. Each cylinder
is 8225kB.
Disk label type: msdos
Number Start End Type File system Flags
1 0,1,0 130,254,62 primary reiserfs boot
-2 131,0,0 261,254,62 primary linux-swap
-3 262,0,0 14945,254,62 extended
-5 262,2,0 905,254,62 logical reiserfs
+2 131,0,0 261,254,62 primary linux-swap
+3 262,0,0 14945,254,62 extended
+5 262,2,0 905,254,62 logical reiserfs
@end group
@group
-(parted) unit mb print
+(parted) unit mb print
Disk geometry for /dev/hda: 0MB - 122942MB
Disk label type: msdos
Number Start End Size Type File system Flags
1 0MB 1078MB 1077MB primary reiserfs boot
-2 1078MB 2155MB 1078MB primary linux-swap
-3 2155MB 122935MB 120780MB extended
-5 2155MB 7452MB 5297MB logical reiserfs
+2 1078MB 2155MB 1078MB primary linux-swap
+3 2155MB 122935MB 120780MB extended
+5 2155MB 7452MB 5297MB logical reiserfs
@end group
@end example
@end deffn
@node Related information
- at chapter Related information
+ at chapter Related information
@cindex further reading
@cindex related documentation
More information about the Parted-commits
mailing list