]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Karel Zak [Mon, 6 May 2013 17:11:28 +0000 (19:11 +0200)]
dmesg: support --color[={auto,always,never}]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 6 May 2013 17:07:23 +0000 (19:07 +0200)]
lib/colors: add support for auto, always and never modes
... to implement --color[=<when>]
Signed-off-by: Karel Zak <kzak@redhat.com>
Benno Schulenberg [Mon, 22 Apr 2013 08:06:36 +0000 (10:06 +0200)]
su: consistent angular brackets and lowercase in help text of 'su'
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Karel Zak [Mon, 6 May 2013 15:20:03 +0000 (17:20 +0200)]
libblkid: fix blkid_parse_tag_string() to ignore incomplete tags
fstab entry:
FOO= / btrfs defaults 1 1
Program received signal SIGABRT, Aborted.
0x00007f016ccd8819 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
(gdb) bt
at ../sysdeps/unix/sysv/linux/libc_fatal.c:196
Reported-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Benno Schulenberg [Fri, 19 Apr 2013 18:14:59 +0000 (20:14 +0200)]
textual: fixing typos in a warning and an error message
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Karel Zak [Fri, 26 Apr 2013 11:54:24 +0000 (13:54 +0200)]
cfdisk: fix ambiguous code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 26 Apr 2013 11:47:54 +0000 (13:47 +0200)]
build-sys: add --disable-setterm
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Sat, 13 Apr 2013 19:54:43 +0000 (20:54 +0100)]
libmount: (test) check writing to a file was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:55:01 +0000 (20:55 +0100)]
wall: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:55:00 +0000 (20:55 +0100)]
swapon: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:59 +0000 (20:54 +0100)]
setpriv: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:58 +0000 (20:54 +0100)]
fallocate: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:57 +0000 (20:54 +0100)]
swaplabel: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:56 +0000 (20:54 +0100)]
mkswap: unify write check to a file descriptor
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:55 +0000 (20:54 +0100)]
mkfs.minix: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:54 +0000 (20:54 +0100)]
mkfs.cramfs: unify write check to a file descriptor
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:53 +0000 (20:54 +0100)]
mkfs.bfs: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:52 +0000 (20:54 +0100)]
fsck.minix: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:51 +0000 (20:54 +0100)]
fsck.cramfs: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:50 +0000 (20:54 +0100)]
wdctl: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:49 +0000 (20:54 +0100)]
sfdisk: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:48 +0000 (20:54 +0100)]
cfdisk: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:47 +0000 (20:54 +0100)]
resizepart: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:46 +0000 (20:54 +0100)]
partx: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:45 +0000 (20:54 +0100)]
fdformat: check writing to a file descriptor was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:44 +0000 (20:54 +0100)]
include: add close_fd() for noticing write errors before close()
Essentially this helper function is similar to close_stream(), but for
file descriptors.
When a file descriptors are close()'d status of write is often
overlooked. The close_fd() will try to determine what happen to writes
with fsync() before closing the file descriptor.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:42 +0000 (20:54 +0100)]
libblkid: check writing to a file was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:41 +0000 (20:54 +0100)]
pg: check writing to a file was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:40 +0000 (20:54 +0100)]
agetty: check writing to a file was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:39 +0000 (20:54 +0100)]
setpriv: check writing to a file was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:38 +0000 (20:54 +0100)]
cfdisk: check writing to a file was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:37 +0000 (20:54 +0100)]
setsid: exit when control terminal cannot be set
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:36 +0000 (20:54 +0100)]
hexdump: add long options to the command
Includes update to bash completion, and manual as well.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:34 +0000 (20:54 +0100)]
setpriv: allow login and group name option arguments
For an average user names are easier to use than uid and gid numbers.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:31 +0000 (20:54 +0100)]
utmpdump: add option to write to a file
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:30 +0000 (20:54 +0100)]
blkid, hwclock, ldattach: use program_invocation_short_name
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 13 Apr 2013 19:54:29 +0000 (20:54 +0100)]
bash-completion: add mount and umount
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Yuri Chornoivan [Thu, 11 Apr 2013 17:51:39 +0000 (20:51 +0300)]
Fix various typos
Karel Zak [Fri, 26 Apr 2013 10:43:31 +0000 (12:43 +0200)]
wipefs: clean up code
This is C, use int & bits for boolean stuff rather than army of
variables.
Signed-off-by: Karel Zak <kzak@redhat.com>
Ondrej Oprala [Wed, 10 Apr 2013 16:21:27 +0000 (18:21 +0200)]
wipefs: add --backup
[kzak@redhat.com: - don't wipe if failed to create a backup file
- use ts_scsi_debug_init in the regression tests]
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 26 Apr 2013 08:38:33 +0000 (10:38 +0200)]
tests: partx tests cleanup
* use ts_scsi_debug_init
* use headers in output
* use udevadm
Signed-off-by: Karel Zak <kzak@redhat.com>
Ondrej Oprala [Wed, 10 Apr 2013 13:27:59 +0000 (15:27 +0200)]
tests: add partx regression tests
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Karel Zak [Thu, 25 Apr 2013 09:53:41 +0000 (11:53 +0200)]
build-sys: release++ (v2.23)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 25 Apr 2013 09:52:32 +0000 (11:52 +0200)]
docs: update v2.23-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 25 Apr 2013 09:50:12 +0000 (11:50 +0200)]
docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 25 Apr 2013 09:46:46 +0000 (11:46 +0200)]
po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
Yuri Chornoivan [Thu, 25 Apr 2013 09:24:08 +0000 (11:24 +0200)]
po: update uk.po (from translationproject.org)
Jakub Bogusz [Thu, 25 Apr 2013 09:24:08 +0000 (11:24 +0200)]
po: update pl.po (from translationproject.org)
Benno Schulenberg [Thu, 25 Apr 2013 09:24:08 +0000 (11:24 +0200)]
po: update nl.po (from translationproject.org)
Tomislav Krznar [Thu, 25 Apr 2013 09:24:08 +0000 (11:24 +0200)]
po: update hr.po (from translationproject.org)
David Prévot [Thu, 25 Apr 2013 09:24:07 +0000 (11:24 +0200)]
po: update fr.po (from translationproject.org)
Joe Hansen [Thu, 25 Apr 2013 09:24:07 +0000 (11:24 +0200)]
po: update da.po (from translationproject.org)
Petr PÃsaÅ™ [Thu, 25 Apr 2013 09:24:07 +0000 (11:24 +0200)]
po: update cs.po (from translationproject.org)
Karel Zak [Thu, 25 Apr 2013 09:07:05 +0000 (11:07 +0200)]
tests: make mount tests backwardly compatible with deprecated-mount/
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 25 Apr 2013 09:06:12 +0000 (11:06 +0200)]
mount: (deprecated) check loopcxt_ return values
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 25 Apr 2013 09:05:33 +0000 (11:05 +0200)]
mount: (deprecated) remove duplicate xstrndup()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 25 Apr 2013 07:26:43 +0000 (09:26 +0200)]
build-sys: use 'check' for all utils with dependencies
Signed-off-by: Karel Zak <kzak@redhat.com>
Davidlohr Bueso [Wed, 24 Apr 2013 03:28:30 +0000 (20:28 -0700)]
AUTHORS: fix prlimit typo
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Davidlohr Bueso [Wed, 24 Apr 2013 03:27:26 +0000 (20:27 -0700)]
libfdisk: gpt: remove leftover comments
I must have left those in some commit.
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Mike Frysinger [Wed, 24 Apr 2013 03:23:21 +0000 (23:23 -0400)]
rtcwake: pass -h to shutdown
The sysvinit shutdown requires you use -h when using -H or -P.
Other inits just don't seem to care.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Samuel Thibault [Wed, 10 Apr 2013 22:43:27 +0000 (00:43 +0200)]
build-sys: fix non-linux build
Make enabling fdformat depend on being a linux build.
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Andrii Bordunov [Thu, 18 Apr 2013 09:24:01 +0000 (12:24 +0300)]
dmesg: minor cleanup of EXCL_xxx_ERR macros
Delete EXCL_ACT_ERR and EXCL_SYS_ERR defines:
usage is removed in
43d2eeef5dd3a64c372dbf60e4a32aa9e97b4645 :
"dmesg: use err_exclusive_options()"
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 Apr 2013 11:20:15 +0000 (13:20 +0200)]
rtcwake: add support for "freeze" mode
Supported by Linux since 3.9 (upstream commit
7e73c5ae6e7991a6c01f6d096ff8afaef4458c36 ).
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 Apr 2013 08:25:02 +0000 (10:25 +0200)]
umount: use devno to identify --all-target devices
# mount -t tmpfs tmp /mnt/A
# mount --bind /mnt/A /mnt/B
# mount -t tmpfs tmp /mnt/C
the command:
umount --all-targets /mnt/A
has to umount only A and B, but not C. The C is a another filesystem.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 18 Apr 2013 13:45:25 +0000 (15:45 +0200)]
libfdisk: (gpt) fix EFI UUID usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 18 Apr 2013 12:38:49 +0000 (14:38 +0200)]
fdisk: fix list types
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 18 Apr 2013 10:44:00 +0000 (12:44 +0200)]
libfdisk: (gpt) fix valid_pmbr()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 18 Apr 2013 10:27:32 +0000 (12:27 +0200)]
libfdisk: (gpt) use le64_to_cpu() for alternative LBA checks
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 18 Apr 2013 09:56:46 +0000 (11:56 +0200)]
libblkid: remove obsolete code
... forgot in the previous commit to the swap prober.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 18 Apr 2013 09:50:56 +0000 (11:50 +0200)]
libblkid: ubifs is LE
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 18 Apr 2013 09:36:09 +0000 (11:36 +0200)]
libblkid: make swap detection arch independent
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 18 Apr 2013 09:23:34 +0000 (11:23 +0200)]
tests: fix compiler warning
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 18 Apr 2013 08:50:30 +0000 (10:50 +0200)]
build-sys: use pkg-config results for libuser
Our code depends on libuser >= 0.58, it's better to completely rely on
pkg-config results rather than also call UL_CHECK_LIB (that overwrites
previous pkg-config have_user= result independently on libuser
version).
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 18 Apr 2013 08:19:35 +0000 (10:19 +0200)]
build-sys: fix UL_REQUIRES_HAVE
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Apr 2013 15:35:47 +0000 (17:35 +0200)]
fdisks: fix compiler warning
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Apr 2013 15:23:26 +0000 (17:23 +0200)]
sulogin: fix compiler warnings
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Apr 2013 15:05:48 +0000 (17:05 +0200)]
build-sys: fix nsenter requirements
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Apr 2013 14:58:00 +0000 (16:58 +0200)]
include: fix SYS_{unshare,nsenter} usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Apr 2013 14:20:10 +0000 (16:20 +0200)]
lscpu: set 32-bit / 64-bit for ppc
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Apr 2013 14:17:46 +0000 (16:17 +0200)]
libblkid: use more robust code in silicon_raid checksum prober
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 16 Apr 2013 11:45:49 +0000 (13:45 +0200)]
libblkid: fix silicon raid checksum code on BE
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 15 Apr 2013 13:26:55 +0000 (15:26 +0200)]
tests: add BE minix test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 15 Apr 2013 13:14:33 +0000 (15:14 +0200)]
libblkid: arch independent minix detection
It seems that on-disk MINIX FS superblock is native-endian.
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=833841
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 12 Apr 2013 14:36:33 +0000 (16:36 +0200)]
tests: consolidate scsi_debug usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 12 Apr 2013 13:04:57 +0000 (15:04 +0200)]
libmount: add debug message to guess FS function
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 12 Apr 2013 11:49:08 +0000 (13:49 +0200)]
tests: use udevadm settle rather than sleep
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 12 Apr 2013 10:35:34 +0000 (12:35 +0200)]
libmount: fix mount.nfs segfault, rely on assert() rather than on nonnull
We use
mnt_optstr_append_option(&o, mnt_fs_get_vfs_options(fs), NULL);
in mount.nfs, unfortunately mnt_optstr_append_option() has been marked
ass nonnull(1, 2). That's wrong because append and prepend should
robust enough to accept NULL as option name.
The patch also removes almost all __attribute__((nonnull). It seems
better to rely on assert() to have usable feedback. In many cases
(nonnull) is premature optimization for the library. This attribute
makes sense for things like strlen() or so...
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=948274
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Apr 2013 21:38:06 +0000 (23:38 +0200)]
build-sys: release++ (v2.23-rc2)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Apr 2013 21:36:46 +0000 (23:36 +0200)]
docs: update v2.23-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Apr 2013 21:34:23 +0000 (23:34 +0200)]
build-sys: make wall optional in bash-completion
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Apr 2013 21:03:20 +0000 (23:03 +0200)]
build-sys: add --disable-fdformat
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Apr 2013 20:57:27 +0000 (22:57 +0200)]
build-sys: add --disable-hwclock
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Apr 2013 20:38:54 +0000 (22:38 +0200)]
build-sys: add --disable-bfs
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Apr 2013 20:27:31 +0000 (22:27 +0200)]
build-sys: add --disable-cytune
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Apr 2013 15:44:59 +0000 (17:44 +0200)]
docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Apr 2013 15:43:19 +0000 (17:43 +0200)]
po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Apr 2013 15:30:34 +0000 (17:30 +0200)]
blkid: use xalloc everywhere
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Apr 2013 15:30:15 +0000 (17:30 +0200)]
tests: make line(1) optional
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Apr 2013 15:16:28 +0000 (17:16 +0200)]
libblkid: remove duplicate includes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Apr 2013 15:16:01 +0000 (17:16 +0200)]
lib/xalloc: add xstrndup()
Signed-off-by: Karel Zak <kzak@redhat.com>