]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
8 years agopo: merge changes
Karel Zak [Fri, 12 May 2017 09:27:52 +0000 (11:27 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agopo: update zh_CN.po (from translationproject.org)
Wylmer Wang [Fri, 12 May 2017 09:21:06 +0000 (11:21 +0200)] 
po: update zh_CN.po (from translationproject.org)

8 years agopo: update pt_BR.po (from translationproject.org)
Rafael Fontenelle [Fri, 12 May 2017 09:21:06 +0000 (11:21 +0200)] 
po: update pt_BR.po (from translationproject.org)

8 years agopo: update fr.po (from translationproject.org)
Stéphane Aulery [Fri, 12 May 2017 09:21:06 +0000 (11:21 +0200)] 
po: update fr.po (from translationproject.org)

8 years agopo: update da.po (from translationproject.org)
Joe Hansen [Fri, 12 May 2017 09:21:06 +0000 (11:21 +0200)] 
po: update da.po (from translationproject.org)

8 years agolib/parse-date: don't use xalloc in lib-like code
Karel Zak [Fri, 12 May 2017 09:15:34 +0000 (11:15 +0200)] 
lib/parse-date: don't use xalloc in lib-like code

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agobuild-sys: remove duplicate includes
Karel Zak [Fri, 12 May 2017 09:08:37 +0000 (11:08 +0200)] 
build-sys: remove duplicate includes

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agobuild-sys: add AC_STRUCT_TIMEZONE
Karel Zak [Fri, 12 May 2017 09:05:12 +0000 (11:05 +0200)] 
build-sys: add AC_STRUCT_TIMEZONE

new datetime parsing code assumes macros:

lib/parse-date.c : HAVE_STRUCT_TM_TM_ZONE
lib/parse-date.c : HAVE_TZNAME

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agowipefs: add note about no-act to the man page
Karel Zak [Thu, 11 May 2017 13:54:30 +0000 (15:54 +0200)] 
wipefs: add note about no-act to the man page

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agofdisk: fix type dialog
Karel Zak [Thu, 11 May 2017 13:53:07 +0000 (15:53 +0200)] 
fdisk: fix type dialog

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agoMerge branch 'master' of https://github.com/pali/util-linux
Karel Zak [Thu, 11 May 2017 08:59:14 +0000 (10:59 +0200)] 
Merge branch 'master' of https://github.com/pali/util-linux

* 'master' of https://github.com/pali/util-linux:
  tests: Add UDF CD-ROM hybrid image (ISO+Joliet+UDF) created by Nero 6
  tests: Fix test output for low-probe-udf to contain UDF data
  Revert "libblkid: Probe UDF volumes for ISO9660 info as well"

8 years agotests: update wipe-partition
Karel Zak [Wed, 10 May 2017 09:26:51 +0000 (11:26 +0200)] 
tests: update wipe-partition

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agodocs: make column.1 example to use ascii output
Sami Kerola [Tue, 9 May 2017 18:10:52 +0000 (19:10 +0100)] 
docs: make column.1 example to use ascii output

In same go ease reading by having data and arguments in same order.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
8 years agoswitch_root: use getopt_long() to parse options
Sami Kerola [Tue, 9 May 2017 18:10:51 +0000 (19:10 +0100)] 
switch_root: use getopt_long() to parse options

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
8 years agovipw: use getopt_long() to parse options
Sami Kerola [Tue, 9 May 2017 18:10:50 +0000 (19:10 +0100)] 
vipw: use getopt_long() to parse options

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
8 years agocol: avoid extra newline if no input
Sami Kerola [Tue, 9 May 2017 18:10:49 +0000 (19:10 +0100)] 
col: avoid extra newline if no input

BSD fix missed for 22 years, and all util-linux releases so far.

Backported-from: https://github.com/dspinellis/unix-history-repo/commit/2a15260a2a3230e02f57c096fb4c5e1f797bf4f3
Addresses: https://github.com/karelzak/util-linux/issues/422
Reported-by: Pavel Raiskup <praiskup@redhat.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
8 years agolib/mbsedit: fix typo in comment
Sami Kerola [Tue, 9 May 2017 18:10:48 +0000 (19:10 +0100)] 
lib/mbsedit: fix typo in comment

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
8 years agofdisk: inform on 'p' about wiped partitions
Karel Zak [Tue, 9 May 2017 12:30:36 +0000 (14:30 +0200)] 
fdisk: inform on 'p' about wiped partitions

The wipe operation is potentially dangerous. Let's inform about it
always by 'p' (list) command to make sure user knowns about it.

Command (m for help): p
...
Device     Boot Start    End Sectors Size Id Type
/dev/sdc1        2048 204799  202752  99M 83 Linux

Filesystem/RAID signature on partition 1 will be wiped.

Addresses: https://github.com/karelzak/util-linux/issues/437
Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agolibfdisk: add fdisk_partition_has_wipe()
Karel Zak [Tue, 9 May 2017 12:30:02 +0000 (14:30 +0200)] 
libfdisk: add fdisk_partition_has_wipe()

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agofdisk: add to the man page missing option
Karel Zak [Tue, 9 May 2017 11:05:26 +0000 (13:05 +0200)] 
fdisk: add to the man page missing option

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agolscpu: reuse the same buffer
Karel Zak [Tue, 9 May 2017 10:31:52 +0000 (12:31 +0200)] 
lscpu: reuse the same buffer

Now we use libsmartcols for the default output and all is allocated in
the smartcols table. So, we can reuse the same buffer for all
sprintf/scanf calls.

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agolscpu: make cpu_{max,min}_mhz() usage more elegant
Karel Zak [Tue, 9 May 2017 10:29:24 +0000 (12:29 +0200)] 
lscpu: make cpu_{max,min}_mhz() usage more elegant

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agolscpu: Read available CPUs max and min frequencies
Mamatha Inamdar [Thu, 27 Apr 2017 10:22:59 +0000 (15:52 +0530)] 
lscpu: Read available CPUs max and min frequencies

Problem:"lscpu frequency-info" command was always reading CPU0
max and min frequencies. If CPU0 is guarded or offline then it used to
display max and min frequencies as NULL.

This patch will read overall CPU max and min frequencies.

Test Results:

Before Patch:

    #lscpu (CPU0 is guarded/offline)
    Architecture:          ppc64le
    Byte Order:            Little Endian
    CPU(s):                120
    On-line CPU(s) list:   8-127
    Thread(s) per core:    8
    Core(s) per socket:    3
    Socket(s):             4
    NUMA node(s):          4
    Model:                 2.1 (pvr 004b 0201)
    Model name:            POWER8E (raw), altivec supported
    CPU max MHz:           (null)
    CPU min MHz:           (null)
    L1d cache:             64K
    L1i cache:             32K
    L2 cache:              512K
    L3 cache:              8192K
    NUMA node0 CPU(s):     8-31
    NUMA node1 CPU(s):     32-63
    NUMA node16 CPU(s):    64-95
    NUMA node17 CPU(s):    96-127

With Patch:

    # ./lscpu
    Architecture:          ppc64le
    Byte Order:            Little Endian
    CPU(s):                120
    On-line CPU(s) list:   8-127
    Thread(s) per core:    8
    Core(s) per socket:    3
    Socket(s):             4
    NUMA node(s):          4
    Model:                 2.1 (pvr 004b 0201)
    Model name:            POWER8E (raw), altivec supported
    CPU max MHz:           4322.0000
    CPU min MHz:           2061.0000
    L1d cache:             64K
    L1i cache:             32K
    L2 cache:              512K
    L3 cache:              8192K
    NUMA node0 CPU(s):     8-31
    NUMA node1 CPU(s):     32-63
    NUMA node16 CPU(s):    64-95
    NUMA node17 CPU(s):    96-127

[kzak@redhat.com: - cpu_{max,min}_mhz() refactoring]

Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agosulogin: add missing type
Karel Zak [Tue, 9 May 2017 09:59:53 +0000 (11:59 +0200)] 
sulogin: add missing type

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agoMerge branch '2017wk16' of git://github.com/kerolasa/lelux-utiliteetit
Karel Zak [Tue, 9 May 2017 09:58:23 +0000 (11:58 +0200)] 
Merge branch '2017wk16' of git://github.com/kerolasa/lelux-utiliteetit

* '2017wk16' of git://github.com/kerolasa/lelux-utiliteetit:
  chfn, chsh: use readline(3) to receive user input
  findfs: use getopt_long() to parse options
  logger: make month names, login name, and tag read-only objects
  sulogin: reduce vulnerability surface
  partx: add --list-types option
  libblkid: add blkid_partitions_get_name()
  docs: try to convince open(2) O_DIRECT rather than using raw device
  blkid: add long options
  lsipc: fix options parsing and sync with man page

8 years agotests: Add UDF CD-ROM hybrid image (ISO+Joliet+UDF) created by Nero 6
Pali Rohár [Mon, 1 May 2017 11:03:55 +0000 (13:03 +0200)] 
tests: Add UDF CD-ROM hybrid image (ISO+Joliet+UDF) created by Nero 6

This image was created by Nero Burning ROM version 6 via option CD-ROM
(UDF/ISO) with UDF version 2.01 and enabled ISO Joliet extension. Moreover
for testing purposes it has set custom Disc label (and also every other
identifier) which is different for ISO, Joiliet and UDF part. It contains
ISO/Joliet/UDF string prefix to distinguish between them.

So reading this image as basic ISO would produce different label as when
reading it as ISO with Joliet image and also different as UDF image.

Windows detects its label as "UDF Label".

Before commit ccfb5b0a1d318c1ac96884c70c7b5090331849fc blkid show label for
this image as "Joliet Label" and after as "UDF Label".

Note that it is not common to have such images with different label stored
in Joliet part and in UDF part. Moreover it is very hard to generate them.

8 years agotests: Fix test output for low-probe-udf to contain UDF data
Pali Rohár [Mon, 1 May 2017 10:57:53 +0000 (12:57 +0200)] 
tests: Fix test output for low-probe-udf to contain UDF data

Label was really not changed because of fix by commit
2f2730bc77c972d613cfec421468c84f15749708.

UUID is different due to fact that ISO image does not have UUID and
libblkid generate one from compilation date. Plus "Joliet Extension" in UDF
context does not make sense.

8 years agoRevert "libblkid: Probe UDF volumes for ISO9660 info as well"
Pali Rohár [Mon, 1 May 2017 09:19:02 +0000 (11:19 +0200)] 
Revert "libblkid: Probe UDF volumes for ISO9660 info as well"

This reverts commit 8053b51c7601c4a7e5f2eca45610b8228f53d408.

Reporting meaningless ID_FS_LABEL=UDF_Volume written in that commit was
caused by reading wrong value for UDF label and it was fixed in commit
2f2730bc77c972d613cfec421468c84f15749708.

So after this revert blkid reports for UDF filesystems label of UDF
filesystem and not label of ISO (if present) like other systems. In most
cases UDF and ISO labels are same (sometimes just one is upper case).

Commit 8053b51c7601c4a7e5f2eca45610b8228f53d408 just fixed result, not
reason why blkid reported different UDF Label as Windows. Real reason was
fixed in 2f2730bc77c972d613cfec421468c84f15749708.

8 years agocolumn: be robust on empty table
Karel Zak [Fri, 5 May 2017 11:56:40 +0000 (13:56 +0200)] 
column: be robust on empty table

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: require column names for JSON
Karel Zak [Fri, 5 May 2017 10:49:51 +0000 (12:49 +0200)] 
column: require column names for JSON

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agoblkid: fix return code when display the version
Alexey Gladkov [Thu, 4 May 2017 13:53:13 +0000 (15:53 +0200)] 
blkid: fix return code when display the version

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
8 years agocolumn: use libsmartcols to avoid circular dependences
Karel Zak [Fri, 5 May 2017 10:13:15 +0000 (12:13 +0200)] 
column: use libsmartcols to avoid circular dependences

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agolibsmartcols: add scols_line_is_ancestor()
Karel Zak [Fri, 5 May 2017 10:12:43 +0000 (12:12 +0200)] 
libsmartcols: add scols_line_is_ancestor()

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: add note that circular dependencies are ignored
Karel Zak [Fri, 5 May 2017 09:52:04 +0000 (11:52 +0200)] 
column: add note that circular dependencies are ignored

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: add --tree to the man page
Karel Zak [Fri, 5 May 2017 09:47:46 +0000 (11:47 +0200)] 
column: add --tree to the man page

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: fix --tree id-parent loop crash
Karel Zak [Fri, 5 May 2017 09:31:47 +0000 (11:31 +0200)] 
column: fix --tree id-parent loop crash

The loop is silently ignored.

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agotests: add new build-sys tests
Karel Zak [Wed, 3 May 2017 12:33:04 +0000 (14:33 +0200)] 
tests: add new build-sys tests

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agotestsL update build-sys tests
Karel Zak [Wed, 3 May 2017 11:36:20 +0000 (13:36 +0200)] 
testsL update build-sys tests

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agobuild-sys: fix lsmem dependence
Karel Zak [Wed, 3 May 2017 10:00:20 +0000 (12:00 +0200)] 
build-sys: fix lsmem dependence

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agobuild-sys: remove column-old.c
Karel Zak [Wed, 3 May 2017 08:40:46 +0000 (10:40 +0200)] 
build-sys: remove column-old.c

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agochfn, chsh: use readline(3) to receive user input
Sami Kerola [Sun, 23 Apr 2017 17:51:51 +0000 (18:51 +0100)] 
chfn, chsh: use readline(3) to receive user input

The readline offers editing capabilities while the user is entering the
line, unlike fgets(3) and getline(3) that were used earlier.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
8 years agofindfs: use getopt_long() to parse options
Sami Kerola [Mon, 17 Apr 2017 20:43:35 +0000 (21:43 +0100)] 
findfs: use getopt_long() to parse options

This change makes the findfs(8) more coherent with other commands in the
project source tree.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
8 years agologger: make month names, login name, and tag read-only objects
Sami Kerola [Sat, 15 Apr 2017 20:56:23 +0000 (21:56 +0100)] 
logger: make month names, login name, and tag read-only objects

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
8 years agosulogin: reduce vulnerability surface
Sami Kerola [Sat, 15 Apr 2017 20:46:38 +0000 (21:46 +0100)] 
sulogin: reduce vulnerability surface

Hopefully these changes are unreachable code, but better safe than sorry
when dealing with setuid root code that is installed everywhere.  Quite
obviously the introduced abort() calls protect from impossible inputs.

Secondly set all possible data to be read-only in attempt to make it more
difficult to alter anything at all.

Reference: https://www.securecoding.cert.org/confluence/display/c/DCL00-C.+Const-qualify+immutable+objects
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
8 years agopartx: add --list-types option
Sami Kerola [Thu, 13 Apr 2017 17:09:23 +0000 (18:09 +0100)] 
partx: add --list-types option

Use libblkid as the source of truth what partition type names exist, and are
supported.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
8 years agolibblkid: add blkid_partitions_get_name()
Sami Kerola [Thu, 13 Apr 2017 16:52:35 +0000 (17:52 +0100)] 
libblkid: add blkid_partitions_get_name()

This new function can be use to enquiry what partition names libblkid is
aware of.  First use of this information will be in partx(8) to make bash
completion to work without a magic list.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
8 years agodocs: try to convince open(2) O_DIRECT rather than using raw device
Sami Kerola [Thu, 13 Apr 2017 10:18:58 +0000 (11:18 +0100)] 
docs: try to convince open(2) O_DIRECT rather than using raw device

Tell in manual page that one should use open(2) O_DIRECT flag rather than
raw device.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
8 years agoblkid: add long options
Sami Kerola [Thu, 13 Apr 2017 08:39:39 +0000 (09:39 +0100)] 
blkid: add long options

This change attempts to make tab completion more reasonable by alloging
memorizable option names.  That also has positive impact to manual page, in
which referrals to other options are now easier to understand.

All short options are kept exactly as they were to avoid ABI breakage.  The
only exception is -f option that getopt(3) recognized, but was not found
from anywhere else.  The -f has been part of blkid since the initial commit.

Commit: 51410fc6deb29cae54a2669aafabae6c49f964fc
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
8 years agolsipc: fix options parsing and sync with man page
Sami Kerola [Wed, 12 Apr 2017 17:59:54 +0000 (18:59 +0100)] 
lsipc: fix options parsing and sync with man page

Option --pid was never implemented so remove it from struct options and
manual page.  Interestingly this option was not in usage().  Short option
string had 'u' that has never appear anywhere else, so it is also removed.
Finally add options --bytes and --numeric-perms to manual page.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
8 years agocolumn: parent and child has to be independent
Karel Zak [Wed, 19 Apr 2017 11:22:31 +0000 (13:22 +0200)] 
column: parent and child has to be independent

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agotests: add tests for new column features
Karel Zak [Tue, 11 Apr 2017 11:49:36 +0000 (13:49 +0200)] 
tests: add tests for new column features

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agolibsmartcols: add debug mesg to see width change
Karel Zak [Tue, 11 Apr 2017 11:48:41 +0000 (13:48 +0200)] 
libsmartcols: add debug mesg to see width change

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: force to follow specified width
Karel Zak [Tue, 11 Apr 2017 11:48:02 +0000 (13:48 +0200)] 
column: force to follow specified width

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumns: add note about width
Karel Zak [Tue, 11 Apr 2017 10:40:39 +0000 (12:40 +0200)] 
columns: add note about width

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: use NOEXTREMES for the last column
Karel Zak [Mon, 3 Apr 2017 12:43:13 +0000 (14:43 +0200)] 
column: use NOEXTREMES for the last column

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: add support for trees
Karel Zak [Fri, 31 Mar 2017 13:09:45 +0000 (15:09 +0200)] 
column: add support for trees

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: clean up man page
Karel Zak [Wed, 29 Mar 2017 12:46:07 +0000 (14:46 +0200)] 
column: clean up man page

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: clean up usage() and options order
Karel Zak [Wed, 29 Mar 2017 12:45:44 +0000 (14:45 +0200)] 
column: clean up usage() and options order

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: add --table-order
Karel Zak [Wed, 29 Mar 2017 12:08:14 +0000 (14:08 +0200)] 
column: add --table-order

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: fix typo
Karel Zak [Wed, 29 Mar 2017 11:17:12 +0000 (13:17 +0200)] 
column: fix typo

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: add --table-hide
Karel Zak [Wed, 29 Mar 2017 10:52:41 +0000 (12:52 +0200)] 
column: add --table-hide

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: add --table-wrap
Karel Zak [Wed, 29 Mar 2017 10:46:54 +0000 (12:46 +0200)] 
column: add --table-wrap

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: add --table-noextreme
Karel Zak [Wed, 29 Mar 2017 10:38:52 +0000 (12:38 +0200)] 
column: add --table-noextreme

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: add --table-truncate
Karel Zak [Wed, 29 Mar 2017 10:26:35 +0000 (12:26 +0200)] 
column: add --table-truncate

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: rename options
Karel Zak [Wed, 29 Mar 2017 10:00:48 +0000 (12:00 +0200)] 
column: rename options

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: fix greedy initialization
Karel Zak [Mon, 6 Mar 2017 12:32:52 +0000 (13:32 +0100)] 
column: fix greedy initialization

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: add --table-colright
Karel Zak [Mon, 6 Mar 2017 11:57:24 +0000 (12:57 +0100)] 
column: add --table-colright

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: use err_exclusive_options()
Karel Zak [Mon, 6 Mar 2017 11:09:59 +0000 (12:09 +0100)] 
column: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: make mbs/wcs conversions more robust
Karel Zak [Mon, 6 Mar 2017 11:05:09 +0000 (12:05 +0100)] 
column: make mbs/wcs conversions more robust

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: add --json
Karel Zak [Mon, 6 Mar 2017 10:58:15 +0000 (11:58 +0100)] 
column: add --json

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: add --table-colnames
Karel Zak [Mon, 6 Mar 2017 10:37:01 +0000 (11:37 +0100)] 
column: add --table-colnames

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: rename too generic macro
Karel Zak [Fri, 3 Mar 2017 11:20:47 +0000 (12:20 +0100)] 
column: rename too generic macro

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: use libsmartcols for --table
Karel Zak [Fri, 3 Mar 2017 11:17:44 +0000 (12:17 +0100)] 
column: use libsmartcols for --table

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: clean up multi-byte #ifelse
Karel Zak [Thu, 2 Mar 2017 13:50:03 +0000 (14:50 +0100)] 
column: clean up multi-byte #ifelse

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: reorder functions
Karel Zak [Thu, 2 Mar 2017 13:41:22 +0000 (14:41 +0100)] 
column: reorder functions

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: rename functions
Karel Zak [Thu, 2 Mar 2017 13:38:04 +0000 (14:38 +0100)] 
column: rename functions

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agotests: add column(1) table test
Karel Zak [Thu, 2 Mar 2017 13:34:08 +0000 (14:34 +0100)] 
tests: add column(1) table test

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agotests: add column(1) columnate test
Karel Zak [Thu, 2 Mar 2017 13:21:16 +0000 (14:21 +0100)] 
tests: add column(1) columnate test

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: don't ignore mbs_to_wcs() errors
Karel Zak [Thu, 2 Mar 2017 13:04:47 +0000 (14:04 +0100)] 
column: don't ignore mbs_to_wcs() errors

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agotests: add column/files directory
Karel Zak [Thu, 2 Mar 2017 13:00:53 +0000 (14:00 +0100)] 
tests: add column/files directory

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: make input() more generic
Karel Zak [Wed, 1 Mar 2017 14:05:47 +0000 (15:05 +0100)] 
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>
8 years agocolumn: use colntrol struct on more places
Karel Zak [Wed, 1 Mar 2017 12:58:00 +0000 (13:58 +0100)] 
column: use colntrol struct on more places

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumns: add control struct
Karel Zak [Wed, 1 Mar 2017 12:11:59 +0000 (13:11 +0100)] 
columns: add control struct

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agocolumn: split old and new code
Karel Zak [Fri, 24 Feb 2017 13:05:59 +0000 (14:05 +0100)] 
column: split old and new code

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agoMerge branch 'master' of https://github.com/pali/util-linux
Karel Zak [Tue, 2 May 2017 09:28:42 +0000 (11:28 +0200)] 
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

8 years agoMerge branch '170419' of github.com:jwpi/util-linux
Karel Zak [Tue, 2 May 2017 09:12:33 +0000 (11:12 +0200)] 
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

8 years agotests: Add UDF hdd images created by Linux mkudffs 1.3
Pali Rohár [Mon, 1 May 2017 08:03:08 +0000 (10:03 +0200)] 
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

8 years agotests: Rename udf-hdd-mkudffs* images to indicate used mkudffs version
Pali Rohár [Mon, 1 May 2017 07:32:01 +0000 (09:32 +0200)] 
tests: Rename udf-hdd-mkudffs* images to indicate used mkudffs version

8 years agolibblkid: udf: For better readibility use one snprintf call instead multiple in loop
Pali Rohár [Mon, 1 May 2017 07:28:22 +0000 (09:28 +0200)] 
libblkid: udf: For better readibility use one snprintf call instead multiple in loop

8 years agolib/timer: add comment
Karel Zak [Fri, 28 Apr 2017 11:25:41 +0000 (13:25 +0200)] 
lib/timer: add comment

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agoMerge branch 'timer' of https://github.com/Villemoes/util-linux
Karel Zak [Fri, 28 Apr 2017 11:02:02 +0000 (13:02 +0200)] 
Merge branch 'timer' of https://github.com/Villemoes/util-linux

8 years agolibmount: (docs) remove unwanted tag
Karel Zak [Fri, 28 Apr 2017 10:39:21 +0000 (12:39 +0200)] 
libmount: (docs) remove unwanted tag

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agotests: update libmount outputs
Karel Zak [Fri, 28 Apr 2017 09:19:59 +0000 (11:19 +0200)] 
tests: update libmount outputs

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agolibmount: add read-only warning
Karel Zak [Fri, 28 Apr 2017 09:03:24 +0000 (11:03 +0200)] 
libmount: add read-only warning

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agoinclude/exitcodes: remove mount(8) exit codes
Karel Zak [Thu, 27 Apr 2017 12:26:45 +0000 (14:26 +0200)] 
include/exitcodes: remove mount(8) exit codes

All defined by libmount now.

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agofstrim: use MNT_EX_* from libmount
Karel Zak [Thu, 27 Apr 2017 12:26:16 +0000 (14:26 +0200)] 
fstrim: use MNT_EX_* from libmount

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agomount: use MNT_EX_* from libmount
Karel Zak [Thu, 27 Apr 2017 12:26:02 +0000 (14:26 +0200)] 
mount: use MNT_EX_* from libmount

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agoumount: use MNT_EX_* from libmount
Karel Zak [Thu, 27 Apr 2017 12:25:57 +0000 (14:25 +0200)] 
umount: use MNT_EX_* from libmount

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agolibmount: (docs) add unused declarations
Karel Zak [Thu, 27 Apr 2017 12:17:50 +0000 (14:17 +0200)] 
libmount: (docs) add unused declarations

Signed-off-by: Karel Zak <kzak@redhat.com>
8 years agomount, umount: use mnt_context_get_excode()
Karel Zak [Thu, 27 Apr 2017 12:11:50 +0000 (14:11 +0200)] 
mount, umount: use mnt_context_get_excode()

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