]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
12 years agobuild-sys: release++ (v2.20.1) stable/v2.20 v2.20.1
Karel Zak [Thu, 20 Oct 2011 08:08:07 +0000 (10:08 +0200)] 
build-sys: release++ (v2.20.1)

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodocs: add Release Notes
Karel Zak [Thu, 20 Oct 2011 08:07:38 +0000 (10:07 +0200)] 
docs: add Release Notes

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodocs: update AUTHORS file
Karel Zak [Wed, 19 Oct 2011 07:21:36 +0000 (09:21 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agopo: merge changes
Karel Zak [Thu, 20 Oct 2011 08:17:00 +0000 (10:17 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoswitch_root: handle /run and do not mount over existing mounts
Harald Hoyer [Thu, 20 Oct 2011 08:05:20 +0000 (10:05 +0200)] 
switch_root: handle /run and do not mount over existing mounts

Handle /run just like /dev, /sys and /proc

Do not mount move, if there is already something mounted on the
destination folder.

Signed-off-by: Harald Hoyer <harald@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agopo: update ja.po (from translationproject.org)
Takeshi Hamasaki [Tue, 18 Oct 2011 14:21:26 +0000 (16:21 +0200)] 
po: update ja.po (from translationproject.org)

12 years agomount: remove superfluous "an" under ext4 mount options in mount.8
Frederik \"Freso\" S. Olesen [Wed, 7 Sep 2011 21:02:19 +0000 (23:02 +0200)] 
mount: remove superfluous "an" under ext4 mount options in mount.8

Signed-off-by: Frederik "Freso" S. Olesen <freso@freso.dk>
12 years agomount: remounting tmpfs read-write hangs (selinux)
Karel Zak [Mon, 17 Oct 2011 16:58:03 +0000 (18:58 +0200)] 
mount: remounting tmpfs read-write hangs (selinux)

Reported-by: Petr Pisar <ppisar@redhat.com>
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=746705
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibmount: unable to umount nfs shares using the force option
Karel Zak [Mon, 17 Oct 2011 11:27:21 +0000 (13:27 +0200)] 
libmount: unable to umount nfs shares using the force option

Reported-by: Federico Simoncelli <fsimonce@redhat.com>
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=745746
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofstrim: fix section number in referral to manpage
Petr Uzel [Thu, 13 Oct 2011 13:10:45 +0000 (15:10 +0200)] 
fstrim: fix section number in referral to manpage

Reported-by: Roeland Jansen <roeland@linux-it.nl>
Addresses: https://bugzilla.novell.com/show_bug.cgi?id=723877

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
12 years agortcwake: fix crash (invalid free)
Petr Uzel [Thu, 13 Oct 2011 12:40:31 +0000 (14:40 +0200)] 
rtcwake: fix crash (invalid free)

~ $ rtcwake -d X -s 10
*** glibc detected *** rtcwake: munmap_chunk(): invalid pointer: 0x00007fff839253c3 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x733b6)[0x7f582677a3b6]
rtcwake[0x4022d5]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x7f5826725bfd]
rtcwake[0x4016b9]
======= Memory map: ========
<SNIP>

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
12 years agofdisk: don't shorten long path to disk device
Karel Zak [Wed, 12 Oct 2011 08:15:58 +0000 (10:15 +0200)] 
fdisk: don't shorten long path to disk device

Reported-by: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agomountpoint: support symbolic and relative paths
Karel Zak [Tue, 11 Oct 2011 09:26:31 +0000 (11:26 +0200)] 
mountpoint: support symbolic and relative paths

Reported-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agomountpoint: fallback on stat when /proc isn't mounted
Karel Zak [Tue, 11 Oct 2011 08:47:44 +0000 (10:47 +0200)] 
mountpoint: fallback on stat when /proc isn't mounted

Reported-by: <dreisner@archlinux.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agomountpoint: return dev_t from dir_to_device
Dave Reisner [Sun, 9 Oct 2011 03:31:50 +0000 (23:31 -0400)] 
mountpoint: return dev_t from dir_to_device

The string returned from this function was never of much use other than
to stat the path when the user requested a major:minor pair beyond the
true/false exit. Save some processing and directly returning the dev_t
on success, and an impossible value on failure.

[kzak@redhat.com: - use 0 as dir_to_device() return value on failure]

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agobuild-sys: check scanf %ms modifier
Karel Zak [Sat, 1 Oct 2011 13:33:53 +0000 (15:33 +0200)] 
build-sys: check scanf %ms modifier

Without the check libmount builds on systems that has older than 2.7
glibc are silently unsuccessful.  The missing %ms modifier will, at
least, result on such system missing output of findmnt and lsblk
commands.  If either %ms or %as modifiers are present the libmount
build is disabled.

Based on patch from: Sami Kerola <kerolasa@iki.fi>

Signed-off-by: Karel Zak <kzak@redhat.com>
Conflicts:

include/c.h

12 years agobuild-sys: rename BUILD_BUG_ON_ZERO definition
Sami Kerola [Sat, 1 Oct 2011 11:58:51 +0000 (13:58 +0200)] 
build-sys: rename BUILD_BUG_ON_ZERO definition

Definition name is changed to UL_BUILD_BUG_ON_ZERO to avoid collision
with a system header.

../include/c.h:72:1: warning: "BUILD_BUG_ON_ZERO" redefined
In file included from /usr/include/sys/sysinfo.h:25,
                 from dmesg.c:16:
/usr/include/linux/kernel.h:34:1: warning: this is the location of the previous definition

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agoinclude,xalloc: check for NULL before calling strdup
Dave Reisner [Thu, 29 Sep 2011 18:56:41 +0000 (14:56 -0400)] 
include,xalloc: check for NULL before calling strdup

This fixes a segfault in mount (and possibly elsewhere) when invoked
without a -t parameter.

Broken in 7ef9fd7 when the common xalloc.h libs were introduced.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
12 years agosfdisk: use unsigned long long to internally represent sector number
Petr Uzel [Mon, 19 Sep 2011 13:29:14 +0000 (15:29 +0200)] 
sfdisk: use unsigned long long to internally represent sector number

Unsigned long is only 4 bytes long on i586, which is not enough to
represent sector number on todays large disks. Use unsigned long long,
which is 8 bytes long, to store the sector numbers internally, so that
we could later make some sanity checks and warn the user if the sector
numbers exceed the limits imposed by DOS partition table format.

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
12 years agosfdisk: introduce get_ull() function
Petr Uzel [Mon, 19 Sep 2011 13:29:13 +0000 (15:29 +0200)] 
sfdisk: introduce get_ull() function

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
12 years agosfdisk: get_disksize() returns long long
Petr Uzel [Mon, 19 Sep 2011 13:29:12 +0000 (15:29 +0200)] 
sfdisk: get_disksize() returns long long

unsigned long is 4 bytes long on i586, which is not enough for big
HDD's with 512B sectors. Use unsigned long long, which is 8 bytes.

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
12 years agosfdisk: make the cylinder boundary check less fatal
Petr Uzel [Mon, 19 Sep 2011 13:29:11 +0000 (15:29 +0200)] 
sfdisk: make the cylinder boundary check less fatal

If the specified format is not cylinders, make the cylinder boundary
check only print a warning and proceed anyways.

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
12 years agosfdisk: file descriptor is of int type
Petr Uzel [Mon, 19 Sep 2011 13:29:09 +0000 (15:29 +0200)] 
sfdisk: file descriptor is of int type

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
12 years agoblkid: fix unfinished sentence for -l option in blkid.8
Dave Reisner [Sat, 17 Sep 2011 21:20:47 +0000 (17:20 -0400)] 
blkid: fix unfinished sentence for -l option in blkid.8

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
12 years agouuidd: Add missing break to option case statement
Eric Sandeen [Sat, 17 Sep 2011 00:53:50 +0000 (19:53 -0500)] 
uuidd: Add missing break to option case statement

Specifying the "-n" option to uuidd would incorrectly
fall through to the "-p" case, and assign that number to
the pidfile_path.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
12 years agolibmount: fix use of logical '&&' with constant operand
Francesco Cosoleto [Thu, 15 Sep 2011 14:17:46 +0000 (16:17 +0200)] 
libmount: fix use of logical '&&' with constant operand

Found by clang.

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
12 years agolib,loopdev: fix use of logical '&&' with constant operand
Francesco Cosoleto [Thu, 15 Sep 2011 14:17:45 +0000 (16:17 +0200)] 
lib,loopdev: fix use of logical '&&' with constant operand

Found by clang.

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
12 years agoflock: make flock(1) work on NFSv4
Petr Uzel [Thu, 15 Sep 2011 08:19:17 +0000 (10:19 +0200)] 
flock: make flock(1) work on NFSv4

To pleace an exclusive lock on a file, NFSv4 requires
the file to be opened RW because of the emulation of flock()
by fcntl():

http://www.spinics.net/lists/linux-nfs/msg18502.html

So instead of O_RDONLY, open the file in O_RDWR if access()
indicates it is possible (unless shared lock is requested).

From: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
12 years agoagetty: test ECHO on c_lflag
Karel Zak [Mon, 26 Sep 2011 10:34:10 +0000 (12:34 +0200)] 
agetty: test ECHO on c_lflag

Reported-by: xinglp <xinglp@gmail.com>
Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=739522
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agomount: check for target before source on remount
Karel Zak [Tue, 13 Sep 2011 20:59:39 +0000 (22:59 +0200)] 
mount: check for target before source on remount

Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=737091
Reported-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolib: do not attempt to close(0) in sysfs_deinit()
Petr Uzel [Tue, 13 Sep 2011 09:08:46 +0000 (11:08 +0200)] 
lib: do not attempt to close(0) in sysfs_deinit()

If the 'open' fails we 'goto err' which runs 'sysfs_deinit()' on a 'cxt'
which hasn't been fully initialised. The 'dir_fd' is still 0, so
sysfs_deinit calls "close(0)".

Addresses: https://bugzilla.novell.com/show_bug.cgi?id=714151
Reported-by: Diego Ercolani <diego.ercolani@gmail.com>
Analysed-by: Neil Brown <nfbrown@suse.com>
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
12 years agoblkid: potential null derefence [smatch scan]
Karel Zak [Mon, 12 Sep 2011 14:10:45 +0000 (16:10 +0200)] 
blkid: potential null derefence [smatch scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agokill: potential null derefence [smatch scan]
Karel Zak [Mon, 12 Sep 2011 13:40:24 +0000 (15:40 +0200)] 
kill: potential null derefence [smatch scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibmount: potential null derefence [smatch scan]
Karel Zak [Mon, 12 Sep 2011 13:35:33 +0000 (15:35 +0200)] 
libmount: potential null derefence [smatch scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibmount: variable dereferenced before check [smatch scan]
Karel Zak [Mon, 12 Sep 2011 13:33:04 +0000 (15:33 +0200)] 
libmount: variable dereferenced before check [smatch scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibmount: redundant null check on calling free() [smatch scan]
Karel Zak [Mon, 12 Sep 2011 13:32:35 +0000 (15:32 +0200)] 
libmount: redundant null check on calling free() [smatch scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibmount: use unsigned int for bitfields [smatch scan]
Karel Zak [Mon, 12 Sep 2011 13:28:42 +0000 (15:28 +0200)] 
libmount: use unsigned int for bitfields [smatch scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoinclude,c.h: include fcntl.h before check for O_CLOEXEC [smatch scan]
Karel Zak [Mon, 12 Sep 2011 11:53:10 +0000 (13:53 +0200)] 
include,c.h: include fcntl.h before check for O_CLOEXEC [smatch scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofdformat: fix uninitialized variable
Francesco Cosoleto [Sat, 10 Sep 2011 17:06:09 +0000 (19:06 +0200)] 
fdformat: fix uninitialized variable

Spotted by EKOPath compiler.

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
12 years agobuild-sys: ddate typo fixed
Sami Kerola [Sat, 10 Sep 2011 08:38:05 +0000 (10:38 +0200)] 
build-sys: ddate typo fixed

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agolscpu: allow read_cache() to be called for offline cpus
Heiko Carstens [Tue, 6 Sep 2011 00:52:55 +0000 (02:52 +0200)] 
lscpu: allow read_cache() to be called for offline cpus

First check path before accessing files to be sure they actually exist. This is
necessary when also informations for offline CPUs will be printed.  Since we do
not necessarily know if "cpu is offline" means the same as "path does not
exist" just check for it.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
12 years agolscpu: simplify cache column output function
Heiko Carstens [Tue, 6 Sep 2011 00:52:54 +0000 (02:52 +0200)] 
lscpu: simplify cache column output function

Simplify the logic to "always print a ',' for each cache except if it is the
last one.  This is also a preparation patch for printing the cache column for
offline CPUs where it would print one colon too much because of the current
logic.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
12 years agolscpu: fix cache output for extended parsable output
Heiko Carstens [Tue, 6 Sep 2011 00:52:53 +0000 (02:52 +0200)] 
lscpu: fix cache output for extended parsable output

The extended parsable output prints a colon instead of comma between each
item. The case where a CPU doesn't belong to any cache was not converted.
Just fix this.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
12 years agolscpu: remove comma operator
Heiko Carstens [Tue, 6 Sep 2011 00:52:52 +0000 (02:52 +0200)] 
lscpu: remove comma operator

Fix typo where the comma operator has been introduced.
Use a semicolon instead so we end up with simple assignment expressions.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
12 years agolibuuid: add limits.h include for OPEN_MAX
maximilian attems [Tue, 6 Sep 2011 22:41:25 +0000 (00:41 +0200)] 
libuuid: add limits.h include for OPEN_MAX

Needed as definition for usage in close_all_fds().
Noticed on klibc build.

Signed-off-by: maximilian attems <max@stro.at>
12 years agoagetty: double equals sign typo in opentty()
Karel Zak [Wed, 7 Sep 2011 05:37:03 +0000 (07:37 +0200)] 
agetty: double equals sign typo in opentty()

Reported-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoscript: fix building with --disable-nls
Natanael Copa [Tue, 30 Aug 2011 11:50:28 +0000 (11:50 +0000)] 
script: fix building with --disable-nls

We should only include the libintl.h when NLS is requested.

This fixes issue when building util-linux with uClibc.

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agowrite: fix path for freopen()
Karel Zak [Tue, 6 Sep 2011 01:18:46 +0000 (03:18 +0200)] 
write: fix path for freopen()

Reported-by: xinglp <xinglp@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodmesg: remove extra space only after time stamp
Karel Zak [Fri, 2 Sep 2011 12:42:04 +0000 (14:42 +0200)] 
dmesg: remove extra space only after time stamp

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agobuild-sys: remove redundant __progname check
Karel Zak [Wed, 31 Aug 2011 15:10:31 +0000 (17:10 +0200)] 
build-sys: remove redundant __progname check

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodmesg: fix for non-CONFIG_PRINTK_TIME kernels
Karel Zak [Wed, 31 Aug 2011 10:28:39 +0000 (12:28 +0200)] 
dmesg: fix for non-CONFIG_PRINTK_TIME kernels

 * dmesg(1) incorrectly assumes that lines like "<6>\n"
   are broken.

 * it's more robust to assume the end of the record is "\n<"

 * print \n for empty lines

Reported-by: "Gabor Z. Papp" <gzp@papp.hu>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolscpu: use hypervisor generated topology information
Heiko Carstens [Wed, 10 Aug 2011 08:34:31 +0000 (10:34 +0200)] 
lscpu: use hypervisor generated topology information

The readable output prints also informations like cores per socket etc.
On newer kernel versions on s390 this information is available via
/proc/sysinfo. However it does not contain the layout of the guest but
the layout of the real machine.
Nevertheless this is better than random guessing with completely broken
numbers like we have it now on s390. If the information is not available
we fall back to old mechanism with more or less random numbers.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolscpu: fix fallback nthreads calculation
Heiko Carstens [Wed, 10 Aug 2011 08:34:29 +0000 (10:34 +0200)] 
lscpu: fix fallback nthreads calculation

The fallback calculation of nthreads did not consider books.
In order to avoid division/multiply by/with zero make sure each number
used is at least "1".

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
12 years agolscpu: fix cpu map array sizes
Heiko Carstens [Wed, 10 Aug 2011 08:34:28 +0000 (10:34 +0200)] 
lscpu: fix cpu map array sizes

Completely virtualized architectures like s390 may have multiple
virtual sockets and/or cores where each of them has a different
number of cores and cpus.
So the general assumption within the allocation scheme that e.g.
each socket contains the same number of cores is not necessarily
true. To make sure the arrays are always large enough we simply
allocate enough memory so that each array could hold cpu masks
for all present cpus.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
12 years agolscpu: fix s390 bogomips detection coding style
Heiko Carstens [Wed, 10 Aug 2011 08:34:27 +0000 (10:34 +0200)] 
lscpu: fix s390 bogomips detection coding style

Just make the s390 bogomips detection line look like all others.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
12 years agosfdisk.8: fix formatting
Petr Uzel [Tue, 30 Aug 2011 08:17:24 +0000 (10:17 +0200)] 
sfdisk.8: fix formatting

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
12 years agoraw: fix shadowing of minor function
maximilian attems [Mon, 29 Aug 2011 16:59:35 +0000 (18:59 +0200)] 
raw: fix shadowing of minor function

Noticed while compiling against klibc:
raw.c: In function ‘query’:
raw.c:219:16: error: called object ‘minor’ is not a function

Rename variable from minor to minor_raw.
While at it mark the functions as static and small whitespace fixes
as asked by checkpatch.

[kzak@redhat.com: - rename variable at line 241 too]

Signed-off-by: maximilian attems <max@stro.at>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agobuild-sys: don't install ru/ddate.1 if ddate disabled
Karel Zak [Tue, 30 Aug 2011 07:46:10 +0000 (09:46 +0200)] 
build-sys: don't install ru/ddate.1 if ddate disabled

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agobuild-sys: release++ v2.20 v2.20
Karel Zak [Mon, 29 Aug 2011 11:03:13 +0000 (13:03 +0200)] 
build-sys: release++ v2.20

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodocs: update v2.20 ReleaseNotes
Karel Zak [Mon, 29 Aug 2011 10:43:05 +0000 (12:43 +0200)] 
docs: update v2.20 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodocs: update AUTHORS file
Karel Zak [Mon, 29 Aug 2011 10:29:46 +0000 (12:29 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agopo: merge changes
Karel Zak [Mon, 29 Aug 2011 10:23:30 +0000 (12:23 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Mon, 29 Aug 2011 10:13:10 +0000 (12:13 +0200)] 
po: update pl.po (from translationproject.org)

12 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Mon, 29 Aug 2011 10:13:10 +0000 (12:13 +0200)] 
po: update nl.po (from translationproject.org)

12 years agopo: update ja.po (from translationproject.org)
Takeshi Hamasaki [Mon, 29 Aug 2011 10:13:10 +0000 (12:13 +0200)] 
po: update ja.po (from translationproject.org)

12 years agopo: update de.po (from translationproject.org)
Philipp Thomas [Mon, 29 Aug 2011 10:13:10 +0000 (12:13 +0200)] 
po: update de.po (from translationproject.org)

12 years agopo: update cs.po (from translationproject.org)
Petr Písař [Mon, 29 Aug 2011 10:13:10 +0000 (12:13 +0200)] 
po: update cs.po (from translationproject.org)

12 years agolsblk: add note to the man page
Karel Zak [Mon, 29 Aug 2011 09:33:27 +0000 (11:33 +0200)] 
lsblk: add note to the man page

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodocs: tweak the formatting and wording of several disk-utils man pages
Benno Schulenberg [Sun, 28 Aug 2011 09:14:42 +0000 (11:14 +0200)] 
docs: tweak the formatting and wording of several disk-utils man pages

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
12 years agoionice: adjust synopsis and wording and formatting on the man page
Benno Schulenberg [Fri, 26 Aug 2011 14:40:36 +0000 (16:40 +0200)] 
ionice: adjust synopsis and wording and formatting on the man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
12 years agolook: adjust the formatting and some wording of the man page
Benno Schulenberg [Fri, 26 Aug 2011 13:48:44 +0000 (15:48 +0200)] 
look: adjust the formatting and some wording of the man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
12 years agovipw: (man page) uniformize header and footer, tweak the formatting
Benno Schulenberg [Fri, 26 Aug 2011 08:54:03 +0000 (10:54 +0200)] 
vipw: (man page) uniformize header and footer, tweak the formatting

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
12 years agodocs: tweak the formatting and wording of some text-utils man pages
Benno Schulenberg [Thu, 25 Aug 2011 20:26:13 +0000 (22:26 +0200)] 
docs: tweak the formatting and wording of some text-utils man pages

Highlight the program name, use proper lowercase, remove
unneeded commas and articles, and add helpful hyphenation.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
12 years agodocs: also uniformize headers and footers of troff-formatted man pages
Benno Schulenberg [Tue, 23 Aug 2011 20:10:49 +0000 (22:10 +0200)] 
docs: also uniformize headers and footers of troff-formatted man pages

Add two spaces as the required third argument of the date line to make
the specified date get used instead of today's date.  Incorporate the
section number into the page title, then use an empty section number,
so that specifying an explicit section/volume name will work.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
12 years agosetarch: add --uname-2.6 option for personality flag UNAME26
Ben Hutchings [Tue, 23 Aug 2011 06:00:01 +0000 (07:00 +0100)] 
setarch: add --uname-2.6 option for personality flag UNAME26

[kzak@redhat.com: - minor change in usage()]

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoflock: fix example in man page
Karel Zak [Mon, 29 Aug 2011 09:05:41 +0000 (11:05 +0200)] 
flock: fix example in man page

Reported-by: Pierre Gaston <pierre.gaston@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibmount: fix debug message
Karel Zak [Fri, 26 Aug 2011 08:49:38 +0000 (10:49 +0200)] 
libmount: fix debug message

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agosfdisk: make some tests conditional to !Linux
Giulio Orsero [Tue, 23 Aug 2011 10:19:38 +0000 (12:19 +0200)] 
sfdisk: make some tests conditional to !Linux

This patch makes the following tests/actions conditional to "!Linux":

- Force cylinders as format instead of MB, even if user asked for MB.
  This solves a bug where if you use "-L -uM", set 1 as starting MB
  and the disk is larger than a certain size (about 1GB) the partition
  would start at sector 1 instead of 1MB due to cyl rounding.

- Warn about partitions not starting/ending on cyl boundaries.

- Check if CHS is ok.

I used the "!Linux" notation since it was already used elsewhere in
the code.

Signed-off-by: Giulio Orsero <giulioo@pobox.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolib: [loopdev.c] correct qsort compare function
Karel Zak [Tue, 23 Aug 2011 10:01:12 +0000 (12:01 +0200)] 
lib: [loopdev.c] correct qsort compare function

Reported-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolosetup: correct qsort compare function
Andreas Schwab [Mon, 22 Aug 2011 21:15:03 +0000 (23:15 +0200)] 
losetup: correct qsort compare function

Return the correct value from comparing the operands.

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
12 years agodocs: drop the pluralization item with ngettext() in TODO file
Benno Schulenberg [Sat, 20 Aug 2011 09:33:38 +0000 (11:33 +0200)] 
docs: drop the pluralization item with ngettext() in TODO file

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
12 years agoscriptreplay: improve synopsis and formatting and wording in man page
Benno Schulenberg [Sat, 20 Aug 2011 09:29:50 +0000 (11:29 +0200)] 
scriptreplay: improve synopsis and formatting and wording in man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
12 years agopg: normalize formatting of the man page, and tweak some of its wording
Benno Schulenberg [Fri, 19 Aug 2011 20:38:46 +0000 (22:38 +0200)] 
pg: normalize formatting of the man page, and tweak some of its wording

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
12 years agouuidd: (man page) alphabetize the options
Benno Schulenberg [Fri, 19 Aug 2011 20:24:02 +0000 (22:24 +0200)] 
uuidd: (man page) alphabetize the options

12 years agouuidd: (man page) repair the snipped up description of option -T
Benno Schulenberg [Fri, 19 Aug 2011 20:14:37 +0000 (22:14 +0200)] 
uuidd: (man page) repair the snipped up description of option -T

Also use lower case and no equals sign for option arguments,
return to using normal formatting macros, and indent the example.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
12 years agodocs: uniformize the header and footer lines in man pages
Benno Schulenberg [Thu, 18 Aug 2011 20:18:34 +0000 (22:18 +0200)] 
docs: uniformize the header and footer lines in man pages

Use dates without the day, use the full month name, put "util-linux" in
the lower left corner, and "User Commands" or "System Administration"
at the top center.

Also improve here and there the one-line program description.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
12 years agodocs: update ReleaseNotes: fix typo in v2.20-ReleaseNotes
Bernhard Voelker [Thu, 18 Aug 2011 15:28:54 +0000 (17:28 +0200)] 
docs: update ReleaseNotes: fix typo in v2.20-ReleaseNotes

Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
12 years agodocs: update ReleaseNotes
Karel Zak [Thu, 18 Aug 2011 09:56:21 +0000 (11:56 +0200)] 
docs: update ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agobuild-sys: add --enable-ddate
Karel Zak [Thu, 18 Aug 2011 09:50:27 +0000 (11:50 +0200)] 
build-sys: add --enable-ddate

Don't build this crazy thing by default.

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agobuild-sys: rename --enable-partx to --disable-partx
Karel Zak [Thu, 18 Aug 2011 09:38:19 +0000 (11:38 +0200)] 
build-sys: rename --enable-partx to --disable-partx

Note the partx command is (and always was) enabled by default on Linux.

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoddate: fix St. Tib's Day in other languages
Karel Zak [Thu, 18 Aug 2011 09:15:22 +0000 (11:15 +0200)] 
ddate: fix St. Tib's Day in other languages

old version:
 $ LANG=de_DE.UTF8 ddate 29 2 2008
 St. Tib’s D, 3174 YOLD

new version:
 $ LANG=de_DE.UTF8 ddate 29 2 2008
 St. Tib’s Day, 3174 YOLD

Reported-by: Nick Erdmann <erdmann@date.upb.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agotests: grammar fixes
Davidlohr Bueso [Wed, 17 Aug 2011 15:51:19 +0000 (11:51 -0400)] 
tests: grammar fixes

Trivial change, "Cannot found" to "Cannot find".

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
12 years agolosetup: allow to use --verbose with --all
Karel Zak [Wed, 17 Aug 2011 14:40:05 +0000 (16:40 +0200)] 
losetup: allow to use --verbose with --all

Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agobuild-sys: release++ (v2.20-rc2) v2.20-rc2
Karel Zak [Tue, 16 Aug 2011 22:55:52 +0000 (00:55 +0200)] 
build-sys: release++ (v2.20-rc2)

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodocs: update v2.20 ReleaseNotes
Karel Zak [Tue, 16 Aug 2011 22:52:32 +0000 (00:52 +0200)] 
docs: update v2.20 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agopo: merge changes
Karel Zak [Tue, 16 Aug 2011 22:41:33 +0000 (00:41 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agopg: fix write_all() usage
Karel Zak [Tue, 16 Aug 2011 22:30:13 +0000 (00:30 +0200)] 
pg: fix write_all() usage

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agomkfs.minix: fix write_all() usage
Karel Zak [Tue, 16 Aug 2011 22:29:39 +0000 (00:29 +0200)] 
mkfs.minix: fix write_all() usage

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agosfdisk: fix typo in man page
Karel Zak [Tue, 16 Aug 2011 21:56:26 +0000 (23:56 +0200)] 
sfdisk: fix typo in man page

Reported-by: markus reichelt <ml@mareichelt.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
sk/sfdisk.8

12 years agosfdisk: slice help text into small chunks and improve its wording
Benno Schulenberg [Tue, 16 Aug 2011 18:53:21 +0000 (20:53 +0200)] 
sfdisk: slice help text into small chunks and improve its wording

[kzak@redhat.com: - use fputs(),
                  - use <var> convention]

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>