Commit 0f24b094 authored by Andreas Henriksson's avatar Andreas Henriksson

New upstream version 2.29.1

parents 1088477c 9ebc8a7a
...@@ -128,6 +128,7 @@ CONTRIBUTORS: ...@@ -128,6 +128,7 @@ CONTRIBUTORS:
Bernardo Innocenti <bernie@codewiz.org> Bernardo Innocenti <bernie@codewiz.org>
Bernhard Voelker <mail@bernhard-voelker.de> Bernhard Voelker <mail@bernhard-voelker.de>
Bernhard Walle <bwalle@suse.de> Bernhard Walle <bwalle@suse.de>
Bert van Hall <bert.vanhall@avionic-design.de>
Bill Pemberton <wfp5p@virginia.edu> Bill Pemberton <wfp5p@virginia.edu>
Bill Pemberton <wfp5p@worldbroken.com> Bill Pemberton <wfp5p@worldbroken.com>
Bill Reynolds <bill@goshawk.lanl.gov> Bill Reynolds <bill@goshawk.lanl.gov>
...@@ -142,6 +143,7 @@ CONTRIBUTORS: ...@@ -142,6 +143,7 @@ CONTRIBUTORS:
B Watson <yalhcru@gmail.com> B Watson <yalhcru@gmail.com>
Cai Qian <qcai@redhat.com> Cai Qian <qcai@redhat.com>
Carlos Maiolino <cmaiolino@redhat.com> Carlos Maiolino <cmaiolino@redhat.com>
Carlos Santos <casantos@datacom.ind.br>
Casper Ti. Vector <caspervector@gmail.com> Casper Ti. Vector <caspervector@gmail.com>
Chandan B Rajenda <chandan@linux.vnet.ibm.com> Chandan B Rajenda <chandan@linux.vnet.ibm.com>
chas williams - CONTRACTOR <chas@cmf.nrl.navy.mil> chas williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
...@@ -370,6 +372,7 @@ CONTRIBUTORS: ...@@ -370,6 +372,7 @@ CONTRIBUTORS:
Michael Bunk <bunk@iat.uni-leipzig.de> Michael Bunk <bunk@iat.uni-leipzig.de>
Michael Forney <mforney@mforney.org> Michael Forney <mforney@mforney.org>
Michael Glad <glad@daimi.aau.dk> Michael Glad <glad@daimi.aau.dk>
Michael Kerrisk <mtk.manpages@gmail.com>
Michael Marineau <michael.marineau@coreos.com> Michael Marineau <michael.marineau@coreos.com>
Michael Piefel <piefel@informatik.hu-berlin.de> Michael Piefel <piefel@informatik.hu-berlin.de>
Michał Bartoszkiewicz <mbartoszkiewicz@gmail.com> Michał Bartoszkiewicz <mbartoszkiewicz@gmail.com>
...@@ -393,6 +396,7 @@ CONTRIBUTORS: ...@@ -393,6 +396,7 @@ CONTRIBUTORS:
M.S.Colclough <m.s.colclough@bham.ac.uk> M.S.Colclough <m.s.colclough@bham.ac.uk>
Namhyung Kim <namhyung@gmail.com> Namhyung Kim <namhyung@gmail.com>
Natanael Copa <ncopa@alpinelinux.org> Natanael Copa <ncopa@alpinelinux.org>
Nate Clark <nate@neworld.us>
Nathan Rossi <nathan.rossi@xilinx.com> Nathan Rossi <nathan.rossi@xilinx.com>
Neil Horman <nhorman@tuxdriver.com> Neil Horman <nhorman@tuxdriver.com>
nick black <nick.black@sprezzatech.com> nick black <nick.black@sprezzatech.com>
...@@ -403,6 +407,7 @@ CONTRIBUTORS: ...@@ -403,6 +407,7 @@ CONTRIBUTORS:
Nikolay Sivov <nsivov@codeweavers.com> Nikolay Sivov <nsivov@codeweavers.com>
Nilgün Belma Bugüner <nilgun@buguner.name.tr> Nilgün Belma Bugüner <nilgun@buguner.name.tr>
Norbert Buchmuller <norbi@nix.hu> Norbert Buchmuller <norbi@nix.hu>
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Oliver Falk <oliver@linux-kernel.at> Oliver Falk <oliver@linux-kernel.at>
Olivier Blin <blino@mandriva.com> Olivier Blin <blino@mandriva.com>
Olivier Mengué <dolmen@cpan.org> Olivier Mengué <dolmen@cpan.org>
...@@ -500,6 +505,7 @@ CONTRIBUTORS: ...@@ -500,6 +505,7 @@ CONTRIBUTORS:
Stefan Krah <stefan@bytereef.org> Stefan Krah <stefan@bytereef.org>
Stef Walter <stefw@redhat.com> Stef Walter <stefw@redhat.com>
Stepan Kasal <skasal@redhat.com> Stepan Kasal <skasal@redhat.com>
Stéphane Aulery <lkppo@free.fr>
Stephan Maka <stephan@spaceboyz.net> Stephan Maka <stephan@spaceboyz.net>
Stephan Müller <fruktopus@gmail.com> Stephan Müller <fruktopus@gmail.com>
Stephen Gallimore Stephen Gallimore
......
See version control history. See version control history.
http://git.kernel.org/?p=utils/util-linux/util-linux.git;a=log;h=2.29 http://git.kernel.org/?p=utils/util-linux/util-linux.git;a=log;h=2.29.1
util-linux 2.29.1 Release Notes
===============================
build-sys:
- cleanup UL_NCURSES_CHECK [Karel Zak]
- don't clean *.img files [Ruediger Meier]
- fix compilation with ncurses and uClibc or musl libc [Carlos Santos]
- fix empty package release number [Ruediger Meier]
- prefer pkg-config for ncurses [Karel Zak]
- update package release number during development [Ruediger Meier]
- use MATH_LIBS for hwclock [Karel Zak]
chrt:
- default to SCHED_RR policy [Andreas Henriksson]
chsh:
- use -h as shorthand for --help instead of -u [Andreas Henriksson]
disk-utils/mkfs.minix:
- Set ninodes after checking max [Nate Clark]
docs:
- add cross reference to namespaces(7) [Michael Kerrisk (man-pages)]
- ionice(1) SEE ALSO add ioprio_set(2) [Michael Kerrisk]
- kill(1) Add more detail on use of SIGTERM vs SIGKILL [Michael Kerrisk]
- kill(1) Fix section reference for sigqueue(3) and add to SEE ALSO [Michael Kerrisk]
- kill(1) Formatting fixes [Michael Kerrisk]
- kill(1) Rework notes on thread groups [Michael Kerrisk]
- kill(1) Wording fix [Michael Kerrisk]
- last(1) Eliminate oddball formatting [Michael Kerrisk]
- last(1) SEE ALSO add reference to wtmp(5) [Michael Kerrisk]
- lsns(8) SEE ALSO add namespaces(7) [Michael Kerrisk]
- mount(8) Wording fix [Michael Kerrisk]
- namei(1) SEE ALSO add symlink(7) [Michael Kerrisk]
- nsenter(1) Describe the 'file' argument used by namespace options [Michael Kerrisk]
- nsenter(1) Formatting fix [Michael Kerrisk]
- nsenter(1) add missing 'see also' for --user [Karel Zak]
- renice(1) Add SEE ALSO entry for sched(7) [Michael Kerrisk]
- renice(1) Add credentials(7) to SEE ALSO [Michael Kerrisk]
- renice(1) Remove obsolete BUGS text [Michael Kerrisk]
- renice(1) Rework discussion of unprivileged users, [Michael Kerrisk]
- taskset(1) Wording fix [Michael Kerrisk]
- update AUTHORS file [Karel Zak]
- update v2.29.1-ReleaseNotes [Karel Zak]
- various pages Format pathnames as italic (.I) [Michael Kerrisk]
- various pages Use "ID" not "id" in man pages [Michael Kerrisk]
- various pages Use "PID" not "pid" in man-pages [Michael Kerrisk]
- various pages Use "system call" not "syscall" [Michael Kerrisk]
- various pages Use 'UID" and "GID", not "uid" and "gid" in man pages [Michael Kerrisk]
- various pages Use consistent terminology (set-user-ID and set-group-ID) [Michael Kerrisk]
fdisk:
- don't be silent when list non-existing device [Karel Zak]
findmnt:
- error on --target /non-exist [Karel Zak]
hwclock:
- don't check for permissions [Karel Zak]
lib/linux_version:
- fix stupid typo [Karel Zak]
libblkid/minix:
- Match minix superblock types [Nate Clark]
- Sanity check superblock s_state for v 1 and 2 [Nate Clark]
- Use same checks for version 3 [Nate Clark]
libfdisk:
- (gpt) make calculations more robust [Karel Zak]
- recount size when apply user device properties [Karel Zak]
libsmartcols:
- add scols_cell_get_alignment() [Karel Zak]
lscpu:
- add aarch64 specific names [Karel Zak]
lsns:
- Fix parser for /proc/<pid>/stat which is including space in comm [OGAWA Hirofumi]
man:
- chfn(1) add chsh and login.defs to SEE ALSO [Andreas Henriksson]
- chsh(1) add login.defs to SEE ALSO [Andreas Henriksson]
more:
- avoid double free() on exit [Karel Zak]
po:
- merge changes [Karel Zak]
- update da.po (from translationproject.org) [Joe Hansen]
- update fr.po (from translationproject.org) [Stéphane Aulery]
- update pt_BR.po (from translationproject.org) [Rafael Fontenelle]
runuser:
- add "--" to SYNOPSIS [Karel Zak]
sfdisk:
- cleanup --dump error messages [Karel Zak]
- don't be silent when list non-existing device [Karel Zak]
su, runuser:
- fix typo in the /etc/default path [Karel Zak]
sulogin:
- bail out from getpasswd(...) on timeout [Andreas Henriksson]
- make getpasswd(...) return NULL on ^D [Andreas Henriksson]
term-utils/script:
- fix typo leading to syntax error [Bert van Hall]
tests:
- (build-sys) don't link -lm by default [Karel Zak]
- Correctly format page cross references [Michael Kerrisk (man-pages)]
- Fix formatting errors in page cross references [Michael Kerrisk (man-pages)]
- Fix page cross references [Michael Kerrisk (man-pages)]
- Fix reference for scheduling discussion [Michael Kerrisk (man-pages)]
- Fix section number in lockf() page xref [Michael Kerrisk (man-pages)]
- Fix typo in page cross reference (capabilities(7), not, capability(7)) [Michael Kerrisk (man-pages)]
- IPC namespaces also isolate POSIX message queues [Michael Kerrisk (man-pages)]
- If mtab support is disabled, disable ro/rw mtab checks [Stanislav Brabec]
- Place SEE ALSO entries in order [Michael Kerrisk (man-pages)]
- Provide better cross references for namespace concepts [Michael Kerrisk (man-pages)]
- Replace reference to sigvec(2) with sigaction(2) [Michael Kerrisk (man-pages)]
This diff is collapsed.
util-linux 2.29.1: Jan 20 2017
* see Documentation/releases/v2.29.1-ReleaseNotes or the complete changelog at
ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.29/v2.29.1-ChangeLog
util-linux 2.29: Nov 8 2016 util-linux 2.29: Nov 8 2016
* see Documentation/releases/v2.29-ReleaseNotes or the complete changelog at * see Documentation/releases/v2.29-ReleaseNotes or the complete changelog at
ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.29/v2.29-ChangeLog ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.29/v2.29-ChangeLog
......
...@@ -148,6 +148,9 @@ ...@@ -148,6 +148,9 @@
/* Define to 1 if you have the `iopl' function. */ /* Define to 1 if you have the `iopl' function. */
#undef HAVE_IOPL #undef HAVE_IOPL
/* Define to 1 if you have the `isnan' function. */
#undef HAVE_ISNAN
/* Define to 1 if you have the `jrand48' function. */ /* Define to 1 if you have the `jrand48' function. */
#undef HAVE_JRAND48 #undef HAVE_JRAND48
......
This diff is collapsed.
...@@ -23,14 +23,12 @@ dnl version details from <major>.<minor>[-<suffix>] ...@@ -23,14 +23,12 @@ dnl version details from <major>.<minor>[-<suffix>]
PACKAGE_VERSION_MAJOR=$(echo $PACKAGE_VERSION | awk -F. '{print $1}') PACKAGE_VERSION_MAJOR=$(echo $PACKAGE_VERSION | awk -F. '{print $1}')
PACKAGE_VERSION_MINOR=$(echo $PACKAGE_VERSION | awk -F. '{print $2}' \ PACKAGE_VERSION_MINOR=$(echo $PACKAGE_VERSION | awk -F. '{print $2}' \
| awk -F- '{print $1}') | awk -F- '{print $1}')
PACKAGE_VERSION_RELEASE=$(echo $PACKAGE_VERSION | awk -F. '{
PACKAGE_VERSION_RELEASE=$(echo $PACKAGE_VERSION | awk -F. '{print $3}' \ sub("-.*","",$3); print $3 ~ /^@<:@[0-9]@:>@+$/ ? $3 : 0}')
| sed 's/.*@<:@^@<:@:digit:@:>@@:>@.*/0/')
dnl libblkid version dnl libblkid version
LIBBLKID_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE" LIBBLKID_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE"
LIBBLKID_DATE="08-Nov-2016" LIBBLKID_DATE="20-Jan-2017"
LIBBLKID_LT_MAJOR=1 LIBBLKID_LT_MAJOR=1
LIBBLKID_LT_MINOR=1 LIBBLKID_LT_MINOR=1
LIBBLKID_LT_MICRO=0 LIBBLKID_LT_MICRO=0
...@@ -429,6 +427,12 @@ AC_CHECK_FUNCS([reboot], [have_reboot=yes],[have_reboot=no]) ...@@ -429,6 +427,12 @@ AC_CHECK_FUNCS([reboot], [have_reboot=yes],[have_reboot=no])
AM_CONDITIONAL([HAVE_OPENAT], [test "x$have_openat" = xyes]) AM_CONDITIONAL([HAVE_OPENAT], [test "x$have_openat" = xyes])
AC_CHECK_FUNCS([isnan], [],
[AC_CHECK_LIB([m], [isnan], [MATH_LIBS="-lm"])]
)
AC_SUBST([MATH_LIBS])
dnl lib/mononotic.c may require -lrt dnl lib/mononotic.c may require -lrt
AC_CHECK_FUNCS([clock_gettime], [], AC_CHECK_FUNCS([clock_gettime], [],
[AC_CHECK_LIB([rt], [clock_gettime], [REALTIME_LIBS="-lrt"])] [AC_CHECK_LIB([rt], [clock_gettime], [REALTIME_LIBS="-lrt"])]
......
...@@ -22,7 +22,7 @@ cfdisk \- display or manipulate a disk partition table ...@@ -22,7 +22,7 @@ cfdisk \- display or manipulate a disk partition table
.B cfdisk .B cfdisk
is a curses-based program for partitioning any block device. is a curses-based program for partitioning any block device.
The default device is The default device is
.BR /dev/sda . .IR /dev/sda .
Note that Note that
.B cfdisk .B cfdisk
...@@ -189,10 +189,10 @@ use visible padding characters. Requires enabled LIBSMARTCOLS_DEBUG. ...@@ -189,10 +189,10 @@ use visible padding characters. Requires enabled LIBSMARTCOLS_DEBUG.
.SH "SEE ALSO" .SH "SEE ALSO"
.BR fdisk (8), .BR fdisk (8),
.BR sfdisk (8),
.BR parted (8), .BR parted (8),
.BR partprobe (8), .BR partprobe (8),
.BR partx (8) .BR partx (8),
.BR sfdisk (8)
.SH AUTHOR .SH AUTHOR
Karel Zak <kzak@redhat.com> Karel Zak <kzak@redhat.com>
.PP .PP
......
...@@ -64,9 +64,9 @@ Display version information and exit. ...@@ -64,9 +64,9 @@ Display version information and exit.
Display help text and exit. Display help text and exit.
.SH "SEE ALSO" .SH "SEE ALSO"
.BR fd (4), .BR fd (4),
.BR setfdprm (8), .BR emkfs (8),
.BR mkfs (8), .BR mkfs (8),
.BR emkfs (8) .BR setfdprm (8)
.SH AUTHOR .SH AUTHOR
Werner Almesberger (almesber@nessie.cs.id.ethz.ch) Werner Almesberger (almesber@nessie.cs.id.ethz.ch)
.SH AVAILABILITY .SH AVAILABILITY
......
...@@ -359,9 +359,9 @@ use visible padding characters. Requires enabled LIBSMARTCOLS_DEBUG. ...@@ -359,9 +359,9 @@ use visible padding characters. Requires enabled LIBSMARTCOLS_DEBUG.
.SH "SEE ALSO" .SH "SEE ALSO"
.BR cfdisk (8), .BR cfdisk (8),
.BR sfdisk (8),
.BR mkfs (8), .BR mkfs (8),
.BR partx (8) .BR partx (8),
.BR sfdisk (8)
.SH AVAILABILITY .SH AVAILABILITY
The fdisk command is part of the util-linux package and is available from The fdisk command is part of the util-linux package and is available from
......
...@@ -944,12 +944,16 @@ int main(int argc, char **argv) ...@@ -944,12 +944,16 @@ int main(int argc, char **argv)
if (argc > optind) { if (argc > optind) {
int k; int k;
int ct = 0; int ct = 0;
for (k = optind; k < argc; k++) {
for (rc = 0, k = optind; k < argc; k++) {
if (ct) if (ct)
fputs("\n\n", stdout); fputs("\n\n", stdout);
rc += print_device_pt(cxt, argv[k], 1, 0);
ct++; ct++;
print_device_pt(cxt, argv[k], 1, 0);
} }
if (rc)
return EXIT_FAILURE;
} else } else
print_all_devices_pt(cxt, 0); print_all_devices_pt(cxt, 0);
break; break;
......
...@@ -36,7 +36,7 @@ If no filesystems are specified on the command line, and the ...@@ -36,7 +36,7 @@ If no filesystems are specified on the command line, and the
option is not specified, option is not specified,
.B fsck .B fsck
will default to checking filesystems in will default to checking filesystems in
.B /etc/fstab .I /etc/fstab
serially. This is equivalent to the serially. This is equivalent to the
.B \-As .B \-As
options. options.
...@@ -160,13 +160,13 @@ They must have the format ...@@ -160,13 +160,13 @@ They must have the format
If an options specifier is present, then only filesystems which contain If an options specifier is present, then only filesystems which contain
.I fs-option .I fs-option
in their mount options field of in their mount options field of
.B /etc/fstab .I /etc/fstab
will be checked. If the options specifier is prefixed by a negation will be checked. If the options specifier is prefixed by a negation
operator, then only operator, then only
those filesystems that do not have those filesystems that do not have
.I fs-option .I fs-option
in their mount options field of in their mount options field of
.B /etc/fstab .I /etc/fstab
will be checked. will be checked.
.sp .sp
For example, if For example, if
...@@ -174,7 +174,7 @@ For example, if ...@@ -174,7 +174,7 @@ For example, if
appears in appears in
.IR fslist , .IR fslist ,
then only filesystems listed in then only filesystems listed in
.B /etc/fstab .I /etc/fstab
with the with the
.B ro .B ro
option will be checked. option will be checked.
...@@ -261,7 +261,7 @@ normally does not check whether the device actually exists before ...@@ -261,7 +261,7 @@ normally does not check whether the device actually exists before
calling a filesystem specific checker. Therefore non-existing calling a filesystem specific checker. Therefore non-existing
devices may cause the system to enter filesystem repair mode during devices may cause the system to enter filesystem repair mode during
boot if the filesystem specific checker returns a fatal error. The boot if the filesystem specific checker returns a fatal error. The
.B /etc/fstab .I /etc/fstab
mount option mount option
.B nofail .B nofail
may be used to have may be used to have
...@@ -373,7 +373,7 @@ environment variable is used to find filesystem checkers. ...@@ -373,7 +373,7 @@ environment variable is used to find filesystem checkers.
.B FSTAB_FILE .B FSTAB_FILE
This environment variable allows the system administrator This environment variable allows the system administrator
to override the standard location of the to override the standard location of the
.B /etc/fstab .I /etc/fstab
file. It is also useful for developers who are testing file. It is also useful for developers who are testing
.BR fsck . .BR fsck .
.TP .TP
...@@ -392,13 +392,13 @@ or ...@@ -392,13 +392,13 @@ or
or or
.BR e2fsck (8), .BR e2fsck (8),
.BR cramfsck (8), .BR cramfsck (8),
.BR fsck.minix (8),
.BR fsck.msdos (8),
.BR fsck.jfs (8), .BR fsck.jfs (8),
.BR fsck.nfs (8), .BR fsck.nfs (8),
.BR fsck.minix (8),
.BR fsck.msdos (8),
.BR fsck.vfat (8), .BR fsck.vfat (8),
.BR fsck.xfs (8), .BR fsck.xfs (8),
.BR reiserfsck (8). .BR reiserfsck (8)
.ad .ad
.SH AUTHORS .SH AUTHORS
.nf .nf
......
...@@ -158,8 +158,8 @@ Russell King ...@@ -158,8 +158,8 @@ Russell King
.BR fsck (8), .BR fsck (8),
.BR fsck.ext2 (8), .BR fsck.ext2 (8),
.BR mkfs (8), .BR mkfs (8),
.BR mkfs.minix (8),
.BR mkfs.ext2 (8), .BR mkfs.ext2 (8),
.BR mkfs.minix (8),
.BR reboot (8) .BR reboot (8)
.SH AVAILABILITY .SH AVAILABILITY
The fsck.minix command is part of the util-linux package and is available from The fsck.minix command is part of the util-linux package and is available from
......
...@@ -81,8 +81,8 @@ operation error, such as unable to allocate memory ...@@ -81,8 +81,8 @@ operation error, such as unable to allocate memory
.PD .PD
.RE .RE
.SH "SEE ALSO" .SH "SEE ALSO"
.BR mount (8), .BR fsck.cramfs (8),
.BR fsck.cramfs (8) .BR mount (8)
.SH AVAILABILITY .SH AVAILABILITY
The example command is part of the util-linux package and is available from The example command is part of the util-linux package and is available from
.UR ftp://\:ftp.kernel.org\:/pub\:/linux\:/utils\:/util-linux/ .UR ftp://\:ftp.kernel.org\:/pub\:/linux\:/utils\:/util-linux/
......
...@@ -81,8 +81,8 @@ Operational error ...@@ -81,8 +81,8 @@ Operational error
.IP 16 .IP 16
Usage or syntax error Usage or syntax error
.SH "SEE ALSO" .SH "SEE ALSO"
.BR mkfs (8),
.BR fsck (8), .BR fsck (8),
.BR mkfs (8),
.BR reboot (8) .BR reboot (8)
.SH AVAILABILITY .SH AVAILABILITY
The mkfs.minix command is part of the util-linux package and is available from The mkfs.minix command is part of the util-linux package and is available from
......
...@@ -534,9 +534,9 @@ static void setup_tables(const struct fs_control *ctl) { ...@@ -534,9 +534,9 @@ static void setup_tables(const struct fs_control *ctl) {
if (fs_version == 3) if (fs_version == 3)
Super3.s_ninodes = inodes; Super3.s_ninodes = inodes;
else { else {
Super.s_ninodes = inodes;
if (inodes > MINIX_MAX_INODES) if (inodes > MINIX_MAX_INODES)
inodes = MINIX_MAX_INODES; inodes = MINIX_MAX_INODES;
Super.s_ninodes = inodes;
} }
super_set_map_blocks(ctl, inodes); super_set_map_blocks(ctl, inodes);
if (MINIX_MAX_INODES < first_zone_data()) if (MINIX_MAX_INODES < first_zone_data())
......
...@@ -560,6 +560,7 @@ static int write_changes(struct sfdisk *sf) ...@@ -560,6 +560,7 @@ static int write_changes(struct sfdisk *sf)
*/ */
static int command_list_partitions(struct sfdisk *sf, int argc, char **argv) static int command_list_partitions(struct sfdisk *sf, int argc, char **argv)
{ {
int fail = 0;
fdisk_enable_listonly(sf->cxt, 1); fdisk_enable_listonly(sf->cxt, 1);
if (argc) { if (argc) {
...@@ -568,13 +569,14 @@ static int command_list_partitions(struct sfdisk *sf, int argc, char **argv) ...@@ -568,13 +569,14 @@ static int command_list_partitions(struct sfdisk *sf, int argc, char **argv)
for (i = 0; i < argc; i++) { for (i = 0; i < argc; i++) {
if (ct) if (ct)
fputs("\n\n", stdout); fputs("\n\n", stdout);
if (print_device_pt(sf->cxt, argv[i], 0, sf->verify) == 0) if (print_device_pt(sf->cxt, argv[i], 1, sf->verify) != 0)
ct++; fail++;
ct++;
} }
} else } else
print_all_devices_pt(sf->cxt, sf->verify); print_all_devices_pt(sf->cxt, sf->verify);
return 0; return fail;
} }
/* /*
...@@ -582,6 +584,7 @@ static int command_list_partitions(struct sfdisk *sf, int argc, char **argv) ...@@ -582,6 +584,7 @@ static int command_list_partitions(struct sfdisk *sf, int argc, char **argv)
*/ */
static int command_list_freespace(struct sfdisk *sf, int argc, char **argv) static int command_list_freespace(struct sfdisk *sf, int argc, char **argv)
{ {
int fail = 0;
fdisk_enable_listonly(sf->cxt, 1); fdisk_enable_listonly(sf->cxt, 1);
if (argc) { if (argc) {
...@@ -590,13 +593,14 @@ static int command_list_freespace(struct sfdisk *sf, int argc, char **argv) ...@@ -590,13 +593,14 @@ static int command_list_freespace(struct sfdisk *sf, int argc, char **argv)
for (i = 0; i < argc; i++) { for (i = 0; i < argc; i++) {
if (ct) if (ct)
fputs("\n\n", stdout); fputs("\n\n", stdout);
if (print_device_freespace(sf->cxt, argv[i], 0) == 0) if (print_device_freespace(sf->cxt, argv[i], 1) != 0)
ct++; fail++;
ct++;
} }
} else } else
print_all_devices_freespace(sf->cxt); print_all_devices_freespace(sf->cxt);
return 0; return fail;
} }
/* /*
...@@ -946,13 +950,16 @@ static int command_dump(struct sfdisk *sf, int argc, char **argv) ...@@ -946,13 +950,16 @@ static int command_dump(struct sfdisk *sf, int argc, char **argv)
if (rc) if (rc)
err(EXIT_FAILURE, _("cannot open %s"), devname); err(EXIT_FAILURE, _("cannot open %s"), devname);
if (!fdisk_has_label(sf->cxt))
errx(EXIT_FAILURE, _("%s: does not contain a recognized partition table"), devname);
dp = fdisk_new_script(sf->cxt); dp = fdisk_new_script(sf->cxt);
if (!dp) if (!dp)
err(EXIT_FAILURE, _("failed to allocate dump struct")); err(EXIT_FAILURE, _("failed to allocate dump struct"));
rc = fdisk_script_read_context(dp, NULL); rc = fdisk_script_read_context(dp, NULL);
if (rc) if (rc)
err(EXIT_FAILURE, _("failed to dump partition table")); errx(EXIT_FAILURE, _("%s: failed to dump partition table"), devname);
if (sf->json) if (sf->json)
fdisk_script_enable_json(dp, 1); fdisk_script_enable_json(dp, 1);
......
...@@ -53,7 +53,7 @@ will truncate it and print a warning message. ...@@ -53,7 +53,7 @@ will truncate it and print a warning message.
Specify a new \fIUUID\fR for the device. Specify a new \fIUUID\fR for the device.
The \fI UUID\fR The \fI UUID\fR
must be in the standard 8-4-4-4-12 character format, such as is output by must be in the standard 8-4-4-4-12 character format, such as is output by
.BR uuidgen (1) . .BR uuidgen (1).
.PP .PP
.SH AUTHOR .SH AUTHOR
.B swaplabel .B swaplabel
...@@ -65,6 +65,6 @@ enables libblkid debug output. ...@@ -65,6 +65,6 @@ enables libblkid debug output.
The swaplabel command is part of the util-linux package and is available from The swaplabel command is part of the util-linux package and is available from
ftp://ftp.kernel.org/pub/linux/utils/util-linux/. ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
.SH SEE ALSO .SH SEE ALSO
.BR uuidgen (1),
.BR mkswap (8), .BR mkswap (8),
.BR swapon (8), .BR swapon (8)
.BR uuidgen (1)
...@@ -20,5 +20,5 @@ int get_linux_version (void) ...@@ -20,5 +20,5 @@ int get_linux_version (void)
if (n < 1 || n > 3) if (n < 1 || n > 3)
return kver = 0; return kver = 0;
return kver = KERNEL_VERSION(x, y, y); return kver = KERNEL_VERSION(x, y, z);
} }
...@@ -170,11 +170,11 @@ Any other use of the hash character is not interpreted as introducing ...@@ -170,11 +170,11 @@ Any other use of the hash character is not interpreted as introducing
a comment. a comment.
.SH FILES .SH FILES
.B $XDG_CONFIG_HOME/terminal-colors.d .I $XDG_CONFIG_HOME/terminal-colors.d
.br .br
.B $HOME/.config/terminal-colors.d .I $HOME/.config/terminal-colors.d
.br .br
.B /etc/terminal-colors.d .I /etc/terminal-colors.d
.SH ENVIRONMENT .SH ENVIRONMENT
.IP TERMINAL_COLORS_DEBUG=all .IP TERMINAL_COLORS_DEBUG=all
......
...@@ -224,10 +224,17 @@ LTLIBOBJS = @LTLIBOBJS@ ...@@ -224,10 +224,17 @@ LTLIBOBJS = @LTLIBOBJS@