summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* tests: ignore errors with enabled ASAN in python bindingsKarel Zak2019-04-155-3/+11
| | | | | | | temporary solution... as it ends with undefined symbol: __asan_option_detect_stack_use_after_return Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: fix memleak on parse errorsKarel Zak2019-04-151-3/+11
| | | | | Addresses: https://github.com/systemd/systemd/pull/12252 Signed-off-by: Karel Zak <kzak@redhat.com>
* fstrim: get realpath before trim ioctlWang Shilong2019-04-151-2/+9
| | | | | | | | | | | | | | | | | | | | | | Original motivation is we want to run fstrim command on Lustre[1] osd server mount point directly, however our server mount point doesn't export osd directory to users, and it will cause following command fail: $fstrim -v /mnt/mds/ But following succeed: $fstrim -v /mnt/mds We could improve this a bit by getting realpath before trapping kernel, this also give benifits to normal use cases. Cc: Andreas Dilger <adilger@dilger.ca> Cc: Shuichi Ihara <sihara@ddn.com> [1] http://wiki.lustre.org/Main_Page Signed-off-by: Wang Shilong <wshilong@ddn.com>
* tests: update lscpu due to 'Vulnerability' fieldsKarel Zak2019-04-111-32/+37
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: wrap default output long lines on terminalKarel Zak2019-04-112-2/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: report CPU vulnerabilitiesKarel Zak2019-04-112-0/+80
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include/strutils: add functions to replace and remove chars from stringKarel Zak2019-04-111-0/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/fileutils: add xreaddir()Karel Zak2019-04-114-48/+16Star
| | | | | | | Remove duplicate code and keep only one implementation in include/fileutils.h. Signed-off-by: Karel Zak <kzak@redhat.com>
* setarch: add new e2k subarchesAndrew Savchenko2019-04-091-0/+13
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add /mnt/test/foo^Mbar to mountinfo testsKarel Zak2019-04-087-0/+29
| | | | | Addresses: https://github.com/karelzak/util-linux/issues/780 Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: don't use sscanf() for swaps parsingKarel Zak2019-04-082-47/+74
| | | | | Addresses: https://github.com/karelzak/util-linux/issues/780 Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: don't use sscanf() for mountinfo parsingKarel Zak2019-04-082-92/+114
| | | | | Addresses: https://github.com/karelzak/util-linux/issues/780 Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: don't use sscanf() for fstab parsingKarel Zak2019-04-082-68/+69
| | | | | Addresses: https://github.com/karelzak/util-linux/issues/780 Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'spelling' of https://github.com/jwilk-forks/util-linuxKarel Zak2019-04-021-1/+1
|\ | | | | | | | | * 'spelling' of https://github.com/jwilk-forks/util-linux: docs: fix typo
| * docs: fix typoJakub Wilk2019-03-221-1/+1
| | | | | | | | Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
* | fstrim.c: Remove commnet about vfat not supporting fstrimMarcos Paulo de Souza2019-04-011-1/+1
| | | | | | | | | | | | | | Commit f663b5b38f ("fat: add FITRIM ioctl for FAT file system") in linux kernel added support for using fstrim with vfat filesystem. Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
* | tastset: (man) add :N stride for CPU listsKarel Zak2019-03-291-0/+4
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | fsck: (man) labels are available for all filesystemsKarel Zak2019-03-281-1/+1
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | su: change error messageKarel Zak2019-03-251-1/+1
| | | | | | | | | | | | | | | | | | We use PAM and if pam_strerror() returns nothing we have no clue why authentication failed. It's mistake to blame incorrect password if there are many possible reason... Addresses: https://github.com/karelzak/util-linux/issues/778 Signed-off-by: Karel Zak <kzak@redhat.com>
* | taskset: fix cpuset list parserKarel Zak2019-03-201-8/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | taskset hangs when executed with badly formatted cpuset list, for example: $ taskset -c 0--1 true The current cpuset list parser is pretty weak as based on scanf() without strings verification ("-1" as input for "%u" returns unexpected number). It seems faster and better to use strtoul() and isdigit(). Addresses: https://github.com/karelzak/util-linux/issues/77 Signed-off-by: Karel Zak <kzak@redhat.com>
* | lscpu: (man) tiny changesKarel Zak2019-03-191-2/+2
| |
* | lscpu: fix excl[] array orderKarel Zak2019-03-192-1/+2
| | | | | | | | | | | | It (rows and columns) must be in ASCII order. Signed-off-by: Karel Zak <kzak@redhat.com>
* | lscpu: fix and document --output-allKarel Zak2019-03-191-2/+3
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | lscpu: define libsmartcols flags for -eKarel Zak2019-03-191-10/+10
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | lscpu: fix --caches orderKarel Zak2019-03-191-1/+1
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | lscpu: (man) make SYNOPSIS compatible with another utilsKarel Zak2019-03-191-4/+1Star
| | | | | | | | | | | | In this case is really no reason to duplicate all options in SYNOPSIS. Signed-off-by: Karel Zak <kzak@redhat.com>
* | lscpu: add --bytesKarel Zak2019-03-192-10/+26
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | lscpu: add --cachesKarel Zak2019-03-195-49/+233
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ lscpu -C NAME ONE-SIZE ALL-SIZE WAYS TYPE LEVEL L3 8M 8M 16 Unified 3 L2 256K 1M 8 Unified 2 L1i 32K 128K 8 Instruction 1 L1d 32K 128K 8 Data 1 The patch also updates extra caches (s390) output in lsblk summary to be compatible with output about normal caches. Addresses: https://github.com/karelzak/util-linux/issues/663 Signed-off-by: Karel Zak <kzak@redhat.com>
* | lib/path: remove extra semi-colonsKarel Zak2019-03-191-3/+3
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | lscpu: rename macros and functionsKarel Zak2019-03-191-77/+77
| | | | | | | | | | | | | | We need to differentiate between output about CPUs and another stuff (caches in future). Let's make it more obvious in code. Signed-off-by: Karel Zak <kzak@redhat.com>
* | tests: update lscpu outputKarel Zak2019-03-198-25/+23Star
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | lscpu: report more usable cache sizesKarel Zak2019-03-191-2/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current version reports cache size as reported by /sys, it means real size of the one piece of the cache. This way provides minimal overview about all system as the cache is often shared between CPUs. It seems better to report all size of the caches in the summary output. It also does not make sense to report sizes per core (or socket) as CPU topology may be pretty complicated. The final solution (not implemented yet) will be to have --list-caches where we can report all details like all-size, item-size, per-core size, ways, type, etc. Addresses: https://github.com/karelzak/util-linux/issues/663 Signed-off-by: Karel Zak <kzak@redhat.com>
* | lsblk: force tree on --json --tree independently on used columnsKarel Zak2019-03-182-2/+13
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | docs: TODO lscpu --list-cachesKarel Zak2019-03-181-0/+9
| | | | | | | | | | Addresses: https://github.com/karelzak/util-linux/issues/663 Signed-off-by: Karel Zak <kzak@redhat.com>
* | lscpu: add 'Frequency boost'Karel Zak2019-03-153-0/+9
| | | | | | | | | | | | | | | | Show turbo boost status on platforms where is available a file /sys/devices/system/cpu/cpufreq/boost. Addresses: https://github.com/karelzak/util-linux/issues/755 Signed-off-by: Karel Zak <kzak@redhat.com>
* | Merge branch 'swapon-btrfs' of https://github.com/marcosfrm/util-linuxKarel Zak2019-03-111-15/+14Star
|\ \ | | | | | | | | | | | | * 'swapon-btrfs' of https://github.com/marcosfrm/util-linux: swapon.8: mention btrfs(5)
| * | swapon.8: mention btrfs(5)Marcos Mello2019-03-111-15/+14Star
| | | | | | | | | | | | | | | | | | See: https://github.com/kdave/btrfs-progs/commit/5c880c82c2044b0abae5c838c733a2e6522ed122
* | | Merge branch 'setterm' of https://github.com/jwilk-forks/util-linuxKarel Zak2019-03-112-2/+2
|\ \ \ | | | | | | | | | | | | | | | | * 'setterm' of https://github.com/jwilk-forks/util-linux: setterm: fix --hbcolor description
| * | | setterm: fix --hbcolor descriptionJakub Wilk2019-03-082-2/+2
| |/ / | | | | | | | | | | | | | | | | | | --hbcolor is for half-bright characters, which is sort of opposite of bold. Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
* / / blkid: (man) cleanup return code sectionKarel Zak2019-03-111-1/+2
|/ / | | | | | | | | Addresses: https://github.com/karelzak/util-linux/issues/764 Signed-off-by: Karel Zak <kzak@redhat.com>
* | Merge branch 'setterm' of https://github.com/jwilk-forks/util-linuxKarel Zak2019-03-081-3/+6
|\ \ | | | | | | | | | | | | | | | | | | * 'setterm' of https://github.com/jwilk-forks/util-linux: setterm: update comments about -ulcolor/-hbcolor syntax setterm: fix bright colors for --ulcolor/--hbcolor setterm: disallow "default" for --ulcolor/--hbcolor
| * | setterm: update comments about -ulcolor/-hbcolor syntaxJakub Wilk2019-03-071-2/+2
| | | | | | | | | | | | Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
| * | setterm: fix bright colors for --ulcolor/--hbcolorJakub Wilk2019-03-071-0/+3
| | | | | | | | | | | | | | | | | | | | | The "bright" keyword was parsed, but it didn't actually affect the color that was set. Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
| * | setterm: disallow "default" for --ulcolor/--hbcolorJakub Wilk2019-03-071-1/+1
| | | | | | | | | | | | | | | | | | | | | Passing "default" to --ulcolor or --hbcolor worked, but it set the color to bright red. This was not a documented syntax, so let's forbid it. Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
* | | Merge branch 'patch-2' of https://github.com/MeggyCal/util-linuxKarel Zak2019-03-081-1/+1
|\ \ \ | | | | | | | | | | | | | | | | * 'patch-2' of https://github.com/MeggyCal/util-linux: Update mount.8
| * | | Update mount.8MeggyCal2019-03-071-1/+1
| |/ / | | | | | | xfs is widely supported today
* | | mkswap: be more explicit about maximal number of pagesKarel Zak2019-03-081-1/+1
| | | | | | | | | | | | | | | Addresses: https://github.com/karelzak/util-linux/pull/766 Signed-off-by: Karel Zak <kzak@redhat.com>
* | | libmount: improve fs referencing in tablesTim Hildering2019-03-086-9/+32
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added member 'struct libmnt_table *tab' to libmnt_fs structure. * Added 'mnt_fs_get_table()'. * Removed overhead from 'mnt_table_{insert,move,remove}_fs(). * Added check to 'mnt_table_set_iter()' that entry is member of table. [kzak@redhat.com: - add to libmount.sys - add to docs - cleanup commit message - set fs->tab = NULL before mnt_unref_fs() in mnt_table_remove_fs()] Signed-off-by: Tim Hildering <hilderingt@posteo.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* | su: add note about ECHO on --ptyKarel Zak2019-03-062-0/+8
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | su: be sensitive to another SIGCHLD ssi_codesKarel Zak2019-03-061-1/+4
| | | | | | | | | | | | See the same issue for script: 27afe5016842c22d256ea9f88b598d637ca0df84 Signed-off-by: Karel Zak <kzak@redhat.com>