]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Karel Zak [Tue, 18 Apr 2017 10:42:58 +0000 (12:42 +0200)]
tests: update script(1) tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 18 Apr 2017 10:12:44 +0000 (12:12 +0200)]
script: always write stat and done message to typescript file
And remove usec from timestamp.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 18 Apr 2017 10:02:01 +0000 (12:02 +0200)]
Merge branch 'script_newline' of https://github.com/renyuneyun/util-linux
* 'script_newline' of https://github.com/renyuneyun/util-linux:
fix the position of newline in the time output of 'script'
Karel Zak [Tue, 18 Apr 2017 09:35:27 +0000 (11:35 +0200)]
Merge branch 'bash-completion' of git://github.com/kerolasa/lelux-utiliteetit
* 'bash-completion' of git://github.com/kerolasa/lelux-utiliteetit:
bash-completion: update text-utils
bash-completion: update term-utils
bash-completion: update sys-utils
bash-completion: update schedutils
bash-completion: update misc-utils
bash-completion: update login-utils
bash-completion: update disk-utils
Damien Le Moal [Wed, 12 Apr 2017 09:20:32 +0000 (18:20 +0900)]
blkzone: Fix zone condition strings handling
Fixed the condition strings for implicit open and explicit open to
match the man page defined strings ("oi" and "oe"). Also while at it,
correct the condition_str array entries adding the reserved "xC" case
so that the read_only, full and offline conditions match the condition
codes. This increases the array size to 16, so also fix the condition
code masking when displaying the result.
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Karel Zak [Tue, 18 Apr 2017 09:18:36 +0000 (11:18 +0200)]
lscpu: use macro for path to DMI
Just to be consistent with lscpu.c.
Signed-off-by: Karel Zak <kzak@redhat.com>
Ard Biesheuvel [Wed, 12 Apr 2017 09:11:29 +0000 (10:11 +0100)]
lscpu: use sysfs for table access if available
On ARM systems, accessing SMBIOS tables via /dev/mem using read()
calls is not supported. The reason is that such tables are usually
located in EFI_RUNTIME_SERVICE_DATA memory, which is not covered
by the linear mapping on those systems, and so read() calls will
fail.
So instead, use the /sys/firmware/dmi/tables/DMI sysfs file, which
contains the entire structure table array, and will be available
on any recent Linux system, even on ones that only export the rev3
SMBIOS entry point, which is currently ignored by lscpu.
Note that the max 'num' value is inferred from the size. This is not
a limitation of the sysfs interface, but a limitation of the rev3
entry point, which no longer carries a number of array elements.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Alexander Graf <agraf@suse.de>
Stanislav Brabec [Tue, 11 Apr 2017 14:12:52 +0000 (16:12 +0200)]
libmount: Ensure utab.lock mode 644
If utab.lock is created by a process with a restricted umask, utab.lock is
created with restricted permissions. It breaks userspace monitor.
Ensure that the mode is always 644.
Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Sami Kerola [Tue, 11 Apr 2017 10:04:12 +0000 (11:04 +0100)]
bash-completion: update fincore
Add RES column to --output completions.
Commit:
e4e8b57be2b63fed82647e4d5efd0e0eaf36b19e
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Tue, 11 Apr 2017 10:01:06 +0000 (11:01 +0100)]
bash-completion: update hwclock
Add --udate-drift [1], remove --badyear [2], and use the same argument
for --date as in manual page[3].
Commit [1]:
f276d71a3ef6a65299deb5e14a188e0a786ecebd
Commit [2]:
f6374e1fb33d5ca726b72212b787e11fea78c0ca
Commit [3]:
cc5ec6936ea3c218b3e8c46880659db5ee01329f
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Tue, 18 Apr 2017 09:07:09 +0000 (11:07 +0200)]
Merge branch '170409' of github.com:jwpi/util-linux
* '170409' of github.com:jwpi/util-linux:
hwclock: remove residual 'compare' from man-page
hwclock: fix whitespace in hwclock-rtc.c
docs: parse-date.txt fix whitespace
parse-date: remove extraneous form feed
hwclock: use errtryhelp()
Sami Kerola [Tue, 11 Apr 2017 20:37:40 +0000 (21:37 +0100)]
bash-completion: update text-utils
hexdump:
Add --color option.
Commit:
098ab0778f5a46ab4519c8404fd4ba8ec137368b
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 12 Apr 2017 09:48:31 +0000 (10:48 +0100)]
bash-completion: update term-utils
scriptreplay:
Add --maxdelay option.
Commit:
7f1d48363823f7da47ca56f84eb4b2155c5ed36b
setterm:
Add --resize coption.
Commit:
5d795999511adc455d223be8281948796bd7d087
write:
List only users who are online and determine tty based on given user
name.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Tue, 11 Apr 2017 18:02:21 +0000 (19:02 +0100)]
bash-completion: update sys-utils
blkdiscard:
Add --step [1] and --zeroout [2] options.
Commit [1]:
c472a7e35ae40652bdcf66c08a23bd50d48d1884
Commit [2]:
7154cc892688f3c58cbbcdc2055f2635c1d0ef5b
chmem:
Commit:
30e1ea8ba1984488fdb16506ebafe4dc23280e5a
dmesg:
Add --time-format.
Commit:
babf605d2ca969a434f2f14579ddf44252adff4f
fallocate:
Add --insert-range [1], --collapse-range [2], --zero-range [3], and
--posix [4] options. Also make the options to be in same order as
usage() output.
Commit [1]:
b439065634e693dda385a6e5269e1d9258d6d471
Commit [2]:
83cc932d7412cb9d23bf9f06a9a54c8566e1a788
Commit [3]:
1fd4f609ee65be0f376ed28322fc3593026d39e4
Commit [4]:
833f9a7aae713278eec5f85266597482f18c7370
Command [5]: fallocate --help | awk '/--/ {print "\t\t\t\t" $2}'
flock:
Add --no-fork option.
Commit:
703251401cb11ee5d00a6b8f8bd9dc80c160f476
hwclock:
Add --udate-drift [1], remove --badyear [2], and use the same
argument for --date as in manual page[3].
Commit [1]:
f276d71a3ef6a65299deb5e14a188e0a786ecebd
Commit [2]:
f6374e1fb33d5ca726b72212b787e11fea78c0ca
Commit [3]:
cc5ec6936ea3c218b3e8c46880659db5ee01329f
ldattach:
Add --intro-command and --pause.
Commit:
8596f6391461bac53f5bab48f8c8b17a7c459f28
losetup:
Add --nooverlap [1], --json [2], --noheadings and --raw [3] options,
and direct io aka DIO output field [4].
Commit [1]:
9a94b634a343e83bfa2a9d311074e3e520abdddd
Commit [2]:
4827093d4b3090389ae0cabb7d8b522cf794ef90
Commit [3]:
9f56106df6b49864ba604f6824f9fad5aeabd17a
Commit [4]:
faeef4d2e9d5e38bed57846ba903009990f24422
lscpu:
Add --json [1] and --physical [2] options. Add DRAWER [3] to output
fields.
Commit [1]:
19a5510b964c6163e7117913d3de35aba3cd0006
Commit [2]:
0d2b5d2a72bc6619229a4d7456fbb70eda561825
Commit [3]:
b3adf6ef6676ca8c10ecdda3e1c92a861df3b885
lsipc:
Update output columns (earlier field names were almost completely
incorrect). Remove --colon-separate and --print0 [1] options. Add
--time-format, --bytes, --numeric-perms [2], and --list [3] options.
Commit [1]:
2a7150ac2e57418f471cca0aae259b7bcd0b90db
Commit [2]:
9d20ffda794208d26e6b3ed09fbc38d94d0b8fc6
Commit [3]:
2916afa3f510182987f88c17bade5dffb4aaf0b8
lsmem:
Commit:
cad2d1ac9291112bd9199b36a12335f6770356f3
lsns:
Add cgroup --type argument.
Commit:
2b8889c44b6752e92bfb982a5eaa2255a129e072
mount:
Use /proc and kernel module listing for --type argument list. Some
of the items in the lists do not make much sense, but this is still
better than a static list provided by package maintainer.
mountpoint:
Remove fixme item that was left in place when this completion was
originally wrote.
nsenter:
Add --cgroup [1], --setuid, --setgid [2], --preserve-credentials
[3] and, --all [4] option.
Commit [1]:
f9e7b66dbded19d798b883be68b0613749d7b8bb
Commit [2]:
6b9e5bf670c70690d44b8ce4055e1997fb0b6496
Commit [3]:
e99a6626d6262266f012a20ae69c8e4573ee22fd
Commit [4]:
974cc006f122f36e2187cedb9d3e58dc2d24814c
rtcwake:
Add --auto [1], --adjfile [2], and --list-modes [3] options.
Commit [1]:
49ebda9b89fc7360d15ca651b8492633b3bbc1d7
Commit [2]:
3a2f3e82bba616c93d80fd88938b38144e66eee7
Commit [3]:
43a44bfc6da8f4666c5dd6bc03c89713e6c4bd46
setarch:
Add --list [1] option.
Commit [1]:
5edb0ea6bbd57dd916417737f98c9109dc1ecb5b
setsid:
Add --wait option.
Commit:
0dde19974bcbb07ce977992ab04b7dfa752d99b3
umount:
Use /proc and kernel module listing for --type argument list.
unshare:
Add --cgroup [1], --fork [2], --mount-proc [3], --map-root-user,
--setgroups [4], and --propagation [5] options.
Commit [1]:
f9e7b66dbded19d798b883be68b0613749d7b8bb
Commit [2]:
5088ec338fe5dcd7e9a2d8daf7e7fa7dd6f87c27
Commit [3]:
6728ca101e7edc223a8eb99201197831d8daa61f
Commit [4]:
fbceefded6645de693d576cd988a703a6f60d207
Commit [5]:
f0f22e9c6f109f8c1234caa3173368ef43b023eb
zramctl:
Add new output fields MEM-LIMIT, MEM-USED, and MIGRATED.
Commit:
bffc9174b89d8d9fefe7a77b9350ab8f0dbef54f
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Tue, 11 Apr 2017 20:50:09 +0000 (21:50 +0100)]
bash-completion: update schedutils
ionice:
Add --pgid and --uid options.
Commit:
bd2ff3d2d952d75a6707846831623455647a9a8d
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Tue, 11 Apr 2017 10:02:25 +0000 (11:02 +0100)]
bash-completion: update misc-utils
fincore:
Add RES column to --output completions.
Commit:
e4e8b57be2b63fed82647e4d5efd0e0eaf36b19e
findfs:
Commit:
940817b736bceccca9be6b9b73e4dd7da0d89142
logger:
Add --socket-errors [1] and --tcp [2] options.
Commit [1]:
d77dc29e6e18d39b1845282e8039ac7117f3bd1c
Commit [2]:
68265d070d3041d16ab074ba25c610d6ef6c842e
lsblk:
Add HOTPLUG [1], SERIAL [2], and SUBSYSTEMS [3] output fields. Add
--json [4], --output-all [5], and --paths [6] options.
Commit [1]:
483987c275e461f4118a89d3be013698845d702b
Commit [2]:
460c7afb79075bd5b39e7d4bc153aa41c939bab3
Commit [3]:
7f14ee1b551e839a4ae081c8d2b7633ca40a5823
Commit [4]:
4a102a4871fdb415f4de5af9ffb7a2fb8926b5d1
Commit [5]:
1b4d2a4a4aa7df52033d293f26cd4fa79f95578d
Commit [6]:
c7e76cd145b0c40e1d346203f3222f5937146939
lslocks:
Add --noinaccessible option. Remove file argument completion, this
command does not use that sort of command line input.
Commit:
f29bc6e1cc4ed9f76bded543c6ab393f674ec3ed
mcookie:
Add --max-size option.
Commit:
f7bac5731bf559216aa2f0e8be1d7f477e7cf41a
wipefs:
Add --backup option.
Commit:
7e658c15a2c1fc5092a790afbe7d9d395d04b098
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Tue, 11 Apr 2017 21:11:13 +0000 (22:11 +0100)]
bash-completion: update login-utils
last:
Broken since first commit.
Commit:
41e5a92cf1cd8950df8b02fdd2ea8be571dbab02
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Tue, 11 Apr 2017 19:30:02 +0000 (20:30 +0100)]
bash-completion: update disk-utils
fdformat:
Add --from, --to, and --repair options.
Commit:
e0402441a143533d33d3c450471b2cd655407d77
fdisk:
Add --output [1], --bytes [2], --wipe [3], --wipe-partition [4], and
remove --geom- from from --cylinders, --heads, --sector options [5].
Commit [1]:
fff8ad5882308825a131c645e4d28bcaef943351
Commit [2]:
354f8cc8cf06de44656fb83705c57062d04d1565
Commit [3]:
cb9a4b0033eca429689a403be2a192fe2842f2e9
Commit [4]:
ba465623d84b9e330f248a477d078b5f280b7943
Commit [5]:
4b4e391a28b4dfeb69781c20190bffe8622d1907
fsck.cramfs:
Broken since first commit.
Commit:
bf60993cf2442f67bd47bcfcf6bd49c7392c2ba1
mkswap:
Provide random uuid when completing --uuid argument.
partx:
Add --sector-size option. Fix also list of known partition types to
match with libblkid blkid_idinfo names. The fix is also applied to
manual page.
Commit:
f8a4a0d4f2fd569252029bd004e24ee433b43fe8
Reference: git grep -A 4 blkid_idinfo libblkid/src/partitions | grep name
sfdisk:
Add --reoder, --delete, --mode-dataa, -no-tell-kernel, --wipe, and
--wipe-partitions options. In same go fix some option argument
completions.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Rui Zhao (renyuneyun) [Fri, 14 Apr 2017 16:43:41 +0000 (17:43 +0100)]
fix the position of newline in the time output of 'script'
- move '\n' to fprintf
- use `timeutils/strtime_iso()` instead of `strtime()`
Signed-off-by: Rui Zhao (renyuneyun) <renyuneyun@gmail.com>
Karel Zak [Thu, 13 Apr 2017 13:06:52 +0000 (15:06 +0200)]
script: don't call strftime() if not necessary
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 13 Apr 2017 13:04:54 +0000 (15:04 +0200)]
Merge branch 'script_quiet' of https://github.com/renyuneyun/util-linux
* 'script_quiet' of https://github.com/renyuneyun/util-linux:
script: fix start message showing in output file when -q is on
Karel Zak [Thu, 13 Apr 2017 09:47:43 +0000 (11:47 +0200)]
libsmartcols: fix typo
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 13 Apr 2017 09:39:22 +0000 (11:39 +0200)]
lsblk: fix --inverse --list
Let's follow --inverse dependencies although --list output requested.
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=
1441175
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 13 Apr 2017 09:19:59 +0000 (11:19 +0200)]
libsmartcols: add scols_sort_table_by_tree()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 13 Apr 2017 08:17:36 +0000 (10:17 +0200)]
lsblk: move scols_flags to lsblk control struct
Signed-off-by: Karel Zak <kzak@redhat.com>
J William Piggott [Mon, 10 Apr 2017 18:57:01 +0000 (14:57 -0400)]
hwclock: remove residual 'compare' from man-page
Signed-off-by: J William Piggott <elseifthen@gmx.com>
J William Piggott [Mon, 10 Apr 2017 18:50:32 +0000 (14:50 -0400)]
hwclock: fix whitespace in hwclock-rtc.c
Signed-off-by: J William Piggott <elseifthen@gmx.com>
J William Piggott [Mon, 10 Apr 2017 18:41:46 +0000 (14:41 -0400)]
docs: parse-date.txt fix whitespace
Signed-off-by: J William Piggott <elseifthen@gmx.com>
J William Piggott [Mon, 10 Apr 2017 18:26:12 +0000 (14:26 -0400)]
parse-date: remove extraneous form feed
* lib/parse-date.y: Remove extraneous form feed (FF, 0x0C, ^L).
Signed-off-by: J William Piggott <elseifthen@gmx.com>
J William Piggott [Mon, 10 Apr 2017 17:39:49 +0000 (13:39 -0400)]
hwclock: use errtryhelp()
* sys-utils/hwclock.c: use errtryhelp() instead of usage().
Signed-off-by: J William Piggott <elseifthen@gmx.com>
J William Piggott [Thu, 6 Apr 2017 14:21:07 +0000 (10:21 -0400)]
agetty: various man-page fixes
Signed-off-by: J William Piggott <elseifthen@gmx.com>
Ruediger Meier [Fri, 7 Apr 2017 11:35:59 +0000 (13:35 +0200)]
chmem: don't use scanf format for printf
The compiler had not complained here because both macros are
probably the same.
But gettext issued a funny warning:
sys-utils/chmem.c:67: warning: Although being used in a format string position, the msgid is not a valid C format string. Reason: The string ends in the middle of a directive.
CC: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Ruediger Meier [Fri, 7 Apr 2017 11:35:58 +0000 (13:35 +0200)]
misc: fix some printf format strings
Fix compiler warnings seen on Linux/i586 and OSX/travis.
#type #format #cast
unsigned long %lu -
uint64_t PRIu64 -
fdisk_sector_t %ju (uintmax_t)
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Sami Kerola [Thu, 6 Apr 2017 21:11:16 +0000 (22:11 +0100)]
libmount: fix file descriptor leak
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Thu, 6 Apr 2017 21:11:15 +0000 (22:11 +0100)]
fincore: fix file descriptor leak
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Fri, 7 Apr 2017 12:21:19 +0000 (14:21 +0200)]
libsmartcols: fix relative width interpretation
The non-defined width hint (=0) should not be interpreted as relative width.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 7 Apr 2017 11:40:14 +0000 (13:40 +0200)]
libsmartcols: column width reduction refactoring
The current implementation is unreadable... Let's write it again with
more obvious semantic.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 30 Mar 2017 12:27:07 +0000 (14:27 +0200)]
libsmartcols: add scols_line_move_cells()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 Mar 2017 12:06:37 +0000 (14:06 +0200)]
libsmartcols: add scols_table_move_column()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 6 Apr 2017 11:39:44 +0000 (13:39 +0200)]
libfdisk: (gpt) fix ents zeroize
The gpt->ents is "unsigned char" buffer now. We need to use bytes, no
number of entries...
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 6 Apr 2017 11:04:09 +0000 (13:04 +0200)]
libfdisk: (gpt) update nparts_max
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 6 Apr 2017 10:40:01 +0000 (12:40 +0200)]
fincore: use size_t everywhere
It seems better to avoid "int" at all from sizes calculations to make
the code more robust for future changes.
Signed-off-by: Karel Zak <kzak@redhat.com>
Ruediger Meier [Thu, 6 Apr 2017 07:56:05 +0000 (09:56 +0200)]
tests: fincore/count, skip unsupported FS
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Ruediger Meier [Thu, 6 Apr 2017 07:56:04 +0000 (09:56 +0200)]
tests: handle dd errors in fincore/count
On dd error the test will fail earlier and the test diff will be
more useful.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Ruediger Meier [Thu, 6 Apr 2017 07:56:03 +0000 (09:56 +0200)]
fincore: fix multiplication overflow
This failed on ppc64 with page size 64k.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Ruediger Meier [Thu, 6 Apr 2017 07:56:02 +0000 (09:56 +0200)]
tests: fix fincore/count for PAGE_SIZE != 4096
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Ruediger Meier [Thu, 6 Apr 2017 07:56:01 +0000 (09:56 +0200)]
tests: remove fincore SMALLER_THAN_PAGESIZE tests
These tests failed for example on ext4 with a non-default
blocksize 1024. In this case it seems that the kernel only
caches a full page if we read at least PAGE_SIZE -BLOCK_SIZE +1.
Both tests also failed on NFS allthough block size seems to be
1M there.
We still keep the test for PAGE_SIZE-1 which seems to work more
reliable.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Karel Zak [Thu, 6 Apr 2017 10:13:46 +0000 (12:13 +0200)]
libfdisk: (gpt) care about SSIZE_MAX for read(2)
read(2) behavior is undefined if you want to read more than SSIZE_MAX
bytes. Let's be paranoid and check for this...
Reported-by: Ruediger Meier <sweet_f_a@gmx.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Rui Zhao (renyuneyun) [Wed, 5 Apr 2017 20:11:13 +0000 (21:11 +0100)]
script: fix start message showing in output file when -q is on
Signed-off-by: Rui Zhao (renyuneyun) <renyuneyun@gmail.com>
Karel Zak [Wed, 5 Apr 2017 16:40:56 +0000 (18:40 +0200)]
libfdisk: (gpt) make entries array size calculation more robust
* use the same function everywhere
* keep calculation based on size_t
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 5 Apr 2017 12:46:12 +0000 (14:46 +0200)]
libfdisk: (gpt) use size_t and gpt_get_nentries()
If possible use size_t for number of entries (partitions). It
makes code more readable and without unnecessary casts.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 5 Apr 2017 12:19:13 +0000 (14:19 +0200)]
libfdisk: (gpt) don't access entries array directly
We blindly assume that our sizeof(struct gpt_entry) is the same
on-disk stored header->sizeof_partition_entry.
It seems more correct would be to use sizeof specified by header to
access the entries array items. This patch introduces gpt_get_entry()
to avoid direct access to gpt->ents[].
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 5 Apr 2017 08:59:53 +0000 (10:59 +0200)]
agetty: fix login-options desc in man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Apr 2017 12:56:12 +0000 (14:56 +0200)]
docs: update Documentation/deprecated.txt
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Apr 2017 12:41:50 +0000 (14:41 +0200)]
Merge branch 'hwclock-date7-3' of github.com:jwpi/util-linux
* 'hwclock-date7-3' of github.com:jwpi/util-linux:
hwclock: remove unused 'silent' arg
hwclock: remove dead cmos code
hwclock: improve cmos message strings
hwclock: remove unused atomic arg in cmos
hwclock: remove unused cmos ctl structs
hwclock: remove alpha cmos
Karel Zak [Tue, 4 Apr 2017 12:25:37 +0000 (14:25 +0200)]
Merge branch 'tailf-removal' of https://github.com/kerolasa/lelux-utiliteetit
* 'tailf-removal' of https://github.com/kerolasa/lelux-utiliteetit:
tailf: remove deprecated utility
Karel Zak [Tue, 4 Apr 2017 12:20:25 +0000 (14:20 +0200)]
Merge branch '2017wk13' of https://github.com/kerolasa/lelux-utiliteetit
* '2017wk13' of https://github.com/kerolasa/lelux-utiliteetit:
docs: improve agetty.8 manual page
agetty: make --remote to forward --nohostname as -H to login
lib/cpuset: stop changing variable that is not read
agetty: remove variable that is set but not read
Karel Zak [Tue, 4 Apr 2017 12:04:08 +0000 (14:04 +0200)]
Merge branch 'fix-ipcs-shmall-overflow' of https://github.com/rudimeier/util-linux
* 'fix-ipcs-shmall-overflow' of https://github.com/rudimeier/util-linux:
ipcs: make shmall overflow a bit less worse
Frederick Grose [Tue, 4 Apr 2017 04:31:59 +0000 (00:31 -0400)]
losetup.8: Reorder options documentation
Reorder options to match onboard help and group functionally.
Include some missing optional arguments.
[kzak@redhat.com: - don't include available columns in man page,
- add comments to the usage()
- fix order in usage()
- fix typo in usage()]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Apr 2017 10:06:45 +0000 (12:06 +0200)]
zramctl: be more specific about default output
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Mon, 3 Apr 2017 21:17:52 +0000 (22:17 +0100)]
docs: improve agetty.8 manual page
Reviewed-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 1 Apr 2017 10:38:01 +0000 (11:38 +0100)]
agetty: make --remote to forward --nohostname as -H to login
Without this change an attempt to remove hostname printing required following
rather clumsy agetty invocation.
/sbin/agetty --nohostname --login-options '/bin/login -H -- \u'
After the change --nohostname behaves similar way with --host option, that
is when combined with --remote the effect is passed to login(1).
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Mon, 3 Apr 2017 10:52:53 +0000 (12:52 +0200)]
lib/strutils: fix typos in huge size suffixes
Signed-off-by: Karel Zak <kzak@redhat.com>
Ruediger Meier [Fri, 31 Mar 2017 15:16:07 +0000 (17:16 +0200)]
ipcs: make shmall overflow a bit less worse
Still no large integer support but on overflow we print now
the largest possible value, maybe even the largest one which
makes sense at all.
So on x86_64 systems we'll see now:
$ echo "
4503599627370496 " > /proc/sys/kernel/shmall
$ ipcs -m -l | grep "max total"
max total shared memory (kbytes) =
18014398509481980
rather than this:
$ ipcs -m -l | grep "max total"
max total shared memory (kbytes) = 0
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Sami Kerola [Sun, 2 Apr 2017 15:50:42 +0000 (16:50 +0100)]
tailf: remove deprecated utility
March 2017 is gone, it is time to remove this utility as scheduled in
earlier commit, and promised in manual page.
Reference:
3f8478a71ccde6883d4c81b7e65561a106653b28
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Thu, 30 Mar 2017 20:28:27 +0000 (21:28 +0100)]
lib/cpuset: stop changing variable that is not read
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Thu, 30 Mar 2017 20:28:02 +0000 (21:28 +0100)]
agetty: remove variable that is set but not read
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
J William Piggott [Sun, 26 Mar 2017 15:56:42 +0000 (11:56 -0400)]
hwclock: remove unused 'silent' arg
The 'silent' argument for get_epoch_rtc() was used
to silence error messages when querying the rtc
driver for an alpha epoch while using cmos direct
access. Alpha cmos has since been removed so
'silent' is no longer used.
* sys-utils/hwclock.h: remove 'silent' argument
* sys-utils/hwclock.c: same
* sys-utils/hwclock-rtc.c: same
Signed-off-by: J William Piggott <elseifthen@gmx.com>
J William Piggott [Sun, 26 Mar 2017 14:04:16 +0000 (10:04 -0400)]
hwclock: remove dead cmos code
* hwclock-cmos.c: remove unused 'century' code.
Signed-off-by: J William Piggott <elseifthen@gmx.com>
J William Piggott [Sun, 26 Mar 2017 13:59:37 +0000 (09:59 -0400)]
hwclock: improve cmos message strings
* sys-utils/hwclock-cmos.c: improve message strings
Signed-off-by: J William Piggott <elseifthen@gmx.com>
J William Piggott [Sat, 25 Mar 2017 23:16:30 +0000 (19:16 -0400)]
hwclock: remove unused atomic arg in cmos
* sys-utils/hwclock-cmos.c: remove unused arg for atomic()
Signed-off-by: J William Piggott <elseifthen@gmx.com>
J William Piggott [Sat, 25 Mar 2017 23:02:12 +0000 (19:02 -0400)]
hwclock: remove unused cmos ctl structs
The hwclock-cmos.c ctl structs were only used for
the since removed alpha code.
* sys-utils/hwclock-cmos.c: remove unused ctl structs
Signed-off-by: J William Piggott <elseifthen@gmx.com>
J William Piggott [Sat, 25 Mar 2017 18:29:24 +0000 (14:29 -0400)]
hwclock: remove alpha cmos
Remove alpha direct I/O access, use RTC instead:
http://marc.info/?l=util-linux-ng&m=
141682406902804
Resolves the alpha 2020 issue for util-linux:
http://marc.info/?l=util-linux-ng&m=
148387021519787
Now it is only the kernel's RTC problem.
* sys-utils/hwclock.c: remove alpha cmos
* sys-utils/hwclock-cmos.c: same
* sys-utils/hwclock.h: same
* sys-utils/hwclock.8.in: same
Signed-off-by: J William Piggott <elseifthen@gmx.com>
Karel Zak [Fri, 31 Mar 2017 12:00:24 +0000 (14:00 +0200)]
tests: add --mountpoint to findmnt calls
... if necessary to make things more robust.
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Wed, 29 Mar 2017 21:35:05 +0000 (22:35 +0100)]
utmpdump: remove unnecessary variable
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
J William Piggott [Fri, 24 Mar 2017 15:03:16 +0000 (11:03 -0400)]
hwclock: remove 1994 Award BIOS workaround
Remove the 1994 Award BIOS bug workaround as
previously discussed more than two years ago:
http://marc.info/?l=util-linux-ng&m=
141682406902804 &w=2
* sys-utils/hwclock.c: remove badyear option
* sys-utils/hwclock.h: same
* sys-utils/hwclock.8.in: same
Signed-off-by: J William Piggott <elseifthen@gmx.com>
Ruediger Meier [Fri, 31 Mar 2017 10:09:46 +0000 (12:09 +0200)]
test: fix mountpoint device check in libmount/loop
This test could fail if the build directory is somehow exoticly
mounted (shared bind mounts, symlinks).
CC: Stanislav Brabec <sbrabec@suse.cz>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Karel Zak [Fri, 31 Mar 2017 09:05:26 +0000 (11:05 +0200)]
lscpu: fix mem leak [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 31 Mar 2017 08:58:50 +0000 (10:58 +0200)]
lscpu: check return code [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 30 Mar 2017 10:10:01 +0000 (12:10 +0200)]
zramctl: make mm_stat parser more robust
Let's fallback to attribute files if mm_stat file is incomplete. It
should not happen, but I have seen RHEL7 kernel where is no
num_migrated/pages_compacted attribute...
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 27 Mar 2017 16:02:54 +0000 (18:02 +0200)]
agetty: fix typo
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 27 Mar 2017 13:13:17 +0000 (15:13 +0200)]
tests: define columns for fincore test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 27 Mar 2017 12:54:39 +0000 (14:54 +0200)]
agetty: fix characters reorder in login prompt
The current agetty uses TIOCSTI ioctl to return already read chars
from login name back to the terminal (without read() before
tcsetattr() we will lost data already written by user). The ioctl
based solution is fragile due to race -- we can return chars when
terminal already contains another new chars. The result is reordered
chars in login name.
The solution is to use extra buffer for already read data.
Reported-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 27 Mar 2017 11:25:31 +0000 (13:25 +0200)]
unshare: add note about persisten PID namespaces
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 27 Mar 2017 11:08:40 +0000 (13:08 +0200)]
fincore: add column RES
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 24 Mar 2017 12:13:28 +0000 (13:13 +0100)]
tests: remove status=none dd(1) from fincore
seems dd(1) sucks on travis more than expected:
dd: invalid status flag: `none'
Try `dd --help' for more information.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 24 Mar 2017 11:23:59 +0000 (12:23 +0100)]
tests: redirect unwanted dd(1) advices to /dev/null
It seems that dd(1) on travis writes unwanted messages to stdout
dd: you probably want conv=notrunc with oflag=append
and we do not want conv=
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 24 Mar 2017 11:07:17 +0000 (12:07 +0100)]
blkid: fix compiler warning [-Wdiscarded-qualifiers]
Let's also hide the show[] array in has_item().
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 24 Mar 2017 10:59:57 +0000 (11:59 +0100)]
Merge branch '2017wk11' of git://github.com/kerolasa/lelux-utiliteetit
* '2017wk11' of git://github.com/kerolasa/lelux-utiliteetit:
blkid: add control struct
blkid: simplify version option handling
tests: add static keyword where needed [smatch scan]
tests: do not use plain 0 as NULL [smatch scan]
libsmartcols: fix test variable shadowing
Sami Kerola [Thu, 23 Mar 2017 22:05:23 +0000 (22:05 +0000)]
bash-completion: update fincore to have latest options
Also include --output smartcols fields.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Fri, 24 Mar 2017 10:51:06 +0000 (11:51 +0100)]
Merge branch 'hwclock-date7-1' of github.com:jwpi/util-linux
* 'hwclock-date7-1' of github.com:jwpi/util-linux:
hwclock-rtc.c: try the 'new' rtc class first
Karel Zak [Fri, 24 Mar 2017 10:46:33 +0000 (11:46 +0100)]
libblkid: fix typo
Signed-off-by: Karel Zak <kzak@redhat.com>
J William Piggott [Mon, 13 Mar 2017 00:26:37 +0000 (20:26 -0400)]
hwclock-rtc.c: try the 'new' rtc class first
* sys-utils/hwclock-rtc.c: try to open the 'new' rtc class driver first.
* sys-utils/hwclock.8.in: document this.
Signed-off-by: J William Piggott <elseifthen@gmx.com>
Karel Zak [Thu, 23 Mar 2017 14:59:58 +0000 (15:59 +0100)]
build-sys: add missing header file
Signed-off-by: Karel Zak <kzak@redhat.com>
Tobias Stoeckmann [Wed, 15 Mar 2017 21:12:00 +0000 (22:12 +0100)]
libblkid: prevent OOB access while probing HFS+
It is possible to perform out of boundary read accesses due to
insufficient boundary checks in probe_hfsplus.
The first issue occurs if the leaf count in a B-node is too
small. The second happens while parsing a unicode description which
is longer than 255 UTF-8 characters. The length is stored in a 16 bit
integer, but the array in the struct is limited to 255 * 2, which is
in sync with Apple's Open Source HFS+ implementation (HFSUniStr255).
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Karel Zak [Thu, 23 Mar 2017 14:28:39 +0000 (15:28 +0100)]
tests: refresh fincore test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 23 Mar 2017 14:28:05 +0000 (15:28 +0100)]
fincore: fix error on open()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 23 Mar 2017 13:34:12 +0000 (14:34 +0100)]
fincore: add --raw and --json
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 23 Mar 2017 13:27:42 +0000 (14:27 +0100)]
fincore: add --output
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 23 Mar 2017 13:17:46 +0000 (14:17 +0100)]
fincore: add --bytes and --noheadings
Signed-off-by: Karel Zak <kzak@redhat.com>