Commit Graph

7661 Commits

Author SHA1 Message Date
Ondrej Oprala 226d76e667 prlimit: use libsmartcols
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:19 +02:00
Ondrej Oprala 83db4eb2c2 lscpu: use libsmartcols
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:19 +02:00
Ondrej Oprala 7e86cd5470 losetup: use libsmartcols
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:19 +02:00
Ondrej Oprala ba1bf7164f lslocks: use libsmartcols
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:19 +02:00
Ondrej Oprala 9bd4e5c0bd lsblk: use libsmartcols
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:18 +02:00
Ondrej Oprala 218a3a9463 findmnt: use libsmartcols
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:18 +02:00
Ondrej Oprala 016aa0ac94 partx: use libsmartcols
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:18 +02:00
Ondrej Oprala baa3b270ec Use libsmartcols in libfdisk and cfdisk
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:18 +02:00
Ondrej Oprala ce44112b10 libsmartcols: include stdio
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:18 +02:00
Ondrej Oprala c0070f8187 libsmartcols: add scols_table_is_empty()
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:18 +02:00
Ondrej Oprala 6e792bb6c0 libsmartcols: fix a usage example
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:18 +02:00
Ondrej Oprala 1d90bcb1a8 libsmartcols: documentation
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:18 +02:00
Ondrej Oprala b72b824d06 libsmartcols: move some code around
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:18 +02:00
Ondrej Oprala 8b992cb571 libsmartcols: revert the column flags API
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:17 +02:00
Ondrej Oprala 35958d0c61 libsmartcols: colors may now be specified as human-readable strings
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:17 +02:00
Ondrej Oprala 8a38a8d31e libsmartcols: separate flags, add getters/setters
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:17 +02:00
Ondrej Oprala 9fd9b99f4f libsmartcols: add missing copyright notifications
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:17 +02:00
Ondrej Oprala bc8cb33a72 libsmartcols: fill the symbol version file
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:17 +02:00
Karel Zak 7e8fe02941 libsmartcols: allow to read lines as tree
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:17 +02:00
Karel Zak 2a965b804a libsmartcols: add function to convert table to string
Note that open_memstream() is POSIX-1.2008, so it's possible than not
all libc have already implemented this function.

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:17 +02:00
Karel Zak b28e886463 libsmartcols: remove unnecessary code
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:17 +02:00
Karel Zak e906be066e libsmartcols: add reduce term width functionality
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:16 +02:00
Karel Zak 62d2e2e538 libsmartcols: add SCOLS_FL_MAX
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:16 +02:00
Karel Zak 571441e291 libsmartcols: support alternative streams
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:16 +02:00
Ondrej Oprala 3a29e909f7 libsmartcols: add test
[kzak@redhat.com: - refresh according to previous API changes]

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:16 +02:00
Karel Zak 3e542c7654 libsmartcols: add table code
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:16 +02:00
Karel Zak c638c57ac3 libsmartcols: add table struct, cleanup refcounting
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:16 +02:00
Karel Zak 78a3b0af30 include/carefulputc: cleanup and add fputs_{quoted,nonblank}()
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:16 +02:00
Karel Zak 74bd28ad6e libsmartcols: add lines
Co-Author: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:16 +02:00
Karel Zak 1577b2592e libsmartcols: add columns
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:16 +02:00
Ondrej Oprala 6d1072696c libsmartcols: add cells
[kzak@redhat.com: - remove copy, free -- all have to be handled by lines]

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:16 +02:00
Ondrej Oprala b36992fb2a libsmartcols: add symbols
[kzak@redhat.com: - split scols_new_symbols() to regular getters functions]

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:16 +02:00
Ondrej Oprala 0b0ab9ff96 libsmartcols: add iterator
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:15 +02:00
Ondrej Oprala 1a4d989e22 libsmartcols: add basic files
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:15 +02:00
Ruediger Meier 94b559e08e mount: update mount.8 about barrier mount options defaults
This patch comes originally from Jan Kara <jack@suse.cz> and updates
the default behaviour of the kernel which has been changed some years
ago. See kernel docs
  Documentation/filesystems/ext3.txt
  Documentation/filesystems/ext4.txt
