Changes between v2.32-rc1 and v2.32-rc2 -------------------------------------------- commit e04d89e95bd9279c6a59ce05880f4dc7193c59b9 Author: Karel Zak Date: Thu Mar 1 14:15:49 2018 +0100 build-sys: release++ (v2.32-rc2) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit 600a43a39f775e922ad869e5fb42f50c0387fbe1 Author: Karel Zak Date: Thu Mar 1 14:14:15 2018 +0100 docs: update v2.32-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.32-ReleaseNotes | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) commit 931ab85d87c8be55d7cdc3bfe26096cac4cc536c Author: Karel Zak Date: Thu Mar 1 14:11:16 2018 +0100 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 2 ++ 1 file changed, 2 insertions(+) commit 0dd149017748c76b9c965f36cc00fe22e20583b9 Author: Karel Zak Date: Thu Mar 1 14:08:43 2018 +0100 po: merge changes Signed-off-by: Karel Zak po/ca.po | 276 ++++++++++++++++++++++++++--------------------------- po/cs.po | 276 ++++++++++++++++++++++++++--------------------------- po/da.po | 276 ++++++++++++++++++++++++++--------------------------- po/de.po | 276 ++++++++++++++++++++++++++--------------------------- po/es.po | 276 ++++++++++++++++++++++++++--------------------------- po/et.po | 276 ++++++++++++++++++++++++++--------------------------- po/eu.po | 276 ++++++++++++++++++++++++++--------------------------- po/fi.po | 276 ++++++++++++++++++++++++++--------------------------- po/fr.po | 276 ++++++++++++++++++++++++++--------------------------- po/gl.po | 276 ++++++++++++++++++++++++++--------------------------- po/hr.po | 276 ++++++++++++++++++++++++++--------------------------- po/hu.po | 276 ++++++++++++++++++++++++++--------------------------- po/id.po | 276 ++++++++++++++++++++++++++--------------------------- po/it.po | 276 ++++++++++++++++++++++++++--------------------------- po/ja.po | 276 ++++++++++++++++++++++++++--------------------------- po/nl.po | 276 ++++++++++++++++++++++++++--------------------------- po/pl.po | 276 ++++++++++++++++++++++++++--------------------------- po/pt_BR.po | 276 ++++++++++++++++++++++++++--------------------------- po/ru.po | 276 ++++++++++++++++++++++++++--------------------------- po/sl.po | 276 ++++++++++++++++++++++++++--------------------------- po/sv.po | 276 ++++++++++++++++++++++++++--------------------------- po/tr.po | 276 ++++++++++++++++++++++++++--------------------------- po/uk.po | 276 ++++++++++++++++++++++++++--------------------------- po/util-linux.pot | 278 +++++++++++++++++++++++++++--------------------------- po/vi.po | 276 ++++++++++++++++++++++++++--------------------------- po/zh_CN.po | 276 ++++++++++++++++++++++++++--------------------------- po/zh_TW.po | 276 ++++++++++++++++++++++++++--------------------------- 27 files changed, 3727 insertions(+), 3727 deletions(-) commit 1007fb6d9c74bc36e745436a2cdc9b357dbb718c Author: Karel Zak Date: Thu Mar 1 13:52:07 2018 +0100 tools: improve checkmans * ignore .git/ * don't print error messages when error counters are zero * add new KNOWN_REPEATS[] Signed-off-by: Karel Zak tools/checkmans.sh | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) commit 56f4d6ce0d6fe45dabfc6b6094adffaa98044e78 Author: Karel Zak Date: Thu Mar 1 12:35:59 2018 +0100 docs: add note about NVMe-multipath to TODO Signed-off-by: Karel Zak Documentation/TODO | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) commit bde5d1aa0a5c89423914a2935aec9e2945a0587a Author: Steve Kenton Date: Tue Feb 27 12:44:07 2018 -0600 mount: (man) update mount options for UDF Signed-off-by: Steve Kenton Acked-by: Jan Kara sys-utils/mount.8 | 89 +++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 67 insertions(+), 22 deletions(-) commit 0e06893f6afcd14462fb3d4710139d7828c832fb Author: Karel Zak Date: Tue Feb 27 10:36:40 2018 +0100 libblkid:(dos) make subtypes probing more robust The current code mix partitions as defined on disk with partitions from partlist (as recognized by libblkid). It seems better to follow partlist only. Reported-by: Vaclav Dolezal Signed-off-by: Karel Zak libblkid/src/partitions/dos.c | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) commit 54b3434f68ac24604d77d03e2051852d6c7f74a5 Author: Karel Zak Date: Mon Feb 26 23:48:45 2018 +0100 libblkid: (mpool) checksum is LE Reported-by: Ruediger Meier Signed-off-by: Karel Zak libblkid/src/superblocks/mpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 79bd13842b57bd9f11f74e8b5a25a4f7743ff24e Author: Masanari Iida Date: Mon Feb 26 21:15:33 2018 +0900 blkzone: Fix a typo in blkzone.8 This patch fixes a spelling typo in blkzone.8 Signed-off-by: Masanari Iida sys-utils/blkzone.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit fcfe1a5cde0ad12a52f580037da201de667c5ced Author: Tobias Stoeckmann Date: Sun Feb 25 20:27:59 2018 +0100 fincore: Handle large files on 32 bit without LFS If util-linux is installed on a system without large file support, an out of memory issue can occur while processing a file which is 2 GB in size: $ ./configure --disable-largefile && make $ dd if=/dev/zero of=2gb-file seek=2147483646 count=1 bs=1 $ fincore 2gb-file (endless loop) fincore: failed to do mmap: 2gb-file: Cannot allocate memory Even though iterating with "len" seems counter-intuitive, it fixes this issue. The variable len is only in the last iteration not a multiplication of pagesize -- which is the requirement for mmap. Signed-off-by: Tobias Stoeckmann misc-utils/fincore.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit ea62c152766ff22038630c9afdeb1df5dcc044cb Author: Tobias Stoeckmann Date: Sun Feb 25 20:27:18 2018 +0100 fincore: Handle large files correctly on 32 bit If a file is larger than 4 GB on a 32 bit system with large file support (default), it can happen that not all pages are properly processed. This happens due to an int truncation (off_t vs size_t). You can reproduce this on 32 bit with these commands: $ dd if=/dev/zero of=4gb-file seek=4294967295 count=1 bs=1 $ fincore 4gb-file fincore: failed to do mmap: 4gb-file: Invalid argument If a file is larger than 4 GB, the first few pages of a file won't be properly processed. "len" will be smaller than window_size, but the for-loop iterates "window_size" bytes, skipping some pages. Signed-off-by: Tobias Stoeckmann misc-utils/fincore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 2e20500a449955a69ea0b8381453079e8b57e9d3 Author: Karel Zak Date: Thu Feb 22 13:04:46 2018 +0100 build-sys: forgot update NEWS for v2.32-rc1 Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit f49cf49bd857a2ecf3207bb6e38a08fc039bbe8e Author: Karel Zak Date: Thu Feb 22 12:45:56 2018 +0100 mount: add note about cached kernel table for --all Signed-off-by: Karel Zak sys-utils/mount.8 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit aef70f5514d6560771ea73affef82a09b8eae7bc Author: Karel Zak Date: Wed Feb 21 13:23:19 2018 +0100 libsmartcols: fix docs warnings Signed-off-by: Karel Zak libsmartcols/docs/libsmartcols-docs.xml | 4 ++++ libsmartcols/src/table.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit ed930a9b89f1b436f2a2a544b1dd73f29c402e68 Author: Karel Zak Date: Wed Feb 21 13:23:08 2018 +0100 libfdisk: fix docs warnings Signed-off-by: Karel Zak libfdisk/docs/libfdisk-docs.xml | 8 ++++++++ libfdisk/src/label.c | 6 ++++++ 2 files changed, 14 insertions(+) commit 9070c2e200a6104cff8e65b52fb42bd2b45db4be Author: Karel Zak Date: Wed Feb 21 13:12:12 2018 +0100 libfdisk: (docs) add missing docs blocks Signed-off-by: Karel Zak libfdisk/docs/libfdisk-sections.txt | 3 ++ libfdisk/src/context.c | 2 +- libfdisk/src/libfdisk.h.in | 65 +++++++++++++++++++++++++------------ 3 files changed, 48 insertions(+), 22 deletions(-) commit f92c9f3782dfb4104450a7945d28214447e14d76 Author: Karel Zak Date: Wed Feb 21 12:48:20 2018 +0100 libfdisk: (docs) improve enums documentation Signed-off-by: Karel Zak libfdisk/src/libfdisk.h.in | 77 ++++++++++++++++++++++++++++++++++++---------- 1 file changed, 61 insertions(+), 16 deletions(-) commit ebb079266d449530648ac5811899875dfba792ae Author: Karel Zak Date: Wed Feb 21 11:43:21 2018 +0100 libmount: add missing macro to docs Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 1 + 1 file changed, 1 insertion(+) commit 7748dd7bd060500bc69da139af455931a5e2c99f Author: Karel Zak Date: Wed Feb 21 11:40:39 2018 +0100 libblkid: (mpool) don't use gtkdocs-like comment block Signed-off-by: Karel Zak libblkid/src/superblocks/mpool.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) commit 8e7a0c1622ff4a2afc2bbf835b135a46d111b514 Author: Karel Zak Date: Tue Feb 20 15:04:51 2018 +0100 lsmem: fix memory leak [coverity scan] Signed-off-by: Karel Zak sys-utils/lsmem.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) commit 887810a8a5420c8eb265503f56ce8a77e4484378 Author: Karel Zak Date: Tue Feb 20 14:59:40 2018 +0100 lsns: remove if-after-xcalloc Signed-off-by: Karel Zak sys-utils/lsns.c | 4 ---- 1 file changed, 4 deletions(-) commit d658091710407ba924e5d32334a85bb495ae68f7 Author: Karel Zak Date: Tue Feb 20 14:48:26 2018 +0100 column: fix memory leak [coverity scan] Signed-off-by: Karel Zak text-utils/column.c | 3 +++ 1 file changed, 3 insertions(+) commit 685f544918e4287abea4a04c69502df5b17d4f36 Author: Karel Zak Date: Tue Feb 20 10:40:22 2018 +0100 chrt: fix compiler warning [-Wmaybe-uninitialized] Signed-off-by: Karel Zak schedutils/chrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ac528367815bb48b9d1385d25e5fbf2d32d3020c Author: Karel Zak Date: Mon Feb 19 13:05:45 2018 +0100 fsck: cleanup find_fsck() * remove static variable * return 0 or 1 * optionally return allocated path to the program Signed-off-by: Karel Zak disk-utils/fsck.c | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) commit 3476084d14c07ac4ba26e01b97fdb4d1e57ebd91 Author: Karel Zak Date: Fri Feb 16 19:10:35 2018 +0100 lsblk: document LSBLK_DEBUG= Signed-off-by: Karel Zak misc-utils/lsblk.8 | 2 ++ 1 file changed, 2 insertions(+) commit 3b814f199066b9c30d8e9ccd346bc53ab205fe54 Merge: 7595bed18 a8d674955 Author: Karel Zak Date: Fri Feb 16 11:38:18 2018 +0100 Merge branch 'maybe-for-v2.32' of https://github.com/rudimeier/util-linux commit a8d674955ab64e030a9a4c80e72eccd127b1ff48 Author: Ruediger Meier Date: Mon Apr 17 23:45:30 2017 +0200 tests: use pgrep instead of ps --ppid ... The usage looks a bit cleaner, and I guess that pgrep(1) is available on the same machines where "ps --ppid" would work (procps-ng). Signed-off-by: Ruediger Meier tests/ts/misc/flock | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) commit 7595bed1898109b34eb072093902071fcb75fea9 Merge: 5b1c32b88 7eb1320bf Author: Karel Zak Date: Fri Feb 16 11:25:22 2018 +0100 Merge branch 'maybe-for-v2.32' of https://github.com/rudimeier/util-linux * 'maybe-for-v2.32' of https://github.com/rudimeier/util-linux: tests: use pgrep instead of ps --ppid ... misc: fix typos using codespell lsns: fix clang compiler warning tests: add udevadm settle to sfdisk/resize build-sys: disable bz2 tarball and fix some am warnings commit 7eb1320bf73c10533237344287f96a4f8ad61573 Author: Ruediger Meier Date: Mon Apr 17 23:45:30 2017 +0200 tests: use pgrep instead of ps --ppid ... The usage looks a bit cleaner, and I guess that pgrep(1) is available on the same machines where "ps --ppid" would work (procps-ng). Signed-off-by: Ruediger Meier tests/ts/misc/flock | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) commit 73afd3f8e8793844e8e53f69d819ca740cdfc889 Author: Ruediger Meier Date: Thu Feb 15 22:02:18 2018 +0100 misc: fix typos using codespell Some more funny typos, please review carefully. Signed-off-by: Ruediger Meier Documentation/TODO | 2 +- Documentation/deprecated.txt | 2 +- Documentation/parse-date.txt | 2 +- Documentation/releases/v2.32-ReleaseNotes | 2 +- NEWS | 8 ++++---- configure.ac | 16 ++++++++-------- disk-utils/fdisk-menu.c | 2 +- disk-utils/fsck.cramfs.c | 2 +- disk-utils/mkfs.cramfs.c | 2 +- include/nls.h | 2 +- lib/loopdev.c | 2 +- libblkid/docs/Makefile.am | 2 +- libblkid/src/probe.c | 4 ++-- libfdisk/docs/Makefile.am | 2 +- libfdisk/samples/mkpart-fullspec.c | 4 ++-- libfdisk/src/context.c | 2 +- libfdisk/src/item.c | 2 +- libfdisk/src/libfdisk.h.in | 2 +- libfdisk/src/partition.c | 2 +- libmount/docs/Makefile.am | 2 +- libmount/src/context_loopdev.c | 4 ++-- libmount/src/fs.c | 8 ++++---- libsmartcols/docs/Makefile.am | 2 +- libsmartcols/src/table.c | 2 +- login-utils/su-common.c | 2 +- m4/ul.m4 | 2 +- misc-utils/logger.c | 2 +- misc-utils/uuidgen.1 | 6 +++--- sys-utils/dmesg.c | 2 +- sys-utils/lsmem.1 | 2 +- sys-utils/rfkill.c | 2 +- sys-utils/rtcwake.8.in | 2 +- term-utils/agetty.8 | 2 +- tests/expected/getopt/options-longopts | 2 +- tests/ts/getopt/options | 2 +- tests/ts/libmount/lock | 2 +- 36 files changed, 54 insertions(+), 54 deletions(-) commit 58b29eedb02cdb314a2dc0cfab0397ab54a218f9 Author: Ruediger Meier Date: Mon Jan 22 00:04:38 2018 +0100 lsns: fix clang compiler warning ../sys-utils/lsns.c:360:8: warning: comparison of integers of different signs: '__u32' (aka 'unsigned int') and 'int' [-Wsign-compare] if (!(NLMSG_OK(nlh, reslen) ^~~~~~~~~~~~~~~~~~~~~ /usr/include/linux/netlink.h:90:24: note: expanded from macro 'NLMSG_OK' (nlh)->nlmsg_len <= (len)) ~~~~~~~~~~~~~~~~ ^ ~~~ Signed-off-by: Ruediger Meier sys-utils/lsns.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 5b1c32b887d3b82199023a0fe69f5ed343cf147e Author: Karel Zak Date: Fri Feb 16 10:49:24 2018 +0100 fsck: coding style cleanup Signed-off-by: Karel Zak disk-utils/fsck.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit 8bad4fc0d557ef7a1a3899faea41f1225b4ccbf6 Author: Theodore Ts'o Date: Thu Feb 15 15:05:08 2018 -0500 fsck: use xasprintf to avoid buffer overruns with an insane fs type This prevents a crash when running the command: fsck -t AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA /dev/sda Reported-by: Hornseth_Brenan@bah.com Signed-off-by: Theodore Ts'o disk-utils/fsck.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) commit 497a261adafda446635d700e2db0adedcb56989b Author: Ruediger Meier Date: Tue Jan 23 19:03:22 2018 +0100 tests: add udevadm settle to sfdisk/resize Signed-off-by: Ruediger Meier tests/ts/sfdisk/resize | 1 + 1 file changed, 1 insertion(+) commit 316795fcb33ea43997f7cf9de276178250bfd51e Author: Ruediger Meier Date: Thu Feb 15 21:18:27 2018 +0100 build-sys: disable bz2 tarball and fix some am warnings Nobody needs the .bz2 tarball. We dont't even upload it to kernel.org. BTW we fix dozens of these automake warnings: automake-1.13/am/ltlibrary.am: warning: 'libblkid.la': linking libtool libraries using a non-POSIX automake-1.13/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac' So we can remove -Wno-portability. The only warning left is this last GNU-make'ism which somebody may fix when reading it: sys-utils/Makemodule.am:191: warning: addprefix sys-utils/,$(SETARCH_LINKS: non-POSIX variable name sys-utils/Makemodule.am:191: (probably a GNU make extension) Makefile.am:90: 'sys-utils/Makemodule.am' included from here Signed-off-by: Ruediger Meier .gitignore | 1 + configure.ac | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) commit 0f9b4f2f3a2b24e38713ad7a001be461e8fd1649 Author: taiyu Date: Wed Feb 14 22:50:36 2018 -0800 libsmartcols: fixes issue with 0 width columns [kzak@redhat.com: - it's possible that column has zero width when minimal width is reduced due to very small terminal. In this case make sure that we do not use such column at all.] Signed-off-by: Karel Zak libsmartcols/src/table_print.c | 4 ++++ 1 file changed, 4 insertions(+) commit 0f9f927b6f62cb7f488fadfad76c4a5defdefe36 Author: Karel Zak Date: Thu Feb 15 11:58:41 2018 +0100 libsmartcols: set minimal column width to 1 The default is to use header width or relative width setting as the minimal column width. The problem are columns where is no header or relative width. Let's set minimal width to 1 in this case. Addresses: https://github.com/karelzak/util-linux/pull/577 Signed-off-by: Karel Zak libsmartcols/src/table_print.c | 2 ++ 1 file changed, 2 insertions(+) commit 19b10b89789943db23131db6eab40706eb915dcc Author: Karel Zak Date: Thu Feb 15 11:58:41 2018 +0100 libsmartcols: interpret zero width for pending data as error The command $ column -t -W2 -c11 <<< "cat dog bird" causes finite loop, because there is no minimal column width (missing header). The print functions should be robust enough to return -EINVAL when nonsense is requested. Addresses: https://github.com/karelzak/util-linux/pull/577 Signed-off-by: Karel Zak libsmartcols/src/table_print.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit dd9b4cb32042def5b7767e26ebd294f7f52cd07f Author: Riku Voipio Date: Tue Feb 13 15:22:54 2018 +0200 lscpu-arm: add Faraday And Brahma cores Add a handful of more rare cores. Broadcom Brahma cores are used in Access Points and Faraday was used on some Network Storage Devices. Signed-off-by: Riku Voipio sys-utils/lscpu-arm.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)