]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Karel Zak [Wed, 7 Nov 2012 13:34:51 +0000 (14:34 +0100)]
lsblk: add TRANsport to --scsi output
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 7 Nov 2012 13:25:32 +0000 (14:25 +0100)]
lsblk: don't ignore disk device
Signed-off-by: Karel Zak <kzak@redhat.com>
Milan Broz [Fri, 2 Nov 2012 17:56:31 +0000 (18:56 +0100)]
lsblk: Add --scsi switch
The --scsi switch prints similar information to lsscsi command.
Signed-off-by: Milan Broz <mbroz@redhat.com>
Milan Broz [Fri, 2 Nov 2012 17:56:30 +0000 (18:56 +0100)]
lsblk: Add vendor column
Signed-off-by: Milan Broz <mbroz@redhat.com>
Milan Broz [Fri, 2 Nov 2012 17:56:29 +0000 (18:56 +0100)]
lsblk: Add revision column
Signed-off-by: Milan Broz <mbroz@redhat.com>
Michal Schmidt [Mon, 29 Oct 2012 22:33:01 +0000 (23:33 +0100)]
agetty: fix autodetection for TERM
open_tty() autodetects whether to set TERM to "linux" or "vt102", but it
can apply the result only if op->term is still NULL.
Davidlohr Bueso [Sat, 27 Oct 2012 17:23:47 +0000 (19:23 +0200)]
gpt: create empty disklabels
This patch enables creating a new, empty, GPT disklabel from either
an empty disk or one that already has a disklabel. For this
purpose, a 'g' option is added to the main menu and is visible to all
labels. Here's an example for a scsi_debug device (/dev/sdb):
...
Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0x20a614c8.
3696: fdisk: CONTEXT: zeroize in-memory first sector buffer
Command (m for help): g
3696: fdisk: LABEL: changing to gpt label
3696: fdisk: CONTEXT: zeroize in-memory first sector buffer
3696: fdisk: LABEL: created new empty GPT disklabel (GUID:
D4EA0706 -F011-46DC-B7DE-
6A72C7090AF8 )
Command (m for help): w
The partition table has been altered!
...
Acked-by: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Davidlohr Bueso [Sat, 27 Oct 2012 17:23:36 +0000 (19:23 +0200)]
fdisk: gpt: write entire first sector
We were writing only 1 byte in LBA0, and GPT requires dealing with an entire
sector. This bug wasn't affecting when dealing with already existing devices
with GPT as we weren't writing an important part of the first sector, thus
leaving it unchanged. Also use write_all() wrapper from all-io.h
Acked-by: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Karel Zak [Fri, 2 Nov 2012 11:07:36 +0000 (12:07 +0100)]
build-sys: cleanup cpu_set_t usage
- make taskset depend on cpu_set_t
- make cpuset.c optional for libcommon and lib/path.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 2 Nov 2012 08:17:49 +0000 (09:17 +0100)]
sfdisk: fix formatting typo in man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 1 Nov 2012 12:03:28 +0000 (13:03 +0100)]
su: fix stupid typo
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 1 Nov 2012 11:01:52 +0000 (12:01 +0100)]
build-sys: move runuser(1) to sbin dir
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 13 Sep 2012 09:58:00 +0000 (11:58 +0200)]
runuser: add -u to not execute shell
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 24 Oct 2012 21:59:04 +0000 (23:59 +0200)]
mount: supports paths canonicalization for alternative fstabs
# mount --fstab /path/my.fstab
has to support standard operations with paths.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 24 Oct 2012 21:44:11 +0000 (23:44 +0200)]
libmount: support loopdevs in mnt_table_is_fs_mounted()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 Oct 2012 13:45:50 +0000 (15:45 +0200)]
libmount: tiny refactoring in mnt_table_is_fs_mounted()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 Oct 2012 13:10:26 +0000 (15:10 +0200)]
fdisk: fix compiler warning [-Wpointer-arith] and floating point exception
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 Oct 2012 10:40:39 +0000 (12:40 +0200)]
misc: make readlink() usage more robust
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 Oct 2012 10:21:37 +0000 (12:21 +0200)]
lsblk: use new sysfs functions, clean up get_transport()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 Oct 2012 10:12:07 +0000 (12:12 +0200)]
lib/sysfs: add SCSI link functions
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 Oct 2012 09:32:55 +0000 (11:32 +0200)]
lib/sysfs: add functions for SCSI host attributes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 Oct 2012 08:57:59 +0000 (10:57 +0200)]
include/sysfs: add SCSI host:channel:target:lun support
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 Oct 2012 08:56:23 +0000 (10:56 +0200)]
lib/tt: don't ignore "extreme" columns if an free space is available
Signed-off-by: Karel Zak <kzak@redhat.com>
Milan Broz [Fri, 19 Oct 2012 12:10:41 +0000 (14:10 +0200)]
lsblk: add SCSI transport type attribute
Patch adds "SCSI transport layer" similar attribute to "lsscsi -t".
This is useful for script where you want to distinguish e.g. FC, iSCSI
or USB devices from local disks.
Detection logic is quite simplified in comparison to lsscsi but it
should provide the same output (except detailed transport attributes).
Signed-off-by: Milan Broz <mbroz@redhat.com>
Milan Broz [Fri, 19 Oct 2012 12:10:40 +0000 (14:10 +0200)]
lsblk: add SCSI H:C:T:L attribute
For block devices it is sometimes useful to print SCSI device ID"
Host:Channel:Target:LUN.
Patch adds column name HCTL which can be used in lsblk.
Signed-off-by: Milan Broz <mbroz@redhat.com>
Milan Broz [Fri, 19 Oct 2012 12:10:39 +0000 (14:10 +0200)]
lsblk: add parent kernel name column
For raw output used in scripts it is sometimes necessary
to reconstruct tree of devices.
Parent kernel name (PKNAME) provides needed information
to do that easily.
Signed-off-by: Milan Broz <mbroz@redhat.com>
Karel Zak [Mon, 22 Oct 2012 11:13:02 +0000 (13:13 +0200)]
login: fix compiler warning [-Wunused-result]
It's probably unnecessary paranoia, but let's check if we're able to
restore the original IDs after ~/.hushlogin file check.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 22 Oct 2012 09:03:09 +0000 (11:03 +0200)]
include/c: move usleep() fallback to c.h
To make it available everywhere in code.
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Fri, 12 Oct 2012 21:13:05 +0000 (22:13 +0100)]
build-sys: remove gethostbyname() check
Removed as unnecessary, there are no references to gethostbyname() in
code.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Fri, 12 Oct 2012 21:11:16 +0000 (22:11 +0100)]
agetty: replace gethostbyname() with getaddrinfo()
The gethostbyname() is legacy function which may be withdrawn in a
future.
Reference: http://pubs.opengroup.org/onlinepubs/
009695399 /functions/gethostbyname.html
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Fri, 12 Oct 2012 20:28:41 +0000 (21:28 +0100)]
logger: replace gethostbyname() with getaddrinfo()
The gethostbyname() is legacy function which may be withdrawn in a
future.
Reference: http://pubs.opengroup.org/onlinepubs/
009695399 /functions/gethostbyname.html
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Fri, 12 Oct 2012 19:23:54 +0000 (20:23 +0100)]
libmount, eject: replace index() and rindex() with strrch() or strrchr()
Both index() and rindex() are legacy functions which may be withdrawn in
a future.
Reference: http://pubs.opengroup.org/onlinepubs/
009695399 /functions/index.html
Reference: http://pubs.opengroup.org/onlinepubs/
009695399 /functions/rindex.html
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Mon, 22 Oct 2012 08:10:55 +0000 (10:10 +0200)]
fsck.cramfs: compile with -DINCLUDE_FS_TESTS for make check
make check
sudo su -
cd tests
./run.sh cramfs
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Wed, 10 Oct 2012 18:14:43 +0000 (19:14 +0100)]
docs: add line breaks to whereis.1
Fix to tools script checkmans.sh warning.
testing: /home/src/util-linux/misc-utils/whereis.1
:120: warning [p 1, 10.8i, div `an-div', 0.0i]: can't break line
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Fri, 19 Oct 2012 14:58:11 +0000 (16:58 +0200)]
include/c: remove MAXHOSTNAMELEN macro
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 19 Oct 2012 14:56:57 +0000 (16:56 +0200)]
last: stop usig MAXHOSTNAMELEN
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 19 Oct 2012 14:27:58 +0000 (16:27 +0200)]
write: stop using MAXHOSTNAMELEN
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 19 Oct 2012 14:27:46 +0000 (16:27 +0200)]
agetty: stop using MAXHOSTNAMELEN
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 19 Oct 2012 14:27:29 +0000 (16:27 +0200)]
login: stop using MAXHOSTNAMELEN
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 19 Oct 2012 14:23:54 +0000 (16:23 +0200)]
include/xalloc: add xgethostname()
The new function allocates memory by xalloc() for hostname and
fill in the buffer by gethostname().
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Wed, 17 Oct 2012 19:26:14 +0000 (20:26 +0100)]
include/env: unify indentation
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Wed, 17 Oct 2012 19:16:06 +0000 (20:16 +0100)]
include/c: add get_hostname_max() inline function
Using sysconf(_SC_HOST_NAME_MAX) does not work everywhere. At such even
header values for hostname length should be preferred, and if nothing
else works guess the maxium being 64 bytes.
Based-on-code-by: Karel Zak <kzak@redhat.com>
CC: Mike Frysinger <vapier@gentoo.org>
References: http://www.spinics.net/lists/util-linux-ng/msg07050.html
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Davidlohr Bueso [Sun, 7 Oct 2012 14:34:08 +0000 (16:34 +0200)]
fdisk: gpt: use swap_efi_guid for new partitions
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Davidlohr Bueso [Sun, 7 Oct 2012 14:34:01 +0000 (16:34 +0200)]
fdisk: fix segfault when printing gpt raw data
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Davidlohr Bueso [Sun, 7 Oct 2012 14:33:45 +0000 (16:33 +0200)]
fdisk: api: improve some comments
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Davidlohr Bueso [Sun, 7 Oct 2012 14:33:37 +0000 (16:33 +0200)]
fdisk: api: propagate partition deletion to users
The generic fdisk_delete_partition() function returns 0 when a partition
is correctly deleted, otherwise it's corresponding error (negative values).
This, however, does not include problems that can occur in actual label
specific contexts, so we need to propagate the corresponding return code,
back to the user visible api.
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Karel Zak [Thu, 18 Oct 2012 08:48:01 +0000 (10:48 +0200)]
docs: update deprecated file
The goal is to consolidate the very basic linux commands and minimize
dependence on another packages (e.g. shadow-utils). It seems better to
keep newgrp, vipw and vigr as non-deprecated for now. Maybe we will
found a way how to improve the code. We will see... :-)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Oct 2012 09:43:39 +0000 (11:43 +0200)]
lib/loopdev: check for /sys
The current loopdev code prefers /sys to get information about
loop devices. The old methods like scan /dev are fallback solution
only. Unfortunately, the code does not check if /sys is mounted.
Addresses: http://blog.flameeyes.eu/2012/10/sophistication-can-be-bad
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Oct 2012 09:42:21 +0000 (11:42 +0200)]
lib/loopdev: improve debug messages
Signed-off-by: Karel Zak <kzak@redhat.com>
Ondrej Oprala [Tue, 9 Oct 2012 10:32:55 +0000 (12:32 +0200)]
dmesg: Add a --color option to colorize error and panic messages
[kzak@redhat.com: - update man page
- colorize critical messages too]
Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Ondrej Oprala [Tue, 16 Oct 2012 14:39:00 +0000 (16:39 +0200)]
lib/color: add module for work with terminal colors
[kzak@redhat.com: - split from dmesg patch
- add more colors]
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Bill Pemberton [Wed, 10 Oct 2012 20:54:02 +0000 (16:54 -0400)]
mount: add long options for -L and -U to man page
The -L and -U flags both have long options too (--label and --uuid).
The usage() function will show them but the man page didn't list them.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Bill Pemberton [Wed, 10 Oct 2012 20:54:01 +0000 (16:54 -0400)]
mount: add -c abbreviation for --no-canonicalize to man page
The --no-canonicalize option can also be set using -c. The --help for
mount shows this option but the man page did not. Add -c to the man
page.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Bill Pemberton [Wed, 10 Oct 2012 20:54:00 +0000 (16:54 -0400)]
docs: remove hwclock --compare from TODO
commit
83765871ef0d6c554c46027577648b77c7351a78 added the --compare
option to hwclock so it can be removed from the TODO.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Bill Pemberton [Wed, 10 Oct 2012 20:53:59 +0000 (16:53 -0400)]
hwclock: add the --compare option to the man page
The compare option for hwclock was not listed in the man page. This
adds a simple decription of it.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Karel Zak [Tue, 16 Oct 2012 09:27:35 +0000 (11:27 +0200)]
docs: add su(1) btmp logging
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 15 Oct 2012 15:28:02 +0000 (17:28 +0200)]
tests: add mising "export" keyword
Signed-off-by: Karel Zak <kzak@redhat.com>
Gilles Espinasse [Sun, 14 Oct 2012 15:19:10 +0000 (17:19 +0200)]
tests: skip ipcs limits overflow when bc is not available
Found only this one while trying as-root tests
Signed-off-by: Gilles Espinasse <g.esp@free.fr>
Gilles Espinasse [Sun, 14 Oct 2012 13:52:55 +0000 (15:52 +0200)]
tests: fix ipcs basic limit when bc is not available
Skip basic limit test if bc is not available.
That happen to be the case when building from sources, following LFS book
Signed-off-by: Gilles Espinasse <g.esp@free.fr>
Raul Gutierrez Segales [Sat, 13 Oct 2012 15:59:31 +0000 (08:59 -0700)]
libmount: fixed comment about param
Signed-off-by: Raul Gutierrez Segales <rgs@itevenworks.net>
Karel Zak [Mon, 15 Oct 2012 15:01:30 +0000 (17:01 +0200)]
libblkid: fix compiler warning [-Wstrict-aliasing]
libblkid/src/superblocks/befs.c: In function 'get_uuid':
libblkid/src/superblocks/befs.c:353:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Mon, 8 Oct 2012 07:08:20 +0000 (08:08 +0100)]
swapon: remove loop declaration [smatch scan]
sys-utils/swapon.c:677:2: error: 'for' loop initial declarations are
only allowed in C99 mode
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 8 Oct 2012 07:08:19 +0000 (08:08 +0100)]
more: remove few memory leaks
The remaining memory leaks are related to ncurses internals, or the one
open file descriptor when user users 'q' to exit.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 8 Oct 2012 07:08:18 +0000 (08:08 +0100)]
more: align void in functions with prototypes, and remove void casts
If there is void in argument list at function prototype it is reasonable
to expect to see it also where the function is wrote. This change also
removes unnecessary return value void casting.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 8 Oct 2012 07:08:17 +0000 (08:08 +0100)]
more: fix coding style
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 8 Oct 2012 07:08:16 +0000 (08:08 +0100)]
pg: fix coding style
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 8 Oct 2012 07:08:15 +0000 (08:08 +0100)]
pg: do not turn off warnigns artificially
Compiler warnings often mean something, fiddling with them is not good
practise. Besides the 'proglem' removed macro tried to 'fix' does not
even occur when compiling with modern gcc.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 8 Oct 2012 07:08:14 +0000 (08:08 +0100)]
pg: use unistd.h STDOUT_FILENO
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 8 Oct 2012 07:08:13 +0000 (08:08 +0100)]
pg: add noreturn function attributes
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 8 Oct 2012 07:08:07 +0000 (08:08 +0100)]
ddate: remove from util-linux
See RedHat bug for reasons why the ddate is cleaned up. The reference is
where to get the command in future.
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=823156
References: https://github.com/bo0ts/ddate
Acked-by: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Mon, 8 Oct 2012 07:08:12 +0000 (08:08 +0100)]
pg: add const qualifiers where suitable
Includes a fix also to one assignment warning (see below).
text-utils/pg.c:1477:24: warning: assignment discards 'const' qualifier \
from pointer target type [enabled by default]
[kzak@redhat.com: - use const char rather than xstrdup() for static /bin/sh string]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Mon, 8 Oct 2012 07:08:11 +0000 (08:08 +0100)]
pg: use libc error printing facilities
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 8 Oct 2012 07:08:10 +0000 (08:08 +0100)]
pg: refactor argument handing
Add function parse_arguments(), which has the same code block that was in
over long, and too deeply intended, main().
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 8 Oct 2012 07:08:09 +0000 (08:08 +0100)]
docs: fix column.1 groff syntax error
Quote backslash which user is expected to see.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 8 Oct 2012 07:08:08 +0000 (08:08 +0100)]
column: add --output-separator option
The --output-separator option will allow user to define table column
separator. This will allow for example to write back same delimeter as
which was used as input separator, for example
column -t -s : -o : /etc/passwd
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 3 Oct 2012 22:14:26 +0000 (23:14 +0100)]
mkfs.minix: check numeric user inputs
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Tue, 2 Oct 2012 20:15:18 +0000 (21:15 +0100)]
pg: check numeric user inputs
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Tue, 2 Oct 2012 20:15:17 +0000 (21:15 +0100)]
swapon: clarify swapon.8 priority option
Value -1 is valid argument for -p, even though it might not make much
sense as the -1 is in use when priority is not specified at all.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Tue, 2 Oct 2012 20:15:16 +0000 (21:15 +0100)]
swapon: check numeric user inputs
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Tue, 2 Oct 2012 18:43:59 +0000 (19:43 +0100)]
docs: align blkdiscard.8 with how-to-man-page.txt
* Add spaces after dots (English spacing).
* Remove use of inline emphasis where possible.
* Use mail and url macros.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Mon, 15 Oct 2012 10:38:09 +0000 (12:38 +0200)]
wipefs: use O_EXCL
Address: https://bugzilla.redhat.com/show_bug.cgi?id=865961
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 15 Oct 2012 09:10:50 +0000 (11:10 +0200)]
libmount: don't use umount optimization for -l or -f
The options -l (lazy) and -f (force) means that the mountpoint may be
unreadable (for example because NFS server is unreadable). So we
should not try to be smart in this case and we should try to minimize
number of situations when stat() or readlink() is used for the
mountpoint.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Oct 2012 11:06:01 +0000 (13:06 +0200)]
build-sys: clean update-potfiles script
- use only sed(1)
- remove config.h from the result
- remove samples/, tests/, util-linu-*/ ("make ditcheck" product)
directories from the result
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Oct 2012 11:05:20 +0000 (13:05 +0200)]
build-sys: remove --enable-gtk-doc from make check
Signed-off-by: Karel Zak <kzak@redhat.com>
Mike Frysinger [Wed, 10 Oct 2012 04:29:54 +0000 (00:29 -0400)]
sfdisk: fix aliasing warnings
Compiles down to the same code.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Wed, 10 Oct 2012 04:22:38 +0000 (00:22 -0400)]
md5: fix strict aliasing warnings
This is the same fix as was merged in gcc/binutils where this code
appears to originate from.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Milan Broz [Fri, 5 Oct 2012 16:37:40 +0000 (18:37 +0200)]
tests: fix mount move test to work with shared mount
If parent mount for test directory is mounted with shared flag,
move mount test fails because kernel rejects mount move operation.
Use another directory level and explicitly make parent mount private.
(All "modern" systems using system have mounts shared for some reason.)
Signed-off-by: Milan Broz <mbroz@redhat.com>
Milan Broz [Fri, 5 Oct 2012 16:37:39 +0000 (18:37 +0200)]
tests: ignore test if kernel doesn't support minix fs
Minix mount test returs failure if kernel have no minix support,
minix: mkfs ... FAILED (minix/mkfs)
ignore test result instead in this case.
Signed-off-by: Milan Broz <mbroz@redhat.com>
Milan Broz [Fri, 5 Oct 2012 16:37:38 +0000 (18:37 +0200)]
tests: fix timezone for cramfs
cramfs test need explicitly set timezone otherwise
ls diff fails with
cramfs: mkfs checksums ... FAILED (cramfs/mkfs)
Signed-off-by: Milan Broz <mbroz@redhat.com>
Mike Frysinger [Fri, 5 Oct 2012 01:34:34 +0000 (21:34 -0400)]
fix bold style of man page references
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Marcin Juszkiewicz [Wed, 3 Oct 2012 09:31:19 +0000 (10:31 +0100)]
fdisk: add AArch64 support
Attached patch fixed build problem when util-linux is built for AArch64
architecture.
Karel Zak [Tue, 9 Oct 2012 09:56:35 +0000 (11:56 +0200)]
mount: add verbose messages
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=864227
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 5 Oct 2012 18:35:34 +0000 (20:35 +0200)]
libmount: fix umount file.img
The umount optimization (commit
9cc03553f7b8494c7193024eec6e13b903eb2eec )
has to be disabled if the umount argument is not a directory.
Reported-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 5 Oct 2012 10:07:10 +0000 (12:07 +0200)]
login: reuse DEAD_PROCESS utmp entries
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=858009
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 3 Oct 2012 09:41:52 +0000 (11:41 +0200)]
hwclock: fix in usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Bjørn Mork [Mon, 1 Oct 2012 23:54:49 +0000 (01:54 +0200)]
dmesg: fix console-level off-by-one
commit
f06ec64f dmesg; support level names (e.g. --console-level=alert)
introduced an off-by-one error. The kernel will print messages with
a *higher* level than the console-level. The bug made it impossible to
set the level for debugging, like it is documented in e.g
Documentation/networking/netconsole.txt :
nemi:/tmp# dmesg -n 8
dmesg: unknown level '8'
And attempting to set the "emerg" level would result in an invalid 0 value:
nemi:/tmp# dmesg -n emerg
dmesg: klogctl failed: Invalid argument
Restoring the old behaviour for numeric levels, and mapping the level
names so that "dmesg -n debug" behaves as expected: logging everything
at level "debug" and higher.
[kzak@redhat.com: - add comment to parse_level()]
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Sat, 29 Sep 2012 09:21:59 +0000 (10:21 +0100)]
column: describe change of separator behavior in man page bugs section
Add to manual page how to achieve old behavior, just in case someone
relies on buggy behavior of the command.
[kzak@redhat.com: - remove unnecessary info from the man page :-)]
Reported-by: Padraig Brady <P@draigBrady.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Vitezslav Cizek [Mon, 1 Oct 2012 12:48:16 +0000 (14:48 +0200)]
su: fixed a typo in pam error message
Signed-off-by: Vitezslav Cizek <vcizek@suse.cz>
Pádraig Brady [Wed, 26 Sep 2012 21:20:07 +0000 (22:20 +0100)]
column: clarify the --separator option
Indicate that the string is a set,
which also clarifies that it's only
significant when parsing the input.
Sami Kerola [Wed, 26 Sep 2012 20:45:36 +0000 (21:45 +0100)]
column: make defined separator to be non-greedy
This patch changes interpretation of subsequent delimeter interpretation.
Earlier version merged columns that had null string as content together,
which lead to output as visualized below.
$ printf "a:b:c\n1::3\n" | column -t -s ':'
a b c
1 3
The number 3 has wrong column, which this patch takes care of, and alters
the output following way.
$ printf "a:b:c\n1::3\n" | column -t -s ':'
a b c
1 3
This patch does not alter the default case, e.g., subsequent white spaces
are understood as separator of the same field, and the beginning of line
white spaces are being ignored together.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>