Changes between v2.32-rc2 and v2.32 -------------------------------------------- commit 475ecbad15943d6831fc508ce72016d581763b2b Author: Karel Zak Date: Wed Mar 21 15:01:28 2018 +0100 build-sys: release++ (v2.32) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit 4ecb80f2db8408313197f97de7b2908cdf2a80f5 Author: Karel Zak Date: Wed Mar 21 14:59:34 2018 +0100 docs: update v2.32-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.32-ReleaseNotes | 54 +++++++++++++++++++++++++++++-- 1 file changed, 51 insertions(+), 3 deletions(-) commit 017b37ffe9fb244e2c47fe2a2658429bfd5a03bf Author: Karel Zak Date: Wed Mar 21 14:48:21 2018 +0100 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 4 ++++ 1 file changed, 4 insertions(+) commit 664f0f0c5bd55d36dffaa1c49e21008deaa76f78 Author: Karel Zak Date: Wed Mar 21 14:45:47 2018 +0100 po: merge changes Signed-off-by: Karel Zak po/ca.po | 209 +++++------ po/cs.po | 265 +++++++------- po/da.po | 209 +++++------ po/de.po | 209 +++++------ po/es.po | 265 +++++++------- po/et.po | 209 +++++------ po/eu.po | 209 +++++------ po/fi.po | 558 +++++++---------------------- po/fr.po | 265 +++++++------- po/gl.po | 209 +++++------ po/hr.po | 209 +++++------ po/hu.po | 209 +++++------ po/id.po | 209 +++++------ po/it.po | 209 +++++------ po/ja.po | 1029 +++++++---------------------------------------------- po/nl.po | 209 +++++------ po/pl.po | 265 +++++++------- po/pt_BR.po | 265 +++++++------- po/ru.po | 209 +++++------ po/sl.po | 209 +++++------ po/sv.po | 209 +++++------ po/tr.po | 209 +++++------ po/uk.po | 265 +++++++------- po/util-linux.pot | 211 +++++------ po/vi.po | 209 +++++------ po/zh_CN.po | 209 +++++------ po/zh_TW.po | 209 +++++------ 27 files changed, 3106 insertions(+), 4044 deletions(-) commit 2dadc2725cb4665ec85dffdfec5921fa7caf6f55 Author: Yuri Chornoivan Date: Wed Mar 21 13:12:16 2018 +0100 po: update uk.po (from translationproject.org) po/uk.po | 838 +++++++-------------------------------------------------------- 1 file changed, 88 insertions(+), 750 deletions(-) commit e4c43b5551fc21d83aa4f0dbce55cc8f645c79c7 Author: Rafael Fontenelle Date: Wed Mar 21 13:12:16 2018 +0100 po: update pt_BR.po (from translationproject.org) po/pt_BR.po | 207 +++++++++++++++++++++++++++--------------------------------- 1 file changed, 93 insertions(+), 114 deletions(-) commit 425c13066a6fd678e5f4b4ef48b290ab96076d85 Author: Jakub Bogusz Date: Wed Mar 21 13:12:16 2018 +0100 po: update pl.po (from translationproject.org) po/pl.po | 227 ++++++++++++++++++++++++--------------------------------------- 1 file changed, 87 insertions(+), 140 deletions(-) commit 9cc302161ab269cbf0392d5d468467e16c7b662a Author: Takeshi Hamasaki Date: Wed Mar 21 13:12:16 2018 +0100 po: update ja.po (from translationproject.org) po/ja.po | 1043 ++++++++++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 877 insertions(+), 166 deletions(-) commit 176b8b2c8f45dae9632f52b530761ecb31bca7b2 Author: Frédéric Marchal Date: Wed Mar 21 13:12:16 2018 +0100 po: update fr.po (from translationproject.org) po/fr.po | 2138 ++++++++++++++++++++++++++++---------------------------------- 1 file changed, 975 insertions(+), 1163 deletions(-) commit f5a83f5c4e23e02936b74289eb328293800b6473 Author: Lauri Nurmi Date: Wed Mar 21 13:12:16 2018 +0100 po: update fi.po (from translationproject.org) po/fi.po | 815 +++++++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 508 insertions(+), 307 deletions(-) commit a70ad822cc01b8e2d44d74833387162fcdb04eff Author: Antonio Ceballos Roa Date: Wed Mar 21 13:12:16 2018 +0100 po: update es.po (from translationproject.org) po/es.po | 200 +++++++++++++++++++++++++++------------------------------------ 1 file changed, 87 insertions(+), 113 deletions(-) commit 6d386f2c61dd469f6d9116d673e45244365302d4 Author: Petr Písař Date: Wed Mar 21 13:12:16 2018 +0100 po: update cs.po (from translationproject.org) po/cs.po | 205 +++++++++++++++++++++++++++++---------------------------------- 1 file changed, 94 insertions(+), 111 deletions(-) commit 51684b312e920c5d582c26ddfad0ae3bc8f22a07 Author: Karel Zak Date: Wed Mar 21 12:23:22 2018 +0100 tests: use libtool to execute with valgrind The libtool based build system uses scripts rather than real binaries in $top_builddir. It's necessary to use libtool --mode=execute to call valgrind for the real binary (from .libs/). Signed-off-by: Karel Zak tests/functions.sh | 1 + 1 file changed, 1 insertion(+) commit 5a2b7739b0017f2b8e68dee3ab2755b3a9a2d2c0 Author: Karel Zak Date: Tue Mar 20 19:06:22 2018 +0100 tests: update lsmem Signed-off-by: Karel Zak tests/expected/lsmem/lsmem-s390-zvm-6g | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 49834246f502313afdc43b08dbd5b8ffa10c19ea Author: Gerald Schaefer Date: Tue Mar 20 17:17:38 2018 +0100 lsmem: fix total online/offline memory calculation lsmem currently calculates the total online/offline memory by iterating over all lsmem->blocks. Depending on the lsmem options, there may be only one lsmem->block, because all sysfs memory blocks could be merged into one. In this case, the calculation is wrong, because the individual online/offline state of the sysfs memory blocks is not preserved, but rather lsmem->blocks[0].state is set to the state of the first sysfs memory block, typically MEMORY_STATE_ONLINE (at least on s390). This means that "Total offline memory" will always be calculated as 0 in such cases, e.g. when using "lsmem --summary", or any options that would merge the table output to one line, like "lsmem -o RANGE": ~# lsmem --summary Memory block size: 1G Total online memory: 20G Total offline memory: 0B Adding the "-a" option shows the real summary, since there is no block merging going on, and the calculation is therefore correct: ~# lsmem -a --summary Memory block size: 1G Total online memory: 16G Total offline memory: 4G Fix this by moving the online/offline calculation into the loop that is iterating over all sysfs memory blocks, instead of iterating over potentially merged lsmem->blocks. Reported-by: Alexander Klein Signed-off-by: Gerald Schaefer sys-utils/lsmem.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) commit 1b692a26f7eaad0a5bb7eecd6eca900955e25692 Author: Karel Zak Date: Tue Mar 20 18:56:06 2018 +0100 libmount: (docs) update year Signed-off-by: Karel Zak libmount/docs/libmount-docs.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit cd42d02ff2f5f737fa6a216d4b9f57d71bba8665 Author: Karel Zak Date: Tue Mar 20 18:55:49 2018 +0100 libfdisk: (docs) update year Signed-off-by: Karel Zak disk-utils/cramfs.h | 2 +- disk-utils/cramfs_common.c | 2 +- libfdisk/docs/libfdisk-docs.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit ab0ede86191f08646521da2cf6052e60cb976fb1 Author: Karel Zak Date: Tue Mar 20 18:55:36 2018 +0100 libsmartcols: (docs) update year Signed-off-by: Karel Zak libsmartcols/docs/libsmartcols-docs.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit edc1c90cb972fdca1f66be5a8e2b0706bd2a4949 Author: Karel Zak Date: Tue Mar 20 14:17:24 2018 +0100 lib/randutils: don't break on EAGAIN, use usleep() The current code uses lose_counter to make more attempts to read random numbers. It seems better to wait a moment between attempts to avoid busy loop (we do the same in all-io.h). The worst case is 1 second delay for all random_get_bytes() on systems with uninitialized entropy pool -- for example you call sfdisk (MBR Id or GPT UUIDs) on very first boot, etc. In this case it will use libc rand() as a fallback solution. Note that we do not use random numbers for security sensitive things like keys or so. It's used for random based UUIDs etc. Addresses: https://github.com/karelzak/util-linux/pull/603 Signed-off-by: Karel Zak lib/randutils.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) commit 6ffdfda8460b1a336165a18b08f0f5946af9cd11 Author: Karel Zak Date: Tue Mar 20 13:34:31 2018 +0100 tests: add /proc/swaps libmount parser test Signed-off-by: Karel Zak tests/expected/libmount/tabfiles-parse-swaps | 22 ++++++++++++++++++++++ tests/ts/libmount/files/swaps | 4 ++++ tests/ts/libmount/tabfiles | 5 +++++ 3 files changed, 31 insertions(+) commit 83212eb3df000b26f18969f198771bd9bb39fee2 Author: Karel Zak Date: Tue Mar 20 13:31:19 2018 +0100 libmount: fix example in docs Addresses: https://github.com/karelzak/util-linux/issues/599 Signed-off-by: Karel Zak libmount/src/version.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b25f3c15c20e8161c515f13bf972cc4d5e0ab461 Author: Karel Zak Date: Tue Mar 20 12:52:16 2018 +0100 libmount: deallocate on /proc/swaps parse error Addresses: https://github.com/karelzak/util-linux/issues/596 Signed-off-by: Karel Zak libmount/src/tab_parse.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) commit 4c9e4ce83c6dba651cd8621275b0d2c9d233258e Author: Karel Zak Date: Tue Mar 20 12:20:05 2018 +0100 libmount: make sure we deallocate on parse error Signed-off-by: Karel Zak libmount/src/tab_parse.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit a0357292b5faca0383ea13626d0564d4da275b06 Author: Karel Zak Date: Tue Mar 20 11:42:34 2018 +0100 fstrim: fix fs.h and mount.h collision Unfortunately, old version of the file linux/fs.h defines MS_* macros, so the file cannot be included together with sys/mount.h. We include sys/mount.h from libmount.h now. Signed-off-by: Karel Zak configure.ac | 11 ++++++++++- sys-utils/fstrim.c | 5 ++++- 2 files changed, 14 insertions(+), 2 deletions(-) commit b1813c59c09fa887223d43e810b7dac9718a7522 Author: Karel Zak Date: Tue Mar 20 10:54:22 2018 +0100 libmount: make libmount.h more robust Let's include sys/mount.h to be sure that our local libmount fallbacks are not used by default to avoid possible conflicts with later included sys/mount.h. Addresses: https://github.com/systemd/systemd/pull/8452 Reported-by: Lennart Poettering Signed-off-by: Karel Zak libmount/src/libmount.h.in | 1 + 1 file changed, 1 insertion(+) commit a9cf659e0508c1f56813a7d74c64f67bbc962538 Author: Carlo Caione Date: Mon Mar 19 10:31:07 2018 +0000 lib/randutils: Do not block on getrandom() In Endless we have hit a problem when using 'sfdisk' on the really first boot to automatically expand the rootfs partition. On this platform 'sfdisk' is blocking on getrandom() because not enough random bytes are available. This is an ARM platform without a hwrng. We fix this passing GRND_NONBLOCK to getrandom(). 'sfdisk' will use the best entropy it has available and fallback only as necessary. Signed-off-by: Carlo Caione lib/randutils.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 655776a2c18cac7071e3828e7733403817fc861b Author: Karel Zak Date: Mon Mar 19 14:03:33 2018 +0100 mcookie: (man) add note about getrandom() Signed-off-by: Karel Zak misc-utils/mcookie.1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit dcb22a598d454ed9156722d2b03330fbfee79fa4 Merge: 5109589cc 95f09bc63 Author: Karel Zak Date: Mon Mar 19 12:53:22 2018 +0100 Merge branch 'master' of https://github.com/dirkmueller/util-linux * 'master' of https://github.com/dirkmueller/util-linux: Avoid crash in min/max caculation when cpu#0 being offline commit 5109589cc5f1c44682e55307922c459feb3083ab Author: Karel Zak Date: Mon Mar 19 11:29:25 2018 +0100 mount: (man) be explicit about bind operation Signed-off-by: Karel Zak sys-utils/mount.8 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) commit 9ca02cf52d70d56fc3f7e152c55154a15c62af6d Author: Ruediger Meier Date: Sat Mar 10 19:44:32 2018 +0100 tests: consolidate ts_device_has UUID or LABEL Regarding parallel root checks ... - fix: add a few missing "udevadm settle" where we are using LABELs or UUIDs - introduce ts_udevadm_settle(): * Still trivial implementation. The idea is to use it in future for all tests instead of directly calling "udevadm settle". So we could add debug messages, wait for specific events, add code for non-udev systems or even use "udevadm --{start,stop}-exec-queue" to be really sure what we are doing and why using udevadm at all. * The currently unused args may be used in future and show the code reader already now why we are calling "udevadm settle" at all. * So far this patch only affects swapon/, mount/, libmount/ tests, and is only about UUIDs and LABELs, but may be continued later for "partitions", "md devices", whatever. * We are calling ts_udevadm_settle() right *before* we need a LABEL or UUID, not just *after* we created one. This may be a bit better for speed and shows the code reader which command would fail without settle. - function ts_device_has_uuid() is unused now, we trust blkid(1). Renamed to ts_is_uuid() in case we would need it again. Signed-off-by: Ruediger Meier tests/functions.sh | 50 ++++++++++++++++++++++++++------------ tests/ts/libmount/tabfiles-tags | 6 ++--- tests/ts/libmount/tabfiles-tags-py | 6 ++--- tests/ts/mount/fstab-devname2label | 2 +- tests/ts/mount/fstab-devname2uuid | 6 ++--- tests/ts/mount/fstab-label | 2 +- tests/ts/mount/fstab-label2devname | 2 +- tests/ts/mount/fstab-label2uuid | 7 ++---- tests/ts/mount/fstab-uuid | 6 ++--- tests/ts/mount/fstab-uuid2devname | 6 ++--- tests/ts/mount/fstab-uuid2label | 7 ++---- tests/ts/mount/label | 2 +- tests/ts/mount/uuid | 6 ++--- tests/ts/swapon/label | 4 +-- tests/ts/swapon/uuid | 6 ++--- 15 files changed, 59 insertions(+), 59 deletions(-) commit ec182d8b9da7596809aab9aab4fc931e9ccb7494 Author: Ruediger Meier Date: Fri Mar 9 18:27:44 2018 +0100 tests: fix grep expressions for devices ts_is_mounted "/dev/loop1" returned true if /dev/loop17 was mounted. A very annoying source of sporadic failures since many years. This issue became more visible since running the checks in parallel, which increases the probability to get bigger loop device numbers. Signed-off-by: Ruediger Meier tests/functions.sh | 4 ++-- tests/ts/libmount/context | 2 +- tests/ts/libmount/context-py | 4 ++-- tests/ts/libmount/context-utab | 14 +++++++------- tests/ts/libmount/context-utab-py | 12 ++++++------ tests/ts/losetup/losetup-loop | 2 +- tests/ts/mount/devname | 4 ++-- tests/ts/swapon/devname | 2 +- tests/ts/swapon/fixpgsz | 2 +- tests/ts/swapon/fixsig | 2 +- tests/ts/swapon/label | 2 +- tests/ts/swapon/uuid | 2 +- 12 files changed, 26 insertions(+), 26 deletions(-) commit 07b1ea7c44a38d5df504524a5279de06220903b5 Author: Ruediger Meier Date: Fri Mar 9 13:04:41 2018 +0100 tests: handle xargs errors and invalid args Signed-off-by: Ruediger Meier tests/run.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) commit 8bd926d9fc17b5daeb75f141f88e6955deb736bb Author: ahmogit Date: Wed Mar 14 18:00:42 2018 -0600 column: update column.1 Signed-off-by: Karel Zak text-utils/column.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 95f09bc63c564c50ec2c393352801cc056faaea2 Author: Dirk Mueller Date: Sat Mar 17 13:18:38 2018 +0100 Avoid crash in min/max caculation when cpu#0 being offline When cpu#0 is offline, atof(NULL) is called which causes a segfault or endless loop depending on implementation circumstances. So instead of implicitely assumping that the first cpu is always available, do the presence checks for all including the first one. sys-utils/lscpu.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit 80ec018c6a0cf321f7b5d57de948354b0850cc8a Author: Tony Asleson Date: Thu Mar 8 15:41:26 2018 -0600 libblkid: ignore private Stratis devices [kzak@redhat.com: - tiny coding style changes] References: 20e1c3dc03399d6988ef35dedc1364cfc12e9263 Signed-off-by: Tony Asleson Signed-off-by: Karel Zak disk-utils/fdisk-list.c | 2 +- include/sysfs.h | 2 +- lib/sysfs.c | 24 +++++++++++++++--------- libblkid/src/probe.c | 4 ++-- libblkid/src/verify.c | 2 +- 5 files changed, 20 insertions(+), 14 deletions(-) commit e34dcfb69d219e2eb420a496afef182e0845b87c Author: Karel Zak Date: Fri Mar 9 10:56:14 2018 +0100 docs: add new idea to TODO list Addresses: https://github.com/karelzak/util-linux/issues/593 Signed-off-by: Karel Zak Documentation/TODO | 5 +++++ 1 file changed, 5 insertions(+) commit b9656e409a7b702f318eaaf01b61fd359c304443 Author: Karel Zak Date: Fri Mar 9 10:49:46 2018 +0100 libuuid: make "CONFORMING TO" man sections more explicit Addresses: https://github.com/karelzak/util-linux/issues/592 Signed-off-by: Karel Zak libuuid/man/uuid.3 | 3 ++- libuuid/man/uuid_generate.3 | 13 ++++++++++++- libuuid/man/uuid_parse.3 | 3 ++- libuuid/man/uuid_unparse.3 | 2 +- 4 files changed, 17 insertions(+), 4 deletions(-) commit c4127289f2541e594a3a12bc2d4c24805492dc97 Merge: a2db0b1aa 1aed71e51 Author: Karel Zak Date: Fri Mar 9 10:30:53 2018 +0100 Merge branch 'setpriv-example' of https://github.com/yrro/util-linux * 'setpriv-example' of https://github.com/yrro/util-linux: setpriv: add example section setpriv: include --init-groups in the list of options that can be specified with --[re]gid setpriv: improve description in man page commit a2db0b1aaeb6038c46726374c7797b73eab0e35b Author: Ruediger Meier Date: Fri Mar 9 09:31:07 2018 +0100 tests: add ipcslimits lock These two tests conflict. Interestingly, this is our first lock for a non-root check. Signed-off-by: Ruediger Meier tests/ts/ipcs/limits | 2 ++ tests/ts/ipcs/limits2 | 2 ++ 2 files changed, 4 insertions(+) commit c16590f2eed7c9593566d912b18ff3bd57a1babe Author: Ruediger Meier Date: Fri Mar 9 03:04:15 2018 +0100 tests: fix losetup race Also avoid some "no-reentrant" tests. Signed-off-by: Ruediger Meier tests/ts/libmount/loop | 48 ++++++++++++++++-------------------------- tests/ts/libmount/loop-overlay | 3 +-- 2 files changed, 19 insertions(+), 32 deletions(-) commit fbba676998e3106b71719eb3550e7d9508baf110 Author: Ruediger Meier Date: Fri Mar 9 01:15:00 2018 +0100 travis: homebrew/dupes was deprecated Signed-off-by: Ruediger Meier .travis-functions.sh | 1 - 1 file changed, 1 deletion(-) commit 1aed71e514ccdb882b932b7ae54a3e80a10d20eb Author: Sam Morris Date: Thu Mar 8 15:47:40 2018 +0000 setpriv: add example section sys-utils/setpriv.1 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) commit a7e6a6b43aad7102832273f7f72bc271a244663e Author: Sam Morris Date: Thu Mar 8 15:46:19 2018 +0000 setpriv: include --init-groups in the list of options that can be specified with --[re]gid sys-utils/setpriv.1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 64eca6406f15e6bed607ac4f81e72dbb90be86f7 Author: Sam Morris Date: Thu Mar 8 15:43:54 2018 +0000 setpriv: improve description in man page sys-utils/setpriv.1 | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) commit 539b0b09ea4c7d7dabd6a467866565134126a608 Author: Ruediger Meier Date: Thu Mar 8 11:45:30 2018 +0100 tests: re-introduce bash 3 compatibility (OSX) Bash 4 is now almost 10 years old and it seemed to be fine in 613a337e to use associative arrays. Unfortunately OSX will probably never update to 4 because of GPLv3. We don't want to lose our travis OSX build and use plain arrays again. BTW remove that "informative warnings" about unlocked resources. They were only silent so far because of a bug. Any system where scsi_debug is broken would print a lot of these warnings. This also tells us that we could even stop calling ts_unlock() explicitly. Just exiting the tests would be good enough. Note that currently flock(1) is not available on our OSX build anyways. Signed-off-by: Ruediger Meier tests/functions.sh | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) commit 7c79c3418e078c3aecbe6a1bfc1b664a6b842f97 Author: Karel Zak Date: Thu Mar 8 11:30:29 2018 +0100 docs: add remount-all idea to TODO Signed-off-by: Karel Zak Documentation/TODO | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) commit 5917d17f0de803948f5be44e78fa6228013fb7ad Author: Ruediger Meier Date: Wed Mar 7 20:12:02 2018 +0100 travis: use parallel root checks Also improve CPU count detection for tests. Signed-off-by: Ruediger Meier .travis-functions.sh | 2 +- tests/run.sh | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) commit 55a680c17f258156006cfffd591c6a37864eaa04 Author: Ruediger Meier Date: Wed Mar 7 17:58:23 2018 +0100 tests: dont't timeout flock The only situation where we would block endless is if another parallel test has the lock and hangs for another reason. This means that the other test would still keep hanging even if we timeout here. The user would have to interrupt the other test or the whole test-suite anyways. Note that we would certainly run into any timeout when using --parallel=200, so that all scsi tests start the same time. Signed-off-by: Ruediger Meier tests/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b0d9114a6160b23a65c545a4cd65cfba45c493ff Author: Ruediger Meier Date: Wed Mar 7 17:51:35 2018 +0100 tests: don't use unlocked resources The test-suite did not survive when flock timeouts after 30s because then ts_cleanup_on_exit() may use resources (e.g. rmmod scsi_debug) while not having the lock. Signed-off-by: Ruediger Meier tests/functions.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) commit 613a337ed4ce87f8ec34c88857a86a1ea6556cb5 Author: Ruediger Meier Date: Wed Mar 7 00:29:59 2018 +0100 tests: don't lock fd 1 (stdout), don't use /proc/$$/fd On debian-kfreebsd we've locked stdout which messed up our test logs. Using /proc/*/fd/ is not portable. Even ts_init's test for "/proc/self/fd" does not help because /proc/*/fd behaves strange here: $ ls -l /proc/$$/fd lr--r--r-- 1 rudi user 0 Mar 6 23:11 /proc/2194/fd -> unknown $ file /proc/$$/fd /proc/2194/fd: broken symbolic link to `unknown' ## wtf? $ test -d /proc/$$/fd; echo $? 0 $ ls -l /proc/$$/fd/ ls: cannot access /proc/2194/fd/: No such file or directory ## but $ ls -l /proc/self/fd/ total 0 cr-xr-xr-x 1 root root 0, 3 Mar 6 19:39 0 cr-xr-xr-x 1 root root 0, 4 Mar 6 19:39 1 cr-xr-xr-x 1 root root 0, 5 Mar 6 19:39 2 cr-xr-xr-x 1 root root 0, 6 Mar 6 19:39 3 This is how this patch changes the test output: [...] blkid: partitions probing: [06] sgi ... OK blkid: partitions probing: [07] sun ... OK blkid: partitions probing ... OK (all 7 sub-tests PASSED) -ls: cannot access /proc/66215/fd/: No such file or directory + blkid: mbr-wholedisk ... SKIPPED (missing scsi_debug module (dry-run)) blkid: MD raid0 (whole-disks) ... SKIPPED (losetup not found) blkid: MD raid1 (last partition) ... SKIPPED (missing in PATH: mdadm) blkid: MD raid1 (whole-disks) ... SKIPPED (losetup not found) @@ -343,11 +343,11 @@ dmesg: facilities ... SKIPPED (test_dmesg not found) dmesg: indentation ... SKIPPED (test_dmesg not found) eject: umount ... SKIPPED (eject not found) -ls: cannot access /proc/69561/fd/: No such file or directory -ls: cannot access /proc/69609/fd/: No such file or directory + fdisk: align 512/4K ... SKIPPED (missing scsi_debug module (dry-run)) + fdisk: align 512/4K +alignment_offset ... SKIPPED (missing scsi_debug module (dry-run)) fdisk: align 512/4K +MD ... SKIPPED (missing in PATH: mdadm) fdisk: align 512/512 ... SKIPPED (losetup not found) [...] Signed-off-by: Ruediger Meier tests/functions.sh | 45 +++++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 20 deletions(-) commit aa00f7441d370d45996eec8d83bd00eff43721b5 Author: Ruediger Meier Date: Wed Jan 24 00:20:15 2018 +0100 tests: add wierd sleep for libmount/context I still don't understand why this helps to fix these tests on my system. udevadm settle had no positive effect. Adding the sleeps before "is_mounted" also didn't fixed that, that's amazing!? Below the test log, very often seen on my system since a long time: -------------------- util-linux regression tests -------------------- For development purpose only. Don't execute on production system! kernel: 4.4.104-39-default libmount: context: [01] mount-by-devname ... OK libmount: context: [02] umount-by-devname ... OK libmount: context: [03] mount-by-label ... OK libmount: context: [04] umount-by-mountpoint ... OK libmount: context: [05] mount-by-uuid ... FAILED (libmount/context-mount-by-uuid) libmount: context: [06] mount-flags ... FAILED (libmount/context-mount-flags) libmount: context: [07] mount-loopdev ... OK libmount: context: [08] x-mount.mkdir ... OK libmount: context: [09] X-mount.mkdir ... OK libmount: context ... FAILED (2 from 9 sub-tests) --------------------------------------------------------------------- 1 tests of 17 FAILED --------------------------------------------------------------------- rudi@zappa:~/devel/util-linux/build> cat tests/diff/libmount/context-mount-by-uuid --- /home/rudi/devel/util-linux/tests/expected/libmount/context-mount-by-uuid 2017-07-03 12:20:24.144845538 +0200 +++ /home/rudi/devel/util-linux/build/tests/output/libmount/context-mount-by-uuid 2018-01-24 00:42:18.549444408 +0100 @@ -1,2 +1,3 @@ successfully mounted -successfully umounted +failed to umount +FAILED [rc=16]/dev/sdb1 still mounted rudi@zappa:~/devel/util-linux/build> cat tests/diff/libmount/context-mount-flags --- /home/rudi/devel/util-linux/tests/expected/libmount/context-mount-flags 2017-07-03 12:20:24.148845497 +0200 +++ /home/rudi/devel/util-linux/build/tests/output/libmount/context-mount-flags 2018-01-24 00:42:18.725442931 +0100 @@ -1,5 +1,5 @@ +test_mount_context: failed to mount: Device or resource busy +FAILED [rc=16]rw,relatime successfully mounted -ro,nosuid,noexec -successfully mounted -rw,nosuid,noexec +rw,relatime successfully umounted Signed-off-by: Ruediger Meier tests/ts/libmount/context | 2 ++ 1 file changed, 2 insertions(+) commit 80ea6e24f33bedc01e9c0b3dead27f5374d927b4 Author: Ruediger Meier Date: Wed Mar 7 17:16:28 2018 +0100 tests: add some more udevadm settle Signed-off-by: Ruediger Meier tests/ts/minix/mkfs | 1 + tests/ts/mount/label | 2 +- tests/ts/mount/umount-alltargets | 2 ++ tests/ts/mount/umount-recursive | 1 + tests/ts/swapon/label | 2 ++ 5 files changed, 7 insertions(+), 1 deletion(-) commit 277d61b9f4931a3b0f3099df8d23acc7940b23ed Author: Ruediger Meier Date: Tue Mar 6 23:58:41 2018 +0100 travis: enable osx root checks Signed-off-by: Ruediger Meier .travis-functions.sh | 3 +++ .travis.yml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) commit 48ff1a52ed8dc79d46add4654fc889a7e6249045 Merge: 2446d0487 35e953e04 Author: Karel Zak Date: Wed Mar 7 12:41:13 2018 +0100 Merge branch 'setpriv-caps' of https://github.com/yrro/util-linux commit 2446d0487fb7283ddbc9ed8f6e705476919303f9 Author: Karel Zak Date: Wed Mar 7 11:53:15 2018 +0100 uuidd: cosmetic coding style change Signed-off-by: Karel Zak misc-utils/uuidd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit eb10dbc159dd0d7dfd7c213c0351eef6e17d45ef Author: Ruediger Meier Date: Wed Mar 7 10:40:23 2018 +0100 uuidd: don't truncate long socket paths This was the error uuidd: couldn't bind unix socket /var/tmp/portage/sys-apps/util-linux-2.31.1/work/util-linux-2.31.1-abi_x86_64.amd64/tests/output/uuid/uuiddkOcTUuoZ7kaP3: Address already in use because the socket path was truncated to 108 chars which was luckily an existing directory. Now we abort early with "uuidd: socket name too long: ... " Reported-by: Thomas Deutschmann Signed-off-by: Ruediger Meier misc-utils/uuidd.c | 12 ++++++++---- tests/ts/uuid/uuidd | 3 ++- 2 files changed, 10 insertions(+), 5 deletions(-) commit 35e953e04a896e1ac6f75b8f54dfc3531d70eee3 Author: Sam Morris Date: Tue Mar 6 17:05:38 2018 +0000 setpriv: fix manpage typo The example given in the man page didn't work. Judging by commit db663995bd93e170a43b1a7050c7a738782dabfb, --inh-caps= used to be called --caps= but the man page was not updated after the change was made. sys-utils/setpriv.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 76de2157cf579c98620535c2d6352096063aa2b1 Author: Karel Zak Date: Tue Mar 6 14:44:23 2018 +0100 libmount: fix fs pattern usage in mount --all The command "mount -a -t " uses the -t as pattern to filter fstab entries. And "mount -t " is used to specify FS type. Unfortunately libmount does not care about this difference when it calls standard mount functionality. The original pattern is still in the library control struct and mnt_do_mount() tries to use it as FS type. This patch is just bugfix. Maybe the long term solution would be to differentiate between the pattern and type in the library API. Now the library follows mount(8) command line and it's little bit messy. Reported-by: Lukas Czerner Signed-off-by: Karel Zak libmount/src/context_mount.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) commit dcb673937faa2c3249f6f4482a3ca32da7155105 Author: Karel Zak Date: Mon Mar 5 13:40:55 2018 +0100 docs: add script(1) events idea to TODO Addresses: https://github.com/karelzak/util-linux/issues/583 Signed-off-by: Karel Zak Documentation/TODO | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) commit bdb75f9e457966a39f903a60b8cb152d09fb7a93 Author: Karel Zak Date: Mon Mar 5 12:23:55 2018 +0100 docs: add note about JSON Signed-off-by: Karel Zak Documentation/TODO | 7 +++++++ 1 file changed, 7 insertions(+) commit b8fe1169388a2eb49aec993ada89f38ccaed8fc9 Merge: c50ad3241 7cd784d00 Author: Karel Zak Date: Fri Mar 2 14:04:20 2018 +0100 Merge branch 'master' of https://github.com/yurchor/util-linux * 'master' of https://github.com/yurchor/util-linux: Fix minor typos on man pages commit c50ad32410235c209cb6e0c0cb7d7926a246a4af Author: Sami Kerola Date: Sun Feb 18 20:22:01 2018 +0000 bash-completion: update zramctl algorithms list Reference: a3612b81fe0c172bc4fe7e2cf468f195bd785222. Signed-off-by: Sami Kerola bash-completion/zramctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7cd784d006d794740275f249e9c964de2b03a0c5 Author: Yuri Chornoivan Date: Thu Mar 1 16:42:34 2018 +0200 Fix minor typos on man pages sys-utils/lsmem.1 | 2 +- sys-utils/lsns.8 | 2 +- sys-utils/rfkill.8 | 2 +- sys-utils/unshare.1 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)