2014-04-01 18:43:33 +02:00
Karel Zak 412791a995 libfdisk: remove fdisk_colon()
It was unnecessary overkill to have colorized "foo:" prefix in fdisk
output.

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-01 14:39:13 +02:00
Karel Zak 0b6fbc2599 dmesg: don't use brow/yellow in output
The color used for subsystem prefix is useless on
while background. Let's use blue.

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-01 14:32:38 +02:00
Karel Zak 6b16909288 Merge branch 'fix-script-timing' of https://github.com/theonewolf/util-linux
* 'fix-script-timing' of https://github.com/theonewolf/util-linux:
  scriptreplay: no need to skip first time value or last bytes fixes #58
  script: time from end of read() call partially fixes #58
2014-04-01 11:45:19 +02:00
Karel Zak 8ff90edfc2 Merge branch 'travis' of https://github.com/rudimeier/util-linux
* 'travis' of https://github.com/rudimeier/util-linux:
  travis-ci: enable more features and update gettext
  tests: getting paraller_jobs more robust
2014-04-01 11:40:18 +02:00
Karel Zak b6a8cc0130 Merge branch 'pg-manual-page-long-options' of https://github.com/jaalto/util-linux
* 'pg-manual-page-long-options' of https://github.com/jaalto/util-linux:
  pg.1: Move (plus) options near (minus) option at the beginning
  pg.1: Add -h, --help, -V, --version
2014-04-01 11:37:06 +02:00
Ruediger Meier b9396cbe90 travis-ci: enable more features and update gettext
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-03-29 01:13:13 +01:00
Ruediger Meier 6163259cbd tests: getting paraller_jobs more robust
This patch fixes several issues:
 1. lscpu may not exist on all systems.
 2. Option -b is not always available but we can skip it because it's
    the documented default for -p.
 3. Some old lscpu versions print --help output to stdout in case of
    error. So in case 2. it would count all the help lines as CPUs,
    which could be really bad on slow single core machines.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-03-29 01:13:13 +01:00
Karel Zak 5b575d4381 libblkid: fix partitions probing
* PART_ENTRY_* stuff is optional and should not overwrite
   previous probing result in partitions_probe()

 * missing minix parental partition is not error

 * blkid_probe_is_vfat() usage has to be more robust

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-03-28 15:07:17 +01:00
Ondrej Oprala cbe9202781 libmount: silence some docs warnings
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-03-28 11:25:40 +01:00
Karel Zak b430d630d3 Merge branch 'fix-ppc-tests' of https://github.com/rudimeier/util-linux
* 'fix-ppc-tests' of https://github.com/rudimeier/util-linux:
  tests: fix last for bigendian
  tests: fix utmpdump/ipv6tobin for bigendian
  tests: fix utmpdump/to-binary for bigendian
  tests: fix utmpdump/ipv6totxt for bigendian
  tests: fix utmpdump/to-text for bigendian
  tests: swaplabel needs to respect pagesize
2014-03-28 11:10:09 +01:00
Karel Zak 742b128523 Merge branch 'fix-ipcs-q-fallback' of https://github.com/rudimeier/util-linux
* 'fix-ipcs-q-fallback' of https://github.com/rudimeier/util-linux:
  travis-ci: abort if make check fails
  ipcs: fix memleak in ipc_*_get_info functions
  ipcs: fix ipc_sem_get_info fallback case
  ipcs: fix ipc_shm_get_info fallback case
  ipcs: fix ipc_msg_get_info fallback case
  tests: add basic test case for ipcs -m -i n
  tests: add basic test case for ipcs -s -i n
  tests: add basic test case for ipcs -q -i n
  tests: quote generated arguments for ipcrm
  ipcs: cleanup jumplabel stlyes
2014-03-28 10:51:17 +01:00
Karel Zak 32ebf7e04e Merge branch 'fix-lscpu-cache' of https://github.com/rudimeier/util-linux
* 'fix-lscpu-cache' of https://github.com/rudimeier/util-linux:
  tests: cleanup, remove unused lscpu output
  tests: add lscpu dump for ppc cpu with no cache size
  lscpu: cleanup, use _PATH_SYS_CPU/NODE
  lscpu: don't abort if cache size is unknown
2014-03-28 10:41:44 +01:00
Karel Zak c48508c2fa findfs: add ability to work with PART{UUID,LABEL}= too
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-03-28 10:36:05 +01:00
Ruediger Meier 0517fbf357 tests: cleanup, remove unused lscpu output
All these files are not used since a292bbde or 0d86c70a.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-03-27 11:35:06 +01:00
Ruediger Meier 50a3a60490 tests: add lscpu dump for ppc cpu with no cache size
Taken from qemu-system-ppc (qemu 1.7) machine with installed
debian 7.4 wheezy, kernel 3.2.0-4-powerpc.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-03-27 11:30:15 +01:00