Changes between v2.31 and v2.32-rc1 -------------------------------------------- commit 37ae6191f7c5686f1f9a2c3984e2cd9a62764029 Author: Karel Zak Date: Tue Feb 13 12:22:15 2018 +0100 docs: update v2.32-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.32-ReleaseNotes | 405 ++++++++++++++++++++++++++++++ 1 file changed, 405 insertions(+) commit 94ee61dd9abf24d98dbac745aab81520a4caa1c5 Author: Karel Zak Date: Tue Feb 13 11:16:02 2018 +0100 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) commit 80bbf3b5911793c121e09743ce7c943c4e86dfb9 Author: Karel Zak Date: Tue Feb 13 11:02:07 2018 +0100 po: merge changes Signed-off-by: Karel Zak po/ca.po | 3394 +++++++++++++++++++++-------------------- po/cs.po | 3562 ++++++++++++++++++++++--------------------- po/da.po | 3403 +++++++++++++++++++++-------------------- po/de.po | 3403 +++++++++++++++++++++-------------------- po/es.po | 3552 ++++++++++++++++++++++--------------------- po/et.po | 3392 +++++++++++++++++++++-------------------- po/eu.po | 3389 +++++++++++++++++++++-------------------- po/fi.po | 3866 ++++++++++++++++++++++------------------------- po/fr.po | 3403 +++++++++++++++++++++-------------------- po/gl.po | 3381 +++++++++++++++++++++-------------------- po/hr.po | 3367 +++++++++++++++++++++-------------------- po/hu.po | 3390 +++++++++++++++++++++-------------------- po/id.po | 3396 +++++++++++++++++++++-------------------- po/it.po | 3396 +++++++++++++++++++++-------------------- po/ja.po | 4369 ++++++++++++++++++++++------------------------------- po/nl.po | 3414 +++++++++++++++++++++-------------------- po/pl.po | 3552 ++++++++++++++++++++++--------------------- po/pt_BR.po | 3560 ++++++++++++++++++++++--------------------- po/ru.po | 3389 +++++++++++++++++++++-------------------- po/sl.po | 3394 +++++++++++++++++++++-------------------- po/sv.po | 3414 +++++++++++++++++++++-------------------- po/tr.po | 3406 +++++++++++++++++++++-------------------- po/uk.po | 3552 ++++++++++++++++++++++--------------------- po/util-linux.pot | 3352 ++++++++++++++++++++-------------------- po/vi.po | 3406 +++++++++++++++++++++-------------------- po/zh_CN.po | 3405 +++++++++++++++++++++-------------------- po/zh_TW.po | 3394 +++++++++++++++++++++-------------------- 27 files changed, 48131 insertions(+), 45770 deletions(-) commit 40cbda080b2befe96b6ad4fa45bf60df307a1633 Author: Yuri Chornoivan Date: Tue Feb 13 10:56:08 2018 +0100 po: update uk.po (from translationproject.org) po/uk.po | 1052 +++++++++++++++++++++++++++----------------------------------- 1 file changed, 450 insertions(+), 602 deletions(-) commit 73e99e048e25ea89bd2cce5ff800ec1b915382d5 Author: Rafael Fontenelle Date: Tue Feb 13 10:56:08 2018 +0100 po: update pt_BR.po (from translationproject.org) po/pt_BR.po | 350 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 176 insertions(+), 174 deletions(-) commit 6c99d3d9b74112e40510102782a0abea98cf177a Author: Jakub Bogusz Date: Tue Feb 13 10:56:08 2018 +0100 po: update pl.po (from translationproject.org) po/pl.po | 350 ++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 176 insertions(+), 174 deletions(-) commit 0fa1924e335b88a6e3ebd802b444e42c8cfb319b Author: Takeshi Hamasaki Date: Tue Feb 13 10:56:08 2018 +0100 po: update ja.po (from translationproject.org) po/ja.po | 1408 ++++++++++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 1106 insertions(+), 302 deletions(-) commit eaae23ab8b2b15094e00789b871862894c5dc740 Author: Lauri Nurmi Date: Tue Feb 13 10:56:08 2018 +0100 po: update fi.po (from translationproject.org) po/fi.po | 1788 +++++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 1000 insertions(+), 788 deletions(-) commit 148e879725327d9772b871021fcdd2d06b5b012c Author: Antonio Ceballos Roa Date: Tue Feb 13 10:56:08 2018 +0100 po: update es.po (from translationproject.org) po/es.po | 1056 +++++++++++++++++++++++++++----------------------------------- 1 file changed, 454 insertions(+), 602 deletions(-) commit 731cec32f04a12956d367f32fd19a063bc80b1d5 Author: Petr Písař Date: Tue Feb 13 10:56:08 2018 +0100 po: update cs.po (from translationproject.org) po/cs.po | 1099 +++++++++++++++++++++++++++----------------------------------- 1 file changed, 474 insertions(+), 625 deletions(-) commit dd83526ae3c85c2af62922c5e5fa15b4652f382f Author: Karel Zak Date: Tue Feb 13 10:52:57 2018 +0100 dmesg: use xstrdup() in xalloc.h based util Signed-off-by: Karel Zak sys-utils/dmesg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 3289bd6eef595f69c4f80f13249bf57be49c97c3 Author: Karel Zak Date: Tue Feb 13 10:42:44 2018 +0100 tests: update build-sys tests Signed-off-by: Karel Zak tests/expected/build-sys/config-all | 2 +- tests/expected/build-sys/config-all-non-nls | 2 +- tests/expected/build-sys/config-audit | 2 +- tests/expected/build-sys/config-chfnsh-libuser | 2 +- tests/expected/build-sys/config-chfnsh-no-password | 2 +- tests/expected/build-sys/config-chfnsh-pam | 2 +- tests/expected/build-sys/config-core | 2 +- tests/expected/build-sys/config-devel | 2 +- tests/expected/build-sys/config-devel-non-docs | 2 +- tests/expected/build-sys/config-non-libblkid | 1 - tests/expected/build-sys/config-non-libmount | 1 - tests/expected/build-sys/config-non-libuuid | 2 +- tests/expected/build-sys/config-non-nls | 2 +- tests/expected/build-sys/config-selinux | 2 +- tests/expected/build-sys/config-slang | 2 +- tests/expected/build-sys/config-static | 2 +- 16 files changed, 14 insertions(+), 16 deletions(-) commit dcca7846c0f353780332882d2b94b7936e447850 Author: Karel Zak Date: Tue Feb 13 10:30:39 2018 +0100 libblkid: make mpool independent on libuuid Signed-off-by: Karel Zak libblkid/src/superblocks/mpool.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) commit 1800de76baf2f1a455d9d25402a72c51df7c91be Author: Karel Zak Date: Mon Feb 12 14:19:47 2018 +0100 tests: column(1) test for space-char separator Signed-off-by: Karel Zak tests/expected/column/table-input-separator-space | 6 ++++++ tests/ts/column/files/table-sep-space | 6 ++++++ tests/ts/column/table | 3 +++ 3 files changed, 15 insertions(+) commit f2c3c3a14f30ef410ec51720ef85d2fb89cd7b9f Author: Karel Zak Date: Mon Feb 12 14:14:50 2018 +0100 tests: column(1) test non-space separator at begin of line Signed-off-by: Karel Zak tests/expected/column/table-input-separator | 2 +- tests/ts/column/files/table-sep | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 5c7b67fbbf41c973ca8d49b1e8bdba22dbb917aa Author: Karel Zak Date: Mon Feb 12 14:06:02 2018 +0100 column: don't ignore space-char separators at begin of the line Non-space separator: $ echo -e ",col1,col2\nrow,1,2" | column -t -s "," --table-columns A,B,C A B C col1 col2 row 1 2 Space-char (\t) separator: $ echo -e "\tcol1\tcol2\nrow\t1\t2" | column -t -s "$(echo -e '\t')" --table-columns A,B,C A B C col1 col2 row 1 2 Fixed version: $ echo -e "\tcol1\tcol2\nrow\t1\t2" | column -t -s "$(echo -e '\t')" --table-columns A,B,C A B C col1 col2 row 1 2 Addresses: https://github.com/karelzak/util-linux/issues/575 Signed-off-by: Karel Zak text-utils/column.c | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) commit 4365c8107f68a2af518a9c26bb5f64f780d54eed Author: Samuel Thibault Date: Mon Feb 12 12:09:40 2018 +0100 su: build fix for the case where USE_PTY is not defined Signed-off-by: Karel Zak login-utils/su-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit d51f05bfecb299a830897106460bf395be440c0a Author: Karel Zak Date: Fri Feb 9 14:18:18 2018 +0100 lsblk: try device/dev to read devno Now sysfs_devname_to_devno() reads devno from /dev or /sys/block//dev, but it seems that NVME uses /sys/block//device/dev. Reported-by: Potnuri Bharat Teja Signed-off-by: Karel Zak lib/sysfs.c | 97 ++++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 54 insertions(+), 43 deletions(-) commit 256298191cb09e04af6d44d434a35c7e9c203a42 Author: Karel Zak Date: Wed Feb 7 11:37:32 2018 +0100 docs: update TODO Let's think about "mount --onlyonce". Addresses: https://github.com/karelzak/util-linux/issues/448 Signed-off-by: Karel Zak Documentation/TODO | 6 ++++++ 1 file changed, 6 insertions(+) commit a31bb9b6a149a931f53b299331890972ad2e764d Author: Karel Zak Date: Wed Feb 7 11:06:58 2018 +0100 cal: clean up man page synopsis syntax Let's use '[ ]' rather than '< >' to be compatible with our another man pages. Note that all time addressing on cal(1) command line is optional. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1542883 Signed-off-by: Karel Zak misc-utils/cal.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7aa670f66fc88d82279235014dba982999fd226b Author: Karel Zak Date: Wed Feb 7 10:36:28 2018 +0100 docs: update TODO Signed-off-by: Karel Zak Documentation/TODO | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 8e782a83958ad1eb49c6e78c006cefc3bdae3ab4 Author: Karel Zak Date: Mon Feb 5 12:18:49 2018 +0100 mount: add note about "already mounted" behavior Addresses: https://github.com/karelzak/util-linux/issues/448 Signed-off-by: Karel Zak sys-utils/mount.8 | 7 +++++++ 1 file changed, 7 insertions(+) commit 73f617ca638dedb5b6545555837b638782b86ed2 Author: Karel Zak Date: Mon Feb 5 11:58:09 2018 +0100 tests: add mpool blkid test image Signed-off-by: Karel Zak tests/expected/blkid/low-probe-mpool | 6 ++++++ tests/ts/blkid/images-fs/mpool.img.xz | Bin 0 -> 544 bytes 2 files changed, 6 insertions(+) commit f04c77f0a3a5f5fdcd90de17deee16d2d7027bcb Author: Jakub Wilk Date: Sun Feb 4 19:31:17 2018 +0100 findmnt.8: remove spurious spaces before "--tree" and "--verbose" Signed-off-by: Jakub Wilk misc-utils/findmnt.8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit f3932a6bb5c84fa27041fa8331b44e85a0827b91 Author: Karel Zak Date: Fri Feb 2 10:31:24 2018 +0100 tests: rewrite cal(1) bigyear test Signed-off-by: Karel Zak tests/expected/cal/bigyear | 109 ------------------------------ tests/expected/cal/bigyear-1m-month | 9 +++ tests/expected/cal/bigyear-1m-year | 9 +++ tests/expected/cal/bigyear-1mj-month | 9 +++ tests/expected/cal/bigyear-1mj-year | 9 +++ tests/expected/cal/bigyear-1mjw-month | 9 +++ tests/expected/cal/bigyear-1mjw-year | 9 +++ tests/expected/cal/bigyear-1mw-month | 9 +++ tests/expected/cal/bigyear-1mw-year | 9 +++ tests/expected/cal/bigyear-1s-month | 9 +++ tests/expected/cal/bigyear-1s-year | 9 +++ tests/expected/cal/bigyear-1sj-month | 9 +++ tests/expected/cal/bigyear-1sj-year | 9 +++ tests/expected/cal/bigyear-1sjw-month | 9 +++ tests/expected/cal/bigyear-1sjw-year | 9 +++ tests/expected/cal/bigyear-1sw-month | 9 +++ tests/expected/cal/bigyear-1sw-year | 9 +++ tests/expected/cal/bigyear-3m-month | 9 +++ tests/expected/cal/bigyear-3mj-month | 9 +++ tests/expected/cal/bigyear-3mjw-month | 9 +++ tests/expected/cal/bigyear-3mw-month | 9 +++ tests/expected/cal/bigyear-3s-month | 9 +++ tests/expected/cal/bigyear-3sj-month | 9 +++ tests/expected/cal/bigyear-3sjw-month | 9 +++ tests/expected/cal/bigyear-3sw-month | 9 +++ tests/expected/cal/bigyearw | 109 ------------------------------ tests/ts/cal/bigyear | 121 +++++++++++++++------------------- tests/ts/cal/bigyearw | 98 --------------------------- 28 files changed, 269 insertions(+), 384 deletions(-) commit 22db7b5132e6dd9653f85689b019faadd8a107e7 Author: Karel Zak Date: Fri Feb 2 10:16:27 2018 +0100 tests: use TS_HELPER_CAL Signed-off-by: Karel Zak tests/commands.sh | 1 + tests/ts/cal/month | 7 +++++-- tests/ts/cal/sep1752 | 7 +++++-- 3 files changed, 11 insertions(+), 4 deletions(-) commit b9d9ab7dae14815cc5f40aae0170cd8ed7d342eb Author: Karel Zak Date: Fri Feb 2 10:05:15 2018 +0100 cal: add ifdef TEST_CAL The test program follows CAL_TEST_TIME= rather than libc time(). It allows to use cal(1) in regression tests in cases where output depends on the current time. (We already use the same for example for logger.) Signed-off-by: Karel Zak misc-utils/Makemodule.am | 5 +++++ misc-utils/cal.c | 22 ++++++++++++++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) commit 78952313214b762328f1775d8d4a799b063c5dd6 Author: Karel Zak Date: Thu Feb 1 16:53:45 2018 +0100 tests: update setarch test Signed-off-by: Karel Zak tests/expected/misc/setarch-options | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 8d31f146ed19c141108649538c1d6a8f6753d45e Author: Karel Zak Date: Thu Feb 1 16:52:14 2018 +0100 libmount: fix debug message Signed-off-by: Karel Zak libmount/src/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit fd777151bf71eb8e2238a24e20efa8ce132e74e9 Author: Karel Zak Date: Thu Feb 1 15:44:25 2018 +0100 sys-utils: use errexec() Signed-off-by: Karel Zak sys-utils/eject.c | 2 +- sys-utils/nsenter.c | 2 +- sys-utils/prlimit.c | 2 +- sys-utils/setarch.c | 7 +++---- sys-utils/setpriv.c | 3 +-- sys-utils/setsid.c | 2 +- sys-utils/swapon.c | 4 ++-- sys-utils/switch_root.c | 2 +- sys-utils/unshare.c | 2 +- 9 files changed, 12 insertions(+), 14 deletions(-) commit 7bc5eeee44e6645b0fe5508a863d846f7fbb7397 Author: Karel Zak Date: Thu Feb 1 15:41:42 2018 +0100 vipw: use errexec() Signed-off-by: Karel Zak login-utils/vipw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 856fcfd104607dad9dc77550af8f940d64bd97d6 Author: Karel Zak Date: Thu Feb 1 15:41:23 2018 +0100 newgrp: use errexec() Signed-off-by: Karel Zak login-utils/newgrp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) commit 61b6222269c2044bf04daed4424d52751c8ff023 Author: Karel Zak Date: Thu Feb 1 15:40:59 2018 +0100 schedutils: use errexec() Signed-off-by: Karel Zak schedutils/chrt.c | 2 +- schedutils/ionice.c | 2 +- schedutils/taskset.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit 62fa0883be6b2a51f8e69275c4cb31557e84b79f Author: Karel Zak Date: Thu Feb 1 15:40:43 2018 +0100 text-utils: use errexec() Signed-off-by: Karel Zak text-utils/more.c | 4 +++- text-utils/pg.c | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) commit 0f6adf8673037e7c2f41d00949165ede17aa148a Author: Karel Zak Date: Thu Feb 1 15:38:24 2018 +0100 lib/exec_shell: (and pager) use errexec() Signed-off-by: Karel Zak lib/exec_shell.c | 2 +- lib/pager.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 3c29b695dda3a8b50ec77a115887907f6ee03da2 Author: Karel Zak Date: Thu Feb 1 15:37:22 2018 +0100 su: use errexec() The new macro is fully compatible with original (coreutils) code. Signed-off-by: Karel Zak login-utils/su-common.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) commit cf654e1c3ec8f6f9ac93bf4f6981d560249868d9 Author: Karel Zak Date: Thu Feb 1 14:58:52 2018 +0100 include/c: add errexec() The new errexec() macro consolidate and unify the way how util-linux tools react to failed exec()-like functions: * exit code 126 when program located, but not usable * exit code 127 when could not find program to exec The exit codes are compatible with coreutils. Note that all the change is located in c.h; the file exitcodes.h contains API specific (mkfs, fsck, ...) codes only. Addresses: https://github.com/karelzak/util-linux/pull/311 Signed-off-by: Karel Zak include/c.h | 6 ++++++ 1 file changed, 6 insertions(+) commit 79d6aa38119a38816ce53632ec77284b35f8ed2a Author: Karel Zak Date: Thu Feb 1 14:49:49 2018 +0100 findfs: don't include exitcodes.h The code uses findfs return codes only. Signed-off-by: Karel Zak misc-utils/findfs.c | 1 - 1 file changed, 1 deletion(-) commit 3bf6c444625351110c1b6642b9bf356f683bbb57 Author: Karel Zak Date: Thu Feb 1 14:49:49 2018 +0100 fstrim: don't include exitcodes.h The code uses generic and libmount return codes only. Signed-off-by: Karel Zak sys-utils/fstrim.c | 1 - 1 file changed, 1 deletion(-) commit 8e066650e2134818cc2b6c7d37036b91892a0b8e Author: Karel Zak Date: Thu Feb 1 13:23:40 2018 +0100 build-sys: gtkdoc-fixxref v1.27 requires module option Signed-off-by: Karel Zak config/gtk-doc.make | 1 + 1 file changed, 1 insertion(+) commit 63c9c05d358c339b473b6f18d9a6f3fe0e6bce42 Author: Karel Zak Date: Thu Feb 1 13:18:57 2018 +0100 misc: remove %p from debug messages From libs where suid program may be executed by non-root user. Signed-off-by: Karel Zak libblkid/src/partitions/partitions.c | 19 +++++++++---------- libblkid/src/probe.c | 32 ++++++++++++++++---------------- libmount/src/fs.c | 8 +------- libmount/src/tab_diff.c | 6 +++--- libmount/src/tab_update.c | 4 ++-- libsmartcols/src/cell.c | 2 +- libsmartcols/src/column.c | 2 +- libsmartcols/src/line.c | 6 +++--- libsmartcols/src/table.c | 14 +++++++------- libsmartcols/src/table_print.c | 6 +----- 10 files changed, 44 insertions(+), 55 deletions(-) commit 117d079199a723d06cfd4daee386a0e54423e8ba Author: Karel Zak Date: Thu Feb 1 12:25:39 2018 +0100 lib/exec_shell: cleanup function attributes Reported-by: Sami Kerola Signed-off-by: Karel Zak include/exec_shell.h | 7 ++++++- lib/exec_shell.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) commit 9a84ecc0d8218401696e8a7255ae4fe1d9e829ce Merge: cb1b3a203 046351760 Author: Karel Zak Date: Wed Jan 31 11:08:06 2018 +0100 Merge branch 'libblkid-atari' of https://github.com/yontalcar/util-linux * 'libblkid-atari' of https://github.com/yontalcar/util-linux: libblkid: atari - reject devices with blocksize != 512 libblkid: atari - don't add duplicate entries libblkid: atari - test if any partition fits disk size tests: added missing expected outputs for partx (atari) libblkid: atari - fix bad variable name tests: added test for libblkid atari pt libblkid: Support for Atari partitioning scheme commit cb1b3a203dd386cd1d11363330171c8631b010a7 Author: Karel Zak Date: Wed Jan 31 11:06:40 2018 +0100 docs: update TODO Signed-off-by: Karel Zak Documentation/TODO | 10 ---------- 1 file changed, 10 deletions(-) commit 900d77e419223672f553ae46b743a041d90fa207 Author: Karel Zak Date: Tue Jan 30 16:19:14 2018 +0100 tests: update cal(1) tests * remove extra space after year output f066c107ce6b76b4b11b239b9ab77561d4e0b84e * don't print blank space behind last char on row 8315a2ff1507571ef14d77beac867b34a7d5e6da * print just specified number of month for -1, -3 and -n 2bcf8f7934649a5ee7925cdfdb12ca5abbf59b38 Signed-off-by: Karel Zak tests/expected/cal/bigyear | 300 ++++----------- tests/expected/cal/bigyearw | 300 ++++----------- tests/expected/cal/color | 72 ++-- tests/expected/cal/colorw | 72 ++-- tests/expected/cal/jan1753-3w | 12 +- tests/expected/cal/jan1753-m3w | 12 +- tests/expected/cal/month-1m | 12 +- tests/expected/cal/month-1mj | 12 +- tests/expected/cal/month-1mjw | 12 +- tests/expected/cal/month-1mw | 12 +- tests/expected/cal/month-1s | 12 +- tests/expected/cal/month-1sj | 12 +- tests/expected/cal/month-1sjw | 12 +- tests/expected/cal/month-1sw | 12 +- tests/expected/cal/month-3m | 12 +- tests/expected/cal/month-3mj | 12 +- tests/expected/cal/month-3mjw | 12 +- tests/expected/cal/month-3mw | 12 +- tests/expected/cal/month-3s | 12 +- tests/expected/cal/month-3sj | 12 +- tests/expected/cal/month-3sjw | 12 +- tests/expected/cal/month-3sw | 12 +- tests/expected/cal/sep1752-1m-month | 12 +- tests/expected/cal/sep1752-1m-year | 43 +-- tests/expected/cal/sep1752-1mj-month | 12 +- tests/expected/cal/sep1752-1mj-year | 59 +-- tests/expected/cal/sep1752-1mjw-month | 12 +- tests/expected/cal/sep1752-1mjw-year | 59 +-- tests/expected/cal/sep1752-1mw-month | 12 +- tests/expected/cal/sep1752-1mw-year | 43 +-- tests/expected/cal/sep1752-1s-month | 12 +- tests/expected/cal/sep1752-1s-year | 43 +-- tests/expected/cal/sep1752-1sj-month | 12 +- tests/expected/cal/sep1752-1sj-year | 59 +-- tests/expected/cal/sep1752-1sjw-month | 12 +- tests/expected/cal/sep1752-1sjw-year | 59 +-- tests/expected/cal/sep1752-1sw-month | 12 +- tests/expected/cal/sep1752-1sw-year | 43 +-- tests/expected/cal/sep1752-3m-month | 12 +- tests/expected/cal/sep1752-3mj-month | 12 +- tests/expected/cal/sep1752-3mjw-month | 12 +- tests/expected/cal/sep1752-3mw-month | 12 +- tests/expected/cal/sep1752-3s-month | 12 +- tests/expected/cal/sep1752-3sj-month | 12 +- tests/expected/cal/sep1752-3sjw-month | 12 +- tests/expected/cal/sep1752-3sw-month | 12 +- tests/expected/cal/sep1752-week-iso | 12 +- tests/expected/cal/weekarg-1m-week53 | 12 +- tests/expected/cal/weekarg-1m-week53-color | 12 +- tests/expected/cal/weekarg-1mj-week53 | 12 +- tests/expected/cal/weekarg-1mj-week53-color | 12 +- tests/expected/cal/weekarg-3m-week40 | 12 +- tests/expected/cal/weekarg-3m-week40-color | 12 +- tests/expected/cal/weekarg-3m-week52-color | 12 +- tests/expected/cal/weekarg-3m-week53-color | 12 +- tests/expected/cal/weekarg-3mj-week40 | 12 +- tests/expected/cal/weekarg-3mj-week40-color | 12 +- tests/expected/cal/weekarg-3s-week40 | 12 +- tests/expected/cal/weekarg-3s-week54-color | 12 +- tests/expected/cal/weekarg-3sj-week40 | 12 +- tests/expected/cal/weekarg-m-week40 | 12 +- tests/expected/cal/weekarg-mj-week40 | 12 +- tests/expected/cal/weekarg-s-week40 | 12 +- tests/expected/cal/weekarg-sj-week40 | 12 +- tests/expected/cal/weeknum-3mjw | 84 ++--- tests/expected/cal/weeknum-3mw | 84 ++--- tests/expected/cal/weeknum-3sjw | 84 ++--- tests/expected/cal/weeknum-3sw | 84 ++--- tests/expected/cal/weeknum-ymjw | 567 +++++++++++----------------- tests/expected/cal/weeknum-ymw | 343 +++++++++-------- tests/expected/cal/weeknum-ysjw | 567 +++++++++++----------------- tests/expected/cal/weeknum-ysw | 343 +++++++++-------- tests/expected/cal/year-ym | 49 ++- tests/expected/cal/year-ymj | 81 ++-- tests/expected/cal/year-ymjw | 81 ++-- tests/expected/cal/year-ymw | 49 ++- tests/expected/cal/year-ys | 49 ++- tests/expected/cal/year-ysj | 81 ++-- tests/expected/cal/year-ysjw | 81 ++-- tests/expected/cal/year-ysw | 49 ++- 80 files changed, 1784 insertions(+), 2668 deletions(-) commit f066c107ce6b76b4b11b239b9ab77561d4e0b84e Author: Karel Zak Date: Tue Jan 30 16:17:10 2018 +0100 cal: remove extra space after year output Reported-by: Mike Frysinger Signed-off-by: Karel Zak misc-utils/cal.c | 3 --- 1 file changed, 3 deletions(-) commit 37bd991f774f8cd10a70b44f6818484c77607f8b Author: Karel Zak Date: Tue Jan 30 16:14:15 2018 +0100 cal: don't use year header for -1, -3 or -n Signed-off-by: Karel Zak misc-utils/cal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 8315a2ff1507571ef14d77beac867b34a7d5e6da Author: Karel Zak Date: Tue Jan 30 15:38:06 2018 +0100 cal: follow terminal width * modify number of months in row according to the terminal width * don't print blank space behind last char on row Signed-off-by: Karel Zak misc-utils/cal.c | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) commit 046351760f1a3e739ff20eb3615676cfdff5742d Author: Vaclav Dolezal Date: Tue Jan 30 13:50:15 2018 +0100 libblkid: atari - reject devices with blocksize != 512 Signed-off-by: Vaclav Dolezal libblkid/src/partitions/atari.c | 4 ++++ 1 file changed, 4 insertions(+) commit 2afbcec5612fdb6fe95244c0d5ab412fb6776e00 Author: Mike Frysinger Date: Wed Jan 24 23:21:49 2018 -0500 build-sys: (configure) fix bashisms The `test` command only recognizes =, not ==. Signed-off-by: Mike Frysinger configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 63bf2439eb9d8d555892b164cc636038b70c62fe Author: Karel Zak Date: Tue Jan 30 12:21:03 2018 +0100 zramctl: use xstrdup() Signed-off-by: Karel Zak sys-utils/zramctl.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) commit a3612b81fe0c172bc4fe7e2cf468f195bd785222 Author: Libor Bukata Date: Wed Jan 24 17:10:09 2018 +0100 Added the support for lz4hc, deflate, and 842 compression algorithms in zramctl utility. Signed-off-by: Libor Bukata sys-utils/zramctl.8 | 2 +- sys-utils/zramctl.c | 30 ++++++++++++++++-------------- 2 files changed, 17 insertions(+), 15 deletions(-) commit 568419b1aa6d3c59c9e55579f18e8c8920337378 Author: Vaclav Dolezal Date: Wed Jan 24 13:52:49 2018 +0100 libblkid: atari - don't add duplicate entries This should protect against looped XGMs. Signed-off-by: Vaclav Dolezal libblkid/src/partitions/atari.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) commit 98d87b95de6b43cc66e99a4b4013c0d4b5ee40f8 Author: Vaclav Dolezal Date: Wed Jan 24 13:38:14 2018 +0100 libblkid: atari - test if any partition fits disk size Signed-off-by: Vaclav Dolezal libblkid/src/partitions/atari.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) commit d7db28c6d66fdd061c5201bffb74ea14a1fffc49 Author: J William Piggott Date: Mon Jan 22 15:07:15 2018 -0500 cal: do not set months_in_row with -3 option Having the -3 option set months_in_row causes ordinal days to wrap; it overrides the automatic handling of months_in_row that falls back to 2 month columns for ordinal days. Before: cal -3j 2020 2020 July August September Sun Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu Fri Sat 182 183 184 185 186 187 213 214 215 244 245 246 247 248 249 250 188 189 190 191 192 193 194 216 217 218 219 220 221 222 251 252 253 254 255 256 257 195 196 197 198 199 200 201 223 224 225 226 227 228 229 258 259 260 261 262 263 264 202 203 204 205 206 207 208 230 231 232 233 234 235 236 265 266 267 268 269 270 271 209 210 211 212 237 238 239 240 241 242 243 272 273 Patched: cal -3j 2020 2020 December January Sun Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu Fri Sat 335 336 337 338 339 340 341 1 2 3 4 342 343 344 345 346 347 348 5 6 7 8 9 10 11 349 350 351 352 353 354 355 12 13 14 15 16 17 18 356 357 358 359 360 361 362 19 20 21 22 23 24 25 363 364 365 26 27 28 29 30 31 February Sun Mon Tue Wed Thu Fri Sat 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Signed-off-by: J William Piggott misc-utils/cal.c | 1 - 1 file changed, 1 deletion(-) commit 2bcf8f7934649a5ee7925cdfdb12ca5abbf59b38 Author: J William Piggott Date: Mon Jan 22 15:05:08 2018 -0500 cal: honor num_months when only a year argument I don't know if this was an oversight or an overzealous interpretation of POSIX. Just in case, I'll address the POSIX possibility. POSIX description for cal(1) says: If only the year operand is given, cal shall produce a calendar for all twelve months in the given calendar year. It also says that cal(1) has no options, so in that context if an option is given then it should be expected to override POSIX behavior. Before patched all of these command displayed a full year: cal -1 2020 cal -3 2020 cal -n6 2020 Patched the number of months options are honored. This patch also fixes the -1 option which was a no-op. Signed-off-by: J William Piggott misc-utils/cal.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) commit 0aade1d3196524b7f36137191cba9be5e007028f Author: Mike Frysinger Date: Fri Jan 19 13:45:20 2018 -0500 mount(8): drop redundant filesystem-specific sections Add a new section to the top of the filesystem-specific chapter to point people generally to the filesystem-specific man pages. This way we can delete all the redundant subsections that say the same thing. These subsections are deleted because they offer no options. Which is the same as all the filesystems the kernel supports but this man page doesn't explicitly list (of which there are a few). coherent minix ramfs romfs squashfs sysv xenix These subsections are deleted because they simply point to the respective (5) or mount.(8) page which we now document at the top. Some also discuss the syscall ABI, but that doesn't seem appropriate for this page. btrfs cifs ext2 ext3 ext4 nfs nfs4 proc smbfs tmpfs xfs Signed-off-by: Mike Frysinger sys-utils/mount.8 | 335 ++---------------------------------------------------- 1 file changed, 8 insertions(+), 327 deletions(-) commit 40defd0c4d6a2a3f4b40842c3b8798755a5c1ef1 Author: Ruediger Meier Date: Tue Jan 23 16:59:28 2018 +0100 rfkill: provide RFKILL_TYPE_FM if undefined As discussed last year it's nice to be compatible to 2.6.32 https://www.spinics.net/lists/util-linux-ng/msg13963.html BTW also re-define NUM_RFKILL_TYPES if needed, although we are not really using it. Signed-off-by: Ruediger Meier sys-utils/rfkill.c | 5 +++++ 1 file changed, 5 insertions(+) commit 839203c00ecb6b3dffd0d3eb8c77dac87584c241 Author: Ruediger Meier Date: Tue Jan 23 16:59:27 2018 +0100 tests: fix fincore/count KNOWN_FAIL It has to be set after calling ts_init. Signed-off-by: Ruediger Meier tests/ts/fincore/count | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) commit 20432749c17663d422e65c0bff99c019af0f16f4 Author: root Date: Tue Jan 23 16:59:26 2018 +0100 tests: suppress warning for old sync(1) Old sync(1) prints a warning which looks ugly among our test output: "sync: ignoring all arguments" Seen on travis, Ubuntu <= 14.04 (Trusty). Signed-off-by: Ruediger Meier tests/functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 68ac426949170bb3802a6d610f366f24aa0bb734 Author: Ruediger Meier Date: Tue Jan 23 16:59:25 2018 +0100 fsck.cramfs: fix error message errno is invalid in case that we just read(3) too short. Signed-off-by: Ruediger Meier disk-utils/fsck.cramfs.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit c990f94cbcc68c7bab47458a09e361ce0791b6d8 Author: Ruediger Meier Date: Tue Jan 23 16:59:24 2018 +0100 tests: rewrite fsck-bad-header Fix test for systems with pagesize != 4096 Loop over many combinations of sizes, endianness and blocksizes. Signed-off-by: Ruediger Meier tests/expected/cramfs/fsck-bad-header | 1 - tests/expected/cramfs/fsck-bad-header-nopad-4K-be | 29 +++++++++ tests/expected/cramfs/fsck-bad-header-nopad-4K-le | 29 +++++++++ tests/expected/cramfs/fsck-bad-header-pad-4K-be | 29 +++++++++ tests/expected/cramfs/fsck-bad-header-pad-4K-le | 29 +++++++++ tests/expected/cramfs/fsck-bad-header-pad-64K-be | 29 +++++++++ tests/expected/cramfs/fsck-bad-header-pad-64K-le | 29 +++++++++ tests/ts/cramfs/fsck-bad-header | 74 +++++++++++++++++++++-- 8 files changed, 243 insertions(+), 6 deletions(-) commit 2374b1ab75c66c9ecea86fc97abb6d6c048bcf45 Author: Ruediger Meier Date: Tue Jan 23 16:59:23 2018 +0100 fsck.cramfs: fix crash when superblock size is too small This hopefully fixes the original problem addressed by the reverted patch 7cb962c7. The bug was introduced by myself in f991dbd3 "fsck.cramfs: allow smaller superblock sizes" CC: Tobias Stoeckmann Signed-off-by: Ruediger Meier disk-utils/fsck.cramfs.c | 2 +- tests/expected/cramfs/fsck-bad-header | 3 +-- tests/ts/cramfs/fsck-bad-header | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) commit 919e372da872bcc37502783e80564654569edb22 Author: Ruediger Meier Date: Tue Jan 23 16:59:22 2018 +0100 Revert "fsck.cramfs: Fix bus error on broken file system." This reverts commit 7cb962c77015e9383b53eeb22ce732cb5216bbc3. It can't be right that we mmap (start + super.size) bytes from a file which is usually only super.size bytes large. The patch "fixed" a problem when super.size is bad but now it fails for the correct case: $ mkdir -p root/subdir $ ./mkfs.cramfs -p root cramfs $ ./fsck.cramfs cramfs Bus error (core dumped) We will fix the original problem later. CC: Tobias Stoeckmann Signed-off-by: Ruediger Meier disk-utils/fsck.cramfs.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) commit 8273ef25fa75052fdb71fcd79c94d1fba6d8459d Author: Vaclav Dolezal Date: Wed Jan 24 12:20:11 2018 +0100 tests: added missing expected outputs for partx (atari) Signed-off-by: Vaclav Dolezal tests/expected/partx/partx-image-atari-icd | 7 +++++++ tests/expected/partx/partx-image-atari-xgm | 7 +++++++ 2 files changed, 14 insertions(+) commit 1ca8fba830463e7612d5cf925a8a87515706c024 Author: Vaclav Dolezal Date: Wed Jan 24 12:16:23 2018 +0100 libblkid: atari - fix bad variable name Signed-off-by: Vaclav Dolezal libblkid/src/partitions/atari.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8326045ace634663af9985aa9940112bcce2270d Author: Vaclav Dolezal Date: Tue Jan 23 16:10:59 2018 +0100 tests: added test for libblkid atari pt Signed-off-by: Vaclav Dolezal tests/expected/blkid/lowprobe-pt-atari-icd | 8 ++++++++ tests/expected/blkid/lowprobe-pt-atari-xgm | 8 ++++++++ tests/ts/blkid/images-pt/atari-icd.img.xz | Bin 0 -> 1920 bytes tests/ts/blkid/images-pt/atari-xgm.img.xz | Bin 0 -> 1920 bytes 4 files changed, 16 insertions(+) commit 50c71f25ffe3b8e3ce07a1283b6345b5741ce7b7 Author: Vaclav Dolezal Date: Wed Jan 10 17:58:39 2018 +0100 libblkid: Support for Atari partitioning scheme Addresses: https://github.com/karelzak/util-linux/issues/517 Signed-off-by: Vaclav Dolezal libblkid/src/Makemodule.am | 1 + libblkid/src/partitions/atari.c | 259 +++++++++++++++++++++++++++++++++++ libblkid/src/partitions/partitions.c | 3 +- libblkid/src/partitions/partitions.h | 1 + 4 files changed, 263 insertions(+), 1 deletion(-) commit c0b340bc9972c9484e2cfa13054c9fe0f9925931 Author: Karel Zak Date: Mon Jan 22 17:09:25 2018 +0100 tests: use subtests for weeknum cal(1) tests Signed-off-by: Karel Zak tests/expected/cal/weeknum | 1485 --------------------------------------- tests/expected/cal/weeknum-3mjw | 57 ++ tests/expected/cal/weeknum-3mw | 57 ++ tests/expected/cal/weeknum-3sjw | 57 ++ tests/expected/cal/weeknum-3sw | 57 ++ tests/expected/cal/weeknum-ymjw | 358 ++++++++++ tests/expected/cal/weeknum-ymw | 246 +++++++ tests/expected/cal/weeknum-ysjw | 358 ++++++++++ tests/expected/cal/weeknum-ysw | 246 +++++++ tests/ts/cal/weeknum | 78 +- 10 files changed, 1459 insertions(+), 1540 deletions(-) commit 940b55ac4bdee3cb9bff87f9c83988d25957f45f Author: Karel Zak Date: Mon Jan 22 16:55:07 2018 +0100 tests: use subtests for weekarg cal(1) tests Signed-off-by: Karel Zak tests/expected/cal/weekarg | 147 ------------------------- tests/expected/cal/weekarg-1m-week53 | 9 ++ tests/expected/cal/weekarg-1m-week53-color | 9 ++ tests/expected/cal/weekarg-1mj-week53 | 9 ++ tests/expected/cal/weekarg-1mj-week53-color | 9 ++ tests/expected/cal/weekarg-3m-week40 | 9 ++ tests/expected/cal/weekarg-3m-week40-color | 9 ++ tests/expected/cal/weekarg-3m-week52-color | 9 ++ tests/expected/cal/weekarg-3m-week53-color | 9 ++ tests/expected/cal/weekarg-3mj-week40 | 9 ++ tests/expected/cal/weekarg-3mj-week40-color | 9 ++ tests/expected/cal/weekarg-3s-week40 | 9 ++ tests/expected/cal/weekarg-3s-week54-color | 9 ++ tests/expected/cal/weekarg-3sj-week40 | 9 ++ tests/expected/cal/weekarg-m-week40 | 9 ++ tests/expected/cal/weekarg-mj-week40 | 9 ++ tests/expected/cal/weekarg-s-week40 | 9 ++ tests/expected/cal/weekarg-sj-week40 | 9 ++ tests/ts/cal/weekarg | 164 +++++++++------------------- 19 files changed, 202 insertions(+), 262 deletions(-) commit 1b1f6f2511d1ad55fcca42255c35f12f6e6748fa Author: Karel Zak Date: Mon Jan 22 16:54:06 2018 +0100 test: use subtests for jan1753 cal(1) test Signed-off-by: Karel Zak tests/expected/cal/jan1753 | 19 ------------------- tests/expected/cal/jan1753-3w | 9 +++++++++ tests/expected/cal/jan1753-m3w | 9 +++++++++ tests/ts/cal/jan1753 | 30 ++++++++++++++++-------------- 4 files changed, 34 insertions(+), 33 deletions(-) commit 5b9138d9526e3755301cd3db0c934a49a100bc6f Author: Karel Zak Date: Mon Jan 22 15:59:06 2018 +0100 tests: merge year cal(1) tests * merge tests * use subtests for cal(1) calls Signed-off-by: Karel Zak tests/expected/cal/year | 177 ------------------------------------------- tests/expected/cal/year-ym | 36 +++++++++ tests/expected/cal/year-ymj | 52 +++++++++++++ tests/expected/cal/year-ymjw | 52 +++++++++++++ tests/expected/cal/year-ymw | 36 +++++++++ tests/expected/cal/year-ys | 36 +++++++++ tests/expected/cal/year-ysj | 52 +++++++++++++ tests/expected/cal/year-ysjw | 52 +++++++++++++ tests/expected/cal/year-ysw | 36 +++++++++ tests/expected/cal/yearw | 177 ------------------------------------------- tests/ts/cal/year | 50 ++++++------ tests/ts/cal/yearw | 60 --------------- 12 files changed, 374 insertions(+), 442 deletions(-) commit b0636cc11af5bb2d022a2e9788dee076814bca2b Author: Karel Zak Date: Mon Jan 22 15:53:00 2018 +0100 tests: merge 1m and 3m cal(1) tests * merge tests * use subtests for cal(1) calls Signed-off-by: Karel Zak tests/expected/cal/1m | 37 ------------------------- tests/expected/cal/1mw | 37 ------------------------- tests/expected/cal/3m | 37 ------------------------- tests/expected/cal/3mw | 37 ------------------------- tests/expected/cal/month-1m | 9 ++++++ tests/expected/cal/month-1mj | 9 ++++++ tests/expected/cal/month-1mjw | 9 ++++++ tests/expected/cal/month-1mw | 9 ++++++ tests/expected/cal/month-1s | 9 ++++++ tests/expected/cal/month-1sj | 9 ++++++ tests/expected/cal/month-1sjw | 9 ++++++ tests/expected/cal/month-1sw | 9 ++++++ tests/expected/cal/month-3m | 9 ++++++ tests/expected/cal/month-3mj | 9 ++++++ tests/expected/cal/month-3mjw | 9 ++++++ tests/expected/cal/month-3mw | 9 ++++++ tests/expected/cal/month-3s | 9 ++++++ tests/expected/cal/month-3sj | 9 ++++++ tests/expected/cal/month-3sjw | 9 ++++++ tests/expected/cal/month-3sw | 9 ++++++ tests/ts/cal/1m | 61 ----------------------------------------- tests/ts/cal/1mw | 61 ----------------------------------------- tests/ts/cal/3m | 60 ---------------------------------------- tests/ts/cal/3mw | 58 --------------------------------------- tests/ts/cal/month | 64 +++++++++++++++++++++++++++++++++++++++++++ 25 files changed, 208 insertions(+), 388 deletions(-) commit a88564a061766026b7b80c85176ae7a30eb0d9be Author: Karel Zak Date: Mon Jan 22 15:46:01 2018 +0100 tests: merge sep1752 cal(1) tests * merge tests * use subtests for cal(1) calls Signed-off-by: Karel Zak tests/expected/cal/sep1752 | 249 --------------------- tests/expected/cal/sep1752-1m-month | 9 + tests/expected/cal/sep1752-1m-year | 36 +++ tests/expected/cal/sep1752-1mj-month | 9 + tests/expected/cal/sep1752-1mj-year | 52 +++++ .../{sep1752w-1mjw-month => sep1752-1mjw-month} | 0 .../cal/{sep1752w-1mjw-year => sep1752-1mjw-year} | 0 .../cal/{sep1752w-1mw-month => sep1752-1mw-month} | 0 .../cal/{sep1752w-1mw-year => sep1752-1mw-year} | 0 tests/expected/cal/sep1752-1s-month | 9 + tests/expected/cal/sep1752-1s-year | 36 +++ tests/expected/cal/sep1752-1sj-month | 9 + tests/expected/cal/sep1752-1sj-year | 52 +++++ .../{sep1752w-1sjw-month => sep1752-1sjw-month} | 0 .../cal/{sep1752w-1sjw-year => sep1752-1sjw-year} | 0 .../cal/{sep1752w-1sw-month => sep1752-1sw-month} | 0 .../cal/{sep1752w-1sw-year => sep1752-1sw-year} | 0 tests/expected/cal/sep1752-3m-month | 9 + tests/expected/cal/sep1752-3mj-month | 9 + .../{sep1752w-3mjw-month => sep1752-3mjw-month} | 0 .../cal/{sep1752w-3mw-month => sep1752-3mw-month} | 0 tests/expected/cal/sep1752-3s-month | 9 + tests/expected/cal/sep1752-3sj-month | 9 + .../{sep1752w-3sjw-month => sep1752-3sjw-month} | 0 .../cal/{sep1752w-3sw-month => sep1752-3sw-month} | 0 .../cal/{sep1752w-week-iso => sep1752-week-iso} | 0 tests/ts/cal/sep1752 | 109 ++++----- tests/ts/cal/sep1752w | 81 ------- 28 files changed, 295 insertions(+), 392 deletions(-) commit 5c8324fb88080238786c8ae31bc5640d9b7e9bd6 Author: Karel Zak Date: Mon Jan 22 15:01:05 2018 +0100 tests: use subtests for sep1752w test Signed-off-by: Karel Zak tests/expected/cal/sep1752w | 258 --------------------------------- tests/expected/cal/sep1752w-1mjw-month | 9 ++ tests/expected/cal/sep1752w-1mjw-year | 52 +++++++ tests/expected/cal/sep1752w-1mw-month | 9 ++ tests/expected/cal/sep1752w-1mw-year | 36 +++++ tests/expected/cal/sep1752w-1sjw-month | 9 ++ tests/expected/cal/sep1752w-1sjw-year | 52 +++++++ tests/expected/cal/sep1752w-1sw-month | 9 ++ tests/expected/cal/sep1752w-1sw-year | 36 +++++ tests/expected/cal/sep1752w-3mjw-month | 9 ++ tests/expected/cal/sep1752w-3mw-month | 9 ++ tests/expected/cal/sep1752w-3sjw-month | 9 ++ tests/expected/cal/sep1752w-3sw-month | 9 ++ tests/expected/cal/sep1752w-week-iso | 9 ++ tests/ts/cal/sep1752w | 24 ++- 15 files changed, 275 insertions(+), 264 deletions(-) commit c24a4de605fea522ad91b66f7d6b2bd8024a6cac Author: Karel Zak Date: Mon Jan 22 14:37:43 2018 +0100 tests: simplify cal(1) sep1752w test Signed-off-by: Karel Zak tests/ts/cal/sep1752w | 105 +++++++++++++++++--------------------------------- 1 file changed, 35 insertions(+), 70 deletions(-) commit fbb94f5790e8c5175600b738569915a1ca79051e Author: Karel Zak Date: Mon Jan 22 14:26:39 2018 +0100 tests: add cal(1) --week=40 1752 Signed-off-by: Karel Zak tests/expected/cal/sep1752w | 9 +++++++++ tests/ts/cal/sep1752w | 6 ++++++ 2 files changed, 15 insertions(+) commit 6304358cb79f628ce13ec51964db176c0c083429 Author: J William Piggott Date: Mon Jan 22 07:03:27 2018 -0500 cal: fix first week calculation Commit efafeaf set 1 Jan as week 1, but the change was missed in week_to_day() and in the man page. Before cal --week=40 --iso 1752 October 1752 Su Mo Tu We Th Fr Sa 41 1 2 3 4 5 6 7 42 8 9 10 11 12 13 14 43 15 16 17 18 19 20 21 44 22 23 24 25 26 27 28 45 29 30 31 Patched cal --week=40 --iso 1752 September 1752 Su Mo Tu We Th Fr Sa 36 1 2 37 3 4 5 6 7 8 9 38 10 11 12 13 14 15 16 39 17 18 19 20 21 22 23 40 24 25 26 27 28 29 30 Signed-off-by: J William Piggott misc-utils/cal.1 | 12 ++++++------ misc-utils/cal.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) commit e572a765f9e2a9ff33677bbf5d01644c3c024327 Author: J William Piggott Date: Mon Jan 22 07:01:23 2018 -0500 cal: fix week calculations for 1752 Before: cal --week=39 1752 September 1752 Su Mo Tu We Th Fr Sa 36 1 2 14 15 16 37 17 18 19 20 21 22 23 38 24 25 26 27 28 29 30 Patched: cal --week=39 1752 October 1752 Su Mo Tu We Th Fr Sa 39 1 2 3 4 5 6 7 40 8 9 10 11 12 13 14 41 15 16 17 18 19 20 21 42 22 23 24 25 26 27 28 43 29 30 31 Signed-off-by: J William Piggott misc-utils/cal.c | 3 +++ 1 file changed, 3 insertions(+) commit 6776ab6f607d94a5e4a0cbbe94e0242dd1bd8aef Merge: 267b44e6e c72fa620b Author: Karel Zak Date: Mon Jan 22 14:01:42 2018 +0100 Merge branch 'patch-2' of https://github.com/sourcejedi/util-linux * 'patch-2' of https://github.com/sourcejedi/util-linux: mount(8): umount does not (anymore?) say `none busy' commit 267b44e6eee74b79d442dd9298f751dd69a08c67 Author: Karel Zak Date: Mon Jan 22 13:54:49 2018 +0100 mount: be more accurate in man page about propagation flags Addresses: https://github.com/karelzak/util-linux/issues/565 Signed-off-by: Karel Zak sys-utils/mount.8 | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) commit d4e89fc11f5bd1b53df1b5bce81aa85e2b3693ac Merge: af808dfa6 4e12a62e8 Author: Karel Zak Date: Mon Jan 22 13:31:22 2018 +0100 Merge branch 'master' of https://github.com/rluzynski/util-linux * 'master' of https://github.com/rluzynski/util-linux: cal: Use ALTMON_* correctly commit af808dfa6d14e35f0e2bc64d195aad3677752498 Author: Karel Zak Date: Mon Jan 22 13:20:51 2018 +0100 lscpu: (arm) cleanup code * check for strtol() errors * fix indention * fix coding style Signed-off-by: Karel Zak sys-utils/lscpu-arm.c | 56 ++++++++++++++++++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 19 deletions(-) commit 8229df2093a21b8812eeced352e3f579fd2b8053 Author: Karel Zak Date: Mon Jan 22 13:08:11 2018 +0100 lscpu: move ARM decoding to lscpu-arm.c Signed-off-by: Karel Zak sys-utils/Makemodule.am | 2 +- sys-utils/{lscpu-arm.h => lscpu-arm.c} | 46 +++++++++++++++++++++++++++++++--- sys-utils/lscpu.c | 42 ------------------------------- sys-utils/lscpu.h | 1 + 4 files changed, 44 insertions(+), 47 deletions(-) commit 7106169441b8b6cb0922f5f6deb588bd91e44a73 Author: Karel Zak Date: Mon Jan 22 12:59:11 2018 +0100 lscpu: move struct lscpu_desc header file The lscpu code is growing and it seems better to allow to make code more structured. Signed-off-by: Karel Zak sys-utils/lscpu-dmi.c | 3 - sys-utils/lscpu.c | 155 +----------------------------------------------- sys-utils/lscpu.h | 161 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 162 insertions(+), 157 deletions(-) commit 7b0926acb01d6baf1961ca5c7fd678e9e9807862 Merge: 1dca3edc3 744d62ee0 Author: Karel Zak Date: Mon Jan 22 12:47:47 2018 +0100 Merge branch 'arm-cpus' of https://github.com/suihkulokki/util-linux * 'arm-cpus' of https://github.com/suihkulokki/util-linux: lscpu: Decode ARM CPUs commit 4e12a62e884441dbce62d3bd38108022e93e25c6 Author: Rafal Luzynski Date: Tue Mar 21 09:27:08 2017 +0100 cal: Use ALTMON_* correctly cal: use ALTMON_* and _NL_ABALTMON_* constants to display months in a standalone form correctly. These constants have just been newly added to glibc. ALTMON_x has been used in BSD family since 1990s and has been accepted as the future POSIX extension. _NL_ABALTMON_* is exclusively a GNU extension but it is expected to be added to POSIX in future. More info: https://sourceware.org/bugzilla/show_bug.cgi?id=10871 configure.ac | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ include/nls.h | 30 ++++++++++++++++++++++++++++++ misc-utils/cal.c | 4 ++-- 3 files changed, 85 insertions(+), 2 deletions(-) commit 1dca3edc361ed73334c7789a692b7cd1c85081fa Author: J William Piggott Date: Wed Jan 17 21:21:02 2018 -0500 cal: fix julian calendars for large years Before: cal --r julian 31 12 2147483646 December 2147483646 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Patched: cal --r julian 31 12 2147483646 December 2147483646 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Signed-off-by: J William Piggott misc-utils/cal.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) commit af1bc027dbae27144669d55890839e33da1e6413 Author: Ruediger Meier Date: Sat Jan 20 19:06:24 2018 +0100 build-sys: remove redundant EXTRA_DIST files The sources of AC_CONFIG_FILES (*.in) are automatically distributed. Signed-off-by: Ruediger Meier libblkid/Makemodule.am | 2 +- libblkid/src/Makemodule.am | 3 +-- libfdisk/src/Makemodule.am | 3 +-- libmount/src/Makemodule.am | 3 +-- libsmartcols/src/Makemodule.am | 3 +-- 5 files changed, 5 insertions(+), 9 deletions(-) commit 4beacf105eeafa96d8f7b1b1bbaa4d18df960918 Author: Ruediger Meier Date: Sat Jan 20 19:06:23 2018 +0100 build-sys: avoid using prog_DEPENDENCIES Use EXTRA_prog_DEPENDENCIES to have the benefit of automake's automatic prog_DEPENDENCIES. Signed-off-by: Ruediger Meier libblkid/src/Makemodule.am | 4 +--- libfdisk/src/Makemodule.am | 5 +---- libmount/src/Makemodule.am | 4 +--- libsmartcols/src/Makemodule.am | 3 +-- libuuid/src/Makemodule.am | 4 +++- 5 files changed, 7 insertions(+), 13 deletions(-) commit 0da03d449021c5fae696d1ed6509e7604ab1483e Author: Ruediger Meier Date: Sat Jan 20 19:06:22 2018 +0100 build-sys: remove unneeded dependencies on bla.h.in We have already automakes's automatic dependencies like bla.h.in -> bla.h -> foo.o -> bar.la An explicit direct dependency bla.h.in -> bar.la is redundant and useless anyways. Signed-off-by: Ruediger Meier libblkid/src/Makemodule.am | 3 +-- libfdisk/src/Makemodule.am | 3 +-- libmount/src/Makemodule.am | 3 +-- libsmartcols/src/Makemodule.am | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) commit a459f2ec331ff4c700651eb0ea2b6fe92bd28380 Author: Ruediger Meier Date: Sat Jan 20 19:06:21 2018 +0100 build-sys: automake is able to find headers in builddir ... Signed-off-by: Ruediger Meier libblkid/src/Makemodule.am | 2 +- libfdisk/src/Makemodule.am | 2 +- libmount/src/Makemodule.am | 2 +- libsmartcols/src/Makemodule.am | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) commit 1d667d8849395808e22c0384ae072c712ac835ac Author: Ruediger Meier Date: Sat Jan 20 19:06:20 2018 +0100 build-sys: remove generated headers from dist tar ball Headers should only be listed in either *_HEADERS or *_SOURCES, especially when we want nodist_*_HEADERS. Since all the generated headers are made by configure we don't even need to use BUILT_SOURCES or other tricks. Also see automake docs 9.4.1 Built Sources Example: case "Build bindir.h from configure" Signed-off-by: Ruediger Meier libblkid/src/Makemodule.am | 2 -- libfdisk/src/Makemodule.am | 6 +----- libmount/src/Makemodule.am | 6 ++---- libsmartcols/src/Makemodule.am | 5 +---- libuuid/src/Makemodule.am | 4 +--- 5 files changed, 5 insertions(+), 18 deletions(-) commit ff4e18bd2d6e5509782ca18dc0619bdcee1d6caa Author: J William Piggott Date: Sun Dec 24 15:38:58 2017 -0500 hwclock: add --ul-debug implementing debug.h Undocumented at this time, because it is a skeleton implementation. More debugging points are to be added after refactoring is complete, or ad hoc in the mean time. When fully implemented, enough time may have passed that the deprecated --debug could be used to replace --ul-debug. [kzak@redhat.com: - use __UL_INIT_DEBUG_FROM_STRING() to initialize the mask - add hwclock_init_debug()] Coauthored-by: Sami Kerola Signed-off-by: Sami Kerola Signed-off-by: J William Piggott Signed-off-by: Karel Zak sys-utils/hwclock.c | 49 +++++++++++++++++++++++++++++++++---------------- sys-utils/hwclock.h | 14 ++++++++++++-- 2 files changed, 45 insertions(+), 18 deletions(-) commit c72fa620b0dfe258ea6e10f209ed56702d84581b Author: Alan Jenkins Date: Sun Jan 21 16:41:17 2018 +0000 mount(8): umount does not (anymore?) say `none busy' The closest I can get is with `mount`, so refer to that instead. # mount none -t proc /proc mount: /proc: none already mounted or mount point busy. # umount /proc umount: /proc: target is busy. # (cd /root; umount proc) umount: /proc: target is busy. Signed-off-by: Alan Jenkins sys-utils/mount.8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 744d62ee0c54963539832ec5943f3d25e0fccfbd Author: Riku Voipio Date: Thu Jan 18 16:57:51 2018 +0200 lscpu: Decode ARM CPUs Since the kernel developers have refused to make /proc/cpuinfo user understandable, implement mapping in userspace. lscpu is available for most users via util-linux, so store the information here. Signed-off-by: Riku Voipio sys-utils/Makemodule.am | 1 + sys-utils/lscpu-arm.h | 189 +++++++++++++++++++++++++++++++++++++++ sys-utils/lscpu.c | 47 ++++++++++ tests/expected/lscpu/lscpu-armv7 | 3 + 4 files changed, 240 insertions(+) commit 8fb096b2a71cb3e0a1172b22bcb9450a394c7e1c Author: Mike Frysinger Date: Thu Jan 18 21:22:46 2018 -0500 mount(8): point people to the proc(5) page for mount options This page is out of date wrt proc mount options, so point it to the proc(5) page which is kept up to date. Signed-off-by: Mike Frysinger sys-utils/mount.8 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit aefa920a794714959c09b3352f172da3695ddff3 Author: Karel Zak Date: Wed Jan 17 16:30:06 2018 +0100 sfdisk: add hint about udev and flock to the man page Addresses: https://github.com/karelzak/util-linux/issues/563 Signed-off-by: Karel Zak disk-utils/sfdisk.8 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) commit 88e5d289d5dcec3dfb7bc8f8fac89ce789e69d3f Author: Karel Zak Date: Wed Jan 17 14:41:56 2018 +0100 tests: mark fincore/count as KNOWN_FAIL The test (or our expectations about Direct-IO) seems not robust enough. I guess this is not fincore problem. Signed-off-by: Karel Zak tests/ts/fincore/count | 4 ++++ 1 file changed, 4 insertions(+) commit a9e4662d26b10789b28282d7e77ab189ef34cf5c Author: Carlos Santos Date: Sun Jan 14 16:39:31 2018 -0200 docs: add ISC licence Save the top 21 lines of sys-utils/rfkill.c as COPYING.ISC. This is useful for Linux distributions an integration tools like Buildroot, to collect detailed legal information for each package. [kzak@redhat.com: - remove C-comments and rfkill header] Signed-off-by: Carlos Santos Signed-off-by: Karel Zak Documentation/licenses/COPYING.ISC | 11 +++++++++++ 1 file changed, 11 insertions(+) commit a15dca2f6d0693546138a6a727f019dd8019dee8 Author: Karel Zak Date: Wed Jan 17 13:58:29 2018 +0100 include/debug: introduce __UL_INIT_DEBUG_FROM_STRING() Let's make it possible to use debug.h without environment variables. Suggested-by: J William Piggott Signed-off-by: Karel Zak disk-utils/cfdisk.c | 2 +- disk-utils/fdisk.c | 2 +- disk-utils/sfdisk.c | 2 +- include/debug.h | 19 ++++++++++++------- lib/colors.c | 2 +- lib/loopdev.c | 2 +- libblkid/src/init.c | 2 +- libfdisk/src/init.c | 2 +- libmount/src/init.c | 2 +- libsmartcols/src/init.c | 2 +- login-utils/su-common.c | 2 +- misc-utils/lsblk.c | 2 +- misc-utils/whereis.c | 2 +- sys-utils/lsns.c | 2 +- term-utils/script.c | 2 +- 15 files changed, 26 insertions(+), 21 deletions(-) commit de4568f7574fc529eea3ba9a49bb706ffbbd201c Author: J William Piggott Date: Sun Dec 24 15:37:36 2017 -0500 hwclock: rename --debug option to --verbose Warn on --debug; do not fallthrough because the message is lost in the verbose output. Coauthored-by: Sami Kerola Signed-off-by: Sami Kerola Signed-off-by: J William Piggott Documentation/deprecated.txt | 12 ++++++++ sys-utils/hwclock-rtc.c | 10 +++--- sys-utils/hwclock.8.in | 15 ++++++--- sys-utils/hwclock.c | 73 +++++++++++++++++++++++--------------------- sys-utils/hwclock.h | 3 +- 5 files changed, 66 insertions(+), 47 deletions(-) commit a4b55ad0080d1024808a7e27a740c63bbef3464f Author: J William Piggott Date: Tue Jan 16 13:08:31 2018 -0500 cal: update man page Update cal.1 with the new options --reform and --iso. Also add information about the calendar systems used and the difference between the --julian option and the Julian calendar system. Signed-off-by: J William Piggott misc-utils/cal.1 | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 74 insertions(+), 9 deletions(-) commit ae51e7b42975fc0440cfba2caf9cd2c93fa7bc2e Author: J William Piggott Date: Tue Jan 16 06:19:00 2018 -0500 cal: add option to set Gregorian reform date Create the new option: --reform <1752|gregorian|iso|julian> This adds the capability to display either the proleptic Gregorian or the Julian calendar systems exclusively. Also create the option --iso as alias of --reform=gregorian. Signed-off-by: J William Piggott misc-utils/cal.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 49 insertions(+), 4 deletions(-) commit db9baa8ab784ee35df4647275eb35ab95c1221f7 Author: J William Piggott Date: Mon Jan 15 11:06:36 2018 -0500 cal: move REFORMATION_YEAR to control struct Signed-off-by: J William Piggott misc-utils/cal.c | 86 ++++++++++++++++++++++++++++++++------------------------ 1 file changed, 49 insertions(+), 37 deletions(-) commit 7bd0c1ae18b1c9864b55c0362b737383e70f80c3 Author: Karel Zak Date: Fri Jan 12 13:46:49 2018 +0100 include/debug: improve debug message Signed-off-by: Karel Zak include/debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 66643f3151205f5fe3c56c65594ba3518dfbd1e9 Author: Karel Zak Date: Fri Jan 12 13:37:05 2018 +0100 include/debug: print info when addresses suppressed Suggested-by: Peter Cordes Signed-off-by: Karel Zak include/debug.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 7e95fd82b76b3800bd849a27e99e1ec88888577c Author: Karel Zak Date: Fri Jan 12 12:38:58 2018 +0100 sfdisk: cleanup shortcuts in man page too Signed-off-by: Karel Zak disk-utils/sfdisk.8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit e92b6f68c43612f669d4c59871f8b6ff2c7deff5 Author: Karel Zak Date: Fri Jan 12 12:04:16 2018 +0100 libfdisk: (script) be consistent in code with types Signed-off-by: Karel Zak libfdisk/src/script.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit bc9ca775a2027a4b587a0fddffb18068e2803199 Merge: 6d00cfb23 fb178a04a Author: Karel Zak Date: Fri Jan 12 11:59:22 2018 +0100 Merge branch 'mbsencode' of https://github.com/yontalcar/util-linux * 'mbsencode' of https://github.com/yontalcar/util-linux: tests: mark mbsencode as KNOWN_FAIL tests: mbsencode - test for HAVE_WIDECHAR lib/mbsalign: Fix escaping nonprintable multibyte characters tests: mbsencode - removed emoji, added control unicode character tests: add tests for encode functions from lib/mbsalign.c lib/mbsalign: escape "\x" when HAVE_WIDECHAR not defined commit 6d00cfb2330cb47d00d350eedfbffbbf5991a743 Author: Karel Zak Date: Fri Jan 12 11:01:26 2018 +0100 include/debug: don't print pointer address for SUID programs * introduce new flag __UL_DEBUG_FL_NOADDR to suppress pointer address printing * use __UL_DEBUG_FL_NOADDR when SUID * move ul_debugobj() to debugobj.h, and require UL_DEBUG_CURRENT_MASK to provide access to the current mask from ul_debugobj(). It's better than modify all ul_debugobj() calls and use the global mask as argument. * remove never used UL_DEBUG_DEFINE_FLAG Reported-by: halfdog Signed-off-by: Karel Zak include/Makemodule.am | 1 + include/debug.h | 27 +++++++++++---------------- include/debugobj.h | 22 ++++++++++++++++++++++ lib/loopdev.c | 3 +++ libblkid/src/blkidP.h | 3 +++ libfdisk/src/fdiskP.h | 3 +++ libmount/src/mountP.h | 3 +++ libsmartcols/src/smartcolsP.h | 3 +++ misc-utils/lsblk.c | 2 ++ misc-utils/whereis.c | 3 +++ sys-utils/lsns.c | 3 +++ 11 files changed, 57 insertions(+), 16 deletions(-) commit 9c76f85f9a9de1117bf6d89e8df7bdc664e25fa0 Author: Karel Zak Date: Thu Jan 11 15:18:00 2018 +0100 libfdisk: allow to start freespace for zero This is necessary for disk labels like SUN where whole disk is possible to address by partitions. Signed-off-by: Karel Zak libfdisk/src/context.c | 2 ++ libfdisk/src/sun.c | 5 +++++ libfdisk/src/table.c | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) commit f7606d2d9f8f7fc28b6b5e6cb295d4104b3df69b Author: Karel Zak Date: Thu Jan 11 14:23:57 2018 +0100 libfdisk: (sun) fix n-1 bug and whole-disk * set whole_disk variable if SUN_TAG_WHOLEDISK specified * fix N-1 bug in add new partition according to template (script) Addresses: https://github.com/karelzak/util-linux/issues/555 Signed-off-by: Karel Zak libfdisk/src/sun.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit fb178a04af60b3cae09547fc04e007a8269b714d Author: Vaclav Dolezal Date: Thu Jan 11 14:19:23 2018 +0100 tests: mark mbsencode as KNOWN_FAIL Signed-off-by: Vaclav Dolezal tests/ts/misc/mbsencode | 3 +++ 1 file changed, 3 insertions(+) commit 8326119ad1976c42275af848688e57f0100ffa82 Author: Vaclav Dolezal Date: Thu Jan 11 11:11:31 2018 +0100 tests: mbsencode - test for HAVE_WIDECHAR Test only safe-ascii as it should behave in the same way. Signed-off-by: Vaclav Dolezal tests/ts/misc/mbsencode | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) commit edf86d6bc05ac17703cec1dbf6e10d81d628cd3f Author: Vaclav Dolezal Date: Thu Jan 11 10:42:22 2018 +0100 lib/mbsalign: Fix escaping nonprintable multibyte characters Signed-off-by: Vaclav Dolezal lib/mbsalign.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 910a879f3dc095ccc90eeb2c2c60f7b68397d462 Author: Vaclav Dolezal Date: Thu Jan 11 10:38:43 2018 +0100 tests: mbsencode - removed emoji, added control unicode character Emojis are apparently too recent to be reliably recognised as printable on test machines. Signed-off-by: Vaclav Dolezal tests/expected/misc/mbsencode-invalid-ascii | 2 +- tests/expected/misc/mbsencode-invalid-utf8 | 2 +- tests/expected/misc/mbsencode-safe-ascii | 2 +- tests/expected/misc/mbsencode-safe-utf8 | 2 +- tests/ts/misc/mbsencode | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) commit b0feeab5e2afa044fe2d28d847b909f73deefe59 Merge: f82b085c3 845dac5f8 Author: Karel Zak Date: Thu Jan 11 10:09:48 2018 +0100 Merge branch 'fixes' of https://github.com/rudimeier/util-linux commit f82b085c31b505ca596b5808520f9c4356d099f1 Author: Tony Asleson Date: Tue Jan 9 15:08:12 2018 -0600 libblkid: Add support for stratis Initial support for stratis, ref. https://github.com/stratis-storage [kzak@redhat.com: - remove C++ comment] Signed-off-by: Tony Asleson Signed-off-by: Karel Zak libblkid/src/Makemodule.am | 1 + libblkid/src/superblocks/stratis.c | 105 +++++++++++++++++++++++++++++++++ libblkid/src/superblocks/superblocks.c | 1 + libblkid/src/superblocks/superblocks.h | 1 + 4 files changed, 108 insertions(+) commit cad13ba3441efd3889c0be922397b822e9054aaa Author: Vaclav Dolezal Date: Thu Dec 21 15:10:15 2017 +0100 tests: add tests for encode functions from lib/mbsalign.c Signed-off-by: Vaclav Dolezal tests/commands.sh | 1 + tests/expected/misc/mbsencode-invalid-ascii | 10 +++++ tests/expected/misc/mbsencode-invalid-utf8 | 10 +++++ tests/expected/misc/mbsencode-safe-ascii | 10 +++++ tests/expected/misc/mbsencode-safe-utf8 | 10 +++++ tests/helpers/Makemodule.am | 3 ++ tests/helpers/test_mbsencode.c | 52 ++++++++++++++++++++++++ tests/ts/misc/mbsencode | 62 +++++++++++++++++++++++++++++ 8 files changed, 158 insertions(+) commit 845dac5f8e61137f4c311aa2767c4bc5b7b6aae8 Author: Ruediger Meier Date: Fri Dec 1 20:57:24 2017 +0100 misc: fix printf i386 compiler warnings sys-utils/lsns.c:683:2: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘ino_t’ [-Werror=format=] Signed-off-by: Ruediger Meier sys-utils/lsns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 6ebc37854d6e34b79ba4c326cdc5607a25997196 Author: Karel Zak Date: Tue Jan 9 12:12:50 2018 +0100 libfdisk: (script) support R (RAID) and V (LVM) shortcuts Addresses: https://github.com/karelzak/util-linux/issues/560 Signed-off-by: Karel Zak disk-utils/sfdisk.8 | 6 ++++++ disk-utils/sfdisk.c | 4 ++-- libfdisk/src/script.c | 13 +++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) commit af846e1ff9ada8d0ed03fb83067e2bc1a4d24990 Author: Karel Zak Date: Mon Jan 8 12:43:22 2018 +0100 libfdisk: (gpt) add VMware specific UUIDs Addresses: https://github.com/karelzak/util-linux/issues/559 Signed-off-by: Karel Zak libfdisk/src/gpt.c | 7 +++++++ 1 file changed, 7 insertions(+) commit b5cc232362a60b2a7738ee250609202bd6195e49 Author: Karel Zak Date: Wed Jan 3 13:59:59 2018 +0100 libmount: fix mnt_table_is_fs_mounted() for rbind There is no difference between "bind" and "rbind" if we want to FS root to search for the FS in mountinfo file. fstab: /dev/sdc1 /mnt/foo xfs defaults 0 0 /mnt/foo /mnt/test none rw,rbind 0 0 use -a more than once: mount -a mount -a /proc/mounts (the current result): /dev/sdc1 /mnt/foo xfs rw,relatime,attr2,inode64,noquota 0 0 /dev/sdc1 /mnt/test xfs rw,relatime,attr2,inode64,noquota 0 0 /dev/sdc1 /mnt/test xfs rw,relatime,attr2,inode64,noquota 0 0 /dev/sdc1 /mnt/foo xfs rw,relatime,attr2,inode64,noquota 0 0 expected (fixed version) result: /dev/sdc1 /mnt/foo xfs rw,relatime,attr2,inode64,noquota 0 0 /dev/sdc1 /mnt/test xfs rw,relatime,attr2,inode64,noquota 0 0 Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1528959 Signed-off-by: Karel Zak libmount/src/tab.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 280b9754755b201e9fd1a830a4e0f05b6177e33c Author: Karel Zak Date: Tue Jan 2 16:50:31 2018 +0100 libfdisk: (dos) fix max heads Signed-off-by: Karel Zak libfdisk/src/dos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 2dd2880f12f402e137cbfab774fde8ceef1c71a0 Author: Karel Zak Date: Tue Jan 2 16:43:22 2018 +0100 libfdisk: extend API to provide label specific geometry ranges Now fdisk provides DOS specific geometry ranges in expert menu. Addresses: https://github.com/karelzak/util-linux/issues/556 Signed-off-by: Karel Zak disk-utils/fdisk-menu.c | 34 ++++++++++++++++------ libfdisk/src/dos.c | 8 ++++++ libfdisk/src/fdiskP.h | 3 ++ libfdisk/src/label.c | 70 ++++++++++++++++++++++++++++++++++++++++++++++ libfdisk/src/libfdisk.h.in | 7 +++++ libfdisk/src/libfdisk.sym | 6 ++++ libfdisk/src/sun.c | 21 ++++++++++++-- 7 files changed, 138 insertions(+), 11 deletions(-) commit c8ff2e55625d1c01eaf2a6b47bb958be3d58ecce Author: Sami Kerola Date: Sun Dec 3 15:43:25 2017 +0000 rtcwake: wait stdin to settle down before entering a system sleep This can delay entering to system sleep up to 0.28 seconds while discarding input, when stdin is interactive device. [kzak@redhat.com: - add note to the man page] Reference: https://github.com/karelzak/util-linux/issues/527 See-also: a85c39013491713ac0d9e24fd0f07b4fabdcfc17 Signed-off-by: Sami Kerola Signed-off-by: Karel Zak sys-utils/rtcwake.8.in | 7 +++++-- sys-utils/rtcwake.c | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) commit a60d6b52179d851d1d1165a06afa778ac9868107 Author: Karel Zak Date: Tue Jan 2 14:48:01 2018 +0100 sfdisk: wait before re-read The original old (v2.13) fdisk had sleep(2) beany ideafore re-read ioctl. It seems overkill, but short sleep is probably a good idea as we call re-read on sfdisk start and at the end. It's possible that sfdisk is too fast and the initial re-read is not gone yet. It would be nice to have something more elegant than sleep, any idea? Addresses: https://github.com/karelzak/util-linux/issues/557 Signed-off-by: Karel Zak disk-utils/sfdisk.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) commit 701ad607a5494628ad99f17d25377ca56d825e8e Merge: 4f1d6870b deff4975a Author: Karel Zak Date: Tue Jan 2 14:06:40 2018 +0100 Merge branch 'patch-1' of https://github.com/kenyon/util-linux commit 4f1d6870b50e0d369c652cbdb7d83f7e2089d9dc Merge: 4ff4b1106 e2215a854 Author: Karel Zak Date: Tue Jan 2 14:05:37 2018 +0100 Merge branch 'master' of https://github.com/yurchor/util-linux commit 4ff4b1106e8c6a71cce59ca40a2019342a92d47d Author: Karel Zak Date: Tue Jan 2 11:08:03 2018 +0100 lib/sha1: use proper WORDS_BIGENDIAN macro The original code uses BYTE_ORDER, but we use WORDS_BIGENDIAN in utl-linux. Reported-by: Andreas Schwab Signed-off-by: Karel Zak lib/sha1.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) commit e2215a8545af1c38084395a31ec66f04db2bee9b Author: Yuri Chornoivan Date: Sun Dec 31 13:07:43 2017 +0200 Fix minor typo: priorty -> priority sys-utils/renice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit deff4975a1692c4aa1c4033a413ffb6ac5369999 Author: Kenyon Ralph Date: Sat Dec 23 13:44:34 2017 -0800 rename.1: fix typo, where -> were misc-utils/rename.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 2ba65f379d2c57b87700192b37a0451a3820594e Author: Vaclav Dolezal Date: Thu Dec 21 15:23:56 2017 +0100 lib/mbsalign: escape "\x" when HAVE_WIDECHAR not defined Signed-off-by: Vaclav Dolezal lib/mbsalign.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) commit 43afa84581de8984aa00ef2e9208198929f72ddf Author: Karel Zak Date: Wed Dec 20 13:01:43 2017 +0100 lib/mbsalign: encode \x to \xecx Don't encode stand alone '\', our encoding is about \x, so we need to care about \x prefix only. Signed-off-by: Karel Zak lib/mbsalign.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) commit 760942e284c5b97bb3b31ad88936a2fed2271274 Author: Karel Zak Date: Wed Dec 20 12:31:10 2017 +0100 libfdisk: (gpt) use fdisk_warn() for failed name setting Signed-off-by: Karel Zak libfdisk/src/gpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 33d2e5a1ed1c6a362bd36dc0e08b679eee674343 Merge: 03700127a c11652418 Author: Karel Zak Date: Wed Dec 20 12:29:16 2017 +0100 Merge branch 'gpt-part-name' of https://github.com/yontalcar/util-linux * 'gpt-part-name' of https://github.com/yontalcar/util-linux: libfdisk: return bytes processed from gpt_entry_set_name(), process rc libfdisk: allocate enough bytes for ucs2 to utf8 encoding libfdisk: gpt: properly encode string on rename lib/mbsalign: encode backslash to prevent ambiguity commit 03700127a7254e61e34ecc24e0bca8c23de4bc02 Author: Karel Zak Date: Tue Dec 19 13:46:35 2017 +0100 tests: don't use mount. helpers in mount-by-pattern tests The test behavior is fragile if depends on external helpers. Let's keep it based on mount(2) only. The test will be faster too. Note that "mount -t " does not behaviour as expected with helpers. We need to try another helper if the current one ends with status=1 (waitpid()). Now it returns status from the first helper. Reported-by: Ruediger Meier Signed-off-by: Karel Zak tests/ts/mount/fslists | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit c116524184699ed30a823b3994d2e97684bb4505 Author: Vaclav Dolezal Date: Tue Dec 19 10:39:19 2017 +0100 libfdisk: return bytes processed from gpt_entry_set_name(), process rc Made gpt_entry_set_name() return number of utf8 bytes processed on success, so info message about change can be accurate. Signed-off-by: Vaclav Dolezal libfdisk/src/gpt.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) commit f069f6fe69dafb6fdd1276237d7719c7b197daa8 Author: Vaclav Dolezal Date: Thu Dec 14 15:39:42 2017 +0100 libfdisk: allocate enough bytes for ucs2 to utf8 encoding Allocate 3*number_of_ucs2_characters bytes for utf8 output. Also as we are using calloc there's no need to write terminating null byte. Signed-off-by: Vaclav Dolezal libfdisk/src/gpt.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) commit 5be3df4afd7adf8b71edee18625d6e35b23a6152 Author: Vaclav Dolezal Date: Wed Sep 20 15:50:37 2017 +0200 libfdisk: gpt: properly encode string on rename GPT partition name entry should be recorded as little endian UCS2, so I have written proper conversion (assuming UTF8 input). Signed-off-by: Vaclav Dolezal libfdisk/src/gpt.c | 46 ++++++++++++++++++++++++++++++++++++---------- 1 file changed, 36 insertions(+), 10 deletions(-) commit cf9b16f1d408faa63009667329431f7969303220 Author: Karel Zak Date: Mon Dec 18 13:57:20 2017 +0100 build-sys: don't check for swapon() number of arguments The syscall swapon() with two arguments is supported since Linux 1.3.2 and it's really long time ago... Let's assume that all libc header files have been already fixed. Signed-off-by: Karel Zak configure.ac | 18 ++++-------------- sys-utils/swapoff.c | 3 +-- sys-utils/swapon.c | 3 +-- 3 files changed, 6 insertions(+), 18 deletions(-) commit 10211619dc67ce28a420d8155c840d0b6d11577f Author: Karel Zak Date: Mon Dec 18 13:03:46 2017 +0100 libblkid: (bcache) cleanup magic string definition Reported-by: Sami Kerola Signed-off-by: Karel Zak libblkid/src/superblocks/bcache.c | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) commit 6ce7eca36cdeb2e3608c1d967f8b945856d76980 Author: Karel Zak Date: Mon Dec 18 12:44:03 2017 +0100 cal: fix multi-byte comment, explain in better way On Sun, Dec 17, 2017 at 07:47:49PM -0500, J William Piggott wrote > * it contains multi-byte characters (which is what drew me to reading it). > * it truncates one very important piece of the formula: ". . . (mod 7)." > * it explains the values for 'e', but there is no 'e' in the code. > * it doesn't include a row resolving 'e' in the table, so it is not > obvious what it relates to in the code. > * without citing it as an external reference, the comment language is confusing. Co-Author: J William Piggott Signed-off-by: Karel Zak misc-utils/cal.c | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) commit 7468a8d1060b2624c5d6077dc0dce3143a0586c0 Author: Karel Zak Date: Thu Dec 14 15:52:57 2017 +0100 whereis: fix typo in debug message Reported-by: Matthew White Signed-off-by: Karel Zak misc-utils/whereis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b9c650106b6db14dd4d162a9f1ff697bd790dc63 Author: Karel Zak Date: Thu Dec 14 13:19:08 2017 +0100 Revert "cal: simplify leap year rule" It was mistake, we use extra rule for date < 1752 from the beginning and another calculations depends on this. This reverts commit b9bd8dc267a71611859496bff29e329868273714. misc-utils/cal.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 3c49b23ad62a30ec5fa3864176cbfc21270ae7b2 Author: Karel Zak Date: Wed Dec 13 19:09:56 2017 +0100 cal: explain magic values for day of week calculation Based on BERNDT E.SCHWERDTFEGER papers. Signed-off-by: Karel Zak misc-utils/cal.c | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) commit 616e75c02c0737c5673869d5b9d072f619080190 Author: Masatake YAMATO Date: Tue Dec 12 16:16:45 2017 +0900 fincore: fix a typo in fincore.1 Signed-off-by: Masatake YAMATO misc-utils/fincore.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 68452bb568fae590dd9a7fe2afc381293f3a88d7 Author: Karel Zak Date: Wed Dec 13 12:57:22 2017 +0100 tests: update libsmartcols/title Signed-off-by: Karel Zak tests/expected/libsmartcols/title | 4 ++++ 1 file changed, 4 insertions(+) commit 3fa48b118adcfbfb1a45e9e1c62176fcdab900d8 Author: Karel Zak Date: Tue Dec 12 13:19:36 2017 +0100 libsmartcols: don't add blank padding after left aligned title Let's use the same semantic for the title as for the last column in the table. If aligned on left, table is not "maxout" and title padding symbol is undefined (or blank) then keep title as short as possible. Addresses: https://github.com/karelzak/util-linux/issues/549 Signed-off-by: Karel Zak libsmartcols/src/table_print.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) commit 8aeda56b5da50054168ad5cd2bdfeb773177b77e Author: Karel Zak Date: Tue Dec 12 13:16:54 2017 +0100 sample-scols-title: add left title without padding Signed-off-by: Karel Zak libsmartcols/samples/title.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) commit 856d856a98044194674f0e32e7a30ad78eac43a7 Author: Karel Zak Date: Tue Dec 12 12:09:13 2017 +0100 mcookie: properly initialize hash This stupid mistake has been introduced by commit 46ae163a8e5dc8457f8e2828eb53db8e610af275. Signed-off-by: Karel Zak misc-utils/mcookie.c | 1 + 1 file changed, 1 insertion(+) commit 42dea85c5aee6059052716b85aa109a2f2c7e87c Author: Karel Zak Date: Tue Dec 12 11:54:08 2017 +0100 lib/md5: use ul_/UL_ prefix The symbols names are too generic. Addresses: https://github.com/karelzak/util-linux/issues/548 Signed-off-by: Karel Zak disk-utils/mkfs.cramfs.c | 13 +++++++------ include/md5.h | 25 ++++++++++--------------- lib/md5.c | 26 +++++++++++++------------- libblkid/src/superblocks/hfs.c | 16 +++++++++------- libuuid/src/gen_uuid.c | 12 ++++++------ misc-utils/mcookie.c | 14 +++++++------- tests/helpers/test_md5.c | 12 ++++++------ 7 files changed, 58 insertions(+), 60 deletions(-) commit 3ae2cb49d9a8c20de1892c691b7cc86f4deb280c Author: Karel Zak Date: Tue Dec 12 11:42:28 2017 +0100 lib/sha1: fix indention * indent -linux -psl -blf lib/sha1.c * manually fix comments Signed-off-by: Karel Zak lib/sha1.c | 427 ++++++++++++++++++++++++++++--------------------------------- 1 file changed, 195 insertions(+), 232 deletions(-) commit b4db227582f1d0a14c7b63de8d57e6052b753d57 Author: Karel Zak Date: Tue Dec 12 11:38:17 2017 +0100 test_sha1: update helper Signed-off-by: Karel Zak tests/helpers/test_sha1.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit 3bd55be742aec60a93ebcdebc325b49737cd6642 Author: Karel Zak Date: Tue Dec 12 11:29:02 2017 +0100 lib/sha1: use ul_/UL_prefix for symbols Unfortunately, the symbols are visible in statically compiled libuuid and the names are too generic. Addresses: https://github.com/karelzak/util-linux/issues/548 Signed-off-by: Karel Zak include/sha1.h | 49 +++++++++++++++---------------------------------- lib/sha1.c | 34 +++++++++++++++++----------------- libuuid/src/gen_uuid.c | 12 ++++++------ 3 files changed, 38 insertions(+), 57 deletions(-) commit 50695114bec151efda34c00799b38824350c0f48 Merge: 6cdc7b9c0 2b798ecde Author: Karel Zak Date: Mon Dec 11 16:03:39 2017 +0100 Merge branch '2017wk48' of https://github.com/kerolasa/lelux-utiliteetit commit 2b798ecde9f3158eb23a62e6f3b09a7f0aef8f48 Author: Sami Kerola Date: Sun Dec 10 10:50:32 2017 +0000 docs: improve setarch(8) manual page Add more information when and why one might want to use various options. Reviewed-by: Dmitry V. Levin Signed-off-by: Sami Kerola sys-utils/setarch.8 | 57 ++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 46 insertions(+), 11 deletions(-) commit 6cdc7b9c02b251120eb014c4dbc2387d47e7fb46 Author: J William Piggott Date: Sat Dec 9 18:43:29 2017 -0500 lib/timeutils.c: warn format_iso_time() overflow Print a message when the format_iso_time() buffer is exceeded, because there is more than one type of failure that returns -1. Also remove the corresponding message from hwclock.c. Signed-off-by: J William Piggott lib/timeutils.c | 15 +++++++++------ sys-utils/hwclock.c | 5 ++--- 2 files changed, 11 insertions(+), 9 deletions(-) commit 2d9a0b0adb509d568576ff51c6511d1eb21c8938 Author: J William Piggott Date: Sat Dec 9 15:05:38 2017 -0500 lib/timeutils.c:strxxx_iso: do not wrap tm_year Year can wrap when adding the tm struct epoch during iso formatting: hwclock --utc --noadjfile --predict --date '67768034678844900 seconds' -2147481749-12-31 23:59:59.000000-05:00 Patched: hwclock --utc --noadjfile --predict --date '67768034678844900 seconds' 2147485547-12-31 23:59:59.000000-05:00 Comparable to date(1): date -Ins --date '67768034678844900 seconds' 2147485547-12-31T23:59:59,547886165-0500 Note: the 'seconds' argument is relative to the current time, so reaching this max year output is a moving target. The values shown above were invalid one second later. They then overflow tm_year upon conversion with localtime(3) and friends, which causes them to return NULL indicating that an error occurred. Signed-off-by: J William Piggott lib/timeutils.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) commit ee475ab23e17ed85d942229773f72147228fc812 Author: J William Piggott Date: Sat Dec 9 14:40:05 2017 -0500 lib/timeutils.c:strxxx_iso: test conversion errors Test for libc time conversion errors in ISO time format functions. hwclock --utc --noadjfile --predict --date '67768034678846520 seconds' Segmentation fault Patched: hwclock --utc --noadjfile --predict --date '67768034678846520 seconds' hwclock: time 67768036191695381 is out of range. Comparable to date(1): date --date '67768034678846520 seconds' date: time 67768036191695384 is out of range Signed-off-by: J William Piggott lib/timeutils.c | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) commit 97772cc329bfa555b38416dc4dcacd4d318560c3 Author: J William Piggott Date: Sat Dec 9 14:01:33 2017 -0500 lib/timeutils.c: bug fix Segmentation fault Use reentrant time functions to avoid sending a NULL pointer to format_iso_time() (and to be reentrant ;). Followup commits test for errors and tm_year wrapping (illustrated below). hwclock --utc --noadjfile --predict --date '67768034678849400 seconds' Segmentation fault Patched hwclock --utc --noadjfile --predict --date '67768034678849400 seconds' -2147481748-01-00 00:10:46.000000-05:00 Signed-off-by: J William Piggott lib/timeutils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 44d753407d6b751f022ef234c85785ccd99c5590 Author: Karel Zak Date: Thu Dec 7 15:08:29 2017 +0100 tests: unlocks on failed ts_scsi_debug_init Signed-off-by: Karel Zak tests/functions.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) commit 9212134d538cb691c3146236d025d8d5499dcfa4 Author: Karel Zak Date: Thu Dec 7 14:41:49 2017 +0100 tests: don't call tests with races in --parallel Some of the tests have a race by design (=wanted). Signed-off-by: Karel Zak tests/ts/libmount/loop | 71 ++++++++++++++++++++++++++----------------- tests/ts/losetup/losetup-loop | 54 ++++++++++++++++++-------------- 2 files changed, 75 insertions(+), 50 deletions(-) commit 7acd4b463afc02e848eeec68716d72bd1522763c Author: Karel Zak Date: Thu Dec 7 14:41:08 2017 +0100 tests: support multiple locks Signed-off-by: Karel Zak tests/functions.sh | 53 +++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 47 insertions(+), 6 deletions(-) commit f1254fae6da55d172c9f1e902db92231e51b48d5 Author: Karel Zak Date: Thu Dec 7 12:31:41 2017 +0100 tests: add mdadm locks Signed-off-by: Karel Zak tests/ts/blkid/md-raid0-whole | 2 ++ tests/ts/blkid/md-raid1-part | 4 ++++ tests/ts/blkid/md-raid1-whole | 5 +++++ tests/ts/fdisk/align-512-4K-md | 9 ++++++++- 4 files changed, 19 insertions(+), 1 deletion(-) commit b480afcabad0f0d92a7e99259a87f6f98af59fdd Author: Karel Zak Date: Thu Dec 7 12:15:34 2017 +0100 libblkid: add debug messages when ignore useless devices Signed-off-by: Karel Zak libblkid/src/superblocks/superblocks.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) commit 6418cba457a701d44294d934c2bc4b766bbcfa2b Author: Sweet Tea Dorminy Date: Wed Dec 6 18:26:59 2017 -0500 libblkid: Add VDO superblock information into blkid [kzak@redhat.com: - add tests/expected/blkid/low-probe-vdo - enlarge the image (must be > 1024)] Signed-off-by: Karel Zak libblkid/src/Makemodule.am | 1 + libblkid/src/superblocks/superblocks.c | 1 + libblkid/src/superblocks/superblocks.h | 1 + libblkid/src/superblocks/vdo.c | 48 +++++++++++++++++++++++++++++++++ tests/expected/blkid/low-probe-vdo | 4 +++ tests/ts/blkid/images-fs/vdo.img.xz | Bin 0 -> 140 bytes 6 files changed, 55 insertions(+) commit e140506af35821857a47c1013bad03b12f31062d Author: Karel Zak Date: Wed Dec 6 14:38:44 2017 +0100 tests: use flock to modify fstab Note that for btrfs test we need to use low-level ts_fstab_addline, because we add multiple lines there. Signed-off-by: Karel Zak tests/functions.sh | 11 ++++++++++- tests/ts/mount/fstab-broken | 3 ++- tests/ts/mount/fstab-btrfs | 27 +++++++++++++++++---------- tests/ts/mount/fstab-devname | 2 -- tests/ts/mount/fstab-loop | 9 +++++++-- 5 files changed, 36 insertions(+), 16 deletions(-) commit 9deb8c7dfd9b119884543416e4c681cbe21d97b2 Author: Karel Zak Date: Wed Dec 6 14:21:38 2017 +0100 tests: add lock on shared resources (e.g. scsi_debug) The patch enables flock for scsi_debug to avoid collision between tests. The patch also adds ./run.sh --nolocks to disable this feature. Signed-off-by: Karel Zak tests/functions.sh | 27 +++++++++++++++++++++++++++ tests/run.sh | 2 ++ 2 files changed, 29 insertions(+) commit cbfa1442761d5b85acd0652f2e7f0e21bf675cd4 Author: Sami Kerola Date: Sun Dec 3 12:51:17 2017 +0000 setarch: minor code clean up Remove global variable, skip unnecessary comparison, and remove version printing function when a simple printf() can do the job. In same go fix compiler warning. sys-utils/setarch.c:296:4: warning: null argument where non-null required (argument 2) [-Wnonnull] execl("/bin/bash", NULL); Signed-off-by: Sami Kerola sys-utils/setarch.c | 38 +++++++++++++++----------------------- 1 file changed, 15 insertions(+), 23 deletions(-) commit 378d58abb1c0d417dc9d4341e9852c27dd475dd7 Author: Sami Kerola Date: Sun Dec 3 12:51:15 2017 +0000 rename: use access(3) to check if a file exists This is more lightweight than calling stat(3). In same go add a regression test to ensure changes like this will not break --no-overwrite option. Signed-off-by: Sami Kerola misc-utils/rename.c | 3 +-- tests/expected/rename/overwrite | 1 + tests/ts/rename/overwrite | 31 +++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 2 deletions(-) commit a16f45d4f6c17f9f7baf65b32a8e2b2ebe6c1bc2 Author: Sami Kerola Date: Sun Dec 3 12:51:14 2017 +0000 vipw: do not let editor to inherit open file descriptors Signed-off-by: Sami Kerola login-utils/vipw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit e6b32e7d1adf2a0c09743d71dfdbe2742c5884ac Author: Karel Zak Date: Mon Dec 4 12:31:29 2017 +0100 login: add LOGIN_PLAIN_PROMPT to login.defs We have command line option -H to disable hostname in login prompt. Unfortunately, in same cases (e.g. telnetd) it's impossible to specify login(1) command line options due to hardcoded execl()... This patch introduces LOGIN_PLAIN_PROMPT boolean for /etc/login.defs to suppress hostname in the prompt. Signed-off-by: Karel Zak login-utils/login.1 | 12 ++++++++++++ login-utils/login.c | 12 +++++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) commit ded09e8ed60d031ad3963dccc1c71800f1d539e1 Author: Vaclav Dolezal Date: Fri Sep 8 16:36:26 2017 +0200 lib/mbsalign: encode backslash to prevent ambiguity Signed-off-by: Vaclav Dolezal lib/mbsalign.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 09cb6b42c9c4b8bcfea7d18dd481beb6564157b6 Author: Karel Zak Date: Wed Nov 29 15:13:24 2017 +0100 fallocate: remove typo Signed-off-by: Karel Zak sys-utils/fallocate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 173ef882376d5384ba5fc6a52d2a6000b4fc4bf1 Author: Karel Zak Date: Wed Nov 29 14:26:42 2017 +0100 fallocate: dig holes only in data extents Based on patch from Vaclav Dolezal , this implementation is less invasive. The patch adds a new while() for pread() call (so diff is mostly code indention). The pread() is called for a real data only (addressed by 'off' and 'end') and we use SEEK_{DATA,HOLE} before the pread() to skip already existing holes. The variables 'file_off' and 'file_end' addresses area in the file as specified on fallocate command line. Test: $ truncate -s 10G testfile $ dd if=/dev/zero of=testfile count=10 bs=1M conv=notrunc old version: $ time /usr/bin/fallocate --dig-holes --verbose testfile testfile: 10 GiB (10737418240 bytes) converted to sparse holes. real 0m3.013s user 0m0.700s sys 0m2.304s new version: $ time ./fallocate --dig-holes --verbose testfile testfile: 10 MiB (10485760 bytes) converted to sparse holes. real 0m0.026s user 0m0.002s sys 0m0.004s The old version scans all file. The change has minimal overhead for files without holes. Addresses: https://github.com/karelzak/util-linux/issues/421 Co-Author: Vaclav Dolezal Signed-off-by: Karel Zak sys-utils/fallocate.c | 119 +++++++++++++++++++++++--------------------------- 1 file changed, 55 insertions(+), 64 deletions(-) commit f4b03edb737f5d4991d9ec8816dd2b3ac3da7abf Author: Karel Zak Date: Tue Nov 28 14:49:05 2017 +0100 login-utils: use free_getlogindefs_data() It seems better to deallocate logindefs.conf stuff in long time running (=waiting) processes like login(1) and su(1). Signed-off-by: Karel Zak login-utils/login.c | 2 ++ login-utils/su-common.c | 2 ++ 2 files changed, 4 insertions(+) commit 6ce4256ecdf5fc75c9059670c175c71bce266eab Author: Sami Kerola Date: Sun Nov 26 17:47:51 2017 +0000 eject: remove list_speeds() #ifdef CDROM_SELECT_SPEED protection The CDROM_SELECT_SPEED should be available practically everywhere. Where the define is missing an error message about path /proc/sys/dev/cdrom/info cannot be opened is better error than a warnx() about kernel support. Signed-off-by: Sami Kerola sys-utils/eject.c | 4 ---- 1 file changed, 4 deletions(-) commit 0b7e4771883c378fa544af435159f08a1ffc7f4f Author: Sami Kerola Date: Sun Nov 26 17:47:49 2017 +0000 lib/signames: remove unused function Signed-off-by: Sami Kerola include/signames.h | 1 - lib/signames.c | 5 ----- 2 files changed, 6 deletions(-) commit bfcd327541e207d02aa5e12ccb7e5c9874b8c96f Author: Sami Kerola Date: Sun Nov 26 17:27:21 2017 +0000 man: use long options in text and add example to uuidgen Signed-off-by: Sami Kerola misc-utils/uuidgen.1 | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) commit fcf841f8d328933a572d67b01ece7b2111d9999f Author: Sami Kerola Date: Sun Nov 26 17:27:20 2017 +0000 misc: fix typos Signed-off-by: Sami Kerola libfdisk/src/context.c | 2 +- libsmartcols/src/line.c | 2 +- login-utils/su-common.c | 2 +- misc-utils/wipefs.8 | 2 +- text-utils/column.1 | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) commit 57358f50f396b5d439171eaa36c5e2aa44869afd Author: Karel Zak Date: Tue Nov 28 13:19:20 2017 +0100 tests: check for HAVE_LINUX_NET_NAMESPACE_H * use one cleanup function * check if kernel headers support net namespace * enable netnsid test Signed-off-by: Karel Zak tests/ts/lsns/netnsid | 29 ++++++++++++++++++----------- tests/ts/lsns/nsfs | 23 +++++++++-------------- 2 files changed, 27 insertions(+), 25 deletions(-) commit 68433f1e318e205aeb04e7a37c7acb7c67d18ffe Author: Karel Zak Date: Tue Nov 28 12:00:58 2017 +0100 tests: add set-x to lsns test .. just to see why does it fail on Travis. Signed-off-by: Karel Zak tests/ts/lsns/nsfs | 6 ++++++ 1 file changed, 6 insertions(+) commit 29f966a57b6ba4df783351910b484cfccb0cc3c1 Author: Karel Zak Date: Tue Nov 28 11:17:18 2017 +0100 tests: better lsns report on fail Signed-off-by: Karel Zak tests/ts/lsns/nsfs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) commit c3487d595510160b1124c90bb27209f4badcdde0 Author: Karel Zak Date: Tue Nov 28 10:58:37 2017 +0100 tests: make lsns test more robust Signed-off-by: Karel Zak tests/ts/lsns/nsfs | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) commit b9e4ee42c285e73b36879a96b9cde43edb0f90c6 Author: Karel Zak Date: Tue Nov 28 10:53:35 2017 +0100 nsenter: fix compiler warning [-Wuninitialized] sys-utils/nsenter.c: In function ‘is_same_namespace’: sys-utils/nsenter.c:170:2: warning: ‘b_ino’ may be used uninitialized in this function [-Wuninitialized] sys-utils/nsenter.c:170:2: warning: ‘a_ino’ may be used uninitialized in this function [-Wuninitialized] Signed-off-by: Karel Zak sys-utils/nsenter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit aec01d7211ee58948c6dbfb376ff52f0c9981ccf Author: Karel Zak Date: Tue Nov 28 10:45:06 2017 +0100 dmesg: fix compiler warning [-Wuninitialized] sys-utils/dmesg.c: In function ‘print_record.constprop.12’: sys-utils/dmesg.c:1039:14: warning: ‘mesg_size’ may be used uninitialized in this function [-Wuninitialized] Signed-off-by: Karel Zak sys-utils/dmesg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4b328279cebfa9a5eaad0b0f0a36227244dab58e Author: Karel Zak Date: Mon Nov 27 17:44:43 2017 +0100 build-sys: lsns requires libmount Signed-off-by: Karel Zak configure.ac | 1 + 1 file changed, 1 insertion(+) commit f593e2797ec5b6517d34df0a9976083b155fb41b Author: Karel Zak Date: Mon Nov 27 17:40:56 2017 +0100 lsns: initialize stuff when really necessary It's more robust to depend on list of the wanted columns than on another variables. Signed-off-by: Karel Zak sys-utils/lsns.8 | 2 +- sys-utils/lsns.c | 47 +++++++++++++++++++++++++---------------------- 2 files changed, 26 insertions(+), 23 deletions(-) commit 5a0d3030ca99ea11db9e78284e69a6bfce12c9bd Author: Karel Zak Date: Mon Nov 27 17:33:28 2017 +0100 tests: fix lsns perms Signed-off-by: Karel Zak tests/ts/lsns/nsfs | 0 1 file changed, 0 insertions(+), 0 deletions(-) commit deb3f5180c0c3249fbb2bf774a2ac537f484f6e7 Author: Karel Zak Date: Mon Nov 27 17:04:29 2017 +0100 lsns: rename notruns to no_trunc Signed-off-by: Karel Zak sys-utils/lsns.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 7eda2400dba79111b2938a8eb783cdca893f9cbf Author: Karel Zak Date: Mon Nov 27 16:58:19 2017 +0100 lsns: nsfs stuff cleanup * don't use booleans * use is_ prefix for boolean-like functions * make nsfs_xasputs() more readable * enable 'nowrap' together with 'raw' and don't test for "nowrap || raw" * add missing 'W' to getopt_long() Signed-off-by: Karel Zak sys-utils/lsns.c | 74 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) commit 7817b2ad088aba3283d45b7e9f7407acbfe693d2 Author: Masatake YAMATO Date: Fri Nov 24 19:31:10 2017 +0900 lsns: (man) write about using multi-line in NSFS cell of lsns Signed-off-by: Masatake YAMATO sys-utils/lsns.8 | 8 ++++++++ 1 file changed, 8 insertions(+) commit 94d4ccd7a2af5711be9d092e86a8efb19c0b4697 Author: Masatake YAMATO Date: Fri Nov 24 19:31:09 2017 +0900 lsns: add a case for testing nsfs column Signed-off-by: Masatake YAMATO tests/expected/lsns/nsfs | 1 + tests/ts/lsns/nsfs | 68 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) commit 0a32d39a0b8adf42ebd1328d30d4388bae0e3e55 Author: Masatake YAMATO Date: Fri Nov 24 19:31:08 2017 +0900 lsns: add --nowrap(-W) option This option forces lsns command not use multi-line presentation when printing a cell. Currently, it affects only NSFS column. Implementing this option is suggested by Karl Zak. Signed-off-by: Masatake YAMATO sys-utils/lsns.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) commit 74d2056ae85f256ed35cbc55771887f5e28a6060 Author: Masatake YAMATO Date: Fri Nov 24 19:31:06 2017 +0900 lsns: add nsfs column nsfs provides kernel level interface for assigning logical name to a namespace. Following message is quoted from git log of linux kernel: commit 0226f4923f6c9b40cfa1c1c1b19a6ac6b3924ead Author: Al Viro Date: Tue Dec 6 12:21:54 2011 -0500 vfs: take /proc/*/mounts and friends to fs/proc_namespace.c rationale: that stuff is far tighter bound to fs/namespace.c than to the guts of procfs proper. Signed-off-by: Al Viro /proc/self/mountinfo lists the logical names for namespaces: ... 652 81 0:3 net:[4026532579] /tmp/XYZ rw shared:192 - nsfs nsfs rw,seclabel ... In the lines /tmp/XYZ is a logical name for 4026532579 of net namespace. This patch adds nsfs column. It seems that the logical name is used only in "ip netns" now. So the column is disabled by default. Use '--type=net' or '-o NSFS' options to enable it. This feature and the way to implementation using multi lines in a column is Suggested by Karel Zak. Signed-off-by: Masatake YAMATO sys-utils/Makemodule.am | 4 +- sys-utils/lsns.c | 108 ++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 106 insertions(+), 6 deletions(-) commit 5d075a7828f6be1bd4d186b4cdc51aaffd9d59a6 Author: Masatake YAMATO Date: Fri Nov 24 19:31:05 2017 +0900 lsns: add a case for testing netnsid column Signed-off-by: Masatake YAMATO tests/commands.sh | 1 + tests/expected/lsns/netnsid | 1 + tests/ts/lsns/netnsid | 65 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) commit 7a360346d337e474a835aaad52f702b413e6de5b Author: Masatake YAMATO Date: Fri Nov 24 19:31:04 2017 +0900 lsns: disable netnsid column by default Enable only when * --type=net is given, or * -o NETNSID is given. Suggested by Karel Zak. Signed-off-by: Masatake YAMATO sys-utils/lsns.c | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) commit 4195756e032eb9c9be5ed8ab961ef4d72da7294c Author: Masatake YAMATO Date: Fri Nov 24 19:31:03 2017 +0900 lsns: add netnsid column Linux network subsystem assigns an unique integer to a network namespace. term0# ip netns add UTIL-LINUX-LSNS-TEST-NS term0# ip netns list UTIL-LINUX-LSNS-TEST-NS term0# ip link add name lsns-vetha type veth peer name lsns-vethb term0 # ip link set lsns-vethb netns UTIL-LINUX-LSNS-TEST-NS term0# ip netns list UTIL-LINUX-LSNS-TEST-NS (id: 0) term0# ip link show dev lsns-vetha 230: lsns-vetha@if229: mtu 1500 qdisc noop ... link/ether 3e:27:68:ba:b3:95 brd ff:ff:ff:ff:ff:ff link-netnsid 0 In this example 0 is assigned to UTIL-LINUX-LSNS-TEST-NS net namespace. The name, UTIL-LINUX-LSNS-TEST-NS, and it semantics is given and defined by iproute2 in userland; and nothing to do with util-linux. However, the id, 0, is managed in linux kernel. If lsns can show the ids, it helps users understand the state of network namespaces. This commit adds NETNSID column to the output. Here is an example of session: term0# ip netns exec UTIL-LINUX-LSNS-TEST-NS cat (Open another terminal) term1# ./lsns --type net NS TYPE NPROCS PID USER NETNSID COMMAND 4026531993 net 383 1 root unassigned /usr/lib/systemd/... 4026532433 net 1 1219 rtkit unassigned /usr/libexec/rtkit-daemon 4026532562 net 1 18201 root 0 cat 0 is shown as NETNSID for the cat process. For the initial name space, "unassigned" is printed. For the namespaces other type than net, "n/a" is printed. If an error occurred during getting the id, "n/a" is printed. Changes in V2: * Remove wrongly used & operators. * Make netnsid field empty if value for the column is not available. Suggested by Karel Zak. * Remove redundant condtion for checking the avaiablebility of netlink socket. Suggested by Karel Zak. Signed-off-by: Masatake YAMATO configure.ac | 1 + sys-utils/lsns.c | 186 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 185 insertions(+), 2 deletions(-) commit e72027dadad83567dbc3c3e31e2f77005a3e0d78 Author: Karel Zak Date: Mon Nov 27 12:37:53 2017 +0100 rtcwake: fix sys vs. rtc time delta usage srett commented: After some head scratching why relative wakeup using -s always works while -t didn't seem to work at all I discovered that the adjustment for time difference between sys and rtc is actually inverted when writing the alarm (code for -m show reading is fine), so if the RTC lags 10 minutes behind, the alarm will be shifted into the future by 10 minutes, resulting in a wakeup that is 20 minutes late. Addresses: https://github.com/karelzak/util-linux/issues/544 Signed-off-by: Karel Zak sys-utils/rtcwake.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d1bf0ce5faac608d62e2b8a0bcd3ef95c853a883 Author: Karel Zak Date: Thu Nov 23 15:24:59 2017 +0100 libsmartcols: fix mem-leaks in samples Signed-off-by: Karel Zak libsmartcols/samples/fromfile.c | 5 +++++ libsmartcols/samples/title.c | 1 + 2 files changed, 6 insertions(+) commit 07b447d473ca331bc750e9365154cd0982d890ae Author: Karel Zak Date: Thu Nov 23 15:24:36 2017 +0100 tests: allow to use memory checks for libsmartcols Signed-off-by: Karel Zak tests/ts/libsmartcols/fromfile | 34 +++++++++++++++++----------------- tests/ts/libsmartcols/title | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) commit 26777ac30e7520a5c4f2d36d3b9d0d326b91c018 Author: Karel Zak Date: Thu Nov 23 15:02:32 2017 +0100 docs: update TODO file Signed-off-by: Karel Zak Documentation/TODO | 33 --------------------------------- 1 file changed, 33 deletions(-) commit b97cc9a8299ad84bf75093dc390e36eb6ff77761 Author: Karel Zak Date: Thu Nov 23 14:59:05 2017 +0100 build-sys: add --enable-asan and --memcheck-asan for tests The command ./configure --enable-asan adds -fsanitize=address to the compiler command line. In the regression tests leaks detection is disabled by default. You have to use --memcheck-asan on test command line to enable. Signed-off-by: Karel Zak configure.ac | 11 +++++++++++ tests/functions.sh | 12 +++++++++++- tests/run.sh | 2 ++ 3 files changed, 24 insertions(+), 1 deletion(-) commit d3f58f8aee3f286ec0565d15758acbcf65f69ae0 Author: Karel Zak Date: Thu Nov 23 14:03:23 2017 +0100 tests: rename --memcheck to --memcheck-valgrind Signed-off-by: Karel Zak tests/functions.sh | 27 ++++++++++++++++++--------- tests/run.sh | 22 +++++++++++----------- 2 files changed, 29 insertions(+), 20 deletions(-) commit 02ae505fd40a5ca8ab106dfec9a1b6c901bf31b7 Author: Karel Zak Date: Thu Nov 23 13:44:53 2017 +0100 tests: rename ts_valgrind to ts_run Let's make our tests more generic, so we can later hide more stuff into ts_run call. Signed-off-by: Karel Zak tests/functions.sh | 2 +- tests/ts/libfdisk/gpt | 8 +++--- tests/ts/libmount/context | 22 ++++++++--------- tests/ts/libmount/context-utab | 12 ++++----- tests/ts/libmount/debug | 6 ++--- tests/ts/libmount/lock | 2 +- tests/ts/libmount/optstr | 54 ++++++++++++++++++++--------------------- tests/ts/libmount/tabdiff | 8 +++--- tests/ts/libmount/tabfiles | 22 ++++++++--------- tests/ts/libmount/tabfiles-tags | 12 ++++----- tests/ts/libmount/update | 46 +++++++++++++++++------------------ tests/ts/libmount/utils | 36 +++++++++++++-------------- 12 files changed, 115 insertions(+), 115 deletions(-) commit 800e447741d108c0880018940f4f8e21705cf275 Author: Karel Zak Date: Thu Nov 23 10:30:27 2017 +0100 hwclock: revert ioctl test This commit reverts 1d5cffa16a0183175684809cf215294ec20b8fd9. (I did this revert manually as there was another changes in the code and git-revert does not work in this case.) Addresses: https://github.com/karelzak/util-linux/issues/543 Signed-off-by: Karel Zak sys-utils/hwclock-rtc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit afeb64655068978e3e86a8f4a1738b5160fa20c4 Author: Karel Zak Date: Wed Nov 22 17:16:21 2017 +0100 tests: update columns test due to dda229c7b2b16a31fae8e99079ab4f4ae5bc8eac Signed-off-by: Karel Zak tests/expected/column/invalid-multibyte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit dda229c7b2b16a31fae8e99079ab4f4ae5bc8eac Author: Karel Zak Date: Wed Nov 22 14:43:36 2017 +0100 column: use \x for invalid multibyte seq. Addresses: https://github.com/karelzak/util-linux/issues/542 Signed-off-by: Karel Zak text-utils/column.1 | 2 +- text-utils/column.c | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) commit 365ed9f639be420aedf11500e6220a8ed0ebf5e8 Author: Karel Zak Date: Wed Nov 22 14:41:10 2017 +0100 lib/mbsalign: add mbs_invalid_encode() Like mbs_safe_encode(), but it does not care about control chars. Signed-off-by: Karel Zak include/mbsalign.h | 3 ++ lib/mbsalign.c | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) commit 9fb4ab8e14d069e88808b06d961ba662318b935d Author: Karel Zak Date: Wed Nov 22 12:45:33 2017 +0100 mount: add hint about -t and root perms to the man page Signed-off-by: Karel Zak sys-utils/mount.8 | 4 ++++ 1 file changed, 4 insertions(+) commit 06a27566e19941972d52b68eb1c5fad2097adab9 Author: Karel Zak Date: Wed Nov 22 12:31:58 2017 +0100 lsblk: add hint about perms to man page Signed-off-by: Karel Zak misc-utils/lsblk.8 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 6e08d4d9f8ff890c4dde004c1c9fd65f85d9ffef Merge: ae6fd6802 3999e62a7 Author: Karel Zak Date: Tue Nov 21 12:42:35 2017 +0100 Merge branch 'master' of https://github.com/pali/util-linux * 'master' of https://github.com/pali/util-linux: libblkid: udf: Fix parsing UDF revision commit ae6fd6802c61458f3fd07c4b981bba93169b8488 Author: Karel Zak Date: Tue Nov 21 12:11:56 2017 +0100 libmount: add nsfs between pseudo filesystems Signed-off-by: Karel Zak libmount/src/utils.c | 1 + 1 file changed, 1 insertion(+) commit d23597a88cdbdbc7f2a1c84cd6fe0b2ad9f7e87b Author: Steven Smith Date: Fri Nov 17 08:44:33 2017 -0800 agetty: Fix a use of uninitialised memory in an agetty error path. get_logname() assumes that when it calls read() it initializes c and errno, which isn't always true if we hit a whitelisted error or end of file. This occasionally shows up as agetty going into an infinite loop. Fix it by just delaying ten seconds and exiting when things go wrong, similarly to the behavior after a non-whitelisted error. [kzak@redhat.com: - interpret readres == 0 as c = 0 - ignore speed configurations for VCONSOLE] Signed-off-by: Steven Smith Signed-off-by: Karel Zak term-utils/agetty.c | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) commit f024c96c3461ad15f74dfb451225524615b4e8dd Author: Andy Grover Date: Mon Nov 20 12:09:50 2017 -0800 libblkid: Mark char* params to blkid_dev_set_search as const They are not changed by the function. Signed-off-by: Andy Grover libblkid/src/blkid.h.in | 2 +- libblkid/src/dev.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 3999e62a72f46d525ee4cc10b18781468ace9b9c Author: Pali Rohár Date: Mon Nov 20 18:16:59 2017 +0100 libblkid: udf: Fix parsing UDF revision UDF revision is stored as decimal number in hexadecimal format. E.g. number 0x0150 is revision 1.50, number 0x0201 is revision 2.01. Apparently all UDF test images have number which has same representation in decimal and hexadecimal format, so problem was not detected. This patch adds new test image with UDF revision 1.50. Internally number is stored as 0x0150. In decimal format it is (incorrectly) 1.80, but in hexadecimal correct 1.50. $ dd if=/dev/zero of=udf-hdd-mkudffs-1.3-8.img bs=1M count=10 $ mkudffs -r 0x150 -b 512 udf-hdd-mkudffs-1.3-8.img Signed-off-by: Pali Rohár libblkid/src/superblocks/udf.c | 4 +++- tests/expected/blkid/low-probe-udf-hdd-mkudffs-1.3-8 | 10 ++++++++++ tests/ts/blkid/images-fs/udf-hdd-mkudffs-1.3-8.img.xz | Bin 0 -> 2328 bytes 3 files changed, 13 insertions(+), 1 deletion(-) commit 07306a030333938ed4b0c84d8304cba07cbd8e03 Merge: af54dbd92 3ea60856e Author: Karel Zak Date: Mon Nov 20 13:30:20 2017 +0100 Merge branch 'master' of https://github.com/pali/util-linux * 'master' of https://github.com/pali/util-linux: libblkid: udf: Update copyright tests: Add UDF cd image created by mkudfiso 20100208 libblkid: udf: Use UDF revision field from LVD domain id "*OSTA UDF Compliant" as a fallback value for ID_FS_VERSION when LVIDIU is missing commit af54dbd929266f6706a34050ed51e5114f520f59 Author: J William Piggott Date: Fri Nov 17 20:25:40 2017 -0500 hwclock: fix debug regression commit f0a0ce7 makes debug mode implicit for the --test option. Using the previous command syntax of --test and --debug together invokes the undocumented Level 2 debugging when setting the RTC. This can cause many thousands of lines of output like: 1510967983.499968 < 1510967983.500000 (-0.000032) Fix: bump Level 2 debugging to Level 9, just before the other undocumented Level 10. This makes it improbable for the development debug levels to be accessed unintentionally. Signed-off-by: J William Piggott sys-utils/hwclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 01d971945c2677f8e766c329ae6aaafd66dd9f32 Author: J William Piggott Date: Sat Oct 21 20:40:58 2017 -0400 hwclock: use reentrant time conversion functions Signed-off-by: J William Piggott sys-utils/hwclock.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit 3ea60856eedbb6da46ae19e9e61e3e11da320e01 Author: Pali Rohár Date: Thu Nov 16 19:53:59 2017 +0100 libblkid: udf: Update copyright Signed-off-by: Pali Rohár libblkid/src/superblocks/udf.c | 1 + 1 file changed, 1 insertion(+) commit 2f6184ca2cedeeb3973dfa0146a99785951d65a9 Author: Pali Rohár Date: Thu Nov 16 19:45:16 2017 +0100 tests: Add UDF cd image created by mkudfiso 20100208 $ mkudfiso -v "Volume Label" . | tail -n +2 > udf-cd-mkudfiso-20100208.img mkudfiso 20100208 creates UDF images without valid LVID (and LVIDIU), so it is a good candidate for testing fallback code for ID_FS_VERSION. Signed-off-by: Pali Rohár tests/expected/blkid/low-probe-udf-cd-mkudfiso-20100208 | 7 +++++++ tests/ts/blkid/images-fs/udf-cd-mkudfiso-20100208.img.xz | Bin 0 -> 756 bytes 2 files changed, 7 insertions(+) commit 06d9f4763f6177662965ba134f092698270fe15e Author: Pali Rohár Date: Thu Nov 16 18:53:52 2017 +0100 libblkid: udf: Use UDF revision field from LVD domain id "*OSTA UDF Compliant" as a fallback value for ID_FS_VERSION when LVIDIU is missing Signed-off-by: Pali Rohár libblkid/src/superblocks/udf.c | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) commit 75f03badd7ed9f1dd951863d75e756883d3acc55 Author: Karel Zak Date: Thu Nov 16 16:27:32 2017 +0100 bash-completion: (umount) use findmnt, escape a space in paths # mount /dev/sdc1 /mnt/test/foo\ bar # umount has to return "/mnt/test/foo\ bar". Changes: * don't use mount | awk output, we have findmnt * force compgen use \n as entries separator Addresses: https://github.com/karelzak/util-linux/issues/539 Signed-off-by: Karel Zak bash-completion/umount | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) commit d9a388d30c6e9fa01bd784b4e16fc16cd7efa382 Author: Karel Zak Date: Thu Nov 16 14:41:01 2017 +0100 build-sys: add missing include Signed-off-by: Karel Zak include/Makemodule.am | 1 + 1 file changed, 1 insertion(+) commit f9dc7fd135263c2b05db49076ba169801bbce365 Merge: 9e6ccaab5 4572e4070 Author: Karel Zak Date: Thu Nov 16 14:18:16 2017 +0100 Merge branch 'master' of https://github.com/pali/util-linux * 'master' of https://github.com/pali/util-linux: libblkid: udf: Stop scanning Volume Descriptors after we found Terminating Descriptor libblkid: udf: Really try to read only first LVID commit 9e6ccaab5b1ea503512842a77824acf63214077e Author: Mikhail Vorobyov Date: Thu Nov 9 06:47:16 2017 +0300 libfdisk: (sun) enhance searching of free space Potential partition start should be aligned to cylinders. So fdisk wouldn't consider partition's last cylinder remains as eligible space for new partition start. libfdisk/src/sun.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) commit 45ce1487787c12228873e3c401be0a9c770c2956 Author: Mikhail Vorobyov Date: Thu Nov 9 06:37:28 2017 +0300 libfdisk: (sun) move aligning of the first sector before availability check So it will check a sector which would be actualy used as the first sector of the partition. libfdisk/src/sun.c | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) commit 42ee788268880e5dd3402f2179242cdb361ffe20 Author: Karel Zak Date: Thu Nov 16 12:16:09 2017 +0100 libmount: minimize utimensat() write test usage utimensat() is pretty expensive when mounting parallel filesystems from the same source. It's possible to ignore all this if mtab is not writable. Note that this change is irrelevant for default util-linux builds where all around mtab is already disabled since v2.30 (commit 89958178f6d6ebe0944d423feaea66be521fff43). This change is relevant only for users who still use --enable-libmount-support-mtab. Reported-by: Douglas Jacobsen Signed-off-by: Karel Zak libmount/src/context_mount.c | 28 +++++++++++++++++++--------- libmount/src/utils.c | 2 ++ 2 files changed, 21 insertions(+), 9 deletions(-) commit b0a89709bfef495084381f8cc8948921d2e04ae5 Author: John Groves Date: Wed Nov 15 23:01:39 2017 -0600 libblkid: Add support for Micron mpool formatted drives Signed-off-by: Karel Zak libblkid/src/Makemodule.am | 1 + libblkid/src/superblocks/mpool.c | 66 ++++++++++++++++++++++++++++++++++ libblkid/src/superblocks/superblocks.c | 3 +- libblkid/src/superblocks/superblocks.h | 1 + 4 files changed, 70 insertions(+), 1 deletion(-) commit 277e777fe8839b2434ddd394810a5fef86a61fab Author: John Groves Date: Wed Nov 15 23:01:38 2017 -0600 lib: Add simple crc32c() function Source: freebsd/sys/libkern/crc32.c This code is an unmodified fragment from the source. Will fixup comments / naming in next commit Signed-off-by: Karel Zak include/crc32c.h | 9 +++++ lib/Makemodule.am | 1 + lib/crc32c.c | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 112 insertions(+) commit 0ed9c7d59ffdc658c57d430767cec36de74a9535 Author: Karel Zak Date: Thu Nov 16 11:39:17 2017 +0100 mount: add more details about UUIDs and LABELs to the man page Signed-off-by: Karel Zak sys-utils/mount.8 | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) commit 4572e4070d2255801cad0648a8e1e9fc37af8aaa Author: Pali Rohár Date: Wed Nov 15 18:12:50 2017 +0100 libblkid: udf: Stop scanning Volume Descriptors after we found Terminating Descriptor Terminating Descriptor is the last descriptor in Volume Descriptor Sequence. After it there can be unrecorded or empty sectors which we do not have to scan. Signed-off-by: Pali Rohár libblkid/src/superblocks/udf.c | 3 +++ 1 file changed, 3 insertions(+) commit d0ecd5e98437f41a8e025b4311e029e7baf35237 Author: Pali Rohár Date: Wed Nov 15 18:05:52 2017 +0100 libblkid: udf: Really try to read only first LVID We do not want to scan whole LVID sequence. Signed-off-by: Pali Rohár libblkid/src/superblocks/udf.c | 71 +++++++++++++++++++----------------------- 1 file changed, 32 insertions(+), 39 deletions(-) commit 7ee921edbeaf04845c87b0d9c280f32e98118e85 Author: Karel Zak Date: Tue Nov 14 15:40:09 2017 +0100 tests: GPT device resize test Signed-off-by: Karel Zak tests/expected/fdisk/gpt-resize | 54 +++++++++++++++++++++++++++++++++++ tests/ts/fdisk/gpt-resize | 63 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 117 insertions(+) commit 9a8a3b88dcaec36d694aaea29d6fce5856d697c4 Author: Karel Zak Date: Tue Nov 14 13:51:48 2017 +0100 libfdisk: (gpt) move backup header after device resize Addresses: https://github.com/karelzak/util-linux/issues/532 Signed-off-by: Karel Zak libfdisk/src/gpt.c | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 56 insertions(+), 2 deletions(-) commit 6e810fa59d9f4ea6abe31d108853d7871b003c96 Author: Pali Rohár Date: Tue Nov 14 10:25:02 2017 +0100 libblkid: udf: Fix parsing LVID location And add comment about Logical Volume Integrity Sequence that we do not scan it fully. libblkid/src/superblocks/udf.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) commit e44eb3e6e568a1dfa85d2ae76273578c7a55fbf4 Author: Pali Rohár Date: Mon Nov 13 21:45:34 2017 +0100 libblkid: udf: Fix reading Logical Volume Integrity Descriptor Implementation Use (LVIDIU) LVIDIU is stored at the end of Logical Volume Integrity Descriptor (LVID), after two variable length array of partitions. And number of partitions is stored in LVID, not in Logical Volume Descriptor (LVD). Length of LVIDIU is also stored in LVID, so add check that LVIDIU has enough size. Fixes commit db316767434c2c451ec1732861256d5729143e89. libblkid/src/superblocks/udf.c | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) commit b9bd8dc267a71611859496bff29e329868273714 Author: Karel Zak Date: Mon Nov 13 17:34:19 2017 +0100 cal: simplify leap year rule Gregorian rule for leap years has been adopted by reformation in year 1782 (Calendar Act 1750), but all tools (date, SQL servers, etc. etc.) don't care about it and apply the new rule for all year -- including years before the reformation. It's better to be compatible with another tools than try to be perfect :-) Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1507271 Signed-off-by: Karel Zak misc-utils/cal.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) commit e1b5a57f43e706fd1945d85116271a88fcf9e0af Merge: b5de9e694 948e8d434 Author: Karel Zak Date: Mon Nov 13 16:25:21 2017 +0100 Merge branch '170925' of github.com:jwpi/util-linux * '170925' of github.com:jwpi/util-linux: tests: adjust for ISO timezone colon use lib/timeutils: add common ISO timestamp masks lib/timeutils: add get_gmtoff() lib/timeutils: ISO_8601_BUFSIZ too small hwclock: add iso-8601 overflow check commit b5de9e6942e62d2713b7667af8b46a471a29b43a Author: Karel Zak Date: Mon Nov 13 14:17:23 2017 +0100 column: allow to hide unnamed columns Addresses: https://github.com/karelzak/util-linux/pull/327 Signed-off-by: Karel Zak text-utils/column.1 | 10 +++++++++- text-utils/column.c | 27 ++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 2 deletions(-) commit 785e5436458abe220f08c086a13f333f093b2167 Author: Karel Zak Date: Mon Nov 13 12:56:21 2017 +0100 column: add --table-noheadings Signed-off-by: Karel Zak text-utils/column.1 | 2 ++ text-utils/column.c | 11 +++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) commit cfcbf7526aedb4e85ec8fa87d829f295644f96fb Merge: 16068d0b9 99777b8d1 Author: Karel Zak Date: Mon Nov 13 12:32:03 2017 +0100 Merge branch 'udf' of https://github.com/pali/util-linux * 'udf' of https://github.com/pali/util-linux: test: Add UDF hdd image with final block size 4096 created by Linux mkudffs 1.3 libblkid: udf: Optimize and fix probing when block size > 2048 bytes commit 16068d0b9e437091ea78c8ee03ff1b870ba4c9be Merge: aae7bfc8b e526f5039 Author: Karel Zak Date: Mon Nov 13 12:23:23 2017 +0100 Merge branch 'master' of https://github.com/pali/util-linux * 'master' of https://github.com/pali/util-linux: libblkid: vfat: Fix reading labels which starts with byte 0x05 commit aae7bfc8b715dd2c2ac9562e045415c82e42cf07 Author: Karel Zak Date: Mon Nov 13 12:15:17 2017 +0100 blockdev: be more explicit for BLKSSZ in blockdev.8 Addresses: https://github.com/karelzak/util-linux/issues/535 Signed-off-by: Karel Zak disk-utils/blockdev.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 99777b8d11117b1faab3f00a4c48f77b53c8b475 Author: Pali Rohár Date: Sun Nov 12 22:05:15 2017 +0100 test: Add UDF hdd image with final block size 4096 created by Linux mkudffs 1.3 $ dd if=/dev/zero of=udf-hdd-mkudffs-1.3-7.img bs=1M count=10 $ mkudffs -l Label512 -b 512 udf-hdd-mkudffs-1.3-7.img $ mkudffs -l Label4096 -b 4096 udf-hdd-mkudffs-1.3-7.img Image file was first formatted with block size 512 and then reformatted with block size 4096. Volume Recognition Sequence was overwritten and every Volume Structure Descriptor is now 4096 bytes long. Trying to read second VSD as 2048 bytes long will fail because 4069 bytes long VSD is padded with zeros. To verify that image file was properly detected, it should have label "Label4096" and not "Label512". tests/expected/blkid/low-probe-udf-hdd-mkudffs-1.3-7 | 10 ++++++++++ tests/ts/blkid/images-fs/udf-hdd-mkudffs-1.3-7.img.xz | Bin 0 -> 2720 bytes 2 files changed, 10 insertions(+) commit f5f269ece5a98f99a52e1dfa5e4d61fee83bf242 Author: Pali Rohár Date: Sun Nov 12 21:55:21 2017 +0100 libblkid: udf: Optimize and fix probing when block size > 2048 bytes Optimize probing and detecting for UDF. Do not read and try to detect VRS (Volume Recognition Sequence) on same blocks more times. For specific VSD (Volume Structure Descriptor) length do it only once. Fix probing of devices which has block size larger then 2048 bytes. It is not truth that VSD is always 2048 bytes long. Its size is minimum of the disk block size and 2048 bytes. See ECMA-167 sections 2/8.4 and 2/9.1. Therefore when block size is larger then 2048 bytes, VRS needs to be scanned again. In commit 501aeb60a4914d8e4b273eb1529d70bc6ffaa077 was removed check for empty VSD identifier because it caused that UDF image with block size of the 4096 bytes was not detected. Reason was that VRS was improperly scanned as VSD was 4096 bytes long, with 2048 bytes zero padding. Now when processing of devices with block size larger then 2048 bytes is fixed we can correctly stop scanning VRS at first invalid VSD as specified in ECMA-167 section 2/8.3.1. libblkid/src/superblocks/udf.c | 101 ++++++++++++++++++++++++++--------------- 1 file changed, 64 insertions(+), 37 deletions(-) commit 948e8d4349a7f83be1b6b3e94932eb4b8d6946d0 Author: J William Piggott Date: Sun Nov 12 09:08:43 2017 -0500 tests: adjust for ISO timezone colon use Fix several tests broken by adding a timezone colon in the timeutils ISO format functions. Signed-off-by: J William Piggott tests/expected/dmesg/indentation | 10 ++++----- tests/expected/script/options-append | 8 +++---- tests/expected/script/options-force | 8 +++---- tests/expected/script/options-quiet | 8 +++---- tests/expected/script/options-return | 16 +++++++------- tests/expected/utmp/last-nodns | 30 +++++++++++++------------- tests/expected/utmp/utmpdump-subsecond | 6 +++--- tests/expected/utmp/utmpdump-totxt | 20 ++++++++--------- tests/expected/utmp/utmpdump-totxt-ipv6 | 4 ++-- tests/expected/uuid/uuidparse | 2 +- tests/ts/utmp/subsec | 6 +++--- tests/ts/utmp/txt-a | 38 ++++++++++++++++----------------- tests/ts/utmp/txt-b | 20 ++++++++--------- tests/ts/utmp/txt-ipv6 | 4 ++-- 14 files changed, 90 insertions(+), 90 deletions(-) commit 4111bb3ab5f406ee381a3807385af59fe33b28f3 Author: J William Piggott Date: Sat Oct 14 20:37:11 2017 -0400 lib/timeutils: add common ISO timestamp masks * Start the ISO format flags at bit 0 instead of bit 1. * Remove unnecessary _8601 from ISO format flag names to avoid line wrapping and to ease readability. * ISO timestamps have date-time-timzone in common, so move the TIMEZONE flag to bit 2 causing all timestamp masks to have the first three bits set and the last four bits as timestamp 'options'. * Change the 'SPACE' flag to a 'T' flag, because it makes the code and comments more concise. * Add common ISO timestamp masks. * Implement the ISO timestamp masks in all applicable code using the strxxx_iso() functions. Signed-off-by: J William Piggott include/timeutils.h | 26 +++++++++++++++++--------- lib/timeutils.c | 32 +++++++++++++++----------------- login-utils/last.c | 2 +- login-utils/lslogins.c | 5 ++--- login-utils/utmpdump.c | 4 +--- misc-utils/uuidparse.c | 12 +++--------- sys-utils/dmesg.c | 4 +--- sys-utils/hwclock.c | 6 ++---- sys-utils/lsipc.c | 2 +- sys-utils/rfkill.c | 10 +++------- term-utils/script.c | 8 ++------ 11 files changed, 48 insertions(+), 63 deletions(-) commit 9fd0a7a96c8525289d7072fa688579be6418ec30 Author: J William Piggott Date: Sun Oct 8 16:06:24 2017 -0400 lib/timeutils: add get_gmtoff() This new function returns the GMT offset relative to its argument. It is used in this patch to fix two bugs: 1) On platforms that the tm struct excludes tm_gmtoff, hwclock assumes a one hour DST offset. This can cause an incorrect kernel timezone setting. For example: Master branch tested with tm_gmtoff illustrates the correct offset: $ TZ="Australia/Lord_Howe" hwclock --hctosys --test | grep settimeofday Calling settimeofday(1507494204.192398, -660) Master branch tested without tm_gmtoff has an incorrect offset: $ TZ="Australia/Lord_Howe" hwclock --hctosys --test | grep settimeofday Calling settimeofday(1507494249.193852, -690) Patched tested without tm_gmtoff has the correct offset: $ TZ="Australia/Lord_Howe" hwclock --hctosys --test | grep settimeofday Calling settimeofday(1507494260.194208, -660) 2) ISO 8601 'extended' format requires all time elements to use a colon (:). Current invalid ISO 8601: $ hwclock 2017-10-08 16:25:17.895462-0400 Patched: $ hwclock 2017-10-08 16:25:34.141895-04:00 Also required by this change: login-utils/last.c: increase ISO out_len and in_len by one to accommodate the addition of the timezone colon. Signed-off-by: J William Piggott include/timeutils.h | 1 + lib/timeutils.c | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++-- login-utils/last.c | 4 ++-- sys-utils/hwclock.c | 8 +------ 4 files changed, 70 insertions(+), 11 deletions(-) commit 8c5a21f2187f78e9aab02f5f11dbbd226a4d795d Author: J William Piggott Date: Mon Sep 25 20:56:06 2017 -0400 lib/timeutils: ISO_8601_BUFSIZ too small Although iso-8601 specifies years as 4 digits, it allows them to be wider. The current POSIX year width is limited by 'int tm_year' at 10 digits plus a negative sign. That, and the possibility of nanosecond time makes the widest POSIX iso-8601 time 41 characters. Plus the \0 string terminator yields a buffer size of 42. Before truncated output: /sbin/hwclock --utc --noadjfile --predict --date '-2147483765 years' -2147481748-09-25 20:29:45.0000 Patched: ./hwclock --utc --noadjfile --predict --date '-2147483765 years' -2147481748-09-25 20:17:21.000000-0456 ./hwclock --utc --noadjfile --predict --date '-2147483766 years' hwclock: invalid date '-2147483766 years' Comparable to coreutils 'date' command: date -Ins --date '-2147483765 years' -2147481748-09-25T19:49:31,578899297-0456 date -Ins --date '-2147483766 years' date: invalid date '-2147483766 years' The 'date' output illustrates the full 41 character POSIX iso-8601 Signed-off-by: J William Piggott include/timeutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 10191da63a35317aea1d2286225efc03734c10d5 Author: J William Piggott Date: Mon Sep 25 19:30:24 2017 -0400 hwclock: add iso-8601 overflow check hwclock wasn't testing for strtimeval_iso() truncation: /sbin/hwclock --utc --noadjfile --predict --date '7982 years'; echo $? 9999-09-25 19:33:01.000000-0400 0 /sbin/hwclock --utc --noadjfile --predict --date '7983 years'; echo $? 10000-09-25 19:33:10.000000- 0 Patched: ./hwclock --utc --noadjfile --predict --date '7982 years'; echo $? 9999-09-25 19:22:15.000000-0400 0 ./hwclock --utc --noadjfile --predict --date '7983 years'; echo $? hwclock: iso-8601 format truncated 1 Signed-off-by: J William Piggott sys-utils/hwclock.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) commit 82524a1379c02bff0d061ffffae7398543218d33 Author: Karel Zak Date: Fri Nov 10 14:02:51 2017 +0100 nsenter: revert changes committed by accident Signed-off-by: Karel Zak sys-utils/nsenter.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) commit 4545ba62764779f50327f43e8af7e0400116f070 Author: Karel Zak Date: Fri Nov 10 12:55:11 2017 +0100 libblkid: improve FreeBSD partitions parsing FreeBSD since version 10 uses relative offsets for nested partitions. Based on Richard Narron changes in kernel:block/partitions/msdos.c. Signed-off-by: Karel Zak libblkid/src/partitions/bsd.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) commit e526f503918cc29d8b1ccf36a5c3a34645d2be6e Author: Pali Rohár Date: Thu Nov 9 19:03:34 2017 +0100 libblkid: vfat: Fix reading labels which starts with byte 0x05 When FAT directory entry has leading byte 0x05 it is interpreted as byte 0xE5. This is how FAT stores file name which starts with byte 0xE5 as leading byte in 0xE5 in FAT directory entry means that file slot is empty. Fixes: #533 libblkid/src/superblocks/vfat.c | 2 ++ tests/expected/blkid/low-probe-fat32_cp850_O_tilde | 7 +++++++ tests/ts/blkid/images-fs/fat32_cp850_O_tilde.img.xz | Bin 0 -> 5400 bytes 3 files changed, 9 insertions(+) commit 06ff935ec3ad2290025b555ff32b590680af565f Author: Karel Zak Date: Wed Nov 8 16:47:40 2017 +0100 libmount: fix access() utab write test The commit c08396c7691e1e6a04b6b45892e7e4612ceed8d7 replaces open(O_CREATE) with ecaccess(). Unfortunately, another code depends on the original behavior. * let's make utab when really necessary rather than in the try_write() test * __mnt_new_table_from_file() returns NULL if tab-file does not exists. This is incorrect for tab_update.c stuff. We need empty table in this case. * we can check /run/mount/ directory for write access if eaccess(filename) return ENOENT (because file does not exist) Signed-off-by: Karel Zak libmount/src/mountP.h | 2 +- libmount/src/tab_parse.c | 7 ++++--- libmount/src/tab_update.c | 11 ++++++----- libmount/src/utils.c | 42 +++++++++++++++++++++++++++++++----------- 4 files changed, 42 insertions(+), 20 deletions(-) commit 5d9c79666087d81363b9b942f213d7840d2f695b Author: Joshua Watt Date: Mon Nov 6 16:25:36 2017 -0600 libmount: Allow MNT_FORCE and MNT_DETACH at umount MNT_FORCE and MNT_DETACH are orthogonal in the Linux kernel, so both may be specified without any problems. Even if there were a problem with this combination, it should be up to the kernel to take the correct action or report an error. Signed-off-by: Joshua Watt libmount/src/context_umount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 424cee0f06ece9473786c189ab4741e1dea7061d Author: Luca Ceresoli Date: Tue Nov 7 14:39:09 2017 +0100 md5: declare byteReverse as static byteReverse() is an internal function in md5.c, and is not exposed via any header file, but it is not declared as static. This is a problem with the md5.c file since it is copied more or less verbatim in other programs (fontconfig and pjsip among others), causing a link error when linking two of them together. Fixes link failures such as: http://autobuild.buildroot.net/results/419ab2c0e034cc68991281c51caa8271b0fadbab/build-end.log Signed-off-by: Luca Ceresoli lib/md5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit e2017da5cf282da94cc0a9ce9c88067ee9a565c1 Author: Karel Zak Date: Wed Nov 8 11:40:04 2017 +0100 docs: update TODO Signed-off-by: Karel Zak Documentation/TODO | 13 ------------- 1 file changed, 13 deletions(-) commit 180176213000b15cabc7bf39f7cad656b8f5ae38 Author: Karel Zak Date: Wed Nov 8 11:38:26 2017 +0100 setsid: new option --fork Let's make semantic more predictable. Addresses: https://github.com/karelzak/util-linux/issues/518 Signed-off-by: Karel Zak sys-utils/setsid.1 | 8 ++++++-- sys-utils/setsid.c | 11 ++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) commit a85c39013491713ac0d9e24fd0f07b4fabdcfc17 Author: Karel Zak Date: Tue Nov 7 14:37:03 2017 +0100 rtcwake: add note about HW and sleep to the man page Addresses: https://github.com/karelzak/util-linux/issues/527 Signed-off-by: Karel Zak sys-utils/rtcwake.8.in | 5 +++++ 1 file changed, 5 insertions(+) commit 1fc82a1360305f696dc1be6105c9c56a9ea03f52 Author: Karel Zak Date: Tue Nov 7 11:32:32 2017 +0100 agetty: add support for /etc/issue.d The /etc/issue file has been originally designed to inform users about the system (version, name, etc.). In last years is growing number of additional tools (containers, maintenance tools and interfaces, ...) and many admins and downstream maintainer want to add some tool specific hints to the issue file, but it mess to share one file between more packages and/or scripts. The solution is /etc/issue.d directory. The directory is extension to the standard system /etc/issue. The /etc/issue file has to exist, otherwise the directory will be ignored. It means "rm /etc/issue" (or --onissue) is still the way how keep our system silent independently on 3rd-party installed files in the /etc/issue.d directory. The content of the files in the directory are printed after content of the /etc/issue. The files are printed in version-sort order and .issue file extension is required (00-foo.issue 01-bar.issue ...). The change is backwardly compatible. Signed-off-by: Karel Zak include/pathnames.h | 2 + term-utils/agetty.8 | 29 ++++++--- term-utils/agetty.c | 170 +++++++++++++++++++++++++++++++++++++++++++++------- 3 files changed, 171 insertions(+), 30 deletions(-) commit e7f9744ef551d1ce22b7710f6a8db38b73ab3f47 Author: Karel Zak Date: Mon Nov 6 14:47:29 2017 +0100 agetty: remove unused flag Signed-off-by: Karel Zak term-utils/agetty.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit fb7e447486c7f659ab00df33185cbff8be4be18e Author: Karel Zak Date: Mon Nov 6 13:22:07 2017 +0100 libmount: check waitpid() return code Signed-off-by: Karel Zak libmount/src/context_mount.c | 16 +++++++++++----- libmount/src/context_umount.c | 16 +++++++++++----- 2 files changed, 22 insertions(+), 10 deletions(-) commit 7440665f9bf6b7fe6e14b20ec0e825023e159a6f Author: Vratislav Podzimek Date: Mon Nov 6 11:28:17 2017 +0100 libmount: Use waitpid() when waiting for mount helper child process Using wait() in a library may be problematic as it may reap some totally unrelated child process instead of the just forked one. That can result in the library call doing weird things and returning bad return values, but also in a breakage of an arbitrary other thing in the program using the library. [[kzak@redhat.com: - use waitpid() for umount too - keep the current codding style] Signed-off-by: Karel Zak libmount/src/context_mount.c | 6 ++++-- libmount/src/context_umount.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) commit a9b9d59d62129e36cc96c584bbde86394044661a Author: Dirk Mueller Date: Sat Nov 4 04:12:54 2017 +0100 lscpu: Treat read failure on Xen Hypervisor properties as non-fatal At least on the Sydney Amazon EC2 region this file doesn't show up, and the fatal exit code causes the rest of the useful information to not show up. sys-utils/lscpu.c | 3 --- 1 file changed, 3 deletions(-) commit 9d4081cd6d5531145278f59d52bbb6a1d6d1db9b Author: Karel Zak Date: Fri Nov 3 19:34:49 2017 +0100 sfdisk: create empty label on 'write' command Addresses: https://github.com/karelzak/util-linux/issues/528 Signed-off-by: Karel Zak disk-utils/sfdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b412e860b59997cc86e63a1d7c5e26a63a61dc74 Author: Karel Zak Date: Fri Nov 3 19:19:21 2017 +0100 tests: update default lsmem output The commit 96cbe362c034305e5f12a912b4247b3321420ee7 forces lsmem to follow output column for split policy. Signed-off-by: Karel Zak sys-utils/nsenter.c | 10 ++++++++-- tests/expected/lsmem/lsmem-s390-zvm-6g | 6 ++---- 2 files changed, 10 insertions(+), 6 deletions(-) commit 4707bc83e1ff6b634fb4ed38c8050b34fc2487a1 Author: Karel Zak Date: Fri Nov 3 11:20:41 2017 +0100 lslocks: add note about OFDLCK Signed-off-by: Karel Zak misc-utils/lslocks.8 | 4 ++-- misc-utils/lslocks.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) commit 96cbe362c034305e5f12a912b4247b3321420ee7 Author: Karel Zak Date: Fri Nov 3 10:58:33 2017 +0100 lsmem: make --split optional, follow output by default Let's keep lsmem backwardly compatible (<=v2.30) and create ranges according to the output columns by default. This default behavior may be modified by --split command line option. Signed-off-by: Karel Zak sys-utils/lsmem.1 | 14 ++++++-------- sys-utils/lsmem.c | 49 ++++++++++++++++++++++++++++++------------------- 2 files changed, 36 insertions(+), 27 deletions(-) commit cfe4691c6f70379c9a615307bd6589fe7d1cec92 Author: Roddy Shuler Date: Thu Nov 2 21:22:51 2017 -0700 libfdisk: Fix uninitialized structure Without this, 'sfdisk -d' with certain filenames would lead to reading an 's' from the 'type' field in fdisk_reset_labelitem and cause a crash due to prematurely freeing the 'data.str' field. Signed-off-by: Roddy Shuler libfdisk/src/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit bf9c4948f11d6e26f18306b0159cbe155a3acc21 Author: Karel Zak Date: Thu Nov 2 14:25:05 2017 +0100 tests: add fsck.cramfs bad-header test Signed-off-by: Karel Zak tests/expected/cramfs/fsck-bad-header | 2 ++ tests/ts/cramfs/fsck-bad-header | 38 +++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) commit 7cb962c77015e9383b53eeb22ce732cb5216bbc3 Author: Tobias Stoeckmann Date: Mon Oct 30 13:49:53 2017 +0100 fsck.cramfs: Fix bus error on broken file system. The utility fsck.cramfs is prone to a bus error on file systems for big endian systems with non-standard header sizes. While calculating the crc32 checksum, it does not properly handle a possible offset for bootcodes, resulting in out of boundary access of mmap'ed area. You can trigger the issue with the following commands: $ mkdir -p cramfs-poc/root/subdir $ cd cramfs-poc $ mkfs.cramfs -p -N big root cramfs $ echo -ne \\00\\x4c | dd of=cramfs bs=1 seek=518 count=2 conv=notrunc $ fsck.cramfs cramfs Signed-off-by: Tobias Stoeckmann disk-utils/fsck.cramfs.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) commit 8175ed3d74adacc895657ded7546cb3c5deeabad Author: Karel Zak Date: Thu Nov 2 13:50:30 2017 +0100 sfdisk: allow to disable bootable flag on all partitions Let use '-' rather than a partition number to disable the bootable flag on all partitions: sfdisk --activate /dev/sdc - Signed-off-by: Karel Zak disk-utils/sfdisk.8 | 12 ++++++++---- disk-utils/sfdisk.c | 6 +++++- 2 files changed, 13 insertions(+), 5 deletions(-) commit 5d5ca9deafe2dc356f459c5104bae62c87f56e66 Author: Karel Zak Date: Thu Nov 2 13:19:22 2017 +0100 sfdisk: allow to use --activate for PMBR Signed-off-by: Karel Zak disk-utils/sfdisk.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) commit c48acf70f746f23e8482b457837fba87a261f59e Author: Karel Zak Date: Thu Nov 2 11:09:53 2017 +0100 fdisk: (gpt) make PMBR accessible from main menu Don't force users to go to expert menu to toggle between GPT and PMBR. Signed-off-by: Karel Zak disk-utils/fdisk-menu.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit 03b3c55233a2f2fd464351fe147f67c4561af61c Merge: 27895be26 d22c1f533 Author: Karel Zak Date: Thu Nov 2 10:48:54 2017 +0100 Merge branch 'bash-completion-fsck-find' of https://github.com/kevinoid/util-linux * 'bash-completion-fsck-find' of https://github.com/kevinoid/util-linux: bash-completion: Exclude /dev/fd from fsck find commit 27895be26074780aac5a849514b2a6f8560adfcd Author: Mikhail Vorobyov Date: Thu Nov 2 04:04:42 2017 +0300 libfdisk: (sun) fix creation of whole disk partition sun_add_partition() allowed the 1st sector to be 0 for the 3rd partition only if that sector was free or if other partitions covered the whole disk. Now it's always allowed for the 1st sector to be set to 0 for the 3rd partition. [kzak@redhat.com: - print info about "wholedisk" before "First sector" dialog for 3rd partition - default to 0 for 3rd partition start sector] Signed-off-by: Mikhail Vorobyov Signed-off-by: Karel Zak libfdisk/src/sun.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) commit 5f538ac40c0d215b6c9a881effe4c3b214366715 Author: Prarit Bhargava Date: Wed Nov 1 15:37:00 2017 +0100 dmesg: Add --force-prefix option The kernel outputs multi-line messages (kernel messages that contain the end-of-line character '\n'). These message are currently displayed by dmesg as [965199.028940] runnable tasks: task PID tree-key switches prio wait-time sum-exec sum-sleep ---------------------------------------------------------------------------------------------------------- The kernel timestamps each of these lines with [965199.028940] and the dmesg utility should do the same. Add the 'force-prefix'/'-p' dmesg option to add decode & timestamp information to each line of a multi-line message. Notes: The new print_record() algorithm stores the decode & timestamp information in buffers. If the force-prefix option is used, the message is split into separate lines and each line is prefixed with the stored decode & timestamp information. The splitting of the message into separate lines is done using strtok() which requires write access to the message buffer (ie, the const message buffer is now copied into a writeable buffer). Successfully tested by me by looking at sysrq-t and sysrq-w output. All known good /tests passed with these changes. [kzak@redhat.com: - use snprintf() - cleanup \n usage (don't count line break to the message text in the parsers and always print \n after the text - add the option to the man page - use --force-prefix for kmsg only, old syslog(2) API splits messages itself - strdup() the message text only on force-prefix] Signed-off-by: Prarit Bhargava Signed-off-by: Karel Zak sys-utils/dmesg.1 | 2 + sys-utils/dmesg.c | 208 ++++++++++++++++++++++++++++++++++++++---------------- 2 files changed, 150 insertions(+), 60 deletions(-) commit 61b9233995102d89e0f9d0beed6277071bb419ea Author: Karel Zak Date: Wed Nov 1 15:33:04 2017 +0100 lib/mangle: return size of the decoded buffer Signed-off-by: Karel Zak include/mangle.h | 2 +- lib/mangle.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) commit d22c1f533275ebf7060d9aa6dffc3ef265e81176 Author: Kevin Locke Date: Mon Oct 30 13:50:51 2017 -0600 bash-completion: Exclude /dev/fd from fsck find When the bash-completion for fsck runs `find -L /dev/ -type b` it descends into /dev/fd after opening '.' as file descriptor 3. This causes find to search through /dev/fd/3/ which includes everything below the current directory, which can take a very long time. To avoid this, prune /dev/fd in the find expression. Signed-off-by: Kevin Locke bash-completion/fsck | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit da964963220dc0b60a0725095fe7c3072a083927 Author: Karel Zak Date: Mon Oct 30 15:45:02 2017 +0100 dmesg: add note about -F format to the man page Signed-off-by: Karel Zak sys-utils/dmesg.1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 8a6f0cfd96a3a7f0e72079407af4b8ed705c1ed2 Author: Karel Zak Date: Mon Oct 30 15:04:20 2017 +0100 Revert "dmesg: fragment concatenation" * introduces regressions * stupid code; parse_kmsg_record() called more than once for each record This reverts commit 22eb2f0190d8a9850da750641439ccd284ac0bfe. sys-utils/dmesg.c | 117 ++++-------------------------------------------------- 1 file changed, 7 insertions(+), 110 deletions(-) commit a7da792223a77ea99edca11206a0666d8b710df4 Author: Nik Nyby Date: Wed Oct 25 00:19:19 2017 -0400 Fix typo in carefulputc.h Signed-off-by: Nik Nyby include/carefulputc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 9ffd0bd66173b8fb8ea11fbedb61621267767b1c Author: Milan Broz Date: Tue Oct 24 10:21:29 2017 +0200 tests: add LUKS test images Testing image contains only the first 4k sector, so it is not valid, but for blkid it should be enough. Signed-off-by: Milan Broz tests/expected/blkid/low-probe-luks1 | 5 +++++ tests/expected/blkid/low-probe-luks2 | 8 ++++++++ tests/ts/blkid/images-fs/luks1.img.xz | Bin 0 -> 300 bytes tests/ts/blkid/images-fs/luks2.img.xz | Bin 0 -> 276 bytes 4 files changed, 13 insertions(+) commit 573538bfba202d2c32f6688feaf2f50d8c603508 Author: Milan Broz Date: Mon Oct 23 16:26:51 2017 +0200 blkid: Add support for LUKS2 and new LABEL attributes. This patch adds support for detection of a LUKS2 superblock. LUKS2 is new version of Linux Unified Key Setup for encrypted block devices. LUKS2 contains a binary header and then JSON area for metadata. Blkid should only parse the binary part, including newly available optional LABEL and SUBSYSTEM fields. LABEL is similar to filesystem label. The SUBSYSTEM field is in principle, just a second label and can be used for specific udev rules (for example if you have some 3rd party system that activates volumes automatically, you can mark devices using this attribute). Both labels are optional. The magic string and UUID location are intentionally on the same offset as LUKS v1, so even unpatched blkid now recognizes LUKS2. Anyway, the code should not parse other versions of the header, so we now explicitly check for header version and support only version 1 and 2. Signed-off-by: Milan Broz libblkid/src/superblocks/luks.c | 42 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 38 insertions(+), 4 deletions(-) commit c71665adb55e6ba04c31cc9dd9c89a3a73b6b861 Author: Karel Zak Date: Mon Oct 23 15:49:22 2017 +0200 chmem: cleanup includes Signed-off-by: Karel Zak sys-utils/chmem.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) commit d182565be1515926c8eeda81452a4746d8b2a63d Author: Karel Zak Date: Mon Oct 23 15:45:01 2017 +0200 lib/path: make path_set_prefix() independent on cpu_set_t Signed-off-by: Karel Zak include/path.h | 9 ++++----- lib/path.c | 29 ++++++++++++++--------------- 2 files changed, 18 insertions(+), 20 deletions(-) commit 7b41ad363f79a99b9306c9d1110926196d27f3b4 Author: Karel Zak Date: Mon Oct 23 15:17:10 2017 +0200 lib/signames: fix redefinition of 'sys_signame' on OSX Signed-off-by: Karel Zak lib/signames.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) commit 525a0ab2f54208bc680b5629bfcd27debb03a986 Author: Karel Zak Date: Mon Oct 23 13:19:59 2017 +0200 unshare: cleanup if-if code Signed-off-by: Karel Zak sys-utils/unshare.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit c61e986fd0ab33731bbe2762a8a3168572f5a3ea Author: Karel Zak Date: Mon Oct 23 13:18:57 2017 +0200 lib/signames: remove signame array from header file Signed-off-by: Karel Zak include/signames.h | 129 ++--------------------------------------------------- lib/signames.c | 116 ++++++++++++++++++++++++++++++++++++++++++++++- misc-utils/kill.c | 23 +++++----- 3 files changed, 129 insertions(+), 139 deletions(-) commit c5910c7f27d6000f164f510456ac723048783bb1 Merge: b41bac08a 8b39a17c3 Author: Karel Zak Date: Mon Oct 23 12:58:21 2017 +0200 Merge branch 'kill-child-feature' of https://github.com/nh2/util-linux * 'kill-child-feature' of https://github.com/nh2/util-linux: unshare: Allow passing to --kill-child unshare: Add --kill-child option. signames: Make input char buffers const kill: Extract signal names into signames.h/signames.c commit b41bac08abadbea9bac7a093c995ca53d86c76f1 Author: Karel Zak Date: Fri Oct 20 14:59:16 2017 +0200 build-sys: move rfkill to /usr/sbin The original implementation uses sbin, let's do it too. Signed-off-by: Karel Zak sys-utils/Makemodule.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c774252a46fe20281584804975385ca39ca5bf1a Author: Karel Zak Date: Fri Oct 20 14:33:47 2017 +0200 tests: update lsmem * add --split Signed-off-by: Karel Zak tests/expected/lsmem/lsmem-s390-zvm-6g | 31 +++++++++++++++++---- tests/expected/lsmem/lsmem-x86_64-16g | 49 ++++++++++++++++++++++++++++++---- tests/ts/lsmem/lsmem | 11 ++++---- 3 files changed, 76 insertions(+), 15 deletions(-) commit d12e945dbf7758e43ec4aaadd0c8c28c1269236e Author: Karel Zak Date: Fri Oct 20 12:31:09 2017 +0200 lsmem: add --split Now the way how lsmem lists memory ranges is affected by used output columns. It makes it very difficult to use in scripts where you want to use for example only one column ranges=$(lsmem -oRANGE) and in this case all is merged to the one (or two) huge ranges and all attributes are ignored. The --split allows to control this behavior ranges=$(lsmem -oRANGE --split=STATE,ZONES) forces lsmem to list ranges by STATE and ZONES differences. Signed-off-by: Karel Zak sys-utils/chmem.8 | 3 +-- sys-utils/lsmem.1 | 27 ++++++++++++++----- sys-utils/lsmem.c | 79 ++++++++++++++++++++++++++++++++++++------------------- 3 files changed, 74 insertions(+), 35 deletions(-) commit 87a24d85f5fcd7c48137d67067a3ea8c997833de Author: Karel Zak Date: Wed Oct 18 13:16:09 2017 +0200 lsmem: add hint about block merges to the man page Signed-off-by: Karel Zak sys-utils/chmem.8 | 3 ++- sys-utils/lsmem.1 | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) commit 9c41d2701f837fcccd8a121cff6becd73d5d9fb3 Author: Karel Zak Date: Wed Oct 18 12:21:47 2017 +0200 lsmem: improve path_read_xxx() usage Signed-off-by: Karel Zak sys-utils/lsmem.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) commit 96b6448d5d36e6b0dd723d811c52db45a76e2756 Author: Karel Zak Date: Wed Oct 18 12:02:05 2017 +0200 chmem: cleanup usage() Just to be compatible with another u-l tools. Signed-off-by: Karel Zak sys-utils/chmem.c | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) commit afee3f204247fbc8e4cfaa1698f3d98762544dd8 Author: Andre Wild Date: Wed Sep 27 19:44:46 2017 +0200 lsmem/chmem: add memory zone awareness to bash-completion This patch extends the valid --output values with ZONES for the lsmem bash-completion, and adds the --zone option for the chmem bash-completion. Signed-off-by: Andre Wild Signed-off-by: Gerald Schaefer bash-completion/chmem | 1 + bash-completion/lsmem | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) commit 0a4320f5e785e82337c3a657c55651004e3fd08d Author: Gerald Schaefer Date: Wed Sep 27 19:44:45 2017 +0200 tests/lsmem: update lsmem test with ZONES column The existing s390 and x86_64 dumps already contain the valid_zones sysfs attribute, so just add a new "lsmem -o +ZONES" test command and update the expected results. Signed-off-by: Gerald Schaefer tests/expected/lsmem/lsmem-s390-zvm-6g | 21 ++++++++++++++++++ tests/expected/lsmem/lsmem-x86_64-16g | 39 ++++++++++++++++++++++++++++++++++ tests/ts/lsmem/lsmem | 1 + 3 files changed, 61 insertions(+) commit 60a7e9e94e49215b1e6ac6e33b69c3bd0a426b5e Author: Gerald Schaefer Date: Wed Sep 27 19:44:44 2017 +0200 lsmem/chmem: add memory zone awareness With this patch, valid memory zones can be shown with lsmem, and chmem can set memory online/offline in a specific memory zone, if allowed by the kernel. The valid memory zones are read from the "valid_zones" sysfs attribute, and setting memory online to a specific zone is done by echoing "online_kernel" or "online_movable" to the "state" sysfs attribute, in addition to the previous "online". This patch also changes the default behavior of chmem, when setting memory online without specifying a memory zone. If valid, memory will be set online to the zone Movable. This zone is preferable for memory hotplug, as it makes memory offline much more likely to succeed. Signed-off-by: Gerald Schaefer sys-utils/chmem.8 | 19 ++++++++ sys-utils/chmem.c | 136 ++++++++++++++++++++++++++++++++++++++++++++++++++---- sys-utils/lsmem.1 | 4 +- sys-utils/lsmem.c | 98 ++++++++++++++++++++++++++++++++++++++- 4 files changed, 246 insertions(+), 11 deletions(-) commit c08396c7691e1e6a04b6b45892e7e4612ceed8d7 Author: Karel Zak Date: Mon Oct 9 12:44:48 2017 +0200 libmount: use eacess() rather than open() to check mtab/utab The open() syscall is probably the most strong way how to check write accessibility in all situations, but it's overkill and on some paranoid systems with enabled audit/selinux. It fills logs with "Permission denied" entries. Let's use eaccess() if available. Signed-off-by: Karel Zak configure.ac | 1 + libmount/src/utils.c | 19 +++++++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) commit 8b39a17c3b98d40fe8530d8c542659513e89ac56 Author: Niklas Hambüchen Date: Sat Oct 14 04:31:57 2017 +0200 unshare: Allow passing to --kill-child sys-utils/unshare.1 | 5 +++-- sys-utils/unshare.c | 19 +++++++++++++------ 2 files changed, 16 insertions(+), 8 deletions(-) commit 8e8f0fa59a884c7dc7c54d0711861e479981ed1a Author: Niklas Hambüchen Date: Tue Sep 19 20:39:00 2017 +0200 unshare: Add --kill-child option. This allows to conveniently kill the entire process tree below the forked program, a common problem when scripting tasks that need to reliably fully terminate without leaving reparented subprocesses behind. The example added to the man page shows the most common use. Implemented using prctl(PR_SET_PDEATHSIG, ...). bash-completion/unshare | 1 + sys-utils/unshare.1 | 17 +++++++++++++++++ sys-utils/unshare.c | 14 +++++++++++++- 3 files changed, 31 insertions(+), 1 deletion(-) commit b6e1977db47d9c75b5a55d397995a5e131ea2906 Author: Niklas Hambüchen Date: Sat Oct 14 04:45:20 2017 +0200 signames: Make input char buffers const include/signames.h | 2 +- lib/signames.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) commit 6855f6e80bfe5532d832d2fb9cbcc6628d1d9fca Author: Niklas Hambüchen Date: Sat Oct 14 04:31:12 2017 +0200 kill: Extract signal names into signames.h/signames.c include/Makemodule.am | 1 + include/signames.h | 132 ++++++++++++++++++++++++++++++++++++++++++++++++++ lib/Makemodule.am | 3 +- lib/signames.c | 95 ++++++++++++++++++++++++++++++++++++ misc-utils/kill.c | 128 +----------------------------------------------- 5 files changed, 231 insertions(+), 128 deletions(-)