Karel Zak
236092172a
column: clean up man page
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:18:00 +02:00
Karel Zak
7e947f48e7
column: clean up usage() and options order
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:18:00 +02:00
Karel Zak
166271a90b
column: add --table-order
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:18:00 +02:00
Karel Zak
2483c4c9da
column: fix typo
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:18:00 +02:00
Karel Zak
9624f6157c
column: add --table-hide
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:18:00 +02:00
Karel Zak
68916af3b9
column: add --table-wrap
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:18:00 +02:00
Karel Zak
1ae24ec239
column: add --table-noextreme
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:18:00 +02:00
Karel Zak
3ba01db0ab
column: add --table-truncate
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:18:00 +02:00
Karel Zak
01e335c9e4
column: rename options
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:18:00 +02:00
Karel Zak
f05593e100
column: fix greedy initialization
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:18:00 +02:00
Karel Zak
dbed2f8c63
column: add --table-colright
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:18:00 +02:00
Karel Zak
be03f65232
column: use err_exclusive_options()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:18:00 +02:00
Karel Zak
86399c3306
column: make mbs/wcs conversions more robust
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:18:00 +02:00
Karel Zak
9dbe8e1c02
column: add --json
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:18:00 +02:00
Karel Zak
11a1092ad6
column: add --table-colnames
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:18:00 +02:00
Karel Zak
739e58ffe0
column: rename too generic macro
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:18:00 +02:00
Karel Zak
4762ae9d60
column: use libsmartcols for --table
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:18:00 +02:00
Karel Zak
8f1be58816
column: clean up multi-byte #ifelse
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:18:00 +02:00
Karel Zak
37d84d6d26
column: reorder functions
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:18:00 +02:00
Karel Zak
d6b63b9f1d
column: rename functions
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:18:00 +02:00
Karel Zak
2acfa40ac1
tests: add column(1) table test
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:18:00 +02:00
Karel Zak
cee91191ea
tests: add column(1) columnate test
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:17:59 +02:00
Karel Zak
3cc2ade826
column: don't ignore mbs_to_wcs() errors
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:17:59 +02:00
Karel Zak
4219aa3756
tests: add column/files directory
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:17:59 +02:00
Karel Zak
0784187d14
column: make input() more generic
...
* remove line size limit
* use multi-byte rather than wchar when read input
* prepare for future libsmartcols use in input() for table
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:17:59 +02:00
Karel Zak
2593c13998
column: use colntrol struct on more places
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:17:59 +02:00
Karel Zak
7d07df62a2
columns: add control struct
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:17:59 +02:00
Karel Zak
38d691921c
column: split old and new code
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-02 12:17:59 +02:00
Karel Zak
d4ab297043
Merge branch 'master' of https://github.com/pali/util-linux
...
* 'master' of https://github.com/pali/util-linux :
tests: Add UDF hdd images created by Linux mkudffs 1.3
tests: Rename udf-hdd-mkudffs* images to indicate used mkudffs version
libblkid: udf: For better readibility use one snprintf call instead multiple in loop
2017-05-02 11:28:42 +02:00
Karel Zak
13944f3d05
Merge branch '170419' of github.com:jwpi/util-linux
...
* '170419' of github.com:jwpi/util-linux:
hwclock: use a consistent name for --predict
hwclock: remove unneeded braces
hwclock: make clock test mode message consistent
hwclock: extra messages for debug only
2017-05-02 11:12:33 +02:00
Pali Rohár
20f47eaab5
tests: Add UDF hdd images created by Linux mkudffs 1.3
...
$ dd if=/dev/zero of=udf-hdd-mkudffs-1.3-1.img bs=1M count=10
$ mkudffs -l Label -b 512 udf-hdd-mkudffs-1.3-1.img
$ dd if=/dev/zero of=udf-hdd-mkudffs-1.3-2.img bs=1M count=10
$ mkudffs -l Label udf-hdd-mkudffs-1.3-2.img
2017-05-01 10:03:08 +02:00
Pali Rohár
ee069f5f33
tests: Rename udf-hdd-mkudffs* images to indicate used mkudffs version
2017-05-01 09:32:01 +02:00
Pali Rohár
49d84dbedc
libblkid: udf: For better readibility use one snprintf call instead multiple in loop
2017-05-01 09:28:22 +02:00
Karel Zak
dc9a23fe66
lib/timer: add comment
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-04-28 13:25:41 +02:00
Karel Zak
ed1c112666
Merge branch 'timer' of https://github.com/Villemoes/util-linux
2017-04-28 13:02:02 +02:00
Karel Zak
8503c0ed30
libmount: (docs) remove unwanted tag
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-04-28 12:39:21 +02:00
Karel Zak
a8771daefe
tests: update libmount outputs
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-04-28 11:19:59 +02:00
Karel Zak
0361cb6f9b
libmount: add read-only warning
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-04-28 11:03:24 +02:00
Karel Zak
79055689a2
include/exitcodes: remove mount(8) exit codes
...
All defined by libmount now.
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-04-27 14:26:45 +02:00
Karel Zak
8e9039afe4
fstrim: use MNT_EX_* from libmount
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-04-27 14:26:16 +02:00
Karel Zak
e3a7a5f8f0
mount: use MNT_EX_* from libmount
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-04-27 14:26:02 +02:00
Karel Zak
e058a6c1a0
umount: use MNT_EX_* from libmount
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-04-27 14:25:57 +02:00
Karel Zak
7b53418bf0
libmount: (docs) add unused declarations
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-04-27 14:17:50 +02:00
Karel Zak
e1706a6783
mount, umount: use mnt_context_get_excode()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-04-27 14:11:50 +02:00
Karel Zak
ea848180dd
libmount: add mnt_context_get_excode()
...
It's pretty complex task to make mount(8) and umount(8) return code
and generate error message. It seems better to do that in the libmount
rather than force all library users to duplicate mount(8) mk_exit_code()
functions. It also means that all the messages will be translated only
once. Changes:
* all error messages are printed by warn()
* no more multi-line messages
* all messages prefixed by mount target (mountpoint)
* library provides mount(8) compatible MNT_EX_* codes
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1429531
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-04-27 14:10:23 +02:00
J William Piggott
57415653a6
hwclock: use a consistent name for --predict
...
The predict function name is documented as '--predict', but the
code uses '--predict-hc'. This works okay, except that the
'mutually exclusive' error message prints the undocumented name.
* sys-utils/hwclock.c: rename 'predict-hc' to 'predict' so that
it matches the man-page. This should not be a problem because
'predict-hc' was never documented.
Signed-off-by: J William Piggott <elseifthen@gmx.com>
2017-04-26 23:19:56 -04:00
J William Piggott
019093776a
hwclock: remove unneeded braces
...
Signed-off-by: J William Piggott <elseifthen@gmx.com>
2017-04-26 23:19:56 -04:00
J William Piggott
142efd2406
hwclock: make clock test mode message consistent
...
Signed-off-by: J William Piggott <elseifthen@gmx.com>
2017-04-26 23:19:56 -04:00
J William Piggott
66c83c1c7f
hwclock: extra messages for debug only
...
Only print extra save_adjtime() messages in debug mode. This makes
the --test mode output consistent accross functions.
Signed-off-by: J William Piggott <elseifthen@gmx.com>
2017-04-26 23:19:56 -04:00
Karel Zak
6dede2f2f7
libmount: support MS_RDONLY on write-protected devices
...
This feature is supported by mount(8) only. It seems better move
this code to libmount. The results is more simple mount(8) and the
feature is accessible for all libmount users.
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-04-26 17:27:02 +02:00