Changes between v2.22 and v2.23-rc1 -------------------------------------------- commit fb5a24e50a9ec9cecef325b5de89372295c11416 Author: Karel Zak Date: Fri Mar 22 12:34:28 2013 +0100 build-sys: release++ (v2.23-rc1) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit 2771954b530c46e90d42f692949559b9916f61ed Author: Karel Zak Date: Fri Mar 22 12:33:27 2013 +0100 build-sys: keep libuser optional Signed-off-by: Karel Zak configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 74edc12cbb6b6f6582f087ea0940cc262cf0f8a3 Author: Karel Zak Date: Fri Mar 22 10:17:10 2013 +0100 docs: upadte v2.23-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.23-ReleaseNotes | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) commit d9e32a06a25cb67cc3a3de8b7910238026f1bf88 Author: Karel Zak Date: Fri Mar 22 01:01:17 2013 +0100 docs: add v2.23-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.23-ReleaseNotes | 976 ++++++++++++++++++++++++++++++ 1 file changed, 976 insertions(+) commit e80d46b0d9d640ec46d8052402e01c4433dc70fe Author: Karel Zak Date: Thu Mar 21 23:56:35 2013 +0100 mount: fix typos in man page Signed-off-by: Karel Zak sys-utils/mount.8 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 095d0e0b45f79e53c7fd8d6b88ec52a51449f659 Author: Karel Zak Date: Thu Mar 21 23:29:45 2013 +0100 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) commit 55032d703420ab41da8b81e1cf0197f9902fb667 Author: Karel Zak Date: Thu Mar 21 23:19:54 2013 +0100 po: merge changes Signed-off-by: Karel Zak po/ca.po | 11575 +++++++++++++++++++-------------- po/cs.po | 12507 ++++++++++++++++++++++-------------- po/da.po | 11758 ++++++++++++++++++++-------------- po/de.po | 11670 ++++++++++++++++++++-------------- po/es.po | 11637 ++++++++++++++++++++-------------- po/et.po | 10450 +++++++++++++++++------------- po/eu.po | 17970 +++++++++++++++++++++++++++++----------------------- po/fi.po | 11612 +++++++++++++++++++-------------- po/fr.po | 14555 +++++++++++++++++++++++++----------------- po/gl.po | 10134 +++++++++++++++++------------ po/hr.po | 9464 ++++++++++++++++----------- po/hu.po | 11644 ++++++++++++++++++++-------------- po/id.po | 11767 ++++++++++++++++++++-------------- po/it.po | 11594 +++++++++++++++++++-------------- po/ja.po | 11621 +++++++++++++++++++-------------- po/nl.po | 12070 +++++++++++++++++++++-------------- po/pl.po | 11176 +++++++++++++++++++------------- po/pt_BR.po | 11536 +++++++++++++++++++-------------- po/ru.po | 11667 ++++++++++++++++++++-------------- po/sl.po | 11577 +++++++++++++++++++-------------- po/sv.po | 11730 ++++++++++++++++++++-------------- po/tr.po | 11615 +++++++++++++++++++-------------- po/uk.po | 11193 +++++++++++++++++++------------- po/util-linux.pot | 9102 +++++++++++++++----------- po/vi.po | 12253 +++++++++++++++++++++-------------- po/zh_CN.po | 11627 +++++++++++++++++++-------------- po/zh_TW.po | 10777 ++++++++++++++++++------------- 27 files changed, 187045 insertions(+), 129236 deletions(-) commit 0e768fc46a2a4aeaa27c83b9e7c50688d328b828 Author: Tomislav Krznar Date: Thu Mar 21 23:08:23 2013 +0100 po: add hr.po (from translationproject.org) po/hr.po | 14506 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 14506 insertions(+) commit ab1c997421ef0e8087fb1f50d63fd37af6a8b954 Author: Trần Ngọc Quân Date: Thu Mar 21 23:08:23 2013 +0100 po: update vi.po (from translationproject.org) po/vi.po | 2256 +++++++++++++++++++++++++------------------------------------- 1 file changed, 891 insertions(+), 1365 deletions(-) commit 2720c08ce7134dbfc9eb0804fd98025b2df48d52 Author: David Prévot Date: Thu Mar 21 23:08:23 2013 +0100 po: update fr.po (from translationproject.org) po/fr.po | 2111 +++++++++++++++++++------------------------------------------- 1 file changed, 647 insertions(+), 1464 deletions(-) commit c2ecb30e9b4ad6833aded7422592a74bc1520e6d Author: Petr Pisar Date: Thu Mar 21 23:08:23 2013 +0100 po: update cs.po (from translationproject.org) po/cs.po | 1119 ++++++++++++++++++++------------------------------------------ 1 file changed, 359 insertions(+), 760 deletions(-) commit bd7101d3ff3bcc83892789c30368b83174723bca Author: Karel Zak Date: Thu Mar 21 22:35:11 2013 +0100 tests: update build tests * remove ld-linux-* from output * findmnt linked with libudev * lslocks linked with libmount * uuidd linked with librt * static binaries are no more enabled by default * chfn/chsh linked with libuser * add nsenter, runuser, setpriv Signed-off-by: Karel Zak tests/expected/build-sys/config-all | 29 ++++++++---------- tests/expected/build-sys/config-all-non-nls | 29 ++++++++---------- tests/expected/build-sys/config-audit | 17 ++++++----- tests/expected/build-sys/config-core | 17 ++++++----- tests/expected/build-sys/config-devel | 45 +++++++++++++--------------- tests/expected/build-sys/config-non-libblkid | 10 ++++--- tests/expected/build-sys/config-non-libmount | 12 ++++---- tests/expected/build-sys/config-non-libs | 7 +++-- tests/expected/build-sys/config-non-libuuid | 14 +++++---- tests/expected/build-sys/config-non-nls | 17 ++++++----- tests/expected/build-sys/config-old-mount | 17 ++++++----- tests/expected/build-sys/config-selinux | 33 ++++++++++---------- tests/expected/build-sys/config-slang | 17 ++++++----- tests/expected/build-sys/config-static | 17 ++++++----- tests/ts/build-sys/config | 2 +- 15 files changed, 151 insertions(+), 132 deletions(-) commit 95cf84f7cf96d9da8be4c74b5ce50b3cbffd837e Author: Karel Zak Date: Thu Mar 21 22:34:35 2013 +0100 tests: add chfnsh build tests Signed-off-by: Karel Zak tests/expected/build-sys/config-chfnsh-libuser | 99 +++++++++++++++++++ tests/expected/build-sys/config-chfnsh-no-password | 99 +++++++++++++++++++ tests/expected/build-sys/config-chfnsh-pam | 99 +++++++++++++++++++ tests/expected/build-sys/config-devel-non-docs | 107 +++++++++++++++++++++ 4 files changed, 404 insertions(+) commit eb6a03f3bffeac397358026851da20206869cd01 Author: Karel Zak Date: Thu Mar 21 13:22:10 2013 +0100 build-sys: set dependence fdisk -> libfdisk -> libuuid Signed-off-by: Karel Zak configure.ac | 12 ++++++++++++ fdisks/Makemodule.am | 3 +++ libfdisk/Makemodule.am | 3 +++ 3 files changed, 18 insertions(+) commit ec1204dc6123e66c32ef3080835e244fa386b166 Author: Karel Zak Date: Thu Mar 21 13:13:23 2013 +0100 build-sys: lslocks depends on libmount Signed-off-by: Karel Zak configure.ac | 1 + 1 file changed, 1 insertion(+) commit 1f6ec24ce58ba276dcc8c704ec0958fdc5ad2197 Author: Karel Zak Date: Thu Mar 21 13:12:52 2013 +0100 build-sys: don't use libs from pkg-config from libuser Signed-off-by: Karel Zak configure.ac | 5 +++++ 1 file changed, 5 insertions(+) commit b4770708d5948b4aac9c5291ba69d64711086394 Author: Karel Zak Date: Thu Mar 21 13:11:09 2013 +0100 build-sys: don't use nested BUILD_* Signed-off-by: Karel Zak sys-utils/Makemodule.am | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) commit 5724b74dd85340d265cde66b0a81486989d47f56 Author: Karel Zak Date: Thu Mar 21 08:56:15 2013 +0100 hwclock: cleanup _() usage in synchronize_to_clock_tick_rtc() Signed-off-by: Karel Zak sys-utils/hwclock-rtc.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) commit ab8f402952301106ad0bd5c5a51dc8646d1bff64 Author: Karel Zak Date: Thu Mar 21 08:51:22 2013 +0100 hwclock: don't confuse users with select() timeout warning Reported-by: Daniel Drake Signed-off-by: Karel Zak sys-utils/hwclock-rtc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit 60d72321ecf3ae8cf48bac58ce5774a55e356309 Author: Karel Zak Date: Thu Mar 21 08:23:36 2013 +0100 raw: fix "Error setting raw device: Success" # raw /dev/raw/raw1 253 40 raw: Error setting raw device:Success Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=923820 Signed-off-by: Karel Zak disk-utils/raw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 46e7eac1216003df98fe9d8166f9fe52f76192d6 Author: Karel Zak Date: Thu Mar 21 08:12:35 2013 +0100 fdisk: remove unwanted operator [smatch scan] Reported-by: Sami Kerola Signed-off-by: Karel Zak fdisks/fdisksunlabel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7d8ea9df69617136039b4ec2d346f729ce93ee15 Author: Karel Zak Date: Wed Mar 20 15:20:47 2013 +0100 ipcs: fix compiler warning [clang -Wuninitialized] Signed-off-by: Karel Zak sys-utils/ipcutils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 3d13d5823fe9168a9cce925a4637e580f16a6bf5 Author: Karel Zak Date: Wed Mar 20 15:17:13 2013 +0100 script: use __noreturn__ for really last function [clang -Winvalid-noreturn] Use 'noreturn' for done() only. Signed-off-by: Karel Zak term-utils/script.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 312f04f497ef3587504767182678151fc56e4d83 Author: Karel Zak Date: Wed Mar 20 14:59:21 2013 +0100 build-sys: check for security_get_initial_context() Signed-off-by: Karel Zak configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) commit d06f321df1587fbb7d27a1f0e33e948a1cf743c2 Author: Karel Zak Date: Wed Mar 20 14:46:03 2013 +0100 libfdisk: (gpt) rmeove xalloc calls Signed-off-by: Karel Zak libfdisk/src/gpt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) commit 5ad0923904b60b41684728e2cc9a44e96b3eb0cd Author: Karel Zak Date: Wed Mar 20 14:40:19 2013 +0100 remove duplicate includes Signed-off-by: Karel Zak include/namespace.h | 6 ++++-- login-utils/sulogin-consoles.c | 12 ++++-------- term-utils/agetty.c | 1 - 3 files changed, 8 insertions(+), 11 deletions(-) commit 631e8be79331a66435c3a56b8ab0c3d6ac30f98a Author: Benno Schulenberg Date: Sun Mar 17 22:23:45 2013 +0100 docs: add AVAILABILITY section to isosize man page, and tweak wording Signed-off-by: Benno Schulenberg disk-utils/isosize.8 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) commit 9c91fc03ae1d95aaef02a1bd991fe8992b691a53 Author: Benno Schulenberg Date: Sun Mar 17 22:05:19 2013 +0100 docs: make the section AVAILABILITY always come last in man pages Signed-off-by: Benno Schulenberg disk-utils/fsck.8 | 18 +++++++++--------- libblkid/libblkid.3 | 7 +++---- login-utils/login.1 | 4 +--- misc-utils/blkid.8 | 8 ++++---- misc-utils/findfs.8 | 6 +++--- misc-utils/uuidgen.1 | 4 ++-- misc-utils/wipefs.8 | 6 +++--- term-utils/scriptreplay.1 | 4 +--- text-utils/rev.1 | 4 ++-- 9 files changed, 28 insertions(+), 33 deletions(-) commit eae1ef2f20f3c395659aba109c8628f15a420cbe Author: Benno Schulenberg Date: Sun Mar 17 21:59:21 2013 +0100 docs: normalize formatting of lslocks man page Also alphabetize the options and improve some wording. Signed-off-by: Benno Schulenberg misc-utils/lslocks.8 | 55 +++++++++++++++++++++++++++++----------------------- 1 file changed, 31 insertions(+), 24 deletions(-) commit 1faf44f01335b391edf3f6c658d9b22cac4180fa Author: Benno Schulenberg Date: Sun Mar 17 20:39:12 2013 +0100 docs: normalize formatting of wipefs man page Signed-off-by: Benno Schulenberg misc-utils/wipefs.8 | 68 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 38 insertions(+), 30 deletions(-) commit 4b44c245dd4de622fcd560275e8b648be5687752 Author: Benno Schulenberg Date: Mon Mar 4 21:01:29 2013 +0100 docs: normalize formatting of findmnt man page Signed-off-by: Benno Schulenberg misc-utils/findmnt.8 | 84 ++++++++++++++++++++++++++++++++++------------------ 1 file changed, 56 insertions(+), 28 deletions(-) commit 469202cdc367835b9b8ed8cbc9b2063515666d1d Author: Benno Schulenberg Date: Fri Mar 1 22:50:05 2013 +0100 docs: sort the options in findmnt man page alphabetically Also improve wording and formatting a bit. Signed-off-by: Benno Schulenberg misc-utils/findmnt.8 | 128 ++++++++++++++++++++++++++------------------------- 1 file changed, 65 insertions(+), 63 deletions(-) commit a9b2c52f776e741397a151afc9ceafb4ca13c15a Author: Benno Schulenberg Date: Fri Mar 1 22:18:30 2013 +0100 blkid: also accept -V for displaying version information Signed-off-by: Benno Schulenberg misc-utils/blkid.8 | 2 +- misc-utils/blkid.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) commit bc88ad1a5fb73b38836c8b5b152440f642cd9da8 Author: Benno Schulenberg Date: Fri Mar 1 22:11:52 2013 +0100 docs: improve wording and formatting of blkid man page Furthermore, explain the device argument right at the beginning, since it is not an option, and alphabetize -k. Signed-off-by: Benno Schulenberg misc-utils/blkid.8 | 137 ++++++++++++++++++++++++++--------------------------- 1 file changed, 67 insertions(+), 70 deletions(-) commit 36c7f78524f852d9d9362e9d8baaad28dd20e5ee Author: Pádraig Brady Date: Fri Mar 15 09:48:37 2013 +0000 lib/mbsalign: correct license header from GPLv[23] to LGPLv2+ * lib/mbsalign.c: s/GPLv3/LGPLv2+/ * include/mbsalign.h: s/GPLv2/LGPLv2+/ * README.licensing: Remove mention GPLv3 as it's not actually used. README.licensing | 2 -- include/mbsalign.h | 4 ++-- lib/mbsalign.c | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) commit f84559ee1c39696256fd12b7518be11d0706f216 Author: Karel Zak Date: Wed Mar 20 11:52:35 2013 +0100 whereis: canonicalize directories paths Signed-off-by: Karel Zak misc-utils/Makemodule.am | 1 + misc-utils/whereis.c | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) commit 38db00f17824f41679c99a6c711a11e4585a0484 Author: Karel Zak Date: Tue Mar 19 22:53:16 2013 +0100 wipefs: add -f to getopt_long() Reported-by: Dan Horák Signed-off-by: Karel Zak misc-utils/wipefs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f2be51a2118569e8eefbf62b1d9c903f7dfe429e Author: Karel Zak Date: Tue Mar 19 22:45:51 2013 +0100 docs: add wipefs feature request to TODO Signed-off-by: Karel Zak Documentation/TODO | 5 +++++ 1 file changed, 5 insertions(+) commit d6590ebd70878694ce5799dfd561bda2bbc3092b Author: Sami Kerola Date: Sat Mar 16 21:36:02 2013 +0000 docs: generic whereis.1 clean up Align with howto-man-page.txt, and more importantly remove out dated 'SEE ALSO' and 'BUGS' sections. Signed-off-by: Sami Kerola misc-utils/whereis.1 | 61 +++++++++++++++++++++------------------------------- 1 file changed, 25 insertions(+), 36 deletions(-) commit ccec32a121c717bbb7909d4db4095e67cfcf6e4f Author: Sami Kerola Date: Sat Mar 16 21:05:24 2013 +0000 whereis: support MANPATH environment variable The MANPATH has been around long enough that it can be added to whereis default search path. Reference: manpath(1) Addresses: http://pubs.opengroup.org/onlinepubs/7908799/xbd/envvar.html Signed-off-by: Sami Kerola Signed-off-by: Karel Zak misc-utils/whereis.1 | 31 +++++++++++++++++-------------- misc-utils/whereis.c | 2 ++ 2 files changed, 19 insertions(+), 14 deletions(-) commit ec3bc7aaf486122fa5bb190a4fb18a9d5989d950 Author: Sami Kerola Date: Sat Mar 16 20:25:17 2013 +0000 whereis: align with howto-usage-function.txt Signed-off-by: Sami Kerola misc-utils/whereis.c | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) commit 3bfb96365dc7a7971f4cc941e95e1ce0d1f288c7 Author: Sami Kerola Date: Sat Mar 16 20:12:49 2013 +0000 whereis: add search scope listing option Mostly useful when debugging why the command does, or does not, work. Signed-off-by: Sami Kerola Signed-off-by: Karel Zak misc-utils/whereis.1 | 11 ++++++++++- misc-utils/whereis.c | 29 +++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) commit 9db54a7e08fbfbe96b211cd684dd6be457b4621a Author: Sami Kerola Date: Wed Mar 13 22:27:12 2013 +0000 whereis: rewrite most of the command The earlier code gave little or no change to fix bugs and improve the command. This rewrite attempts to make further patching easier. Signed-off-by: Sami Kerola Signed-off-by: Karel Zak Co-Author: Karel Zak misc-utils/whereis.c | 573 ++++++++++++++++++++++++++++----------------------- 1 file changed, 310 insertions(+), 263 deletions(-) commit 16ef36f783837f8ebf90e8707cbcbcab2dc4c18d Author: Karel Zak Date: Mon Mar 18 18:31:07 2013 +0100 docs: add TB to list of supported suffixes Reported-by: Lukas Czerner Signed-off-by: Karel Zak misc-utils/blkid.8 | 2 +- misc-utils/wipefs.8 | 2 +- sys-utils/blkdiscard.8 | 2 +- sys-utils/fallocate.1 | 2 +- sys-utils/fstrim.8 | 4 ++-- sys-utils/losetup.8 | 2 +- text-utils/hexdump.1 | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) commit b75b23b42fde3896809efd888168663f145518aa Author: Karel Zak Date: Mon Mar 18 17:07:39 2013 +0100 docs: cleanup TODO Signed-off-by: Karel Zak Documentation/TODO | 38 +++++++++++++++----------------------- 1 file changed, 15 insertions(+), 23 deletions(-) commit aa192520d3c4cddc69fe4bad7f635d520c193f36 Author: Karel Zak Date: Mon Mar 18 14:05:24 2013 +0100 dmesg: use $PAGER for --human output, add --nopager Signed-off-by: Karel Zak sys-utils/dmesg.1 | 5 ++++- sys-utils/dmesg.c | 20 ++++++++++++++++---- 2 files changed, 20 insertions(+), 5 deletions(-) commit f0a3a1caacd002e6890b29e6f7c265c62bfa2e85 Author: Karel Zak Date: Mon Mar 18 12:38:28 2013 +0100 dmesg: add --human * enable --reltime * enable --color * a little bit cleanup main() Signed-off-by: Karel Zak sys-utils/dmesg.1 | 2 ++ sys-utils/dmesg.c | 25 +++++++++++++++++++------ 2 files changed, 21 insertions(+), 6 deletions(-) commit 5aaee63cdf80ad9e429b4c27bbf9d243306474aa Author: Karel Zak Date: Mon Mar 18 12:25:03 2013 +0100 dmesg: more colors, more fun * colorize subsystem prefix * colorize time * colorize by keywords (now "segfault" only) Signed-off-by: Karel Zak include/colors.h | 2 +- lib/colors.c | 2 +- sys-utils/dmesg.c | 122 ++++++++++++++++++++++++++++++++++++++++++++---------- 3 files changed, 103 insertions(+), 23 deletions(-) commit d53f8ecfbf036eddb2aef737dc0973a613d80ced Author: Joseph Parmelee Date: Sun Mar 17 22:48:57 2013 -0600 hwclock: make hwclock leap-second-aware Attached is a patch file leap_seconds.patch against util-linux-2.22.2 that allows leap seconds to be included in hwclock --show or --hctosys. The current code uses the default UTC zonefile in reading the hardware RTC with mktime(). This zonefile usually does not include leap seconds. As of this date there have been a total of 25 leap seconds added since the epoch (start of 1970). This is particularly a problem for systems using ntp to maintain their system clocks because ntp does take leap seconds into account. A user can specify a leap-second-aware zonefile via /etc/localtime. By defining the environment variable TZUTC, mktime() can be induced to use a matching UTC zonefile that includes leap seconds. The default behavior (TZUTC undefined) is unchanged. Regards, Joseph Parmelee jparmele at wildbear.com sys-utils/hwclock.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) commit 52848780e3b6721dead7b40629594798e0d37fb9 Author: Karel Zak Date: Fri Mar 15 15:33:23 2013 +0100 fsck.cramfs: fix compiler warnings Signed-off-by: Karel Zak disk-utils/fsck.cramfs.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) commit 2029dbd9b168319d8a4717c1523e4facb5cff9cc Author: Karel Zak Date: Fri Mar 15 15:18:22 2013 +0100 docs: update year Signed-off-by: Karel Zak libblkid/docs/libblkid-docs.xml | 2 +- libmount/docs/libmount-docs.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit a3bb7e65c426d21f619894e2b1dde5f07128a019 Author: Karel Zak Date: Fri Mar 15 14:23:04 2013 +0100 libmount: clean up header file * don't teach people C by header files, so use warn_unused_result attribute only on places where we return allocated memory (to avoid leaks in applications). * merge multiple function attributes to the one list to make it usable with gtk-doc Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 11 ++ libmount/src/fs.c | 2 +- libmount/src/libmount.h.in | 317 +++++++++++++++--------------------- 3 files changed, 144 insertions(+), 186 deletions(-) commit 2bb7a706a19b3473b06c2f365994660c89c4bc87 Author: Karel Zak Date: Fri Mar 15 14:23:04 2013 +0100 libblkid: clean up header file * don't teach people C by header files, so use warn_unused_result attribute only on places where we return allocated memory (to avoid leaks in applications). Signed-off-by: Karel Zak libblkid/docs/Makefile.am | 3 +- libblkid/src/blkid.h.in | 136 +++++++++++++++------------------------------- libblkid/src/dev.c | 5 ++ libblkid/src/probe.c | 3 + libblkid/src/tag.c | 5 ++ 5 files changed, 60 insertions(+), 92 deletions(-) commit bc636434c007eb9f337ab3f84341c3989edea651 Author: Karel Zak Date: Fri Mar 15 14:58:08 2013 +0100 build-sys: inform gtk-doc about __ul_attribute__ Signed-off-by: Karel Zak config/gtk-doc.make | 1 + 1 file changed, 1 insertion(+) commit c0055e2ac06a36b0b8b1fec8988775fa7d522bc3 Author: Karel Zak Date: Fri Mar 15 12:47:53 2013 +0100 libblkid: fix docs comment Signed-off-by: Karel Zak libblkid/src/probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 58a3cee647c30ee23c887a1763ab9e4504a1ec88 Author: Karel Zak Date: Thu Mar 14 13:34:11 2013 +0100 chkdupexe: remove, deprecated for years Signed-off-by: Karel Zak .gitignore | 2 - Documentation/deprecated.txt | 6 --- configure.ac | 14 ----- misc-utils/.gitignore | 1 - misc-utils/Makemodule.am | 7 --- misc-utils/chkdupexe.1 | 38 -------------- misc-utils/chkdupexe.pl | 120 ------------------------------------------- 7 files changed, 188 deletions(-) commit 27abd8094845b4b2002a8ed5c3dd212999902c8f Author: Karel Zak Date: Thu Mar 14 12:22:11 2013 +0100 arch: remove the command, deprecated since 2.13, use coreutils version Signed-off-by: Karel Zak Documentation/deprecated.txt | 8 ----- configure.ac | 10 ------ sys-utils/Makemodule.am | 6 ---- sys-utils/arch.1 | 40 --------------------- sys-utils/arch.c | 84 -------------------------------------------- 5 files changed, 148 deletions(-) commit 426f0ceac795d4eb6c359ad902f94da875aa82a1 Author: Karel Zak Date: Thu Mar 14 10:50:37 2013 +0100 findmnt: add FREQ and PASSNO columns ... to provide all information from fstab. Reported-by: Roger Leigh Signed-off-by: Karel Zak misc-utils/findmnt.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) commit f546276e2272c5e026f6a2ff667e50bca09d0ee7 Author: Karel Zak Date: Wed Mar 13 16:02:55 2013 +0100 kill: support --list= The '=' is expected for optional arguments and required in procps version. Signed-off-by: Karel Zak misc-utils/kill.1 | 3 ++- misc-utils/kill.c | 25 ++++++++++++++++--------- 2 files changed, 18 insertions(+), 10 deletions(-) commit fda84b66ee56c24b13b9f2d67cf932bd463013af Author: Sami Kerola Date: Tue Mar 12 21:18:13 2013 +0000 kill: add pretty printed list output (for compatibility with procps) * add -L, --table References: http://www.freelists.org/post/procps/kill1-consolidation Signed-off-by: Sami Kerola Signed-off-by: Karel Zak misc-utils/kill.1 | 4 ++ misc-utils/kill.c | 133 ++++++++++++++++++++++++++++++++++-------------------- 2 files changed, 89 insertions(+), 48 deletions(-) commit b00456d2f0ebb0042b4a942a2fdab4c1b4494cfb Author: Josh Triplett Date: Fri Mar 8 11:43:17 2013 -0800 namespace.h: Fix typo: s/CLONE_NEWSNS/CLONE_NEWNS/ This typo causes namespace.h to always unconditionally define CLONE_NEWNS rather than using the system definition. Bug present since the initial version of unshare in commit 4205f1fda1ac32046125a2e0f3937b666186bfab. Signed-off-by: Josh Triplett Signed-off-by: Anton Cherkashyn include/namespace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 77fa36d7c6033cd9eeba2b739b51e389e91af95d Author: Karel Zak Date: Wed Mar 13 14:07:23 2013 +0100 include/timer: return setitimer return value Signed-off-by: Karel Zak include/timer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit d4543f843d1fa97bd8717f33ea60c81ab1fe1176 Author: Karel Zak Date: Wed Mar 13 13:07:32 2013 +0100 fsfreeze: check for collision between options Signed-off-by: Karel Zak sys-utils/fsfreeze.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) commit 2c7bcdf868d25b934353d28c48c036a390cda0fb Author: Karel Zak Date: Wed Mar 13 13:04:02 2013 +0100 include/optutils: make collisions detection between options more robust - don't rely on the correct ul_excl_t usage - don't print --(null) for non-existing long options Signed-off-by: Karel Zak include/optutils.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) commit 7de20424b76c397bf05753bfa7c3dfe26323910f Author: Karel Zak Date: Wed Mar 13 12:32:30 2013 +0100 fsfreeze: clean up usage(), add -V - clean up usage() - add -V,--version - print usage() if not action specified - update man page Signed-off-by: Karel Zak sys-utils/fsfreeze.8 | 10 +++++----- sys-utils/fsfreeze.c | 26 +++++++++++++++----------- 2 files changed, 20 insertions(+), 16 deletions(-) commit 907624ebb0afdeb6ef6ca4b57dfbe713e6011fac Author: Karel Zak Date: Wed Mar 13 12:13:55 2013 +0100 flock: use include/timer.h Signed-off-by: Karel Zak sys-utils/flock.c | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) commit 01acff6e0919ff373ffd9cf94b202d27c6be19a1 Author: Karel Zak Date: Wed Mar 13 12:13:11 2013 +0100 include: add timer.h Signed-off-by: Karel Zak include/Makemodule.am | 1 + include/timer.h | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) commit 880c4045e5020e5132b1f6f41ab042f774bdd4a6 Author: Karel Zak Date: Wed Mar 13 11:52:34 2013 +0100 flock: use strtotimeval() from libcommon Signed-off-by: Karel Zak sys-utils/flock.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) commit 477254da9325b6c12975063023bded77c96dc1c4 Author: Karel Zak Date: Wed Mar 13 11:51:15 2013 +0100 lib/strutils: add strtotimeval_or_err() Signed-off-by: Karel Zak include/strutils.h | 3 +++ lib/strutils.c | 10 ++++++++++ 2 files changed, 13 insertions(+) commit f1e7f7d54e232ceba0c739633183a0608529fb90 Author: Karel Zak Date: Tue Mar 12 17:40:31 2013 +0100 kill: use new API from lib/procutils.c Signed-off-by: Karel Zak misc-utils/Makemodule.am | 5 +- misc-utils/kill.c | 37 ++++++++------ misc-utils/kill.h | 1 - misc-utils/procs.c | 126 ----------------------------------------------- 4 files changed, 24 insertions(+), 145 deletions(-) commit 13377dd64a681a69ef5cc0cc506a0f17420bc971 Author: Karel Zak Date: Tue Mar 12 17:24:14 2013 +0100 lib/procutils: add simple API to scan /proc/PID/* Signed-off-by: Karel Zak include/procutils.h | 18 ++++++++ lib/Makemodule.am | 2 +- lib/procutils.c | 130 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 146 insertions(+), 4 deletions(-) commit ef5b971c7864114a32c50ddcf619e8dc6a3fc281 Author: Karel Zak Date: Tue Mar 12 16:08:23 2013 +0100 tests: move fallocate test file Signed-off-by: Karel Zak tests/ts/misc/fallocate | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) commit a558cff0ca43433a55a71bcf5d5be596fcf23273 Author: Karel Zak Date: Tue Mar 12 15:56:49 2013 +0100 tests: move tailf test input Signed-off-by: Karel Zak tests/ts/tailf/simple | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) commit 1bb53a54356e17481d704bc55cbbd31962172a99 Author: Karel Zak Date: Tue Mar 12 15:45:59 2013 +0100 lib/procutils: test refactoring Signed-off-by: Karel Zak lib/procutils.c | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) commit 9e068ce0f124f5f4c40cb4d8bf59c0b7ac670354 Author: Sami Kerola Date: Thu Mar 7 23:05:48 2013 +0000 docs: add long options and tidy up kill.1 Signed-off-by: Sami Kerola misc-utils/kill.1 | 86 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 45 insertions(+), 41 deletions(-) commit ea72260cbebcc2e2c98ae4ea5de4e6debba2a472 Author: Sami Kerola Date: Thu Mar 7 20:02:46 2013 +0000 kill, procs: use pid_t for pids Reference: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/linux/threads.h#n30 Signed-off-by: Sami Kerola Signed-off-by: Karel Zak misc-utils/kill.c | 6 +++--- misc-utils/kill.h | 2 +- misc-utils/procs.c | 18 +++++++++--------- 3 files changed, 13 insertions(+), 13 deletions(-) commit 44e5fcddc0b510c21bb050a471530f1d8c538d69 Author: Sami Kerola Date: Wed Mar 6 22:53:36 2013 +0000 kill: use libc error printing facilities and exit values Signed-off-by: Sami Kerola Signed-off-by: Karel Zak misc-utils/kill.c | 56 +++++++++++++++++++++++------------------------------- misc-utils/procs.c | 2 +- 2 files changed, 25 insertions(+), 33 deletions(-) commit a5618319e6facc2632fa159306dea5cabbc05cb2 Author: Sami Kerola Date: Wed Mar 6 22:28:39 2013 +0000 kill: align with howto-usage-function.txt [kzak@redhad.com: - s/commandname/name/ - improve --all description - add -h/--help] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak misc-utils/kill.c | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) commit daa54393bcef249a0b9a9e4785033b3720d90987 Author: Sami Kerola Date: Wed Mar 6 22:07:42 2013 +0000 kill: add long options Signed-off-by: Sami Kerola misc-utils/kill.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit 9ed268d0a780fb0a2c6e0a8888d167f37d5f1da0 Author: Karel Zak Date: Tue Mar 12 11:58:34 2013 +0100 fdisk: improve MBR detection Signed-off-by: Karel Zak fdisks/fdiskdoslabel.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit d23c661c4764dc3c11db0b5f624e92f329f37847 Author: Karel Zak Date: Tue Mar 12 11:37:33 2013 +0100 fdisk: no more AIX "support" The whole AIX support in fdisk has been limited to pretty poor AIX magic string detection and warning that the AIX is unsupported. It's too expensive to maintain such fdisk driver. Signed-off-by: Karel Zak fdisks/Makemodule.am | 2 - fdisks/fdisk.c | 1 - fdisks/fdiskaixlabel.c | 123 ------------------------------------------------ fdisks/fdiskaixlabel.h | 23 --------- fdisks/fdiskdoslabel.c | 2 +- libfdisk/src/ask.c | 1 - libfdisk/src/context.c | 1 - libfdisk/src/fdiskP.h | 1 - libfdisk/src/libfdisk.h | 7 ++- 9 files changed, 4 insertions(+), 157 deletions(-) commit c71bf40751de6e009b6767df4d3c8c96106aeb79 Author: Karel Zak Date: Tue Mar 12 11:27:28 2013 +0100 tests: update fdisk tests - the new fdisk ask-partition-number dialog does not ask for non-senses (non-existing partitions etc.) - 'p'rint command prints disk label name (usually "dos" in the tests) Signed-off-by: Karel Zak tests/expected/blkid/md-raid0-whole | 3 ++- tests/expected/blkid/md-raid1-part | 3 ++- tests/expected/blkid/md-raid1-whole | 3 ++- tests/expected/fdisk/align-512-4K | 5 +++-- tests/expected/fdisk/align-512-4K-63 | 5 +++-- tests/expected/fdisk/align-512-4K-md | 6 ++++-- tests/expected/fdisk/align-512-512 | 5 +++-- tests/expected/fdisk/align-512-512-topology | 5 +++-- 8 files changed, 22 insertions(+), 13 deletions(-) commit 38de0706e81ca777545804d5373b281a9f038d28 Author: Karel Zak Date: Tue Mar 12 10:58:33 2013 +0100 fdisk: use comma in the ask-partition-number dialog (again) Signed-off-by: Karel Zak fdisks/fdisk-ask.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 2b0eda8ee94f9f64dca49ab404dcb69d697ce7fe Author: Karel Zak Date: Mon Mar 11 16:15:36 2013 +0100 tests: update aks-partition-number dialog (planned regression) Since 2.23 the fdisk ask-partition-number dialog don't ask for partition number if there is only one partition. This was default in DOS driver, now it's default everywhere. For Sun/BSD it's regression... but we don't want to maintain any extra code --- sorry --- we don't want any exception in the code. Signed-off-by: Karel Zak tests/ts/fdisk/sunlabel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 23ce9df745fd33e87b3ac409f3845d2da297005d Author: Karel Zak Date: Mon Mar 11 16:05:29 2013 +0100 tests: update 'odd input' fdisk test Signed-off-by: Karel Zak tests/expected/fdisk/oddinput | 3 +-- tests/ts/fdisk/oddinput | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) commit b4fb2a61102a863be90353976c38d8096a42dc26 Author: Karel Zak Date: Mon Mar 11 15:51:22 2013 +0100 fdisk: (bsd) support non-nested version too note that btrydev() should be unnecessary, regular list_table() should be enough for all types. Signed-off-by: Karel Zak fdisks/fdisk.c | 12 +++--------- fdisks/fdiskbsdlabel.c | 13 +++---------- libfdisk/src/context.c | 1 + 3 files changed, 7 insertions(+), 19 deletions(-) commit 1aefdc35db99368ada9fadd93877fad24dcbcc34 Author: Karel Zak Date: Mon Mar 11 15:35:43 2013 +0100 tests: fix typo in fdisk test Signed-off-by: Karel Zak tests/ts/fdisk/mbr-dos-mode | 2 +- tests/ts/fdisk/mbr-nondos-mode | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit a35e816ea98c2a8e1243f3f87e2a37ddb7dccc08 Author: Karel Zak Date: Mon Mar 11 15:15:32 2013 +0100 tests: update bsd test This is the correct 'L'ist partition types dialog output for BSD. Signed-off-by: Karel Zak tests/expected/fdisk/bsd | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) commit 32011e8925a97a56887217141fba1f6e22f1c458 Author: Karel Zak Date: Mon Mar 11 15:14:51 2013 +0100 tests: ignore stderr in fdisk -l Signed-off-by: Karel Zak tests/expected/fdisk/gpt | 15 --------------- tests/ts/fdisk/gpt | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) commit 82d55456a918c9eb56b1a601fd73429aea709435 Author: Karel Zak Date: Tue Mar 5 15:45:35 2013 +0100 fdisk: remove comma from ask number dialog Signed-off-by: Karel Zak fdisks/fdisk-ask.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 641a75ca99de2d3c3bcfa4b307deecae928a4a88 Author: Karel Zak Date: Tue Mar 5 15:39:12 2013 +0100 fdisk: use fdisk_ask_partnum() everywhere Signed-off-by: Karel Zak fdisks/fdisk.c | 113 +++++++++++++++------------------------------------------ fdisks/fdisk.h | 2 - 2 files changed, 29 insertions(+), 86 deletions(-) commit e09435aa538d9edc13880a25b912979923a561cd Author: Karel Zak Date: Tue Mar 5 15:14:04 2013 +0100 fdisk: (bds) use nested partition table Signed-off-by: Karel Zak fdisks/fdisk.c | 10 ++++++--- fdisks/fdiskbsdlabel.c | 55 ++++++++++++++++++++++++-------------------------- fdisks/fdiskdoslabel.c | 4 ++-- 3 files changed, 35 insertions(+), 34 deletions(-) commit 01b207133e46517b6930785834e1ab310ad3f7cf Author: Karel Zak Date: Tue Mar 5 15:13:26 2013 +0100 libfdisk: add support for nested contexts Signed-off-by: Karel Zak libfdisk/src/context.c | 39 +++++++++++++++++++++++++++++++++++++-- libfdisk/src/fdiskP.h | 2 ++ libfdisk/src/libfdisk.h | 2 ++ 3 files changed, 41 insertions(+), 2 deletions(-) commit 5c72641a5e948e03d6a9b9bb9fcea65fdf6d956e Author: Karel Zak Date: Tue Mar 5 13:40:32 2013 +0100 libblkid: ignore nested BSD partitions if same like parent Signed-off-by: Karel Zak libblkid/src/partitions/bsd.c | 7 +++++++ 1 file changed, 7 insertions(+) commit 1bf3a03438b96665f22708096db71cfa8dda3ee6 Author: Karel Zak Date: Tue Mar 5 13:08:10 2013 +0100 fdisk: (dos) use new dialog to ask for prim. partitions Signed-off-by: Karel Zak fdisks/fdiskdoslabel.c | 51 ++++++++++++++++++++++++-------------------------- 1 file changed, 24 insertions(+), 27 deletions(-) commit c6d69264d0650fb99cef5578b578564d2b28ca5e Author: Karel Zak Date: Tue Mar 5 12:54:13 2013 +0100 libfdisk: improve fdisk_ask_partnum() .. to don't ask is there is only one choice. Signed-off-by: Karel Zak libfdisk/src/ask.c | 41 ++++++++++++++++++++++++++++++++--------- 1 file changed, 32 insertions(+), 9 deletions(-) commit 225592d4a38b118328a1975e315897edd43ec703 Author: Karel Zak Date: Tue Mar 5 11:15:54 2013 +0100 libfdisk: add disk_partition_is_used() Signed-off-by: Karel Zak fdisks/fdisk.c | 21 ++++++--------------- libfdisk/src/label.c | 17 +++++++++++++++++ libfdisk/src/libfdisk.h | 1 + 3 files changed, 24 insertions(+), 15 deletions(-) commit e1aee8435040def93cd60660fdc0b75056287ae5 Author: Karel Zak Date: Tue Mar 5 09:42:24 2013 +0100 fdisk: (sun) cleanup header file Signed-off-by: Karel Zak fdisks/fdisksunlabel.h | 3 --- 1 file changed, 3 deletions(-) commit fb1caca70acca20145cf12b23804443b77c26c1d Author: Karel Zak Date: Fri Feb 22 22:46:51 2013 +0100 libfdisk: add fdisk_partition_toggle_flag() Signed-off-by: Karel Zak fdisks/fdisk.c | 19 +++++++++++-------- fdisks/fdiskdoslabel.c | 50 ++++++++++++++++++++++++++++++++++--------------- fdisks/fdiskdoslabel.h | 3 +++ fdisks/fdisksgilabel.c | 37 ++++++++++++++++++++++++------------ fdisks/fdisksgilabel.h | 4 ++++ fdisks/fdisksunlabel.c | 32 ++++++++++++++++++++++++++----- libfdisk/src/fdiskP.h | 2 ++ libfdisk/src/label.c | 27 +++++++++++++++++++++++++- libfdisk/src/libfdisk.h | 3 +++ 9 files changed, 136 insertions(+), 41 deletions(-) commit 2b0bc17b645ad60d3bc30c839ddd0198afc71c7f Author: Karel Zak Date: Fri Feb 22 15:34:04 2013 +0100 fdisk: (sun) use fdisk_ prefix for label specific public functions Signed-off-by: Karel Zak fdisks/fdisk.c | 14 ++++++++------ fdisks/fdisksunlabel.c | 12 ++++++------ fdisks/fdisksunlabel.h | 14 ++++++++------ 3 files changed, 22 insertions(+), 18 deletions(-) commit ec10aa6782ec9e4af719c43aa1f96a2b44f36a41 Author: Karel Zak Date: Mon Feb 11 16:38:20 2013 +0100 fdisk: remove global unit variables Signed-off-by: Karel Zak fdisks/fdisk.c | 41 +++++++++++++++++--------------- fdisks/fdisk.h | 12 ++++++---- fdisks/fdiskbsdlabel.c | 27 +++++++++++++--------- fdisks/fdiskdoslabel.c | 63 +++++++++++++++++--------------------------------- fdisks/fdiskdoslabel.h | 3 --- fdisks/fdisksgilabel.c | 34 ++++++++++++++++----------- fdisks/fdisksunlabel.c | 61 +++++++++++++++++++++++++----------------------- 7 files changed, 120 insertions(+), 121 deletions(-) commit cb7ce873a5c01fdd14df2ffd8e56103ecc8dd557 Author: Karel Zak Date: Mon Feb 11 14:48:18 2013 +0100 libfdisk: add info about display units to context Signed-off-by: Karel Zak libfdisk/src/context.c | 55 +++++++++++++++++++++++++++++++++++++++++++++++++ libfdisk/src/fdiskP.h | 2 ++ libfdisk/src/libfdisk.h | 5 +++++ 3 files changed, 62 insertions(+) commit b3d212f83fc290598d5093f18b019a109015977a Author: Karel Zak Date: Mon Feb 11 11:41:47 2013 +0100 fdisk: (sun) use yes/no from libfdisk Signed-off-by: Karel Zak fdisks/fdisksunlabel.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit ccf48af540cf5446778fff5085afa21d38cb173f Author: Karel Zak Date: Mon Feb 11 11:41:19 2013 +0100 libfdisk: add Yes/No to Ask API Signed-off-by: Karel Zak fdisks/fdisk-ask.c | 11 ++++++++++- libfdisk/src/ask.c | 41 +++++++++++++++++++++++++++++++++++++++++ libfdisk/src/fdiskP.h | 4 ++++ libfdisk/src/libfdisk.h | 7 ++++++- 4 files changed, 61 insertions(+), 2 deletions(-) commit 9ff2ce0a54615efb667fdcde90b04f4a9c185579 Author: Karel Zak Date: Mon Feb 11 10:59:43 2013 +0100 fdisk: (sun) use Ask API for new-partiton dialog Signed-off-by: Karel Zak fdisks/fdisksunlabel.c | 81 +++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 64 insertions(+), 17 deletions(-) commit bbc41eebda32c233f9316aad946a2679311a8070 Author: Karel Zak Date: Mon Feb 11 10:36:17 2013 +0100 fdisk: sort menu Signed-off-by: Karel Zak fdisks/fdisk.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) commit 7e1e36d86502011de584cf8f48369166b6c8cd4d Author: Karel Zak Date: Mon Feb 11 10:35:55 2013 +0100 fdisk: allow zero as default offset/size Signed-off-by: Karel Zak fdisks/fdisk-ask.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit 9eac213c5b14f8e1c1b18f35bfe04bc81702dc33 Author: Karel Zak Date: Fri Feb 8 10:48:15 2013 +0100 fdisk: (sun) use fdisk_{info,warnx} Signed-off-by: Karel Zak fdisks/fdisksunlabel.c | 88 ++++++++++++++++++++++++++++---------------------- 1 file changed, 49 insertions(+), 39 deletions(-) commit 7375423cda6d24c8b94617d089bff3a5c91fd0cb Author: Karel Zak Date: Thu Feb 7 12:18:27 2013 +0100 fdisk: add 'G' to create SGI label to the main menu For unknown reason you have to go to the expert menu to create SGI label. It's inconsistent behavior as we have all "create label" operations in the main menu. Signed-off-by: Karel Zak fdisks/fdisk.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 44c8647d7b1eae0333b28380895cb24edf4b38f4 Author: Karel Zak Date: Thu Feb 7 11:57:11 2013 +0100 fdisk: (sun) remove dead code Signed-off-by: Karel Zak fdisks/fdisksunlabel.h | 1 - 1 file changed, 1 deletion(-) commit c69bbca9c1f6645097bd20fe3a21f5a99a2a0698 Author: Karel Zak Date: Thu Feb 7 11:41:58 2013 +0100 fdisk: (sun): use ask API, remove global variable Signed-off-by: Karel Zak fdisks/fdisksunlabel.c | 71 +++++++++++++++++++++++++++++++++++--------------- 1 file changed, 50 insertions(+), 21 deletions(-) commit 24fc19a11ebc92ef9b33c464a121fe9717806937 Author: Karel Zak Date: Thu Feb 7 11:41:26 2013 +0100 libfdisk: add wrapper to ask for numbers Signed-off-by: Karel Zak libfdisk/src/ask.c | 36 ++++++++++++++++++++++++++++++++++++ libfdisk/src/libfdisk.h | 8 ++++++++ 2 files changed, 44 insertions(+) commit cfebc4654e4918afe1d72ca17a85b2da7d0161ee Author: Karel Zak Date: Mon Feb 4 18:29:27 2013 +0100 fdisk: (sun) share disk label struct with libblkid Signed-off-by: Karel Zak fdisks/fdisksunlabel.c | 172 ++++++++++++++++++++++++------------------------- fdisks/fdisksunlabel.h | 71 +------------------- 2 files changed, 87 insertions(+), 156 deletions(-) commit 9d3d9754e7af4799aa5872f5ab394f93c725f0fe Author: Karel Zak Date: Mon Feb 4 18:29:05 2013 +0100 libblkid: rename in sun_disklabel for compatibility with fdisk Signed-off-by: Karel Zak include/pt-sun.h | 18 ++++++++++-------- libblkid/src/partitions/sun.c | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-) commit ce337318fa1febf534b226f1de4772e3fa53775c Author: Karel Zak Date: Mon Feb 4 17:54:30 2013 +0100 inlude/pt-sun: add flags and tags Signed-off-by: Karel Zak fdisks/fdisksunlabel.h | 1 - include/pt-sun.h | 30 +++++++++++++++++++++++------- 2 files changed, 23 insertions(+), 8 deletions(-) commit a08dc0ca895e6a46c33ace6a021fbb76a60a0e4e Author: Karel Zak Date: Mon Feb 4 17:46:30 2013 +0100 libblkid: move sun PT definition to include/ Signed-off-by: Karel Zak include/Makemodule.am | 3 +- include/pt-sun.h | 72 +++++++++++++++++++++++++++++++++++++++++++ libblkid/src/partitions/sun.c | 69 ++--------------------------------------- 3 files changed, 76 insertions(+), 68 deletions(-) commit a1ac3a0ce1c1f8a19f22597e06eafac93c72ecf9 Author: Karel Zak Date: Mon Feb 4 17:33:49 2013 +0100 fdisk: (sun) use cpu_to_be* macros, remove other_endian global variable Signed-off-by: Karel Zak fdisks/fdisksunlabel.c | 155 +++++++++++++++++++++---------------------------- fdisks/fdisksunlabel.h | 5 +- 2 files changed, 68 insertions(+), 92 deletions(-) commit 83df5feb98ffa908c96f35a76ee1cafede4356b2 Author: Karel Zak Date: Wed Jan 30 14:52:02 2013 +0100 fdisk: (gpt) use fdisk_{warn,warx,info} functions Signed-off-by: Karel Zak libfdisk/src/gpt.c | 81 +++++++++++++++++++++++++++--------------------------- 1 file changed, 40 insertions(+), 41 deletions(-) commit 3e8f74dc605f8e9c74ed19e9b6f041ecb9214af5 Author: Karel Zak Date: Wed Jan 30 14:50:55 2013 +0100 fdisk: add callacks for info, warn and warnx Ask API Signed-off-by: Karel Zak fdisks/fdisk-ask.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) commit ab6ea0e8f2480cb64dc7b4d9c2b59534892b9ae6 Author: Karel Zak Date: Wed Jan 30 14:49:27 2013 +0100 libfdisk: add info, warn and wanx Ask API Signed-off-by: Karel Zak libfdisk/src/ask.c | 132 +++++++++++++++++++++++++++++++++++++++++++++++- libfdisk/src/fdiskP.h | 7 +++ libfdisk/src/libfdisk.h | 19 +++++++ 3 files changed, 157 insertions(+), 1 deletion(-) commit 4114da08d090dcf02d77c8e6ed343b40d9c8ff96 Author: Karel Zak Date: Tue Jan 29 15:28:30 2013 +0100 libfdisk: extend "ask" API, add support for offsets Signed-off-by: Karel Zak fdisks/fdisk-ask.c | 106 +++++++++++++++++++++---- libfdisk/src/ask.c | 206 ++++++++++++++++++++++++++++++++++++++---------- libfdisk/src/fdiskP.h | 14 ++-- libfdisk/src/gpt.c | 73 +++++++++-------- libfdisk/src/libfdisk.h | 26 +++++- 5 files changed, 326 insertions(+), 99 deletions(-) commit 23106a29b0342ef8ada46bfc3df33b5d8e9c5e77 Author: Karel Zak Date: Tue Jan 29 15:25:47 2013 +0100 lib/strutils: simplify strtosize(), return info about suffix Signed-off-by: Karel Zak include/strutils.h | 21 ++++++++++++++++++ lib/strutils.c | 65 +++++++++++++++++++++++------------------------------- 2 files changed, 49 insertions(+), 37 deletions(-) commit 416c43a9a5519ae0e4c91e075cf42c5cf0b5cbcb Author: Karel Zak Date: Mon Jan 28 16:16:11 2013 +0100 fdisk: add callback for ask-numbers API Signed-off-by: Karel Zak fdisks/Makemodule.am | 1 + fdisks/fdisk-ask.c | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++ fdisks/fdisk.c | 10 ++--- fdisks/fdisk.h | 4 ++ include/strutils.h | 2 + lib/strutils.c | 10 +++++ 6 files changed, 131 insertions(+), 7 deletions(-) commit 7845ca8dc28c93939d99a1d0564f97eddcba1079 Author: Karel Zak Date: Mon Jan 28 16:14:21 2013 +0100 libfdisk: add "ask" interface Signed-off-by: Karel Zak libfdisk/src/Makemodule.am | 10 ++ libfdisk/src/ask.c | 223 +++++++++++++++++++++++++++++++++++++++++++++ libfdisk/src/context.c | 49 +++++++--- libfdisk/src/fdiskP.h | 35 ++++++- libfdisk/src/label.c | 22 ++++- libfdisk/src/libfdisk.h | 18 +++- 6 files changed, 338 insertions(+), 19 deletions(-) commit 46667ba4a54c708ee57549322f3196ab20784b18 Author: Karel Zak Date: Mon Jan 28 16:11:41 2013 +0100 libfdisk: fix gpt status, don't use xcalloc() in library Signed-off-by: Karel Zak libfdisk/src/gpt.c | 42 +++++++++++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 13 deletions(-) commit aace6e9d1ce59fc6298c8a754e180ec00b149671 Author: Karel Zak Date: Mon Jan 28 10:37:45 2013 +0100 fdisk: correctly initialize pointer to sun label Signed-off-by: Karel Zak fdisks/fdisksunlabel.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 3ea1626dc4043223ff1a7e8b32127297c1199f8f Author: Karel Zak Date: Mon Jan 28 10:28:32 2013 +0100 fdisk: fix typo Signed-off-by: Karel Zak fdisks/fdiskaixlabel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 58d62d2f7e3058b7c2ae92f98bbdc1688a2d12ed Author: Karel Zak Date: Mon Jan 28 10:09:03 2013 +0100 libfdisk: add stuff for unit tests Signed-off-by: Karel Zak libfdisk/src/Makemodule.am | 15 +++++++++++- libfdisk/src/fdiskP.h | 14 +++++++++++ libfdisk/src/test.c | 59 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 87 insertions(+), 1 deletion(-) commit 251d908831f24190ec8e982d78a0ee284fcc95ed Author: Karel Zak Date: Fri Jan 25 20:04:11 2013 +0100 libfdisk: (gpt) fix compiler warnings [-Wformat] Signed-off-by: Karel Zak libfdisk/src/gpt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit baa7cccc3a9bff1a9a99a9232deac994f811785c Author: Karel Zak Date: Tue Jan 22 18:18:29 2013 +0100 libfdisk: add FDISK_LABEL_FL_ADDPART_NOPARTNO Signed-off-by: Karel Zak fdisks/fdisk.c | 5 +---- fdisks/fdiskbsdlabel.c | 3 +++ fdisks/fdiskdoslabel.c | 3 +++ libfdisk/src/fdiskP.h | 7 +++++++ 4 files changed, 14 insertions(+), 4 deletions(-) commit 9ffeb235d6d260ad4e61cc892b72f060f820a546 Author: Karel Zak Date: Tue Jan 22 18:05:18 2013 +0100 fdisk: remove fdisk_label from API functions, add asserts, use size_t Signed-off-by: Karel Zak fdisks/fdiskaixlabel.c | 16 +++-- fdisks/fdiskbsdlabel.c | 108 ++++++++++++++++------------ fdisks/fdiskdoslabel.c | 78 ++++++++++++-------- fdisks/fdiskmaclabel.c | 6 +- fdisks/fdisksgilabel.c | 72 +++++++++++-------- fdisks/fdisksunlabel.c | 181 ++++++++++++++++++++++++----------------------- fdisks/fdisksunlabel.h | 7 +- libfdisk/src/alignment.c | 2 +- libfdisk/src/fdiskP.h | 32 ++++----- libfdisk/src/gpt.c | 173 ++++++++++++++++++++++++++------------------ libfdisk/src/label.c | 41 ++++++----- libfdisk/src/libfdisk.h | 10 +-- 12 files changed, 413 insertions(+), 313 deletions(-) commit 62d50bbe031cbea42b2b5217b78f2c6a06c7443d Author: Karel Zak Date: Tue Jan 22 14:02:22 2013 +0100 libfdisk: (gpt) move code from fdisk to libfdisk Signed-off-by: Karel Zak fdisks/Makemodule.am | 2 - fdisks/fdisk.c | 3 - fdisks/gpt.c | 1809 ------------------------------------------- fdisks/gpt.h | 6 - libfdisk/src/Makemodule.am | 3 +- libfdisk/src/fdiskP.h | 4 + libfdisk/src/gpt.c | 1819 ++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 1825 insertions(+), 1821 deletions(-) commit e3661531e69e62ff4277b01da7b0e82ec832fbbe Author: Karel Zak Date: Tue Jan 22 13:46:55 2013 +0100 fdisk: (dos) kill 'partitions' global variable ... and use size_t for partition numbers Signed-off-by: Karel Zak fdisks/fdisk.c | 64 +++++++------ fdisks/fdisk.h | 1 - fdisks/fdiskbsdlabel.c | 2 +- fdisks/fdiskdoslabel.c | 239 +++++++++++++++++++++++++++---------------------- fdisks/fdiskdoslabel.h | 3 +- fdisks/fdiskmaclabel.c | 2 - fdisks/fdisksgilabel.c | 67 +++++++++----- fdisks/gpt.c | 6 -- 8 files changed, 218 insertions(+), 166 deletions(-) commit 47b8e7c00207dfcb34de66f1f9458268d4a90f9d Author: Karel Zak Date: Mon Jan 21 17:10:23 2013 +0100 libfdisk: add part_get_status operation Signed-off-by: Karel Zak fdisks/fdiskdoslabel.c | 29 +++++++++++++++++++++++++++++ fdisks/fdisksgilabel.c | 27 ++++++++++++++++++++++++++- fdisks/fdisksunlabel.c | 26 +++++++++++++++++++++++++- fdisks/gpt.c | 25 +++++++++++++++++++++++++ libfdisk/src/fdiskP.h | 5 +++++ libfdisk/src/label.c | 19 +++++++++++++++++++ libfdisk/src/libfdisk.h | 6 ++++++ 7 files changed, 135 insertions(+), 2 deletions(-) commit fcf88800299d5f4c16a76b96cd850f4239b6719a Author: Karel Zak Date: Mon Jan 21 12:50:25 2013 +0100 libfdisk: cleanup fdisk_get_partition_type() returns Signed-off-by: Karel Zak libfdisk/src/label.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 62a7b31332f75a0dd24eeaf0952084d6bc4a4895 Author: Karel Zak Date: Mon Jan 21 12:44:58 2013 +0100 fdisk: (dos) move dos specific code Signed-off-by: Karel Zak fdisks/fdisk.h | 6 ------ fdisks/fdiskdoslabel.h | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) commit e76d577627acec228e76c22f6e914b8d86d69c9b Author: Karel Zak Date: Mon Jan 21 12:32:33 2013 +0100 fdisk: (dos) move 'toggle active' code to fdiskdoslabe.c Signed-off-by: Karel Zak fdisks/fdisk.c | 16 +--------------- fdisks/fdiskdoslabel.c | 14 ++++++++++++++ fdisks/fdiskdoslabel.h | 1 + 3 files changed, 16 insertions(+), 15 deletions(-) commit cc0c4e56aa0afe2fbeb02c96d754e4542ea807da Author: Karel Zak Date: Mon Jan 21 12:28:27 2013 +0100 fdisk: (dos) move dos specific code Signed-off-by: Karel Zak fdisks/fdisk.c | 18 ------------------ fdisks/fdisk.h | 2 -- fdisks/fdiskdoslabel.c | 18 ++++++++++++++++++ 3 files changed, 18 insertions(+), 20 deletions(-) commit 2b18633f51390f7e8422638b74a1551f5a73f991 Author: Karel Zak Date: Mon Jan 21 12:26:21 2013 +0100 fdisk: remove dead code Signed-off-by: Karel Zak fdisks/fdisk.c | 6 ------ 1 file changed, 6 deletions(-) commit 5dfca6343b59ac51960b54b35a693b94564bc398 Author: Karel Zak Date: Mon Jan 21 12:25:30 2013 +0100 fdisk: (dos) move dos_list_table_expert() to fdiskdoslabe.c Signed-off-by: Karel Zak fdisks/fdisk.c | 131 +------------------------------------------------ fdisks/fdisk.h | 3 -- fdisks/fdiskdoslabel.c | 131 +++++++++++++++++++++++++++++++++++++++++++++++++ fdisks/fdiskdoslabel.h | 1 + 4 files changed, 134 insertions(+), 132 deletions(-) commit 71ee484e0b9c74b9bb058de89f3ff61b02b8f6f4 Author: Karel Zak Date: Mon Jan 21 12:11:43 2013 +0100 fdisk: (dos) move 'move begin' code to fdiskdoslabe.c Signed-off-by: Karel Zak fdisks/fdisk.c | 51 +------------------------------------------------- fdisks/fdiskdoslabel.c | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ fdisks/fdiskdoslabel.h | 1 + 3 files changed, 53 insertions(+), 50 deletions(-) commit dfc96cbf1fee8b52d36cbcbb262024ccd3073873 Author: Karel Zak Date: Mon Jan 21 12:06:17 2013 +0100 fdisk: (dos) move fix order code to fdiskdoslabe.c Signed-off-by: Karel Zak fdisks/fdisk.c | 137 +------------------------------------------------ fdisks/fdisk.h | 2 - fdisks/fdiskdoslabel.c | 133 +++++++++++++++++++++++++++++++++++++++++++++++ fdisks/fdiskdoslabel.h | 2 + 4 files changed, 136 insertions(+), 138 deletions(-) commit 6d864a495c57d0ac9ebd286b18fbe2937727291e Author: Karel Zak Date: Mon Jan 21 12:01:44 2013 +0100 fdisk: (dos) move list table code to fdiskdoslabe.c Signed-off-by: Karel Zak fdisks/fdisk.c | 77 ++------------------------------------------- fdisks/fdisk.h | 2 ++ fdisks/fdiskdoslabel.c | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++ fdisks/fdiskdoslabel.h | 2 ++ 4 files changed, 92 insertions(+), 74 deletions(-) commit bddd84e7c5acfe38ebb079e6fd6f3226a27cc2aa Author: Karel Zak Date: Fri Jan 18 16:11:40 2013 +0100 fdisk: use libfdisk label->changed The patch is huge because it's necessary to add a pointer context to all read_ functions. Signed-off-by: Karel Zak fdisks/fdisk.c | 73 ++++++++++++++++---------------------------- fdisks/fdisk.h | 9 ++---- fdisks/fdiskbsdlabel.c | 83 ++++++++++++++++++++++++++------------------------ fdisks/fdiskdoslabel.c | 17 +++++++---- fdisks/fdisksgilabel.c | 7 +++-- fdisks/fdisksunlabel.c | 12 ++++---- fdisks/gpt.c | 5 +++ 7 files changed, 100 insertions(+), 106 deletions(-) commit 2e3b40d3ddc26f26c06b811ce7edc6a8e1392ca1 Author: Karel Zak Date: Fri Jan 18 16:11:08 2013 +0100 libfdisk: add label->changed flag Signed-off-by: Karel Zak libfdisk/src/fdiskP.h | 2 ++ libfdisk/src/label.c | 13 +++++++++++++ libfdisk/src/libfdisk.h | 4 ++++ 3 files changed, 19 insertions(+) commit d6ab93f18a53ec1747a33a74da027ae9fd63c200 Author: Karel Zak Date: Fri Jan 18 14:43:00 2013 +0100 fdisk: (sun) remove nasty sunlabel macro Signed-off-by: Karel Zak fdisks/fdisk.c | 3 +- fdisks/fdisksunlabel.c | 177 +++++++++++++++++++++++++++++++++---------------- fdisks/fdisksunlabel.h | 3 +- 3 files changed, 124 insertions(+), 59 deletions(-) commit 137b57e56b7cdfc81342728ee0ddf96712ce0a7a Author: Karel Zak Date: Fri Jan 18 12:47:27 2013 +0100 fdisk: (sun) remove global variable 'partitions' * use label counters * add assert() * use struct fdisk_label if possible Signed-off-by: Karel Zak fdisks/fdisksunlabel.c | 121 ++++++++++++++++++++++++++++++++++++------------- 1 file changed, 89 insertions(+), 32 deletions(-) commit acf263d5924c75e7aa7409ad64b64f4ec8863262 Author: Karel Zak Date: Fri Jan 18 12:05:40 2013 +0100 fdisk: (bsd) add partitions counters Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) commit 15a64477aed435ff2f14f1b442d6c2205753c6ce Author: Karel Zak Date: Fri Jan 18 11:48:45 2013 +0100 fdisk: (aix) remove unuused variable 'partitions' Signed-off-by: Karel Zak fdisks/fdiskaixlabel.c | 2 -- 1 file changed, 2 deletions(-) commit 9fcd49d5517dffa1b98d29faff5090e88e9a68f0 Author: Karel Zak Date: Fri Jan 18 11:43:56 2013 +0100 libfdisk: (gpt) introduce driver independent partitions counters label->nparts_{max,cur} to later replace global variable partitions Signed-off-by: Karel Zak fdisks/fdisk.c | 17 +++++++++++++++-- fdisks/gpt.c | 33 +++++++++++++++------------------ libfdisk/src/fdiskP.h | 9 +++++---- 3 files changed, 35 insertions(+), 24 deletions(-) commit d71ef5a442370a577ce47f52d6d33e76737ea86a Author: Karel Zak Date: Thu Jan 17 17:09:07 2013 +0100 fdisk: (gpt) remove global variables, cleanup header verification Signed-off-by: Karel Zak fdisks/gpt.c | 385 ++++++++++++++++++++++++++++++--------------------- libfdisk/src/label.c | 9 +- 2 files changed, 236 insertions(+), 158 deletions(-) commit be5f806138d549db6a26ef5ddce8b9b5abf7db32 Author: Karel Zak Date: Thu Jan 17 15:32:17 2013 +0100 fdisk: differentiate between get and read operation Signed-off-by: Karel Zak fdisks/gpt.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) commit 53b422ab169dc3be8e8eee4ccb5f8e67bff1a122 Author: Karel Zak Date: Tue Dec 11 18:30:03 2012 +0100 libfdisk: move label identifier to label struct Signed-off-by: Karel Zak fdisks/fdisk.c | 15 +++++++++++---- fdisks/fdiskaixlabel.c | 2 +- fdisks/fdiskbsdlabel.c | 1 + fdisks/fdiskdoslabel.c | 2 +- fdisks/fdiskmaclabel.c | 2 +- fdisks/fdisksgilabel.c | 3 +-- fdisks/fdisksunlabel.c | 4 ++-- fdisks/gpt.c | 4 ++-- libfdisk/src/context.c | 17 +++++++++++++++++ libfdisk/src/fdiskP.h | 7 ++++--- libfdisk/src/label.c | 8 +++----- libfdisk/src/libfdisk.h | 3 +++ 12 files changed, 47 insertions(+), 21 deletions(-) commit 8a95621d30c4e4c3e279246f80ef4aeed4f5d71c Author: Karel Zak Date: Tue Dec 11 18:04:25 2012 +0100 libfdisk: add fdisk_label to driver API Signed-off-by: Karel Zak fdisks/fdiskaixlabel.c | 5 ++++- fdisks/fdiskbsdlabel.c | 48 ++++++++++++++++++++++++++++++++---------------- fdisks/fdiskdoslabel.c | 31 ++++++++++++++++++++++--------- fdisks/fdiskmaclabel.c | 10 ++++++---- fdisks/fdisksgilabel.c | 35 ++++++++++++++++++++++++----------- fdisks/fdisksunlabel.c | 38 +++++++++++++++++++++++++++----------- fdisks/gpt.c | 42 ++++++++++++++++++++++++++---------------- libfdisk/src/alignment.c | 2 +- libfdisk/src/context.c | 7 ------- libfdisk/src/fdiskP.h | 27 +++++++++++++++++---------- libfdisk/src/label.c | 16 ++++++++-------- 11 files changed, 167 insertions(+), 94 deletions(-) commit 0559e742a9a85c64dfc73363be6de74adf644d71 Author: Karel Zak Date: Tue Dec 11 16:37:04 2012 +0100 libfdisk: improve label deinitialization Signed-off-by: Karel Zak libfdisk/src/context.c | 7 +++++-- libfdisk/src/fdiskP.h | 8 ++++---- libfdisk/src/label.c | 14 +++++++------- 3 files changed, 16 insertions(+), 13 deletions(-) commit 852ce62b424b13b7838afc497e59bdadaa84938e Author: Karel Zak Date: Tue Dec 11 15:08:06 2012 +0100 libfdisk: kill dos_compatible_flag global variable ... move the variable to label private struct. Signed-off-by: Karel Zak fdisks/fdisk.c | 46 +++++++++++++++++++++++++++++++--------------- fdisks/fdiskdoslabel.c | 30 ++++++++++++++++++++++++++---- fdisks/fdiskdoslabel.h | 5 ++++- libfdisk/src/context.c | 6 ++++++ libfdisk/src/libfdisk.h | 5 +++++ 5 files changed, 72 insertions(+), 20 deletions(-) commit 4e0e82531a34691ffa859ffc68df6ada71faaeaa Author: Karel Zak Date: Tue Dec 11 14:41:57 2012 +0100 libfdisk: add fdisk_new_context(), reuse context Signed-off-by: Karel Zak fdisks/fdisk.c | 32 +++++++++++----------- fdisks/gpt.c | 51 +++++++++++++++++++--------------- libfdisk/src/alignment.c | 2 +- libfdisk/src/context.c | 71 ++++++++++++++++++++++++++++++++---------------- libfdisk/src/fdiskP.h | 3 ++ libfdisk/src/label.c | 31 ++++++++++++++++++--- libfdisk/src/libfdisk.h | 6 ++-- libfdisk/src/utils.c | 1 + 8 files changed, 128 insertions(+), 69 deletions(-) commit 0c5d095e46306ed4d6009f56e0339857d733d72e Author: Karel Zak Date: Tue Dec 11 12:56:27 2012 +0100 libfdisk: split label and label operations Changes: - fdisk_label is a private label driver struct - generic header of the fdisk_label points to fdisk_label_operations - the private fdisk_label stuff is always allocated for all drivers during fdisk_context initialization - context->labels[] contains pointers to all supported labels (drivers) - context->label is a pointer to the currently used label This change allows to: - store label specific global settings (e.g. dos compatible mode, display units, ...) independently on the current label - add label specific function to the API Signed-off-by: Karel Zak fdisks/fdiskaixlabel.c | 42 +++++++++++++++++++----- fdisks/fdiskbsdlabel.c | 54 ++++++++++++++++++++++-------- fdisks/fdiskdoslabel.c | 57 ++++++++++++++++++++++++-------- fdisks/fdiskmaclabel.c | 41 ++++++++++++++++++----- fdisks/fdisksgilabel.c | 55 +++++++++++++++++++++++-------- fdisks/fdisksunlabel.c | 56 +++++++++++++++++++++++-------- fdisks/gpt.c | 54 ++++++++++++++++++++++-------- libfdisk/src/alignment.c | 4 +-- libfdisk/src/context.c | 66 +++++++++++++++++++++++++++++++++++-- libfdisk/src/fdiskP.h | 85 +++++++++++++++++++++++++++++++----------------- libfdisk/src/label.c | 78 +++++++++++++------------------------------- libfdisk/src/libfdisk.h | 4 +++ 12 files changed, 424 insertions(+), 172 deletions(-) commit 171372d37ce16e2a28e106a764a211237fe4df75 Author: Karel Zak Date: Thu Dec 6 15:22:43 2012 +0100 libfdisk: cleanup the rest of fdisks/utils.c stuff - remove obsolete code - move fdisk_{set,get}_partition_type() to label.c (this is label driver operation) Signed-off-by: Karel Zak fdisks/fdisk.h | 7 ------- libfdisk/src/label.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ libfdisk/src/libfdisk.h | 5 +++++ libfdisk/src/parttype.c | 46 ---------------------------------------------- 4 files changed, 53 insertions(+), 53 deletions(-) commit f4be9e2b99f96cb2250535bd5b1e322d6c0ea234 Author: Karel Zak Date: Thu Dec 6 15:17:53 2012 +0100 libfdisk: add context functions Signed-off-by: Karel Zak fdisks/Makemodule.am | 1 - fdisks/fdisk.h | 2 - fdisks/utils.c | 115 --------------------------------------------- libfdisk/src/Makemodule.am | 1 + libfdisk/src/context.c | 78 ++++++++++++++++++++++++++++++ libfdisk/src/libfdisk.h | 5 ++ 6 files changed, 84 insertions(+), 118 deletions(-) commit 7ce10975339ca231953050a6cb6f518d88e64f28 Author: Karel Zak Date: Thu Dec 6 15:13:23 2012 +0100 libfdisk: add probing function Signed-off-by: Karel Zak fdisks/fdisk.h | 9 ----- fdisks/utils.c | 82 +--------------------------------------------- libfdisk/src/fdiskP.h | 3 ++ libfdisk/src/label.c | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 95 insertions(+), 90 deletions(-) commit c578f9af729fd6cb4bc64a431b1779df8f94f889 Author: Karel Zak Date: Thu Dec 6 15:04:35 2012 +0100 libfdisk: add fdisk_reset_alignment() Signed-off-by: Karel Zak fdisks/fdisk.h | 1 - fdisks/utils.c | 33 --------------------------------- libfdisk/src/alignment.c | 34 +++++++++++++++++++++++++++++++--- libfdisk/src/libfdisk.h | 3 +++ 4 files changed, 34 insertions(+), 37 deletions(-) commit aa42788d5f6beded3b36fb45cfaf4a27fff25698 Author: Karel Zak Date: Thu Dec 6 12:12:41 2012 +0100 libfdisk: add topology and geometry functions - rename __discovery_* to fdisk_discovery_* - rename fdisk_context_force_sector_size() to fdisk_override_sector_size() - rename fdisk_context_set_user_geometry() to fdisk_override_geometry() - remove non-default sector size warning Signed-off-by: Karel Zak fdisks/fdisk.c | 18 ++-- fdisks/fdisk.h | 6 -- fdisks/utils.c | 260 +---------------------------------------------- libfdisk/src/alignment.c | 251 +++++++++++++++++++++++++++++++++++++++++++++ libfdisk/src/fdiskP.h | 8 ++ 5 files changed, 268 insertions(+), 275 deletions(-) commit 3eb78aa7453f9466e6050e9ee876c672b5e7d7dd Author: Karel Zak Date: Wed Dec 5 17:08:54 2012 +0100 libfdisk: add firstsector utils Signed-off-by: Karel Zak fdisks/fdisk.h | 1 - fdisks/utils.c | 44 +++----------------------------------------- libfdisk/src/Makemodule.am | 1 + libfdisk/src/fdiskP.h | 5 +++++ libfdisk/src/utils.c | 42 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 51 insertions(+), 42 deletions(-) commit 832f9ddf40bfc189fc8370a6fab78e1eb797d0ca Author: Karel Zak Date: Wed Dec 5 15:08:26 2012 +0100 fdisk: remove duplicate code (already in libfdisk) Signed-off-by: Karel Zak fdisks/utils.c | 27 --------------------------- 1 file changed, 27 deletions(-) commit 8adbcf0ce9f6f7c7e53d59e7d43ab9fe87ff5d56 Author: Karel Zak Date: Wed Dec 5 15:07:19 2012 +0100 libfdisk: add generic label code Signed-off-by: Karel Zak fdisks/fdisk.h | 6 --- fdisks/utils.c | 101 ------------------------------------------- libfdisk/src/Makemodule.am | 1 + libfdisk/src/fdiskP.h | 16 ------- libfdisk/src/label.c | 105 +++++++++++++++++++++++++++++++++++++++++++++ libfdisk/src/libfdisk.h | 26 +++++++++++ 6 files changed, 132 insertions(+), 123 deletions(-) commit 9475cc78ff5318fb659a7b90bb181f9c9522de02 Author: Karel Zak Date: Wed Dec 5 14:32:20 2012 +0100 libfdisk: add alignment code Signed-off-by: Karel Zak fdisks/fdisk.c | 91 +--------------------------------------- fdisks/fdisk.h | 9 ---- fdisks/fdiskdoslabel.c | 6 +-- fdisks/gpt.c | 6 +-- libfdisk/src/Makemodule.am | 1 + libfdisk/src/alignment.c | 101 +++++++++++++++++++++++++++++++++++++++++++++ libfdisk/src/fdiskP.h | 18 ++++++++ 7 files changed, 128 insertions(+), 104 deletions(-) commit a5fe1b3f1d136b943fb73ab3b9a9c889c642dbfb Author: Karel Zak Date: Fri Nov 30 16:39:57 2012 +0100 libfdisk: add parttype code Signed-off-by: Karel Zak fdisks/fdisk.h | 10 --- fdisks/utils.c | 206 ------------------------------------------- libfdisk/src/Makemodule.am | 3 +- libfdisk/src/libfdisk.h | 14 +++ libfdisk/src/parttype.c | 214 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 230 insertions(+), 217 deletions(-) commit a8019843ab545040e0a64719014f5dcbd35ea8b0 Author: Karel Zak Date: Fri Nov 30 16:31:04 2012 +0100 libfdisk: add basic structs Signed-off-by: Karel Zak fdisks/fdisk.h | 105 --------------------------------------------- libfdisk/src/Makemodule.am | 1 + libfdisk/src/fdiskP.h | 105 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 106 insertions(+), 105 deletions(-) commit f3744ac56952816bc12d398cf0dd5e5a65c48a31 Author: Karel Zak Date: Fri Nov 30 15:29:03 2012 +0100 fdisk: use debug stuff from libfdisk Signed-off-by: Karel Zak fdisks/Makemodule.am | 4 ++-- fdisks/fdisk.h | 46 ++++++---------------------------------------- 2 files changed, 8 insertions(+), 42 deletions(-) commit d56a7c2330d2a361d3820f8ad9a5399fec47afae Author: Karel Zak Date: Fri Nov 30 15:27:41 2012 +0100 libfdisk: add basic library files Signed-off-by: Karel Zak Makefile.am | 2 ++ libfdisk/Makemodule.am | 2 ++ libfdisk/src/Makemodule.am | 32 +++++++++++++++++ libfdisk/src/fdiskP.h | 87 ++++++++++++++++++++++++++++++++++++++++++++++ libfdisk/src/init.c | 33 ++++++++++++++++++ libfdisk/src/libfdisk.h | 35 +++++++++++++++++++ 6 files changed, 191 insertions(+) commit 9dd068103ef0d1d37e1df98ee69374cbb8ad6bfb Author: Karel Zak Date: Wed Mar 6 14:36:23 2013 +0100 tests: add fdisk GPT test Note that the test does not check on-disk data (by checksum) because the current fdisk does not allow to modify automatically generated partition and disk UUIDs. Signed-off-by: Karel Zak tests/expected/fdisk/gpt | 113 +++++++++++++++++++++++++++++++++++++++++++++++ tests/ts/fdisk/gpt | 84 +++++++++++++++++++++++++++++++++++ 2 files changed, 197 insertions(+) commit 0385dcf0ad9550e721b9daf01d83e6b14e70e7c2 Author: Karel Zak Date: Wed Mar 6 14:01:41 2013 +0100 tests: add fdisk BSD test Signed-off-by: Karel Zak tests/expected/fdisk/bsd | 127 +++++++++++++++++++++++++++++++++++++++++++++++ tests/ts/fdisk/bsd | 106 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 233 insertions(+) commit 7a8ba79e980fc8e546ab55297365bd14fe1d1ac9 Author: Karel Zak Date: Wed Mar 6 12:32:34 2013 +0100 tests: update fdisk mbr tests Signed-off-by: Karel Zak tests/expected/fdisk/mbr-dos-mode | 11 +++++++++++ tests/expected/fdisk/mbr-nondos-mode | 12 ++++++++++++ 2 files changed, 23 insertions(+) commit 7cabfd86771881248debf04bfb09005c9213f115 Author: Karel Zak Date: Tue Mar 5 09:38:46 2013 +0100 tests: use checksum to detect rev(1) consistency Signed-off-by: Karel Zak tests/expected/misc/rev | 3 ++- tests/ts/misc/rev | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) commit 02658d9bb56976b462724b306e9e1f4385ef4b93 Author: Karel Zak Date: Mon Mar 4 13:10:09 2013 +0100 tests: make utmpdump TZ independent Signed-off-by: Karel Zak tests/ts/utmpdump/to-binary | 2 ++ tests/ts/utmpdump/to-text | 2 ++ 2 files changed, 4 insertions(+) commit 65f25186d5e71d612709e2949bd3a422c89058f1 Author: Karel Zak Date: Mon Mar 4 12:58:12 2013 +0100 ionice: keep output backwardly compatible ...bug introduced by 8c219bf463dbbae412767d269bff1cdd4e4bf4a5 Signed-off-by: Karel Zak schedutils/ionice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c1e12ecf2fbc9b31541da75f2565e8aedd16271e Author: Karel Zak Date: Mon Mar 4 12:53:31 2013 +0100 tests: update ipcs (reorder default output) Signed-off-by: Karel Zak tests/expected/ipcs/headers | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) commit d0a7dc61f509fe0a1cc3440adabbe51d982794da Author: Karel Zak Date: Mon Mar 4 12:49:11 2013 +0100 tests: update libblkid PT tests Signed-off-by: Karel Zak tests/expected/blkid/lowprobe-pt-bsd | 2 +- tests/expected/blkid/lowprobe-pt-dos+bsd | 2 +- tests/expected/blkid/lowprobe-pt-gpt | 2 +- tests/expected/blkid/lowprobe-pt-sgi | 2 +- tests/expected/blkid/lowprobe-pt-sun | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) commit cb768d0583425bd7c40a1b8e8cafd0e15a2fd1da Author: Karel Zak Date: Mon Mar 4 12:45:13 2013 +0100 tests: update UDF test .. blkid now returns infor from ISO header too. Signed-off-by: Karel Zak tests/expected/blkid/low-probe-udf | 5 +++++ 1 file changed, 5 insertions(+) commit a4eb4f81a5fb9ab3809c7366b41bff15864aeae1 Author: Karel Zak Date: Mon Mar 4 12:44:34 2013 +0100 tests: update ISO tests Signed-off-by: Karel Zak tests/expected/blkid/low-probe-iso | 2 ++ tests/expected/blkid/low-probe-iso-joliet | 2 ++ tests/expected/blkid/low-probe-iso-rr-joliet | 2 ++ 3 files changed, 6 insertions(+) commit 7c5dec2fa262d00971fcacef632d2283055daa0a Merge: ceefa68 5a45eb2 Author: Karel Zak Date: Mon Mar 4 12:40:38 2013 +0100 Merge branch 'master' of https://github.com/zec/util-linux commit ceefa682b459d6cac12f17a41e1a08ff9b9e3b87 Author: Benno Schulenberg Date: Mon Feb 25 10:48:35 2013 +0100 docs: improve wording, grammar and formatting of lsblk man page Also sort the options alphabetically. Signed-off-by: Benno Schulenberg misc-utils/lsblk.8 | 136 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 78 insertions(+), 58 deletions(-) commit 37684203748ac21b00161680ef015a41e220b865 Author: Benno Schulenberg Date: Fri Feb 22 21:51:32 2013 +0100 docs: improve grammar and formatting of explanation of "-o +list" Signed-off-by: Benno Schulenberg misc-utils/findmnt.8 | 4 ++-- misc-utils/lsblk.8 | 4 ++-- misc-utils/lslocks.8 | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) commit 96f47477125d609f101c1d9695f60a9cbb3daaad Author: Bernhard Voelker Date: Sat Mar 2 18:59:02 2013 +0100 build-sys: add exec_shell.h to distribution Signed-off-by: Bernhard Voelker include/Makemodule.am | 1 + 1 file changed, 1 insertion(+) commit 2eefe5170a4c4cc30d70ccfaa834af2a3c223b83 Author: Mike Frysinger Date: Thu Feb 28 23:03:02 2013 -0500 unshare: tweak style Signed-off-by: Mike Frysinger sys-utils/unshare.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 47535d77d214be8cd141a67c38591028b6fc7200 Author: Mike Frysinger Date: Thu Feb 28 23:03:01 2013 -0500 unshare(1): delete empty NOTES section Signed-off-by: Mike Frysinger sys-utils/unshare.1 | 1 - 1 file changed, 1 deletion(-) commit 747168d4441ccff1b222b72d8b7478215d76d8fd Author: Sami Kerola Date: Wed Feb 20 21:31:09 2013 +0000 login: remove file descriptor leak [cppcheck] [login-utils/login.c:510]: (error) Resource leak: fd Signed-off-by: Sami Kerola login-utils/login.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 2281e1eda38344ebb1ac1f5189c04b6b3f1843f2 Author: Sami Kerola Date: Sat Feb 16 18:08:40 2013 +0000 wall: use xgethostname() Signed-off-by: Sami Kerola term-utils/wall.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) commit 9b80bef6879edd01cf12455a9c2ef307e3748ce5 Author: Karel Zak Date: Mon Mar 4 12:25:47 2013 +0100 readprofile: fix --reest (--reset) typo Reported-by: Branislav Blaskovic Signed-off-by: Karel Zak sys-utils/readprofile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5a45eb2d2c70dc7ea2ff4c7b56ab8dba2780f033 Author: Zachary Catlin Date: Fri Mar 1 21:34:25 2013 -0500 libblkid: use correct block size for UDF probe In UDF, Volume Structure Descriptors are always 2048 bytes long (ECMA-167, 3rd ed., §2/9.1), while filesystem sectors are the same size as the sectors of the underlying media (e.g., UDF 2.01 §1.3.2). Before this commit, the block size was estimated from VSD offsets, which gives incorrect answers for non-optical media. Now, the UDF probe uses the device block size by default, falling back to 2048-byte sectors for the case of optical-disk images. Signed-off-by: Zachary Catlin AUTHORS | 1 + libblkid/src/superblocks/udf.c | 45 ++++++++++++++++++++++++++++-------------- 2 files changed, 31 insertions(+), 15 deletions(-) commit 6a83f8ecd7d2f39c8f06c3ef0f4be95c2de76bf1 Author: Karel Zak Date: Thu Feb 28 11:26:59 2013 +0100 libmount: ignore name=value if only 'name' is expected For example mount /srv/www /mnt -o rw,group=woven,dev,suid the group= should not be interpreted as userspace mount option, because umount(8) expects 'group' (without =). Reported-by: Jan Engelhardt Signed-off-by: Karel Zak libmount/src/optstr.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) commit 6f7bce865175486ee9c0544c334070cea0198059 Author: Karel Zak Date: Wed Feb 27 11:23:33 2013 +0100 umount: add note about namespaces too --all-targets Signed-off-by: Karel Zak sys-utils/umount.8 | 9 ++++----- sys-utils/umount.c | 3 ++- 2 files changed, 6 insertions(+), 6 deletions(-) commit 956e582874d3a28434018bf12057c745f74821de Author: Karel Zak Date: Tue Feb 26 15:26:54 2013 +0100 docs: update deprecated.txt Signed-off-by: Karel Zak Documentation/deprecated.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) commit e0688353db8884f2ebbdabe764d7e9234841f49f Author: Karel Zak Date: Tue Feb 26 14:59:07 2013 +0100 tests: add umount --all-targets tests Signed-off-by: Karel Zak tests/expected/mount/umount-alltargets | 7 ++ .../mount/umount-alltargets-all-targets-dev | 3 + .../mount/umount-alltargets-all-targets-mnt | 3 + .../mount/umount-alltargets-all-targets-recursive | 3 + tests/ts/mount/umount-alltargets | 121 +++++++++++++++++++++ 5 files changed, 137 insertions(+) commit 4eb49f63920d4b32e9da8995618caacb29517ac3 Author: Karel Zak Date: Tue Feb 26 14:50:26 2013 +0100 umount: add --all-targets The same source (whole filesystem or filesystems subvolume) could be mounted on more targets (mountpoints). For example bind mounts or btrfs sub-volumes. If you want to detach the source device from the system then you need to unmount all the mountpoints. umount --all-targets provides this functionality. This option could be used together with --recursive. Then all nested mountpoints within the filesystem are unmounted too. For example: umount --recursive --all-targets /dev/sdb1 should be a way how to make the device unmounted at all. Signed-off-by: Karel Zak sys-utils/umount.8 | 7 ++ sys-utils/umount.c | 188 ++++++++++++++++++++++++++++++++++++----------------- 2 files changed, 136 insertions(+), 59 deletions(-) commit 6506a866014f65516c1d5f1aaa0849f8c59aa387 Author: Karel Zak Date: Tue Feb 26 14:19:05 2013 +0100 libmount: export umount mountpoint look up code Signed-off-by: Karel Zak libmount/src/context_umount.c | 82 ++++++++++++++++++++++++++++++------------- libmount/src/libmount.h.in | 3 ++ libmount/src/libmount.sym | 1 + 3 files changed, 61 insertions(+), 25 deletions(-) commit 2b90c471de604d63b40fff3769758adbb8077454 Author: Karel Zak Date: Tue Feb 26 14:17:42 2013 +0100 libmount: don't prepare update for empty mtab/utab on umount Signed-off-by: Karel Zak libmount/src/context.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) commit dad88cb3573fd204971365fed6f7797c4b355946 Author: Karel Zak Date: Tue Feb 26 14:16:02 2013 +0100 libmount: optimize tab files parsing - ignore empty files - ignore empty tables Signed-off-by: Karel Zak libmount/src/mountP.h | 2 ++ libmount/src/tab_parse.c | 40 ++++++++++++++++++++-------------------- libmount/src/utils.c | 11 +++++++++++ 3 files changed, 33 insertions(+), 20 deletions(-) commit fd2b0ce5d760e9ec2830f60842ed062ac0a5ba9a Author: Karel Zak Date: Mon Feb 25 11:17:27 2013 +0100 umount: improve --recursive docs Signed-off-by: Karel Zak sys-utils/umount.8 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit d48f6c5db828d065ffbfefc2c98d669c17316d01 Merge: 51924a4 02887b7 Author: Karel Zak Date: Wed Feb 20 13:07:07 2013 +0100 Merge branch 'patch-1' of https://github.com/dtrebbien/util-linux * 'patch-1' of https://github.com/dtrebbien/util-linux: Implement mempcpy() in terms of memcpy() if mempcpy() is unavailable commit 51924a4ef0dd8f4906729cb6760d1929049c1983 Author: William Pitcock Date: Wed Feb 20 13:04:02 2013 +0100 add missing rpmatch.h everywhere it needs to be Signed-off-by: William Pitcock Signed-off-by: Karel Zak disk-utils/fsck.minix.c | 1 + login-utils/vipw.c | 1 + term-utils/mesg.c | 1 + 3 files changed, 3 insertions(+) commit a4dc853a4d4ad43593e3ab3aada8de6fb35cda12 Author: Karel Zak Date: Wed Feb 20 10:43:30 2013 +0100 libblkid: add debug messages for "idmag" stuff and btrfs Signed-off-by: Karel Zak libblkid/src/probe.c | 2 ++ libblkid/src/superblocks/btrfs.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) commit 6c4581b6950ac478f29cb12c92dd3d9beff0d53f Author: Karel Zak Date: Tue Feb 19 15:51:51 2013 +0100 libblkid: make backup superblock visible for wipefs(8) only Signed-off-by: Karel Zak libblkid/src/blkidP.h | 3 +++ libblkid/src/probe.c | 6 ++++++ libblkid/src/superblocks/btrfs.c | 3 +++ 3 files changed, 12 insertions(+) commit 3785056ca8115d4c0b402abf788219be6203ebb3 Author: Karel Zak Date: Tue Feb 19 14:10:24 2013 +0100 lib/tty: don't truncate output on non-terminals for example: $ findmnt | cat $ lslocks > foo the output should not be truncated. Signed-off-by: Karel Zak include/tt.h | 1 + lib/tt.c | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) commit 9148b9bb4735fcc65453ce14cc6df708ff8d24e0 Author: Karel Zak Date: Tue Feb 19 13:12:31 2013 +0100 libblkid: add blkid_probe_step_back to documentation Signed-off-by: Karel Zak libblkid/docs/libblkid-sections.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) commit 583120378d577f0882ad6db27743f87faf3745ff Author: Karel Zak Date: Tue Feb 19 13:09:48 2013 +0100 libblkid: return disk ID/UUID by PT binary interface Add blkid_parttable_get_id() function. Signed-off-by: Karel Zak libblkid/docs/libblkid-sections.txt | 1 + libblkid/samples/partitions.c | 5 +++-- libblkid/src/blkid.h.in | 3 +++ libblkid/src/blkid.sym | 1 + libblkid/src/partitions/dos.c | 11 ++++++++++- libblkid/src/partitions/dos.h | 7 ++++++- libblkid/src/partitions/gpt.c | 4 ++++ libblkid/src/partitions/partitions.c | 28 ++++++++++++++++++++++++++++ libblkid/src/partitions/partitions.h | 2 ++ 9 files changed, 58 insertions(+), 4 deletions(-) commit e346233ea2c234a28a9dc968bcc04e848af92033 Author: Karel Zak Date: Mon Feb 18 14:53:12 2013 +0100 findmnt: allow to read (PART)UUID/LABEL from udev DB Currently findmnt uses libmount to get filesystem properties (and libmount uses libblkid). This works as expected, but root permissions are required to read the tags from the devices. It seems better to read the information from udev db and use libblkid as fallback solution only. Signed-off-by: Karel Zak misc-utils/Makemodule.am | 3 ++ misc-utils/findmnt.c | 89 ++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 78 insertions(+), 14 deletions(-) commit d44e3391b77ea06b0de2677cffe89578973a9a3a Author: Karel Zak Date: Mon Feb 18 13:37:00 2013 +0100 lsblk: resuse udev handler Signed-off-by: Karel Zak misc-utils/lsblk.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) commit 36fb10074cb3facd92f7db5aff370fc00aa711e5 Author: Karel Zak Date: Mon Feb 18 13:30:00 2013 +0100 docs: add missing information about -o + Signed-off-by: Karel Zak misc-utils/findmnt.8 | 3 +++ misc-utils/lsblk.8 | 3 +++ 2 files changed, 6 insertions(+) commit e68948e1462d7c86477820b74789c654333007b8 Author: Karel Zak Date: Mon Feb 18 13:21:42 2013 +0100 lslocks: support -o + convention Signed-off-by: Karel Zak misc-utils/lslocks.8 | 3 +++ misc-utils/lslocks.c | 11 ++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) commit 7badb909e21dcb1b4431427e324eb117014f4a3b Author: Karel Zak Date: Mon Feb 18 13:12:01 2013 +0100 lslocks: add BLOCKER column BLOCKER - PID of the process blocking the lock Signed-off-by: Karel Zak misc-utils/lslocks.8 | 3 +++ misc-utils/lslocks.c | 62 ++++++++++++++++++++++++++++++++++------------------ 2 files changed, 44 insertions(+), 21 deletions(-) commit 45b6445fe1b62edd82ec552de1c9f8940daba4f1 Author: Karel Zak Date: Mon Feb 18 12:59:33 2013 +0100 libmount: fix a mem leak Signed-off-by: Karel Zak libmount/src/fs.c | 1 + 1 file changed, 1 insertion(+) commit 6bf463c54c515c676d53d3bda332cfa37c5d0d1b Author: Karel Zak Date: Mon Feb 18 12:18:29 2013 +0100 fsck.cramfs: add dummy -a -y for compatibility Signed-off-by: Karel Zak disk-utils/fsck.cramfs.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) commit 55c0d16bab8cc84b72bf11cb2fdd8aa6205ac608 Author: Karel Zak Date: Thu Feb 14 16:29:51 2013 +0100 lslocks: detect blocked locks, fix /proc/locks parser $ flock foo -c "sleep 100" & flock foo -c "sleep 100" old version: $ lslocks lslocks: failed to parse pid: 'WRITE' new version: COMMAND PID TYPE SIZE MODE M START END PATH [...] flock 1318 FLOCK 0B WRITE* 0 0 0 /home/projects/ flock 1319 FLOCK 0B WRITE 0 0 0 /home/projects/ The asterisk (e.g. WRITE*) is used for blocked processes. Reported-by: Mantas Mikulenas Signed-off-by: Karel Zak misc-utils/lslocks.8 | 4 ++-- misc-utils/lslocks.c | 15 ++++++++++----- 2 files changed, 12 insertions(+), 7 deletions(-) commit 07c916cfddba7b912248b2ceb3a6476a43115c00 Author: Karel Zak Date: Thu Feb 14 15:59:28 2013 +0100 lslocks: use libmount to parse mountinfo old version: $ strace -e open lslocks 2>&1 | grep mountinfo | wc -l 118 new version: strace -e open ./lslocks 2>&1 | grep mountinfo | wc -l 1 Reported-by: Bernhard Voelker Signed-off-by: Karel Zak misc-utils/Makemodule.am | 3 ++- misc-utils/lslocks.c | 32 +++++++++++++++----------------- 2 files changed, 17 insertions(+), 18 deletions(-) commit 39edf68139a0cd8460281bae3fa39c51c760ad26 Author: Karel Zak Date: Thu Feb 14 15:46:06 2013 +0100 mountpoint: don't hardcode paths Signed-off-by: Karel Zak sys-utils/mountpoint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit eff79ceb0b0eaa0334e5b546870548dceda27f7b Author: Karel Zak Date: Thu Feb 14 15:38:08 2013 +0100 lscpu: don't read cpuid on non-live systems Reported-by: Luis Aranguren Signed-off-by: Karel Zak sys-utils/lscpu.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) commit 1e3832bfd1572ba8f8d3f9f8d7203773d561819d Author: Zbigniew Jędrzejewski-Szmek Date: Wed Feb 13 21:05:49 2013 -0500 nsenter: fix errors in manpage - spell abbreviations with capital letters - fix the names of a few options and files Signed-off-by: Zbigniew Jędrzejewski-Szmek sys-utils/nsenter.1 | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) commit 57580694269be36cc52138b0f82e72f09338e192 Author: Zbigniew Jędrzejewski-Szmek Date: Wed Feb 13 21:05:48 2013 -0500 unshare,nsenter: spawn shell by default The behaviour mimics chroot. Possibly it would have been nicer to to query the password database in the new namepace and run the shell of the user there, but it's hard to do correctly. getpwuid() might need to load nss plugins, and the arch in the new namespace might be different (in case of NEWNS mounts), or the hostname might be different, etc. So in general it's not possible to do it reliably. Signed-off-by: Zbigniew Jędrzejewski-Szmek include/exec_shell.h | 1 + lib/Makemodule.am | 3 ++- lib/exec_shell.c | 27 +++++++++++++++++++++++++++ sys-utils/Makemodule.am | 1 + sys-utils/nsenter.1 | 5 ++++- sys-utils/nsenter.c | 16 ++++++++-------- sys-utils/unshare.c | 12 ++++++------ 7 files changed, 49 insertions(+), 16 deletions(-) commit 4127f053ba482b0bd4d6976d4ca90bf77e827461 Author: Karel Zak Date: Thu Feb 14 13:56:34 2013 +0100 libblkid: read whole buffer for iso_volume_descriptor Signed-off-by: Karel Zak libblkid/src/superblocks/iso9660.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 8053b51c7601c4a7e5f2eca45610b8228f53d408 Author: Zeeshan Ali (Khattak) Date: Tue Feb 12 03:33:18 2013 +0200 libblkid: Probe UDF volumes for ISO9660 info as well I have seen blkid failing to report any meaningful data on some of UDF volumes I have (Windows installer media): $ ./blkid -p -o udev en_windows_7_professional_with_sp1_x64_dvd_u_676939.iso ID_FS_LABEL=UDF_Volume ID_FS_LABEL_ENC=UDF\x20Volume ID_FS_TYPE=udf Also, once my patches to expose more of ISO9660 info get merged, we'd also need the same info to be exposed for UDF volumes. This patch adds ISO9660 probing to UDF volumes and here is the result I see on my example UDF volume (together with my pending patch to expose more ISO9660 information): $ ./blkid -p -o udev en_windows_7_professional_with_sp1_x64_dvd_u_676939.iso ID_FS_PUBLISHER_ID=MICROSOFT CORPORATION ID_FS_APPLICATION_ID=CDIMAGE 2.54 (01/01/2005 TM) ID_FS_UUID=2011-04-12-02-38-58-00 ID_FS_UUID_ENC=2011-04-12-02-38-58-00 ID_FS_BOOT_SYSTEM_ID=EL TORITO SPECIFICATION ID_FS_LABEL=GSP1RMCPRXFRER_EN_DVD ID_FS_LABEL_ENC=GSP1RMCPRXFRER_EN_DVD ID_FS_TYPE=iso9660 $ ./blkid -p -o udev en_windows_xp_professional_with_service_pack_3_x86_cd_x14-80428.iso ID_FS_PUBLISHER_ID=MICROSOFT CORPORATION ID_FS_APPLICATION_ID=CDIMAGE 2.52 (03/09/2004 TM) ID_FS_UUID=2008-04-14-12-00-00-00 ID_FS_UUID_ENC=2008-04-14-12-00-00-00 ID_FS_BOOT_SYSTEM_ID=EL TORITO SPECIFICATION ID_FS_LABEL=GRTMPFPP_EN ID_FS_LABEL_ENC=GRTMPFPP_EN ID_FS_TYPE=iso9660 Before anyone asks, Yes! The UDF media I have is all legal and downloaded directly from MSDN. :) [kzak@redhat.com: - read LABEL from UDF only if not found anything useful in ISO9660] Signed-off-by: Karel Zak libblkid/src/Makemodule.am | 1 + libblkid/src/superblocks/iso9660.c | 2 +- libblkid/src/superblocks/iso9660.h | 14 ++++++++++++++ libblkid/src/superblocks/udf.c | 18 +++++++++++++++++- 4 files changed, 33 insertions(+), 2 deletions(-) commit fafe46bc266b65ca524909b43701a3d06825d0a8 Author: Zeeshan Ali (Khattak) Date: Mon Feb 11 23:22:12 2013 +0200 libblkid: Expose more ISO9660 headers In order to kill libosinfo's infamous udev rule[1], we need to make blkid report the following information as udev properties on IS09660 media so that libosinfo can make use of that for detection: 1. Volume ID (already exposed as label). 2. System ID. 3. Publisher ID. 4. Application ID. 5. Boot record's boot system ID, (almost always 'EL TORITO SPECIFICATION' if boot record is present). Example use: $ blkid -p -o udev Fedora-17-x86_64-DVD.iso ID_FS_SYSTEM_ID=LINUX ID_FS_APPLICATION_ID=GENISOIMAGE ISO 9660/HFS FILESYSTEM CREATOR (C) 1993 E.YOUNGDALE ID_FS_UUID=2012-05-22-20-55-32-00 ID_FS_UUID_ENC=2012-05-22-20-55-32-00 ID_FS_BOOT_SYSTEM_ID=EL TORITO SPECIFICATION ID_FS_LABEL=Fedora_17_x86_64 ID_FS_LABEL_ENC=Fedora\x2017\x20x86_64 ID_FS_TYPE=iso9660 ID_PART_TABLE_TYPE=dos [1] https://fedorahosted.org/libosinfo/ticket/1 [kzak@redhat.com: - add blkid_ltrim_whitespace() and use it together with blkid_rtrim_whitespace() to trim white spaces - enlarge blkid values to 128 bytes - add generic blkid_probe_set_id_label() function - always terminate all _ID with \0 - don't export the _IDs to blkid cache] Signed-off-by: Karel Zak libblkid/src/blkidP.h | 6 ++-- libblkid/src/probe.c | 18 ++++++++++ libblkid/src/superblocks/iso9660.c | 65 +++++++++++++++++++++++++++++++--- libblkid/src/superblocks/superblocks.c | 38 ++++++++++++++++++++ libblkid/src/superblocks/superblocks.h | 2 ++ libblkid/src/verify.c | 6 ++-- 6 files changed, 126 insertions(+), 9 deletions(-) commit fbafb98c505e915ddcb63fe365940f34a047faea Author: Zeeshan Ali (Khattak) Date: Mon Feb 11 23:22:11 2013 +0200 libblkid: Don't keep reading same sector of ISO We were reading the same sector over and over again when parsing ISO9660. This patches fixes it. libblkid/src/superblocks/iso9660.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 5564a8c77fb0d63a2d6613fd52de71baa13d446b Author: Sami Kerola Date: Sun Feb 10 21:33:41 2013 +0000 build-sys: add package url to AC_INIT See last line from './configure --help'. Signed-off-by: Sami Kerola configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit eaf701984d81f9b943a748bb754a513a022f675e Author: Sami Kerola Date: Sun Feb 10 21:33:40 2013 +0000 build-sys: use AC_USE_SYSTEM_EXTENSIONS The AC_GNU_SOURCE is obsolete. Addresses: http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html#index-AC_005fGNU_005fSOURCE-2058 Signed-off-by: Sami Kerola configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit d6abf1685da8f7d2aa0ddc74eb416a55df1208f8 Author: Sami Kerola Date: Sun Feb 10 21:33:39 2013 +0000 build-sys: use AC_COMPILE_IFELSE The AC_TRY_COMPILE is obsolete. Addresses: http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html#index-AC_005fTRY_005fCOMPILE-2203 Signed-off-by: Sami Kerola configure.ac | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) commit 190b5ee3d2990ec16d7bdb4fa6efa1e565346c31 Author: Karel Zak Date: Thu Feb 14 09:20:30 2013 +0100 libmount: add missing MNT_ERR_AMBIFS Sorry, the last commit into libmount has been incomplete. Reported-by: Zbigniew Jędrzejewski-Szmek Signed-off-by: Karel Zak libmount/src/libmount.h.in | 1 + 1 file changed, 1 insertion(+) commit 07de470e437f204e3d40b8b0a85f57c1978ff9ed Author: Richard Weinberger Date: Sat Feb 9 19:22:50 2013 +0100 switch_root: Add a sanity check As switch_root basically does rm -Rf / we should make sure that / is really an initramfs. Signed-off-by: Richard Weinberger sys-utils/switch_root.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) commit 456857a49ab02d6f4b5be4884ec050f6b572f62b Author: Karel Zak Date: Wed Feb 13 13:49:05 2013 +0100 build-sys: add config-gen.d stuff for chsh-chfn Signed-off-by: Karel Zak tools/config-gen.d/chfnsh-libuser.conf | 5 +++++ tools/config-gen.d/chfnsh-no-password.conf | 6 ++++++ tools/config-gen.d/chfnsh-pam.conf | 6 ++++++ 3 files changed, 17 insertions(+) commit d86918b6eb854de38a6e02b81466fcc0419cef98 Author: Karel Zak Date: Wed Feb 13 13:44:34 2013 +0100 chsh-chfn: fix bugs, improve compilation * rename --disable-require-password to --disable-chsh-chfn-password * is_local() is really unnecessary when linked with libuser * fix set_value_libuser() returns codes * fix chfn.c, there is no 'pw', but oldf.pw * don't link with PAM when--disable-chsh-chfn-password Signed-off-by: Karel Zak configure.ac | 48 +++++++++++++++++++++++------------------------ login-utils/Makemodule.am | 23 +++++++++++++++-------- login-utils/auth.c | 6 ++---- login-utils/chfn.c | 18 ++++++++++-------- login-utils/chsh.c | 11 +++++++---- login-utils/libuser.c | 7 ++++--- 6 files changed, 61 insertions(+), 52 deletions(-) commit 82a2c1600ddc50b6c0bf0f521035b9b82a6e0a8e Author: Karel Zak Date: Wed Feb 13 12:36:10 2013 +0100 libmount: correctly propagate ambivalent blkid probing results libmount ignores "ambivalent probing result" from libblkid and tries filesystems /etc/filesystems. This is incorrect behavior. Reported-by: Lukas Czerner Signed-off-by: Karel Zak libmount/src/cache.c | 44 +++++++++++++++++++++++++++++++++----------- libmount/src/context.c | 9 ++++++--- libmount/src/mountP.h | 1 - sys-utils/mount.c | 5 +++++ 4 files changed, 44 insertions(+), 15 deletions(-) commit 8c24b6aa2c440bc24ada7cb89c89e4eae0c2550b Author: Cody Maloney Date: Wed Feb 6 23:22:21 2013 -0700 chfn: Add libuser support Signed-off-by: Cody Maloney login-utils/chfn.c | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) commit 6adb1ef279537875495d10f7c74f35101dd335fd Author: Cody Maloney Date: Wed Feb 6 23:22:20 2013 -0700 chsh: Add libuser support This is based directly on lchsh which is a part of libuser. libuser.{c,h} exist because exactly the same code is needed for both chsh and chfn. [kzak@redhat.com: cleanup err() usage] Signed-off-by: Cody Maloney Signed-off-by: Karel Zak login-utils/Makemodule.am | 3 ++ login-utils/chsh.c | 22 ++++++++++++++- login-utils/libuser.c | 71 +++++++++++++++++++++++++++++++++++++++++++++++ login-utils/libuser.h | 14 ++++++++++ 4 files changed, 109 insertions(+), 1 deletion(-) commit d91ad6ab3c925ad88c9df80dd78818b5aa2d14df Author: Cody Maloney Date: Wed Feb 6 23:22:19 2013 -0700 chsh-chfn: Move pam auth to its own function, factoring out common code This makes it easier to add support for libuser, which needs the same PAM authentication. Also removes duplicate code between chsh and chfn. Signed-off-by: Cody Maloney login-utils/Makemodule.am | 2 ++ login-utils/auth.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++ login-utils/auth.h | 13 +++++++++++++ login-utils/chfn.c | 33 +++------------------------------ login-utils/chsh.c | 33 +++------------------------------ 5 files changed, 68 insertions(+), 60 deletions(-) commit 7e4714f22bb6e3140840bf5b0561e46347218042 Author: Cody Maloney Date: Wed Feb 6 23:22:18 2013 -0700 build-sys: Add flag for enabling/disabling libuser support. Signed-off-by: Cody Maloney configure.ac | 17 +++++++++++++++++ login-utils/Makemodule.am | 5 +++++ 2 files changed, 22 insertions(+) commit b8f2d06ed7695005b0f4a3376ce070cfc313e65b Author: Karel Zak Date: Mon Feb 11 16:53:11 2013 +0100 libmount: tags does not start with '/' References: https://bugzilla.redhat.com/show_bug.cgi?id=909866 Signed-off-by: Karel Zak libmount/src/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit de78b56461bbe2733dbedc317434f712188b929a Author: Karel Zak Date: Thu Feb 7 10:47:32 2013 +0100 libblkid: add missing le16_to_cpu to sil raid prober Signed-off-by: Karel Zak libblkid/src/superblocks/silicon_raid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 165bea4b10bdb0be916814f3b3a2f8a61189edfe Author: Karel Zak Date: Thu Feb 7 10:31:49 2013 +0100 libblkid: improve Silicon RAID prober * count checksum from superblock * new (correct) superblock definition from dmraid Reported-by: Frank Hirtz Signed-off-by: Karel Zak libblkid/src/superblocks/silicon_raid.c | 57 ++++++++++++++++++++++++++--- tests/expected/blkid/low-probe-silicon-raid | 2 +- tests/ts/blkid/low-probe | 1 - 3 files changed, 52 insertions(+), 8 deletions(-) commit 6e650f8895631dabc5b8bb809bed024896c3dcc5 Author: Karel Zak Date: Wed Feb 6 17:26:46 2013 +0100 libblkid: make blkid_new_probe_from_filename() usable on whole-disk This is stupid bug, when libblkid probe for partition table on whole-disk device with old 0.90 Linux RAID then it creates clone of the struct blkid_probe to avoid collisions with the original probing setting. If the cloned prober is unnecessary then it's deallocated by blkid_free_probe() ... and this function also closes the file descriptor if the device has been opened by blkid_new_probe_from_filename(). Fortunately we usually use open() + blkid_probe_set_device(), ... except wipefs(1). Reported-by: Lukas Czerner Signed-off-by: Karel Zak libblkid/src/probe.c | 2 ++ 1 file changed, 2 insertions(+) commit db663995bd93e170a43b1a7050c7a738782dabfb Author: Andy Lutomirski Date: Tue Feb 5 17:07:26 2013 -0800 setpriv: Fix an error message typo Signed-off-by: Andy Lutomirski sys-utils/setpriv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d8036a902e628996b90a4cc644f939c6bdc2122f Author: Alejandro Martinez Ruiz Date: Tue Feb 5 18:00:07 2013 +0100 tests: add f2fs image test Signed-off-by: Alejandro Martinez Ruiz tests/expected/blkid/low-probe-f2fs | 7 +++++++ tests/ts/blkid/images-fs/f2fs.img.bz2 | Bin 0 -> 695 bytes 2 files changed, 7 insertions(+) commit 7dcfc89e3061fc2276ce5b3b8d64db6d9eca8f8f Author: Alejandro Martinez Ruiz Date: Tue Feb 5 18:00:06 2013 +0100 libblkid: add Flash-Friendly File System (f2fs) support This adds support for detecting Flash-Friendly File System (f2fs) to libblkid. Based on work by Sven-Göran Bergh at http://www.mail-archive.com/busybox@busybox.net/msg17874.html Signed-off-by: Alejandro Martinez Ruiz Signed-off-by: Karel Zak libblkid/src/Makemodule.am | 1 + libblkid/src/superblocks/f2fs.c | 99 ++++++++++++++++++++++++++++++++++ libblkid/src/superblocks/superblocks.c | 3 +- libblkid/src/superblocks/superblocks.h | 1 + 4 files changed, 103 insertions(+), 1 deletion(-) commit 075f4bfd3413f79f395870ae86de1964252854ad Author: Cristian Rodríguez Date: Tue Feb 5 02:08:03 2013 -0300 build-sys: test for secure_getenv() too. In current glibc versions, internal __secure_getenv no longer exists and was replaced by secure_getenv() Signed-off-by: Cristian Rodríguez configure.ac | 1 + lib/env.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) commit 4190e08e8dacecb6f0f85a8de146fd226cc19330 Author: Sami Kerola Date: Thu Jan 31 19:49:48 2013 +0000 build-sys: add namespace.h to distribution Signed-off-by: Sami Kerola include/Makemodule.am | 1 + 1 file changed, 1 insertion(+) commit 291af4bce101bde619a198cee5c39a8e3f3caa40 Author: Sami Kerola Date: Wed Jan 30 20:33:25 2013 +0000 eject: remove a duplicate command name from error message Let the err() print the command name. Signed-off-by: Sami Kerola sys-utils/eject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 07ff972eb684cfc88ca1931123fc255927393118 Author: Sami Kerola Date: Wed Jan 30 20:33:24 2013 +0000 translation: unify exec error messages Signed-off-by: Sami Kerola login-utils/newgrp.c | 2 +- login-utils/su-common.c | 4 ++-- login-utils/sulogin.c | 4 ++-- schedutils/chrt.c | 1 - schedutils/ionice.c | 2 +- schedutils/taskset.c | 2 +- sys-utils/flock.c | 2 +- sys-utils/nsenter.c | 2 +- sys-utils/prlimit.c | 2 +- sys-utils/rtcwake.c | 2 +- sys-utils/setarch.c | 4 ++-- sys-utils/setsid.c | 2 +- sys-utils/swapon.c | 2 +- sys-utils/unshare.c | 2 +- text-utils/pg.c | 2 +- 15 files changed, 17 insertions(+), 18 deletions(-) commit f8bd089b1da79ce0cd4f228e371aa2089561eaa5 Author: Sami Kerola Date: Wed Jan 30 20:33:23 2013 +0000 a pointer should not be compared to zero [coccinelle] Signed-off-by: Sami Kerola lib/ismounted.c | 2 +- libblkid/src/devno.c | 2 +- misc-utils/whereis.c | 6 +++--- mount-deprecated/mount.c | 2 +- term-utils/agetty.c | 4 ++-- text-utils/more.c | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) commit 123ddced4333733bfe42ebc45806e91cff6f8319 Author: Benno Schulenberg Date: Sat Jan 26 17:42:41 2013 +0100 textual: fix two misencodings in comments Signed-off-by: Benno Schulenberg libmount/src/utils.c | 2 +- login-utils/setpwnam.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) commit b50945d4ac2b415823cdc067efdcb54c80de8145 Author: Benno Schulenberg Date: Sat Jan 26 17:07:51 2013 +0100 textual: spell and encode the name of Arkadiusz Miśkiewicz correctly Signed-off-by: Benno Schulenberg AUTHORS | 2 +- Documentation/getopt_changelog.txt | 2 +- Documentation/releases/v2.13-ReleaseNotes | 2 +- Documentation/releases/v2.14-ReleaseNotes | 2 +- Documentation/releases/v2.15-ReleaseNotes | 2 +- NEWS | 2 +- disk-utils/fsck.minix.c | 2 +- disk-utils/mkfs.c | 2 +- disk-utils/mkswap.c | 2 +- lib/env.c | 2 +- login-utils/chfn.c | 2 +- login-utils/chsh.c | 2 +- login-utils/islocal.c | 4 ++-- login-utils/last.c | 2 +- login-utils/newgrp.c | 2 +- login-utils/vipw.c | 2 +- misc-utils/cal.c | 2 +- misc-utils/getopt.c | 2 +- misc-utils/kill.c | 2 +- misc-utils/logger.c | 2 +- misc-utils/look.c | 2 +- misc-utils/mcookie.c | 2 +- misc-utils/namei.c | 4 ++-- misc-utils/whereis.c | 2 +- mount-deprecated/fstab.c | 2 +- mount-deprecated/mount_mntent.c | 2 +- mount-deprecated/sundries.c | 2 +- sys-utils/ctrlaltdel.c | 2 +- sys-utils/cytune.c | 2 +- sys-utils/ipcrm.c | 2 +- sys-utils/ipcs.c | 2 +- sys-utils/readprofile.c | 2 +- sys-utils/renice.c | 2 +- sys-utils/setsid.c | 2 +- sys-utils/tunelp.c | 2 +- term-utils/mesg.c | 2 +- term-utils/script.c | 2 +- term-utils/setterm.c | 2 +- term-utils/ttymsg.c | 2 +- term-utils/wall.c | 2 +- term-utils/write.c | 2 +- text-utils/col.c | 2 +- text-utils/colcrt.c | 2 +- text-utils/colrm.c | 2 +- text-utils/column.c | 2 +- text-utils/hexdump.c | 2 +- text-utils/hexsyntax.c | 2 +- text-utils/more.c | 2 +- text-utils/parse.c | 2 +- text-utils/rev.c | 2 +- text-utils/ul.c | 2 +- 51 files changed, 53 insertions(+), 53 deletions(-) commit 0aeb3a745932ce4622046a5256eeea09b7972fa2 Author: Benno Schulenberg Date: Sat Jan 26 15:40:44 2013 +0100 docs: AUTHORS: remove four duplicate entries Also fix a spello, remove unneeded backslashes, and add two missing accents. Signed-off-by: Benno Schulenberg AUTHORS | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) commit 7692c2c81f9939ecf64a0504b04281e30f42284c Author: Benno Schulenberg Date: Sat Jan 26 15:35:57 2013 +0100 docs: NEWS: add some missing accents, since this is now UTF-8 Signed-off-by: Benno Schulenberg NEWS | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) commit 9b4257c8b3e47c31648986c40d858bc3f4ac2d1d Author: Bernhard Voelker Date: Mon Jan 28 16:20:24 2013 +0100 mount: fix bind mount success message * sys-utils/mount.c (success_message): s/binded/bound/. Signed-off-by: Bernhard Voelker sys-utils/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d38a30a3e0d5c7f5d1d1115bd369ef5d77508a3c Author: Benno Schulenberg Date: Sun Jan 27 14:40:19 2013 +0100 docs: improve wording, formatting and accuracy of ipcs man page Signed-off-by: Benno Schulenberg sys-utils/ipcs.1 | 73 ++++++++++++++++++++++++++++++-------------------------- 1 file changed, 39 insertions(+), 34 deletions(-) commit fa03fa051a2ae0db751fd3478aaee45e9ed0bcb5 Author: Benno Schulenberg Date: Sun Jan 27 13:09:51 2013 +0100 ipcs: report an error when -i is used with multiple resources Also put everything in POSIX order: queues, memory, sempahores. Signed-off-by: Benno Schulenberg sys-utils/ipcs.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) commit 59c68b43689b85b4bc4acba2da92d5a1b55f3495 Author: Karel Zak Date: Tue Feb 5 11:48:55 2013 +0100 setpriv: move paths to pathnames.h Signed-off-by: Karel Zak include/pathnames.h | 8 ++++++++ sys-utils/setpriv.c | 34 +++++++++++++++++----------------- 2 files changed, 25 insertions(+), 17 deletions(-) commit 5600c405d5f1b12cad94915014e7cb46bf8fb746 Author: Andy Lutomirski Date: Mon Jan 14 07:58:57 2013 -0800 setpriv: run a program with different Linux privilege settings This new command can set no_new_privs, uid, gid, groups, securebits, inheritable caps, the cap bounding set, securebits, and selinux and apparmor labels. [kerolasa@iki.fi: a lot of small adjustment making the command to be good fit to util-linux project] Signed-off-by: Sami Kerola Signed-off-by: Andy Lutomirski .gitignore | 1 + configure.ac | 14 + sys-utils/Makemodule.am | 7 + sys-utils/setpriv.1 | 149 +++++++++ sys-utils/setpriv.c | 814 ++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 985 insertions(+) commit cd0fe5c1659d4144610ffd76500002e98b873e0b Author: Karel Zak Date: Mon Feb 4 11:28:09 2013 +0100 libblkid: add blkid_probe_step_back() It seems that blkid_do_probe() is too high-level solution for some mkfs programs (for example ext4 mkfs supports "undo" so all write operations has to be implemented by filesystem specific functions). The new function blkid_probe_step_back() resets internal libblkid buffers and move probing stuff one step back. It means that the previously used probing function will be called again in the next blkid_do_probe() call. This allows to modify on-disk data and check for backup superblocks or alternative magic strings. Something like: while (blkid_do_probe(pr) == 0) { ... get SBMAGIC_OFFSET and SBMAGIC len ... ... use your private seek & write() ... blkid_probe_step_back(pr); } References: https://bugzilla.redhat.com/show_bug.cgi?id=902512 Signed-off-by: Karel Zak libblkid/src/blkid.h.in | 1 + libblkid/src/blkid.sym | 7 +++ libblkid/src/probe.c | 111 ++++++++++++++++++++++++++++++++++++++---------- 3 files changed, 97 insertions(+), 22 deletions(-) commit 19a1ca6c0dcf64aa01e24c6b235c81413580804d Author: Karel Zak Date: Fri Feb 1 18:00:52 2013 +0100 newgrp: more robust crypt() usage Signed-off-by: Karel Zak login-utils/newgrp.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) commit 6a0766444dc4f1b23b1f0da9c380fb1ced0bfb0a Author: Karel Zak Date: Fri Feb 1 15:59:58 2013 +0100 libblkid: remove optimization from verify( funrtion Now libblkid (the cache based part) tries to probe for the cached filesystem firstly. This optimization is broken, because: * new another superblock could be on the device and the original is already obsolete * we still need to probe for partitions and raids * the code was too fragile The patch also suggests lsblk --fs in blkid.8 for end users. lsblk read information from used db. Reported-by: Andreas Hofmeister Signed-off-by: Karel Zak libblkid/src/verify.c | 76 ++++++++------------------------------------------- misc-utils/blkid.8 | 11 ++++++++ 2 files changed, 22 insertions(+), 65 deletions(-) commit 02887b73ebdbf3a222b87d8f09c65b58b7b9a696 Author: Daniel Trebbien Date: Wed Jan 30 18:49:08 2013 -0500 Implement mempcpy() in terms of memcpy() if mempcpy() is unavailable configure.ac | 1 + include/strutils.h | 3 +++ lib/strutils.c | 7 +++++++ 3 files changed, 11 insertions(+) commit b548a8c9895a36bd238fcdca103a1f24aa99bcbf Author: Benno Schulenberg Date: Sat Jan 26 23:21:07 2013 +0100 textual: improve an error message and a help text * disk-utils/isosize.c: Improve grammar of error message, and in the help text make use of the standard angular brackets for arguments. Signed-off-by: Benno Schulenberg disk-utils/isosize.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 0429455ab6e33eeecc9ed9a791deb4750912ab5e Author: Benno Schulenberg Date: Sat Jan 26 23:17:38 2013 +0100 textual: gettextize an overlooked string * login-utils/islocal.c: Gettexttize the usage message. Signed-off-by: Benno Schulenberg login-utils/islocal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 2be4015b4d3e2fd2803ba9c5846a279b3b1df966 Author: Karel Zak Date: Wed Jan 30 15:59:58 2013 +0100 fstrim: remove unnecessary "were" from verbose message Signed-off-by: Karel Zak sys-utils/fstrim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1429557b069164790b20034cacdefb1cf3e7ee48 Author: Karel Zak Date: Wed Jan 30 15:53:39 2013 +0100 mount: remove ext4 journal=update from man page It's already unsupported. References: http://patchwork.ozlabs.org/patch/123291/ Reported-by: Roman Žilka Signed-off-by: Karel Zak mount-deprecated/mount.8 | 3 --- sys-utils/mount.8 | 3 --- 2 files changed, 6 deletions(-) commit 2e1d40c63f8448c0a8ca2373944ef9d9f9db45ef Author: Benno Schulenberg Date: Mon Jan 21 23:01:09 2013 +0100 textual: fix the example in whereis man page, plus further improvements Signed-off-by: Benno Schulenberg misc-utils/whereis.1 | 83 ++++++++++++++++++++++++++-------------------------- 1 file changed, 41 insertions(+), 42 deletions(-) commit 0a86a1a66cd4a81cd5982ebd2c6e192ca5e47fc2 Author: Karel Zak Date: Wed Jan 30 15:36:21 2013 +0100 dmesg: fix usage() sys-utils/dmesg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 2e4c5b48b6f2158dbcce595497a645a988334469 Author: Karel Zak Date: Wed Jan 30 15:29:12 2013 +0100 fsck: add "--" to usage() Signed-off-by: Karel Zak disk-utils/fsck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c6f095cf594e06bf864ea17e7f00aeb0caae2a0d Author: Benno Schulenberg Date: Wed Jan 23 14:50:02 2013 +0100 textual: slice the help text of lscpu into strips, for translators Signed-off-by: Benno Schulenberg sys-utils/lscpu.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) commit 0ae633154351d1b0181571a629cc69846f055fbe Author: Benno Schulenberg Date: Wed Jan 23 14:16:18 2013 +0100 textual: slice the help text of fsck into strips, for translators Also improve the descriptions a bit and alphabetize the options. Signed-off-by: Benno Schulenberg disk-utils/fsck.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) commit 0c6625a15d39047e008c1638679b6d9e82ff9554 Author: Benno Schulenberg Date: Wed Jan 23 13:48:50 2013 +0100 textual: standardize the reporting of program name plus package version Signed-off-by: Benno Schulenberg disk-utils/fsck.minix.c | 2 +- sys-utils/flock.c | 3 +-- text-utils/more.c | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) commit 4ec32f6a891dfb76b15d3ee0d6be4f3033afc117 Author: Benno Schulenberg Date: Tue Jan 22 11:56:58 2013 +0100 mkfs: indicate that specifying fs-type and fs-options are independent Also standardize and improve the help text, and slice it into strips for ease of later translation maintenance. Signed-off-by: Benno Schulenberg disk-utils/mkfs.8 | 2 +- disk-utils/mkfs.c | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) commit 7ff986d328657c91c64b98a560eefc8abff7640e Author: Benno Schulenberg Date: Tue Jan 22 11:13:07 2013 +0100 doc: remove incorrect spaces from lscpu synopsis in manpage Also normalize text spacing and add some formatting. Signed-off-by: Benno Schulenberg sys-utils/lscpu.1 | 59 +++++++++++++++++++++++++++---------------------------- 1 file changed, 29 insertions(+), 30 deletions(-) commit 52f63b29acca5370b393b45ea69d5f8a01426148 Author: Benno Schulenberg Date: Tue Jan 22 10:57:52 2013 +0100 lscpu: correct the description of --sysroot in help text Signed-off-by: Benno Schulenberg sys-utils/lscpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit de8f54834e9d244e93ce6b4f390bc524046dc644 Author: Benno Schulenberg Date: Tue Jan 22 10:26:31 2013 +0100 fsck: mark file descriptor for -C as optional in help text Also slightly improve the man page. Signed-off-by: Benno Schulenberg disk-utils/fsck.8 | 15 ++++++++------- disk-utils/fsck.c | 4 ++-- 2 files changed, 10 insertions(+), 9 deletions(-) commit 4e0968018b53cd4900d6e77dfdac8493fdd0a6e2 Author: Benno Schulenberg Date: Tue Jan 22 10:08:03 2013 +0100 textual: tiny tweaks of some error messages Signed-off-by: Benno Schulenberg disk-utils/mkswap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit ff21848c64b5ffe9dae15d23045b7433ecfc52db Author: Benno Schulenberg Date: Tue Jan 22 09:49:59 2013 +0100 mkswap: properly pluralize the bad-pages message Signed-off-by: Benno Schulenberg disk-utils/mkswap.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) commit 9e531400758902d01f89d1c32b77e5d41e90b464 Author: Benno Schulenberg Date: Tue Jan 22 09:36:01 2013 +0100 agetty: properly pluralize the reporting of the number of users Signed-off-by: Benno Schulenberg term-utils/agetty.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit e69f2b0c1ac2487cb5c87e45378c255d0d85d198 Author: Karel Zak Date: Wed Jan 30 15:18:22 2013 +0100 fdisk: add support for the Xtensa architecture Based on patch from Chris Zankel . Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit fe98b1805fef4f95b99d244fb5567c24de8f0b33 Author: Karel Zak Date: Mon Jan 28 09:25:08 2013 +0100 fstrim: use human readable sizes in verbose output # fstrim -v /home /home: 513.9 MiB (538828800 bytes) were trimmed Reported-by: member graysky Signed-off-by: Karel Zak sys-utils/fstrim.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) commit 3eed42f342880a339d389ac890a629110f78b6d6 Author: Sami Kerola Date: Tue Jan 22 23:27:13 2013 +0000 column: make usage() translator friendly Signed-off-by: Sami Kerola text-utils/column.c | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) commit 7d36855604f5c0677ba14a33de9251899f4d05fe Author: Sami Kerola Date: Tue Jan 22 23:27:12 2013 +0000 agetty: make usage() translator friendly Signed-off-by: Sami Kerola term-utils/agetty.c | 70 ++++++++++++++++++++++++++--------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) commit 010f6182856160bf942885d0b336f7e62d94f15d Author: Sami Kerola Date: Tue Jan 22 23:27:11 2013 +0000 unshare: make usage() translator friendly Signed-off-by: Sami Kerola sys-utils/unshare.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit 83d9110053e79007d61bdea1c817265dd52c89c8 Author: Sami Kerola Date: Tue Jan 22 23:27:10 2013 +0000 umount: make usage() translator friendly Signed-off-by: Sami Kerola sys-utils/umount.c | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) commit 59a4ed117c35054eb84e3be3996147c5362b5d72 Author: Sami Kerola Date: Tue Jan 22 23:27:09 2013 +0000 losetup: make usage() translator friendly Signed-off-by: Sami Kerola sys-utils/losetup.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) commit c2f0a85671323410c5c372f642d4b1014fb11322 Author: Sami Kerola Date: Tue Jan 22 23:27:08 2013 +0000 hwclock: make usage() change translator friendly The --compare option from 83765871ef0d6c554c46027577648b77c7351a78 is made to be separate fputs() line. Signed-off-by: Sami Kerola sys-utils/hwclock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit fbbc4c88d5273c46db065594493261eb9bb1a2c4 Author: Sami Kerola Date: Tue Jan 22 23:27:07 2013 +0000 dmesg: make usage() translator friendly Signed-off-by: Sami Kerola sys-utils/dmesg.c | 75 ++++++++++++++++++++++++++----------------------------- 1 file changed, 35 insertions(+), 40 deletions(-) commit 540dfebe3e224ab2c06180e36e494c19df1f250a Author: Sami Kerola Date: Tue Jan 22 23:27:06 2013 +0000 rename: make usage() translator friendly Signed-off-by: Sami Kerola misc-utils/rename.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) commit 39b232c169690cfe2156bc0b407189a16474ca41 Author: Sami Kerola Date: Tue Jan 22 23:27:05 2013 +0000 lsblk: make usage() translator friendly Signed-off-by: Sami Kerola misc-utils/lsblk.c | 49 ++++++++++++++++++++++++------------------------- 1 file changed, 24 insertions(+), 25 deletions(-) commit ff2bd506dbb27767b753143f2b90dddab5e9ff1e Author: Sami Kerola Date: Tue Jan 22 23:27:04 2013 +0000 findmnt: make usage() translator friendly Signed-off-by: Sami Kerola misc-utils/findmnt.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) commit 09f5902e1e99a4ad9476e8bb04d4ca150ce0298a Author: Sami Kerola Date: Tue Jan 22 23:27:03 2013 +0000 su-common: make usage() translator friendly Signed-off-by: Sami Kerola login-utils/su-common.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) commit b7e785edafd4744ee48934a476c2b0b824dce655 Author: Sami Kerola Date: Tue Jan 22 23:27:02 2013 +0000 partx: make usage() translator friendly Signed-off-by: Sami Kerola disk-utils/partx.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) commit 26f879edf53503db81739d7b27720e57fabedf18 Author: Sami Kerola Date: Tue Jan 22 23:27:01 2013 +0000 nsenter: make usage() translator friendly Signed-off-by: Sami Kerola sys-utils/nsenter.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) commit 24f109e34218a681589539ecca2f30de515b8767 Author: Sami Kerola Date: Tue Jan 22 23:27:00 2013 +0000 docs: usage function and gettext I made following survey which was sent to all email addresses in po/ directory that had the on-going millenium as time when translator had been active. There are two quite common styles to write a command usage print out, which one you prefer? 1. Each option as separated translatable string. 18 votes 2. Or the whole thing as one big output. 1 vote 3. No preference. 1 vote The questionaire had also free text field asking 'Why do you prefer that?', and here are the answers. [Separately] It is easier to follow changes with the translations. If you change only one line or two, the big string would change to fuzzy and I have to check the whole thing to see what was changed in the original. If the changed line is a single string, the string to check is a lot shorter. [No preference] Usually, if there is no reason to separate strings, better keep them together so that the context is obvious. In the case at hand, it might help if in some language e.g. one translated line is too wide for the screen. This is unlikely, but... OTOH, with this solution, if you change one string the whole translation will be discarded until a translator comes and updates it... [Separately] It may be a bit harder to get the formatting right, but it is much easier in maintenance. With one option changing, the translator immediately sees the spot. And even with a lazy translator, program author will have all the options translated that have not changed at all. [Separately] First one would be more in elegant I believe [Separately] I prefer to have them separately because they don't form a single text paragraph. In other words, they can be translated separately because they are complete and separate "sentences". Of course consistency of format and word choices need to be taken care of, but the fact that the messages appear next to each other in the PO file should be enough. Also if the options are not translated separately, adding or editing one option causes the translation of all options to become fuzzy and if for some reason it isn't checked before next release (happens sometimes), all of them will show untranslated to the user. [Separately] Translations are a lot easier to update that way. If an option is added, removed or changed, only a small amount of text becomes fuzzy. If everything is in one big output, a lot of text becomes fuzzy, and you have to read a lot more text to discover what exactly changed. [Separately] When updating a fuzzy translation, with one big output it's very tedious and error-prone to find out the reason for fuzziness, i.e. what actually has changed in the msgid. [Separately] Way easier to translate, and especially to spot translation updates when one string gets removed, added or modified. [Separately] Makes translation memory more efficient. Some hard terms in the list don't prevent translation of the whole block. Actually the beginning of the strings don't need any translation ta all before [] part. Information about the context can be provided in comments or the context parameter. [Separately] Please consider the case when a part of string, (= msgid) is changed. It is marked as fuzzy in the .po files, we translators have to check whole sentences for the difference between it and previous version. [Separately] Every sentence must be a separate translation unit. [One big output] for performance to ouput strings [Separately] In the second case, if only one option changes (or a new one is added), the translator will see as if all of the options changed, having to find out which one of them is really new or has actually changed. Also, if the translator has had no time to update the string, only one of the options will be shown in the original language (which is arguably ugly, but better than nothing for many users). [Separately] It's easier to translate the options separately using translation memory. [Separately] Easier to separate and see changes [Separately] more translator friendly [Separately] From the user POV I found the separeted version more interesting because if a maintainer can't update the translation fast enough between releases the user will still get the current translated string with the new ones untraslated. From the translator POV the big output will give more context information as one can see the whole command options. With a new string added while the rest is translated having some context can be more difficult. [Separately] Additions to the list or changes to one options means you don't have to check all lines each time. So unless you have very, _very_ good reason you should not output all usage as one big table. This implies also that when large usage output is changed it should be split to small hunks. That may be a bit more work once, but the next change will pay the extrawork off so never hesitate when splitting. Reference: http://www.surveymonkey.com/s/QKZ75HK Signed-off-by: Sami Kerola Documentation/howto-usage-function.txt | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) commit 57dbcf94d8178009ce1f6ebf7b5bbddfe3d26ac8 Author: Zbigniew Jędrzejewski-Szmek Date: Fri Jan 25 16:32:01 2013 +0100 nsenter: respect --exec no matter where it appears Signed-off-by: Zbigniew Jędrzejewski-Szmek Signed-off-by: Karel Zak sys-utils/nsenter.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit 08e86f4c2c4568e1910cbaaeb6eb2b84f71a59d8 Author: Sami Kerola Date: Sun Jan 20 18:04:51 2013 +0000 docs: align nsenter.1 man page with howto-man-page.txt Most visible change; the --target option has a path - explanation table instead a long paragraph. This makes pairing of the information easier for an average user such as me. The rest of the changes are about aligning with howto, i.e., fix spaces after dots, URL & mail address macros, remove inline emphasis where possible, mark directory paths and words with underscore to be line breakable, use optional option syntax from howto, cut line lenght to 80 chars. Signed-off-by: Sami Kerola sys-utils/nsenter.1 | 201 ++++++++++++++++++++++++++++++++-------------------- 1 file changed, 126 insertions(+), 75 deletions(-) commit a167328a7421a23ca0f3d249225f9851d111fc3e Author: Sami Kerola Date: Sun Jan 20 18:04:56 2013 +0000 nsenter: fix indentation Signed-off-by: Sami Kerola include/namespace.h | 55 ++++++++++++++++++++++++++--------------------------- sys-utils/nsenter.c | 29 ++++++++++++++++------------ 2 files changed, 44 insertions(+), 40 deletions(-) commit dfd8b1171be7d9458a18e88e7f925a0da0523135 Author: Sami Kerola Date: Sun Jan 20 18:04:55 2013 +0000 nsenter: drop core when impossible happens Message to user is less informative, but impossible events should be rare so core files are much appriciated for these cases. Signed-off-by: Sami Kerola sys-utils/nsenter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 9905912fa74c037b4da9e277ab08afbafe6fb470 Author: Sami Kerola Date: Sun Jan 20 18:04:54 2013 +0000 nsenter: fix compiler warning nsenter.c:53:2: warning: ISO C forbids empty initializer braces [-pedantic] [kzak@redhat.com: - use initialize .fd to -1] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak sys-utils/nsenter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8b7a7750dd8d13c978eac5042bed7b1aa974b9ba Author: Sami Kerola Date: Sun Jan 20 18:04:53 2013 +0000 nsenter: adjust few error messages The 'neither filename nor target' is changed to use errx() rather than err(), because the errno is indicating success at the time of fatal error which is wrong message for an user. The "cannot open %s" is same string as in other files, making translators to work less. Remaining changes aim to ease understanding what went wrong for a non-programmer audience. Signed-off-by: Sami Kerola sys-utils/nsenter.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit a4c8fe7b8c99dd309d151bf2006b48e8f0bd0e4a Author: Sami Kerola Date: Sun Jan 20 18:04:52 2013 +0000 build-sys: add nsenter to gitignore Signed-off-by: Sami Kerola .gitignore | 1 + 1 file changed, 1 insertion(+) commit 28384adc60dd988f221f093cb27751e4470f7c9b Author: Zbigniew Jędrzejewski-Szmek Date: Mon Jan 21 01:38:05 2013 -0500 nsenter: rename --exec/-e to --no-fork/-F The naming of this option was really confusing. Just rename it for clarity. [kzak@redhat.com: rebase to original code without --all] Signed-off-by: Zbigniew Jędrzejewski-Szmek Signed-off-by: Karel Zak sys-utils/nsenter.1 | 2 +- sys-utils/nsenter.c | 21 +++++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) commit 984e1b7ce90a924ae342169ab8d850d0095f14ab Author: Zbigniew Jędrzejewski-Szmek Date: Mon Jan 21 01:38:01 2013 -0500 nsenter: allow arguments to be specified in any order Allows 'nsenter -mt $PID', which would fail previously. [kzak@redhat.com: - fix open_target_fd() arguments] Signed-off-by: Zbigniew Jędrzejewski-Szmek Signed-off-by: Karel Zak sys-utils/nsenter.c | 55 ++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 46 insertions(+), 9 deletions(-) commit e421313dc253856af67cc267d2b33f856f18b0e3 Author: Karel Zak Date: Fri Jan 25 12:05:26 2013 +0100 textual: use UTIL_LINUX_VERSION everywhere Signed-off-by: Karel Zak disk-utils/blockdev.c | 3 +-- disk-utils/elvtune.c | 3 +-- disk-utils/fdformat.c | 3 +-- disk-utils/fsck.c | 2 +- disk-utils/mkfs.bfs.c | 2 +- disk-utils/mkfs.c | 6 ++---- disk-utils/mkfs.cramfs.c | 3 +-- fdisks/sfdisk.c | 3 +-- misc-utils/cal.c | 3 +-- misc-utils/getopt.c | 4 +--- misc-utils/kill.c | 2 +- misc-utils/logger.c | 3 +-- misc-utils/look.c | 4 +--- misc-utils/lsblk.c | 3 +-- misc-utils/mcookie.c | 4 +--- misc-utils/namei.c | 3 +-- misc-utils/uuidd.c | 4 +--- misc-utils/uuidgen.c | 4 +--- misc-utils/whereis.c | 4 +--- misc-utils/wipefs.c | 3 +-- mount-deprecated/umount.c | 3 +-- 21 files changed, 22 insertions(+), 47 deletions(-) commit 5cc224f55217e5ce50d5693ef34f604c0929466d Author: Benno Schulenberg Date: Mon Feb 6 17:48:25 2012 +0100 renice: accept also -V for --version, and document it Also improve the man page. Signed-off-by: Benno Schulenberg sys-utils/renice.1 | 66 +++++++++++++++++++++++++----------------------------- sys-utils/renice.c | 11 ++++----- 2 files changed, 36 insertions(+), 41 deletions(-) commit ae3ca2aacc440627c69e5962b6bbb916a380da9c Author: Benno Schulenberg Date: Mon Feb 6 16:44:23 2012 +0100 renice: correct the usage synopsis, and improve help text Signed-off-by: Benno Schulenberg sys-utils/renice.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) commit 217615e8ed6041fae5e877d76b91895bfad6d96d Author: Benno Schulenberg Date: Mon Feb 6 16:37:16 2012 +0100 textual: standardize reporting of program name plus package version Signed-off-by: Benno Schulenberg disk-utils/blockdev.c | 2 +- disk-utils/elvtune.c | 3 ++- disk-utils/mkfs.c | 5 +++-- misc-utils/blkid.c | 5 +++-- mount-deprecated/umount.c | 3 ++- sys-utils/flock.c | 3 ++- sys-utils/rtcwake.c | 3 ++- sys-utils/tunelp.c | 3 ++- text-utils/more.c | 3 ++- 9 files changed, 19 insertions(+), 11 deletions(-) commit 8c219bf463dbbae412767d269bff1cdd4e4bf4a5 Author: Benno Schulenberg Date: Mon Feb 6 16:11:27 2012 +0100 textual: gettextize several overlooked messages Also improve the clarity of some of them. Signed-off-by: Benno Schulenberg disk-utils/mkswap.c | 10 +++++----- misc-utils/rename.c | 3 +-- schedutils/chrt.c | 4 ++-- schedutils/ionice.c | 4 ++-- schedutils/taskset.c | 2 +- sys-utils/hwclock.c | 2 +- term-utils/agetty.c | 26 +++++++++++++------------- 7 files changed, 25 insertions(+), 26 deletions(-) commit c602fe5a8ef3e17e3042896571e6ad15a665db31 Author: Benno Schulenberg Date: Mon Feb 6 16:05:35 2012 +0100 textual: tag two bug messages as "internal error" Signed-off-by: Benno Schulenberg schedutils/taskset.c | 3 +-- term-utils/ttymsg.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) commit 48899b9eae2b11fd0f8527e310d16690b2603653 Author: Benno Schulenberg Date: Mon Feb 6 16:04:33 2012 +0100 textual: remove inconsistent periods from two error messages Signed-off-by: Benno Schulenberg sys-utils/fstrim.c | 2 +- text-utils/col.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 095345d07d847436aa1cc2c3efd679603e0bc1fb Author: Benno Schulenberg Date: Mon Feb 6 16:01:48 2012 +0100 textual: fix a few typos in some of the usage help texts Also improve clarity of some other lines of those texts. Signed-off-by: Benno Schulenberg misc-utils/look.c | 6 +++--- misc-utils/whereis.c | 8 ++++---- text-utils/more.c | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) commit 5695d6a67e7499abb3fd4118c4197e2ae95cb6bb Author: Sami Kerola Date: Sat Jan 19 00:09:11 2013 +0000 tests: sort commands strings The list is starting to be long enough that making any order to it seems like right thing to do. Signed-off-by: Sami Kerola tests/commands.sh | 105 ++++++++++++++++++++++-------------------------------- 1 file changed, 43 insertions(+), 62 deletions(-) commit 3b0fa2fa22d5f04b3d50de7d549b81da73a4063b Author: Sami Kerola Date: Sat Jan 19 00:09:10 2013 +0000 tests: add ipcmk(1) and ipcrm(1) checks Signed-off-by: Sami Kerola Signed-off-by: Karel Zak tests/commands.sh | 2 ++ tests/expected/ipcs/mk-rm-msg | 2 ++ tests/expected/ipcs/mk-rm-sem | 2 ++ tests/expected/ipcs/mk-rm-shm | 2 ++ tests/ts/ipcs/functions.sh | 17 +++++++++++++++++ tests/ts/ipcs/mk-rm-msg | 36 ++++++++++++++++++++++++++++++++++++ tests/ts/ipcs/mk-rm-sem | 36 ++++++++++++++++++++++++++++++++++++ tests/ts/ipcs/mk-rm-shm | 36 ++++++++++++++++++++++++++++++++++++ 8 files changed, 133 insertions(+) commit bb9013177c51522f395da122659ed12c336f9167 Author: Sami Kerola Date: Sat Jan 19 00:09:09 2013 +0000 dmesg: parse level when --color is used When user runs with --color it should not need to be combined with filtering per level or facility, or decoding. Signed-off-by: Sami Kerola sys-utils/dmesg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a94c2240a734a88d1cbb4b8b1d29a705979365a4 Author: Sami Kerola Date: Sat Jan 19 00:09:08 2013 +0000 tests: add whereis(1) check Signed-off-by: Sami Kerola tests/commands.sh | 1 + tests/expected/misc/whereis | 1 + tests/ts/misc/whereis | 28 ++++++++++++++++++++++++++++ 3 files changed, 30 insertions(+) commit ef316cb77e20fe62f3ea47c9c64f657e2e904e00 Author: Sami Kerola Date: Sat Jan 19 00:09:07 2013 +0000 tests: add isosize(1) check Signed-off-by: Sami Kerola Signed-off-by: Karel Zak tests/commands.sh | 1 + tests/expected/isosize/print-size | 1 + tests/ts/isosize/print-size | 24 ++++++++++++++++++++++++ tests/ts/isosize/sample.iso.gz | Bin 0 -> 632 bytes 4 files changed, 26 insertions(+) commit f31adc8f76e17050e7f9b28f72591d8cdf65b478 Author: Sami Kerola Date: Sat Jan 19 00:09:06 2013 +0000 docs: mkswap.8: recommend fallocate(1) There is no reason why fallocate(1) should not be preferred instead of 'dd if=/dev/zero of=swapfile' with it's cumbersome size spec. Signed-off-by: Sami Kerola Signed-off-by: Karel Zak disk-utils/mkswap.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 724454828f5ed05f2fcf63691b06d978bc46e790 Author: Sami Kerola Date: Sat Jan 19 00:09:05 2013 +0000 tests: add fallocate(1) check Signed-off-by: Sami Kerola tests/commands.sh | 1 + tests/expected/misc/fallocate | 1 + tests/ts/misc/fallocate | 25 +++++++++++++++++++++++++ 3 files changed, 27 insertions(+) commit b74fe86e1d7c1d73903fbd81267dbc8ef3d2956b Author: Sami Kerola Date: Sat Jan 19 00:09:04 2013 +0000 tests: add setarch(8) check Signed-off-by: Sami Kerola tests/commands.sh | 1 + tests/expected/misc/setarch | 1 + tests/ts/misc/setarch | 23 +++++++++++++++++++++++ 3 files changed, 25 insertions(+) commit ee65de0b079750b90dfbec843bd6a386db3aaf56 Author: Sami Kerola Date: Sat Jan 19 00:09:03 2013 +0000 tests: add setsid(1) check Signed-off-by: Sami Kerola tests/commands.sh | 1 + tests/expected/misc/setsid | 1 + tests/ts/misc/setsid | 23 +++++++++++++++++++++++ 3 files changed, 25 insertions(+) commit ae6288da84ff6e6c70d4a9719b8935995022f65e Author: Sami Kerola Date: Sat Jan 19 00:09:02 2013 +0000 dmesg: add boundary check to facility & level array usage The dmesg should not crash while --decode'ing message facilities and levels to readable string even if the values are out of bounds. Signed-off-by: Sami Kerola sys-utils/dmesg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit e3593244f3393fcc80cbcab7f3e46f5e93437914 Author: Sami Kerola Date: Sat Jan 19 00:09:01 2013 +0000 tests: add dmesg(1) check Signed-off-by: Sami Kerola tests/commands.sh | 1 + tests/expected/dmesg/console-levels | 104 +++++++++++++++++++++++++++++++++++ tests/expected/dmesg/decode | 105 ++++++++++++++++++++++++++++++++++++ tests/expected/dmesg/delta | 105 ++++++++++++++++++++++++++++++++++++ tests/expected/dmesg/facilities | 96 +++++++++++++++++++++++++++++++++ tests/ts/dmesg/console-levels | 25 +++++++++ tests/ts/dmesg/decode | 23 ++++++++ tests/ts/dmesg/delta | 23 ++++++++ tests/ts/dmesg/facilities | 25 +++++++++ tests/ts/dmesg/input | 105 ++++++++++++++++++++++++++++++++++++ 10 files changed, 612 insertions(+) commit f49b9ec78088e8fd54b2a28768c5513acd171ad5 Author: Sami Kerola Date: Sat Jan 19 00:09:00 2013 +0000 tests: add line(1) check Signed-off-by: Sami Kerola tests/commands.sh | 2 ++ tests/expected/misc/line | 1 + tests/ts/misc/line | 24 ++++++++++++++++++++++++ 3 files changed, 27 insertions(+) commit 8e4b5aa9279c538a811063a11b75996f834c1f05 Author: Sami Kerola Date: Sat Jan 19 00:08:59 2013 +0000 tests: add more(1) check [kzak@redhat.com: use test_more program rather than directly more(1)] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak tests/commands.sh | 2 ++ tests/expected/more/regexp | 4 ++++ tests/expected/more/squeeze | 3 +++ tests/ts/more/regexp | 24 ++++++++++++++++++++++++ tests/ts/more/squeeze | 24 ++++++++++++++++++++++++ 5 files changed, 57 insertions(+) commit 951666e9f337974a5ffa5097b5613881a23ddd47 Author: Karel Zak Date: Thu Jan 24 19:27:12 2013 +0100 more: allow to compile as non-interactive test_more program Signed-off-by: Karel Zak text-utils/Makemodule.am | 6 ++++++ text-utils/more.c | 7 +++++++ 2 files changed, 13 insertions(+) commit 53b22add73edc34636068fd7fecfe7da7ff9eb78 Author: Karel Zak Date: Thu Jan 24 19:23:56 2013 +0100 build-sys: add --disable-{more,ul,pg} Signed-off-by: Karel Zak configure.ac | 29 +++++++++++++++++++++++++- text-utils/Makemodule.am | 54 ++++++++++++++++++++++++++++-------------------- 2 files changed, 60 insertions(+), 23 deletions(-) commit 916268221039ff2e1c05a695f5a5ddb8413b0360 Author: Karel Zak Date: Thu Jan 24 19:22:40 2013 +0100 build-sys: support list of variables for UL_REQUIRES_HAVE macro Signed-off-by: Karel Zak m4/ul.m4 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) commit 2464558fdfafeb47dd6d8c2efecd79eb8e349a17 Author: Sami Kerola Date: Sat Jan 19 00:08:57 2013 +0000 tests: add ionice(1) check Signed-off-by: Sami Kerola tests/commands.sh | 1 + tests/expected/misc/ionice | 9 +++++++++ tests/ts/misc/ionice | 28 ++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+) commit 2613a5dd1431954f7ee7a160b98fac9cce12ea85 Author: Sami Kerola Date: Sat Jan 19 00:08:56 2013 +0000 tests: add ul(1) check Signed-off-by: Sami Kerola tests/commands.sh | 1 + tests/expected/misc/ul | 3 +++ tests/ts/misc/ul | 24 ++++++++++++++++++++++++ 3 files changed, 28 insertions(+) commit 29bbf5abd52e71dd3ec21d590d4f7bd47ef7fe36 Author: Sami Kerola Date: Sat Jan 19 00:08:55 2013 +0000 tests: add tailf(1) check Signed-off-by: Sami Kerola tests/commands.sh | 1 + tests/expected/tailf/simple | 2 ++ tests/ts/tailf/simple | 29 +++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+) commit 0dcb8fe8cbff7bba0848bf8b304be202a5d31be3 Author: Sami Kerola Date: Sat Jan 19 00:08:54 2013 +0000 tests: add mcookie(1) check Signed-off-by: Sami Kerola tests/commands.sh | 1 + tests/expected/misc/mcookie | 1 + tests/ts/misc/mcookie | 26 ++++++++++++++++++++++++++ 3 files changed, 28 insertions(+) commit c5565210b6824b70a603ceef696ac29f5dbb9878 Author: Sami Kerola Date: Sat Jan 19 00:08:53 2013 +0000 tests: add getopt(1) check Signed-off-by: Sami Kerola tests/commands.sh | 1 + tests/expected/misc/getopt | 9 +++++++++ tests/ts/misc/getopt | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) commit 6d0b6f70e0b736295aa700ae668b69f720f610e2 Author: Sami Kerola Date: Sat Jan 19 00:08:52 2013 +0000 tests: add utmpdump(1) check Signed-off-by: Sami Kerola tests/commands.sh | 2 ++ tests/expected/utmpdump/to-binary | Bin 0 -> 3840 bytes tests/expected/utmpdump/to-text | 10 ++++++++++ tests/ts/utmpdump/binary | Bin 0 -> 3840 bytes tests/ts/utmpdump/text | 10 ++++++++++ tests/ts/utmpdump/to-binary | 23 +++++++++++++++++++++++ tests/ts/utmpdump/to-text | 23 +++++++++++++++++++++++ 7 files changed, 68 insertions(+) commit 5390fbe958eff8a4adc9a52448be22f8fb981de4 Author: Sami Kerola Date: Sat Jan 19 00:08:51 2013 +0000 tests: add rev(1) check Fairly lenghty input line tries to ensure realloc segment in code is hit at least once. Signed-off-by: Sami Kerola tests/commands.sh | 1 + tests/expected/misc/rev | 1 + tests/ts/misc/rev | 24 ++++++++++++++++++++++++ 3 files changed, 26 insertions(+) commit 5acc0e0c57495222902b51350394e3ad157311fa Author: Sami Kerola Date: Sat Jan 19 00:08:50 2013 +0000 build-sys: add gcov files to .gitignore Signed-off-by: Sami Kerola .gitignore | 3 +++ 1 file changed, 3 insertions(+) commit f5152f1aadc5834467f8d7e00d382f1057eb06d7 Author: Sami Kerola Date: Wed Jan 9 19:36:56 2013 +0000 include: add missing values to sysfs_cxt initializer definition Signed-off-by: Sami Kerola include/sysfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 96f6ad889be9af77fb20197e1d02a196cd299f64 Author: Karel Zak Date: Thu Jan 24 16:27:04 2013 +0100 ipcmk: use random_get_bytes() to generate IPC keys Signed-off-by: Karel Zak sys-utils/ipcmk.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) commit e66ba1bfaf070682e26c1a53e64af1088fea56bc Author: Karel Zak Date: Thu Jan 17 18:48:16 2013 +0100 cal: don't mix ncurses output functions and printf() Fedora 18 (ncurses-libs-5.9-7.20121017, glibc-2.16-28): $ cal | cat Actual results: January 2013 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 1213 14 15 16 17 18 1920 21 22 23 24 25 2627 28 29 30 31 Not sure where is the problem, but it's too fragile to mix two output methods in one code. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=896447 Signed-off-by: Karel Zak misc-utils/cal.c | 43 +++++++++++++++++++++++++++---------------- 1 file changed, 27 insertions(+), 16 deletions(-) commit 620d3f2dc75e38e43de1ba980b9842c02d78efe1 Author: Karel Zak Date: Thu Jan 17 13:30:33 2013 +0100 nsenter: improve optional args in usage() and man page Signed-off-by: Karel Zak sys-utils/nsenter.1 | 20 +++++++++++--------- sys-utils/nsenter.c | 20 ++++++++++---------- 2 files changed, 21 insertions(+), 19 deletions(-) commit c91280a4bd738eba0f19c8d3714da2f319dcd602 Author: Eric W. Biederman Date: Wed Jan 16 16:36:32 2013 -0800 unshare,nsenter: Move the old libc handling into a common header namespace.h Move the defitions of CLONE_NEWNS, CLONE_NEWUTS, CLONE_NEWIPC, CLONE_NEWNET, CLONE_NEWUSER, CLONE_NEWPID into namespace.h in case sched.h does not provide those definitions. Are there systems around that are old enough that still need this? Move the definitions of unshare() and setns() into namespace.h for supporting old versions of libc that does not provice these. I have tested this support with setns as I still have systems old enough that glibc does not wrap setns. Signed-off-by: "Eric W. Biederman" include/namespace.h | 43 +++++++++++++++++++++++++++++++++++++++++++ sys-utils/nsenter.c | 28 +--------------------------- sys-utils/unshare.c | 29 +---------------------------- 3 files changed, 45 insertions(+), 55 deletions(-) commit 0d3ec8603b5ac6baf6068135ef95aa70c14b9e07 Author: Eric W. Biederman Date: Wed Jan 16 16:35:53 2013 -0800 nsenter: Replace a bare strtoul with strtoul_or_err This is shorter code and makes things a bit clearer and less error prone if anyone happens to copy the code. Signed-off-by: "Eric W. Biederman" sys-utils/nsenter.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) commit f9bbdea6e144d7b6b2c6b5e3468265ec8220535d Author: Eric W. Biederman Date: Wed Jan 16 16:35:12 2013 -0800 nsenter: Add const to declarations where possible. Make it clear where functions do not modify their arguments. Signed-off-by: "Eric W. Biederman" sys-utils/nsenter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit ebbc87cdea64b72946c765011619d1c672e0544b Author: Eric W. Biederman Date: Wed Jan 16 16:34:44 2013 -0800 nsenter: Properly spell significant in a comment. Signed-off-by: "Eric W. Biederman" sys-utils/nsenter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c9515f86d461e8d341b9c222ffba7f4cf5e65a51 Author: Eric W. Biederman Date: Wed Jan 16 16:34:17 2013 -0800 nsenter: Enhance waiting for a child process In the case of a pid namespace we need to fork a child process instead of calling exec. Move all of that logic out of line into a function continue_as_child, making the logic of the primary case easier to understand. Update the logic for waiting for a child process to suspend ourselves when the child processes suspends and to continue the child process when we are unsuspsended. This supports the bash suspend command and various editors that suspend themselves. If the child process exits with a signal update the logic to run kill(getpid(), WTERMSIG(status)) so the caller sees the same exit code that nsenter observed. There will always be permission to send signals to our children and the tty is not changing so there is no need for the intermediate process to forward signals to it's child. Signed-off-by: "Eric W. Biederman" sys-utils/nsenter.c | 48 +++++++++++++++++++++++++++++++++++------------- 1 file changed, 35 insertions(+), 13 deletions(-) commit bc7f9b95c04a8a6bb60cf2e58df47567f30cb989 Author: Eric W. Biederman Date: Fri Jan 11 14:53:34 2013 -0800 unshare: Add support for the pid and user namespaces - Update the unshare application to support the pid and user namespaces. - Update the man page for the new options - Fix typo in the man page where UTS was spelled UTC. - Remove the vestigal support for running a suid unshare. After unsharing a user namespace setuid(getuid()) won't work because no uid or gid mappings have been specified yet. So it is just easier not to have any support for running suid. Signed-off-by: "Eric W. Biederman" sys-utils/unshare.1 | 19 +++++++++++++++---- sys-utils/unshare.c | 27 ++++++++++++++++++--------- 2 files changed, 33 insertions(+), 13 deletions(-) commit f8aa8e9495dd89f39b7d0db5aab431cac02ea519 Author: Eric W. Biederman Date: Fri Jan 11 14:46:38 2013 -0800 nsenter: new command (light wrapper around setns) Inspired by unshare, nsenter is a simple wrapper around setns that allows running a new process in the context of an existing process. Full paths may be specified to the namespace arguments so that namespace file descriptors may be used wherever they reside in the filesystem. Signed-off-by: "Eric W. Biederman" configure.ac | 11 ++ sys-utils/Makemodule.am | 7 ++ sys-utils/nsenter.1 | 101 +++++++++++++++++ sys-utils/nsenter.c | 286 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 405 insertions(+) commit ef6acdb81c3610ccf4da25db5728277b5a162e78 Author: Karel Zak Date: Thu Jan 17 13:00:44 2013 +0100 Revert "unshare: support the switching of namespaces" The functionality will be replaced with nsenter from Eric W. Biederman. This reverts commit 4bbe8099390d528018890efa914e268de3c4b44b. sys-utils/Makemodule.am | 1 - sys-utils/unshare.1 | 36 ++++++++---------------- sys-utils/unshare.c | 75 +++++++++++-------------------------------------- 3 files changed, 29 insertions(+), 83 deletions(-) commit 31f67453a39bd8b7ce957adc8bcb246d7d4c4bd0 Author: Karel Zak Date: Thu Jan 17 12:02:03 2013 +0100 findmnt: use tree output in more cases It seems that we can create the tree also if output is restricted by fstype or options filter, for example $ findmnt -t cgroups Signed-off-by: Karel Zak misc-utils/findmnt.c | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) commit b4ec4573dfa41b81668e141921cf00e6123234bc Author: Karel Zak Date: Tue Jan 15 16:09:07 2013 +0100 mount: make --verbose more verbose about propagation Signed-off-by: Karel Zak sys-utils/mount.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) commit 56a21c9336531e8c72406b3366fe35d951ad532a Author: Karel Zak Date: Tue Jan 15 16:08:41 2013 +0100 libmount: keep MS_PROPAGATION flags in mnt_context_set_mflags() result Signed-off-by: Karel Zak libmount/src/context.c | 10 ++++++++++ 1 file changed, 10 insertions(+) commit f5ae1d706e37f83e0cc9f40cadf4e4410e42247a Author: Karel Zak Date: Tue Jan 15 15:53:46 2013 +0100 mount: write success messages to stdout Signed-off-by: Karel Zak sys-utils/mount.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit a3ab5f52cef15d2af0c84283abfba143759d61e6 Author: Karel Zak Date: Tue Jan 15 14:25:23 2013 +0100 tests: add/improve mount shared-subtree tests Signed-off-by: Karel Zak tests/expected/mount/shared-subtree-bind-shared | 1 + tests/expected/mount/shared-subtree-make-private | 2 +- .../expected/mount/shared-subtree-make-unbindable | 2 +- tests/expected/mount/shared-subtree-mount-private | 1 + .../expected/mount/shared-subtree-mount-private-ro | 2 + tests/ts/mount/shared-subtree | 61 +++++++++++++++------- 6 files changed, 48 insertions(+), 21 deletions(-) commit be6904b92f51bb5579bec97934417fce00a0e5a0 Author: Karel Zak Date: Tue Jan 15 14:23:54 2013 +0100 mount: support multiple MS_PROPAGATION flags in one mount(8) exec Signed-off-by: Karel Zak sys-utils/mount.8 | 44 ++++++++++++++++++++++++++++++++------ sys-utils/mount.c | 64 ++++++++++++++++++++++++++++++++----------------------- 2 files changed, 75 insertions(+), 33 deletions(-) commit 6498ece0e777ae1aeab1319a21abec7457fb940f Author: Karel Zak Date: Tue Jan 15 13:55:29 2013 +0100 libmount: allow to use propagation flags in fstab Linux kernel does not allow to change more than one propagation flag by one mount(2) syscall. The flags also cannot be mixed with another mount options. It means that the propagation flags cannot be stored in /etc/fstab, manual "mount --make-* " is always necessary after successful mount. Painful... This patch implements additional mount(2) after previous successful mount(2) (or exec /sbin/mount.). For example: mount /dev/sda1 /A -o private,unbindable,ro or fstab entry: /dev/sda1 /A auto ro,private,unbindable is implemented by three mount(2) calls: - 1st mounts /dev/sda1 with MS_RDONLY - 2nd sets MS_PRIVATE flag - 3rd sets MS_UNBINDABLE flag. It's the same as as to manually call: mount /dev/sda1 /A -o ro mount --make-private /A mount --make-unbindable /A This solution is not atomic, and umount(2) is not called if propagation flags are not successfully applied, only error is returned. This change does not affect libmount API, so one beautiful day when mount(2) syscall will be improved we can drop this nasty patch. Signed-off-by: Karel Zak libmount/src/context.c | 47 +++++++++-- libmount/src/context_loopdev.c | 3 +- libmount/src/context_mount.c | 177 ++++++++++++++++++++++++++++++++++++++--- libmount/src/libmount.h.in | 1 + libmount/src/mountP.h | 16 ++++ libmount/src/optmap.c | 10 +++ 6 files changed, 234 insertions(+), 20 deletions(-) commit 741587f3e97ee8b610c54860ccc40b351aef14ee Author: Karel Zak Date: Tue Jan 15 11:14:03 2013 +0100 kill: add note about threads to the man page Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=846790 Signed-off-by: Karel Zak misc-utils/kill.1 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) commit 3e373967ec06d246ffede78fd78d078df3b770ff Author: Karel Zak Date: Mon Jan 14 14:50:50 2013 +0100 findmnt: make --target usable with bind mounts The --target functionality should be enabled only if previous regular search found nothing to avoid collisions with bind mounts, because to detect mountpoint we use traditional child / parent stat.st_dev comparison which does not work for bind mounts (--bind /A /A). Signed-off-by: Karel Zak misc-utils/findmnt.c | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) commit 624f2b47c39256ce1bddb23d53df612dbf2fe65e Author: Karel Zak Date: Thu Jan 10 15:59:16 2013 +0100 findmnt: add PROPAGATION column Signed-off-by: Karel Zak misc-utils/findmnt.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) commit 4b9d67a23d8db22ad6772cdb7af94b02f9a59b22 Author: Karel Zak Date: Thu Jan 10 15:58:52 2013 +0100 libmount: add mnt_fs_get_propagation() Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 1 + libmount/src/fs.c | 35 +++++++++++++++++++++++++++++++++++ libmount/src/libmount.h.in | 2 ++ libmount/src/libmount.sym | 1 + 4 files changed, 39 insertions(+) commit 9238e0fa33ebc28339c6df80850f93d7c7f11571 Author: Karel Zak Date: Thu Jan 10 14:59:39 2013 +0100 findmnt: add ID column Signed-off-by: Karel Zak misc-utils/findmnt.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit 327ea85a73dea98632ebda19b831062463dd544b Author: Karel Zak Date: Thu Jan 10 14:58:05 2013 +0100 findmnt: add OPT-FIELDS column Signed-off-by: Karel Zak misc-utils/findmnt.c | 5 +++++ 1 file changed, 5 insertions(+) commit e47a19312ff91de3c4ead99714b8bfa06139809e Author: Ondrej Oprala Date: Thu Jan 10 12:35:08 2013 +0100 libmount: read optional mountinfo fields [kzak@redhat.com: - rename struct member and functions from "propagation" to "optional fields" - split the original patch - fix parser] Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 1 + libmount/src/fs.c | 14 ++++++++++++++ libmount/src/libmount.h.in | 3 +++ libmount/src/libmount.sym | 5 +++++ libmount/src/mountP.h | 1 + libmount/src/tab_parse.c | 2 ++ 6 files changed, 26 insertions(+) commit 0770effc00447bb1a5699fd6e7075acb1d6eb992 Author: Ondrej Oprala Date: Thu Jan 10 12:07:29 2013 +0100 libmount: fix regression test helper Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak libmount/src/context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit fba712149cdebad4213201147f32175e8df838f7 Author: Karel Zak Date: Thu Jan 10 11:40:21 2013 +0100 libblkid: make btrfs magics more readable Signed-off-by: Karel Zak libblkid/src/superblocks/btrfs.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) commit 3a3dcbdc5a4aadec53724c59a02f8abb299dd7c3 Author: Sami Kerola Date: Wed Jan 9 22:44:06 2013 +0000 build-sys: cleanup --enable-most-builds list Signed-off-by: Sami Kerola configure.ac | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) commit bc6d9834035a3581a1f55794633950e087704e9c Author: Sami Kerola Date: Wed Jan 9 22:44:05 2013 +0000 build-sys: ignore chkdupexe Signed-off-by: Sami Kerola misc-utils/.gitignore | 1 + 1 file changed, 1 insertion(+) commit fb26bfaf6b3da03882a91a14d19ab27ba0076b02 Author: Sami Kerola Date: Wed Jan 9 22:44:04 2013 +0000 build-sys: add files to distribution To fix 'make distcheck' compilation. The fdisks/Makemodule.am has one new entry 'dos_part_types.h', the rest is about sorting the list. Signed-off-by: Sami Kerola fdisks/Makemodule.am | 7 ++++--- include/Makemodule.am | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) commit d4a276491269b6502c15e0089fba6b616f5c5df8 Author: Goffredo Baroncelli Date: Wed Jan 9 22:14:43 2013 +0100 libblkid: add support for btrfs backup superblock Btrfs has three superblock. The first one is placed at 64KB, the second one at 64MB, the third one at 256GB. If the first superblock is valid except that the "magic field" is zeroed, btrfs skips the check of the other superblocks. If the first superblock is fully invalid, btrfs checks for the other superblock. So zeroing the first superblock "magic field" at the beginning seems that the filesystem is wiped. But when the first superblock is overwritten (eg by another filesystem), then the other two superblock may be considered valid, and the filesystem may resurrect. This patch allow to find and wipe the other btrfs superblocks signature. Signed-off-by: Karel Zak libblkid/src/superblocks/btrfs.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit f1107b4a873f6c2dcfcaf0135efc72badb46bc77 Author: Ondrej Oprala Date: Fri Dec 21 13:04:04 2012 +0100 hexdump: do not segfault when iterating over an empty format string Signed-off-by: Ondrej Oprala tests/commands.sh | 1 + tests/expected/hexdump/empty-format | 1 + tests/ts/hexdump/empty-format | 26 ++++++++++++++++++++++++++ text-utils/parse.c | 16 +++++++++------- 4 files changed, 37 insertions(+), 7 deletions(-) commit 701c69617e50ed8c15bc2c5bc7bf6eee1cb04b23 Author: Ondrej Oprala Date: Fri Dec 21 14:45:46 2012 +0100 mount: add support for x-mount.mkdir[=] option If the target directory (mountpoint) does not exist then mount(8) will create it before mount. is executed or mount(2) syscall is called. Co-Author: Karel Zak Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak Documentation/TODO | 2 -- libmount/src/context.c | 52 +++++++++++++++++++++++++++ sys-utils/mount.8 | 7 ++++ tests/expected/libmount/context-x-mount.mkdir | 1 + tests/ts/libmount/context | 10 ++++++ 5 files changed, 70 insertions(+), 2 deletions(-) commit fd73f46830fb14ef1da158b47241ee7673b905cd Author: Karel Zak Date: Wed Jan 9 18:05:08 2013 +0100 libmount; add recursive mkdir Signed-off-by: Karel Zak libmount/src/mountP.h | 3 +++ libmount/src/utils.c | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) commit f3242e065af2436ebf84c11e49101cce32a3a18b Author: Karel Zak Date: Wed Jan 9 15:41:46 2013 +0100 mount: document x-* options Signed-off-by: Karel Zak sys-utils/mount.8 | 7 +++++++ 1 file changed, 7 insertions(+) commit 1707b9b104c4fb55eaa37581d6d7355a20cd9576 Author: Richard Tollerton Date: Thu Jan 3 00:05:34 2013 -0600 mount: Fix -t in listing mode when run as non-root Presently, libmount-mount completely prohibits the use of -t by non-root users. This breaks using -t in listing mode as a user, which represents a regression against mount-deprecated, macosx and presumably *BSD. This commit fixes the issue by deferring the mnt_context_is_restricted check for -t until we know we're not in listing mode. Signed-off-by: Rich Tollerton sys-utils/mount.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit b4ee2caccac53a180cafbb605bd5c2b584730386 Author: Karel Zak Date: Wed Jan 9 14:44:59 2013 +0100 mkfs.minix: fix compiler warning [-Wformat] Signed-off-by: Karel Zak disk-utils/mkfs.minix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit af269d901d2133bdc45a2f879055fd2c28100b93 Author: Phillip Susi Date: Wed Jan 2 11:40:46 2013 -0500 libblkid: add missing promise raid metadata locations There are some additional locations where dmraid can find and use pdc raid metadata that libblkid was not checking. libblkid/src/superblocks/promise_raid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 886330478b7907bf63b23630a79908e12b888e44 Author: Dave Reisner Date: Wed Jan 2 09:11:10 2013 -0500 mount: document options for debugfs Since 3.4, debugfs allows uid, gid, and mode options. Signed-off-by: Dave Reisner sys-utils/mount.8 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) commit 479d50bd651f2f63611bb30186f85451a6cbf01e Author: Dave Reisner Date: Sun Dec 30 15:00:23 2012 -0500 build-sys: invert flag for sulogin emergency mount This should be disabled by default. Signed-off-by: Dave Reisner configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit e0b06769888484bf2ea047d2fc8a33a3f549b527 Author: Sami Kerola Date: Fri Dec 28 21:23:43 2012 +0000 losetup: fix declarations [smatch scan] sys-utils/losetup.c:309:2: error: 'for' loop initial declarations are only allowed in C99 mode sys-utils/losetup.c:374:2: error: 'for' loop initial declarations are only allowed in C99 mode Signed-off-by: Sami Kerola sys-utils/losetup.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) commit d96b743f3fc1c5acb21dcfd4cb7d8ee25070b93a Author: Sami Kerola Date: Fri Dec 28 21:23:42 2012 +0000 swapon: default to --show if nothing is requested Proposed-by: Karel Zak References: http://www.spinics.net/lists/util-linux-ng/msg07301.html Signed-off-by: Sami Kerola sys-utils/swapon.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) commit fce1a348073f0b621ee60db5dff424715c064516 Author: Sami Kerola Date: Fri Dec 28 21:23:41 2012 +0000 ipcs: fix spacing in summary output Change 56692a6 introduced spacing error to --summary printing. Signed-off-by: Sami Kerola sys-utils/ipcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b4ff2f54d794be5ca54cd40bcbbce2096f22d177 Author: Sami Kerola Date: Fri Dec 28 21:23:40 2012 +0000 script: search shell from path, when necessary Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=518532 Signed-off-by: Sami Kerola term-utils/script.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) commit 295dd90226852a1f3b3dd108ed01dd1d7da92240 Author: Mike Frysinger Date: Wed Dec 26 15:10:29 2012 -0500 flock: improve usage strings The current examples miss the best usage of all: specifying the command and its arguments directly on the command line. Add that to both the program usage and the man page. Signed-off-by: Mike Frysinger sys-utils/flock.1 | 15 +++++++++++++-- sys-utils/flock.c | 6 +++--- 2 files changed, 16 insertions(+), 5 deletions(-) commit f5664477cbc7c5f94bf6e640adf01e47880a9b12 Author: Werner Fink Date: Tue Jan 8 15:38:40 2013 +0100 include/ttyutils: add default chardata this one moves the init_chardata to include/ttyutils.h as well as to lib/include/ttyutils.c. Also the macros CTL/CTRL are fixed in agetty.c and sulogin.c to use the XOR variant CTL. [kzak@redhat.com: use macro rather than global variable for default chardata] Signed-off-by: Werner Fink Signed-off-by: Karel Zak include/ttyutils.h | 24 ++++++++++++++++++++++++ login-utils/sulogin-consoles.c | 8 +------- login-utils/sulogin-consoles.h | 2 +- login-utils/sulogin.c | 4 ---- term-utils/agetty.c | 27 ++------------------------- 5 files changed, 28 insertions(+), 37 deletions(-) commit 0f23ee0c855d686b0c315af2c96b8835134cd9e3 Author: Karel Zak Date: Tue Jan 8 15:00:23 2013 +0100 include: cleanup copyright headers We use the code from include/ and lib/ on many places, so use public domain if possible or LGPL for code copied from libs. Signed-off-by: Karel Zak include/all-io.h | 8 ++++++++ include/bitops.h | 6 ++++++ include/blkdev.h | 6 ++++++ include/canonicalize.h | 11 +++++++++++ include/cpuset.h | 4 ++++ include/list.h | 3 +++ include/pamfail.h | 6 ++++++ include/ttyutils.h | 6 ++++++ lib/at.c | 5 ++++- lib/blkdev.c | 7 ++++++- lib/cpuset.c | 3 +++ lib/loopdev.c | 5 ++++- lib/randutils.c | 6 +++++- lib/sysfs.c | 6 ++++-- lib/ttyutils.c | 7 ++++++- lib/wholedisk.c | 7 ++++++- 16 files changed, 88 insertions(+), 8 deletions(-) commit 1a1eb4e188e6db0995364166159d12f7b07d9016 Author: Karel Zak Date: Tue Jan 8 14:07:48 2013 +0100 include/bitopts: Use the operating system byteswapping functions The swap macros are already in libc. Co-Author: Cristian Rodríguez Signed-off-by: Karel Zak configure.ac | 3 ++ include/bitops.h | 160 +++++++++++++++++++++++++++++++++---------------------- 2 files changed, 100 insertions(+), 63 deletions(-) commit cd04b26bf86d9987554aae02620d8f8172c66e16 Author: Karel Zak Date: Tue Jan 8 13:13:40 2013 +0100 swapon: print warning about insecure owner/permissions Let's make it more obvious if swap area is accessible for non-root users. The old version prints the warning only if --verbose is specified. Reported-by: mp.lists@free.fr Signed-off-by: Karel Zak sys-utils/swapon.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) commit 2adb1a44c213c151ca4c7a7e4fb13276ecd74973 Author: Milan Broz Date: Thu Dec 20 12:42:23 2012 +0100 lsblk: Add write-same attribute to topology info Signed-off-by: Milan Broz Signed-off-by: Karel Zak misc-utils/lsblk.8 | 2 +- misc-utils/lsblk.c | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) commit 4bbe8099390d528018890efa914e268de3c4b44b Author: Neil Horman Date: Fri Dec 28 11:22:18 2012 -0500 unshare: support the switching of namespaces In addition to the unshare syscall, there exists the setns syscall, which allows processes to migrate to the namepsaces of other processes. Add this functionality into the unshare command, as they operate in a fairly simmilar fashion. Note: There was discussion of adding a path based namespace argument to unshare in the origional discussion thread, but I opted to leave that out as it didn't seem to fit in nicely with the current argument pattern. I figure we can always add that in later if we need to [kzak@redhat.com: - fix optional arguments - do not call unshare if no flag specified - use O_CLOEXEC - codding style cleanup] Signed-off-by: Neil Horman CC: Karel Zak Signed-off-by: Karel Zak sys-utils/Makemodule.am | 1 + sys-utils/unshare.1 | 36 ++++++++++++++++-------- sys-utils/unshare.c | 75 ++++++++++++++++++++++++++++++++++++++----------- 3 files changed, 83 insertions(+), 29 deletions(-) commit 91984e938e6f3fa3b5c6c98d6fd6021fff84ebdb Author: Karel Zak Date: Wed Jan 2 08:23:00 2013 +0100 agetty: replace perms 660 to 620 ... the default is root:tty 620 Signed-off-by: Karel Zak login-utils/login.1 | 5 ++++- term-utils/agetty.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) commit f35336526fdc8c67f31a30502df5c6017dbee2ee Author: Karel Zak Date: Thu Dec 27 17:37:27 2012 +0100 build-sys: remove consoles.h Reported-by: Bernhard Voelker Signed-off-by: Karel Zak include/Makemodule.am | 1 - 1 file changed, 1 deletion(-) commit 4226f910d45455856ee5b9855d1d9ce39b513aad Author: Karel Zak Date: Sun Dec 23 22:44:05 2012 +0100 sulogin: don't use {de,con}structor attributes We're not Russian roulette players, so don't use such ugly things at all.. Reported-by: Dave Reisner Signed-off-by: Karel Zak login-utils/sulogin-consoles.c | 8 ++++++-- login-utils/sulogin-consoles.h | 7 +++++++ login-utils/sulogin.c | 4 ++++ 3 files changed, 17 insertions(+), 2 deletions(-) commit a73f59fa03ad28d001cc09d185adf865d6fad8bd Author: Karel Zak Date: Sun Dec 23 22:14:21 2012 +0100 sulogin: remove consoles.c from libcommon - move struct chardata to include/ttyutils.h - move console.{h,c} to login-utils/sulogin-* (it's sulogin specific) - fix sulogin and agetty includes Signed-off-by: Karel Zak include/consoles.h | 51 --- include/ttyutils.h | 9 + lib/Makemodule.am | 6 - lib/consoles.c | 781 ----------------------------------------- login-utils/Makemodule.am | 11 +- login-utils/sulogin-consoles.c | 781 +++++++++++++++++++++++++++++++++++++++++ login-utils/sulogin-consoles.h | 47 +++ login-utils/sulogin.c | 2 +- term-utils/agetty.c | 17 +- 9 files changed, 851 insertions(+), 854 deletions(-) commit 248b8101a0b6251d0ac7d8deb218115ede9a6850 Author: Karel Zak Date: Thu Dec 20 20:01:35 2012 +0100 mkfs.minix: fsck:minix: fix compiler warnings Signed-off-by: Karel Zak disk-utils/fsck.minix.c | 6 +++--- disk-utils/mkfs.minix.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) commit f3b16286424494e76e6cbfff4468cd55cd3f68eb Author: Karel Zak Date: Thu Dec 20 20:00:11 2012 +0100 mkswap: fix compiler warnings Signed-off-by: Karel Zak disk-utils/mkswap.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) commit 46d4ce56a71d826d718be4b5474bc8189b1c0915 Author: Karel Zak Date: Thu Dec 20 19:57:48 2012 +0100 lslocks: fix compiler warnings Signed-off-by: Karel Zak misc-utils/lslocks.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 130820a8c8adf687069bed5fc5b3f209c5bf8b79 Author: Karel Zak Date: Thu Dec 20 19:55:55 2012 +0100 fdisk: (gpt) fix compiler warnings Signed-off-by: Karel Zak fdisks/gpt.c | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) commit 747c1d9d57130aab172a3e284d84c99463392758 Author: Karel Zak Date: Thu Dec 20 19:55:20 2012 +0100 setterm: fix compiler warning Signed-off-by: Karel Zak term-utils/setterm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 278e7203fa198b3864095c867800218ffe12539a Author: Karel Zak Date: Thu Dec 20 19:52:16 2012 +0100 ipcs: fix compiler warnings, use 64bit time Signed-off-by: Karel Zak sys-utils/ipcs.c | 43 +++++++++++++++++++++++-------------------- sys-utils/ipcutils.c | 8 +++++--- sys-utils/ipcutils.h | 16 ++++++++-------- 3 files changed, 36 insertions(+), 31 deletions(-) commit 7f89534e6e342bbfa9ae7d8bba8a62d4b2cfa9ef Author: Karel Zak Date: Thu Dec 20 19:51:38 2012 +0100 hwclock: fix compiler warning Signed-off-by: Karel Zak sys-utils/hwclock-cmos.c | 1 - 1 file changed, 1 deletion(-) commit 7e88f61717ece1ba6f08262fcbd0f8e3855741d0 Author: Karel Zak Date: Wed Dec 19 15:27:12 2012 +0100 ipcs: make --human really sexy Align the "size" columns to the right. Signed-off-by: Karel Zak sys-utils/ipcs.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) commit 45ddc110acd53b1254a240cd706267ac9928e262 Author: Karel Zak Date: Wed Dec 19 14:34:01 2012 +0100 lib/ismounted: improve loopdev support ... to make it usable for situations when the same backing file is mapped to more loop devices. Signed-off-by: Karel Zak lib/ismounted.c | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) commit 1c3f44f7b8df7e52bc2a6b589d598d38bf7d59b2 Author: Karel Zak Date: Wed Dec 19 12:56:39 2012 +0100 libblkid: improve test_blkid_devno, fix compiler warning [-Wunused-result] Signed-off-by: Karel Zak libblkid/src/devno.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit ca4f6229b0bc14c9c3aea3a20cd37bd0f3de0310 Author: Karel Zak Date: Wed Dec 19 12:40:32 2012 +0100 lib/ismounted: basic support for loop devices # losetup -a /dev/loop0 /dev/loop0: [2053]:1048578 (/home/fs-images/filesystems/ext2.img) # findmnt /dev/loop0 TARGET SOURCE FSTYPE OPTIONS /mnt/test /dev/loop0 ext3 rw,relatime,data=ordered old version: ./test_ismounted /home/fs-images/filesystems/ext2.img not mounted new version: ./test_ismounted /home/fs-images/filesystems/ext2.img mounted on /mnt/test Reported-by: Sami Kerola Signed-off-by: Karel Zak disk-utils/Makemodule.am | 3 +-- lib/Makemodule.am | 1 + lib/ismounted.c | 44 ++++++++++++++++++++++++++++++++++---------- 3 files changed, 36 insertions(+), 12 deletions(-) commit 06f588f7d108d9ba2ae86b037c244acf18d00d32 Author: Karel Zak Date: Wed Dec 19 12:40:19 2012 +0100 lib/loopdev: fix loopdev_find_by_backing_file() Signed-off-by: Karel Zak lib/loopdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d80081566e04c54992db86e649185c40e1d8a279 Author: Sami Kerola Date: Sun Dec 16 10:44:00 2012 +0000 docs: add missing exit value to fsck.minix(8) And remove references to manual pages which has not been part of commonly used distributions for a while. Signed-off-by: Sami Kerola disk-utils/fsck.minix.8 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) commit 65ca6f8382aed327202e476c4838ec62c8f3b450 Author: Sami Kerola Date: Sun Dec 16 10:43:59 2012 +0000 minix: replace magic constants with macro names Signed-off-by: Sami Kerola disk-utils/fsck.minix.c | 14 +++++++------- disk-utils/mkfs.minix.c | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) commit a180dc6c54f90896d6491f9bdf704523236dd99c Author: Sami Kerola Date: Sun Dec 16 10:43:58 2012 +0000 minix: use off_t, size_t, etc appropriate types Signed-off-by: Sami Kerola disk-utils/fsck.minix.c | 12 ++++++------ disk-utils/mkfs.minix.c | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) commit 1908a3c2149792f38c49dc093371fb529327c188 Author: Sami Kerola Date: Sun Dec 16 10:43:57 2012 +0000 minix: change types in header file Signed-off-by: Sami Kerola disk-utils/minix_programs.h | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) commit 1342ffcbeb0dbad6ec12026f1dad27a26d27248f Author: Sami Kerola Date: Sun Dec 16 10:43:56 2012 +0000 tunelp: deprecation: remove command from default build It is difficult to think think tunelp command being in use a lot. Signed-off-by: Sami Kerola Documentation/deprecated.txt | 4 ++++ configure.ac | 10 ++++++++++ sys-utils/Makemodule.am | 2 ++ 3 files changed, 16 insertions(+) commit cdd2cf46c8d92a03dc0c2883d65c606d8874177f Author: Sami Kerola Date: Sun Dec 16 10:43:55 2012 +0000 more: remove unnecessary variable Signed-off-by: Sami Kerola text-utils/more.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit bb2d1ea559f4563e2ad08fb02886625de703877e Author: Sami Kerola Date: Sun Dec 16 10:43:54 2012 +0000 isosize: inform if file does not look like iso file system $ isosize /dev/urandom isosize: /dev/urandom: might not be iso file system -67690643227260 Signed-off-by: Sami Kerola disk-utils/isosize.c | 10 ++++++++++ 1 file changed, 10 insertions(+) commit bb7ea8d81a139550d5c7283715ffd01960138689 Author: Sami Kerola Date: Sun Dec 16 10:43:53 2012 +0000 isosize: fix usage() -h option print out Fixes usage() bug from commit 4eba43a7 which claimed sort option for --help being -H. Signed-off-by: Sami Kerola disk-utils/isosize.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) commit 19b7b517b9a36ab4740ba8919d00d989c641c5e6 Author: Sami Kerola Date: Sun Dec 16 10:43:52 2012 +0000 ipcs: add --bytes size output option This makes the command being a little closer standard compliant. See IEEE Std 1003.1 referral link below for more information. References: http://pubs.opengroup.org/onlinepubs/009696799/utilities/ipcs.html Signed-off-by: Sami Kerola sys-utils/ipcs.1 | 3 +++ sys-utils/ipcs.c | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) commit 56692a6701c4847d0cd80457c5adb98e5eaa6ced Author: Sami Kerola Date: Sun Dec 16 10:43:51 2012 +0000 ipcs: add --human readable size conversion option Introduces new function ipc_print_size() which will call size_to_human_string(), and handles the occasional '([k]bytes)' printing if default size format is requested. Reviewed-by: Karel Zak Signed-off-by: Sami Kerola sys-utils/ipcs.1 | 3 ++ sys-utils/ipcs.c | 88 ++++++++++++++++++++++++++++++++-------------------- sys-utils/ipcutils.c | 40 ++++++++++++++++++++++++ sys-utils/ipcutils.h | 9 ++++++ 4 files changed, 106 insertions(+), 34 deletions(-) commit 7e3c5f1cc10665ba87030a1bc8a10c7cfda89fe8 Author: Sami Kerola Date: Sun Dec 16 10:43:50 2012 +0000 ipcs: assist debugging One will be able to see enum symbols when debugging, which is not the case when values are specified as define list. Signed-off-by: Sami Kerola sys-utils/ipcs.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) commit a68ca3a1d2920f97b7ec2ac8f3e12a8c23e6c808 Author: Sami Kerola Date: Sun Dec 16 10:43:49 2012 +0000 docs: swapon.8 option name fix The commit 7ae8b469adda598fda28e4ea647d47905b43e172 added option --bytes, not the initial proposal which was changed after maillist discussion. Signed-off-by: Sami Kerola sys-utils/swapon.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 3b905b794e93609af7e42459d32b27e7c18ce02e Author: Phillip Susi Date: Fri Dec 14 14:57:25 2012 -0500 partx: add update command Update the kernel partition table to match what is on disk. Remove any extra partitions and add any missing ones. Signed-off-by: Phillip Susi disk-utils/partx.8 | 6 ++- disk-utils/partx.c | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 113 insertions(+), 5 deletions(-) commit 84ece6980e0ce0e9c86e946083e8cb2790c4d646 Author: Karel Zak Date: Wed Dec 19 10:24:23 2012 +0100 sulogin: map NL to CR-NL on output in initial termios settings (See also 9c62a2326e6e39a5e759830b0b9d91696166fb45 agetty patch). Signed-off-by: Karel Zak login-utils/sulogin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit cba09b5fa8414f07c934c99fba8276b94d07011e Author: Karel Zak Date: Tue Dec 18 16:03:02 2012 +0100 sulogin: minor coding style changes Signed-off-by: Karel Zak login-utils/sulogin.c | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) commit dfbc7c89b2e5a417a7b4dfbadc7250987f43d71b Author: Werner Fink Date: Mon Dec 10 13:27:11 2012 +0100 sulogin: add multi console feature from SysVinit sulogin Now after adding Conflicts=rescue.service to getty@.service and serial-getty@.service and Conflicts=getty.target to rescue.target all works with `systemctl rescue'. Even adding init=/sbin/sulogin to the kernels command line by using the `e' key in grub2 boot menu works flawless. This version is without the emergency code as I've this moved to lib/console.c where it belongs to. Signed-off-by: Werner Fink login-utils/sulogin.c | 665 +++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 516 insertions(+), 149 deletions(-) commit ab6478ef2d51215441baa47fe1cb0e6aa6ba1c27 Author: Werner Fink Date: Mon Dec 10 13:27:10 2012 +0100 sulogin: mount temporary /dev and /proc if not found This is very usefull if initrd can not loaded that is no /dev and no /proc is found. Also if the /etc/shadow and /etc/passwd is copied into the initrd the sulogin can be used in initrd even before /dev and/or /proc are mounted. Signed-off-by: Werner Fink configure.ac | 13 +++++++++++ lib/consoles.c | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) commit 729bfb80ffc308b685006de496df06551c627057 Author: Werner Fink Date: Fri Dec 7 09:00:56 2012 +0100 sulogin: use alarm function to indicate if a timeout occurs A small change to use the alarm handler to indicate if a timeout occurs. Signed-off-by: Werner Fink login-utils/sulogin.c | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) commit b33f24b250878db0e09f81de2d2dc090bdeb441a Author: Werner Fink Date: Fri Dec 7 09:00:55 2012 +0100 sulogin: make usleep() workaround work Simply fix a compile problem found during debugging console.c Signed-off-by: Werner Fink include/c.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) commit cae29b3717dc08899faaa0adff818fe63a2c88b7 Author: Werner Fink Date: Tue Dec 18 15:02:35 2012 +0100 sulogin: use the linked lists from list.h for consoles list with this the double linked list feature from util-linux is used instead of the single linked list. [kzak@redhat.com: use list_last_entry() and list INIT macros] Signed-off-by: Werner Fink Signed-off-by: Karel Zak include/consoles.h | 6 +++-- lib/consoles.c | 78 +++++++++++++++++++++++++++++++++--------------------- 2 files changed, 52 insertions(+), 32 deletions(-) commit 59da1544ce82813e88c24ed8b612ba39ea1e3cc2 Author: Karel Zak Date: Tue Dec 18 14:49:21 2012 +0100 include/list: add list_last_entry() Signed-off-by: Karel Zak include/list.h | 7 +++++-- lib/tt.c | 6 +++--- 2 files changed, 8 insertions(+), 5 deletions(-) commit 35e52fa531ed5d6e3bc45438b3ef294449e31c8b Author: Karel Zak Date: Mon Dec 17 17:11:05 2012 +0100 fdisk: remove crappy bugs section from man page Signed-off-by: Karel Zak fdisks/fdisk.8 | 36 ------------------------------------ 1 file changed, 36 deletions(-) commit becd09500f4abe1c11edb42289f4f6b453b01c65 Author: Sami Liedes Date: Mon Dec 17 16:22:35 2012 +0100 include/list: fix undefined behavior in list_entry() macro Update list_entry() macro, which is basically the same as the container_of() macro in the kernel, to use offsetof() to fix undefined behavior. Caught using clang -fsanitize=undefined. [kzak@redhat.com: port from e2fsprogs] Signed-off-by: Sami Liedes Signed-off-by: Karel Zak include/list.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 7cdfc45f99c04797aa0838310dae4e7bf95f6c9d Author: Karel Zak Date: Fri Dec 14 16:12:47 2012 +0100 docs: fix typo Signed-off-by: Karel Zak AUTHORS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d7d58e3f8dc7bde92f8cfa3551fbcbad1775272c Author: Karel Zak Date: Thu Dec 13 13:51:57 2012 +0100 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) commit 51479069e1e9ffa5e6befa9a612bc8797fcfcd80 Author: Karel Zak Date: Wed Dec 12 21:01:32 2012 +0100 libmount: fix typos Signed-off-by: Karel Zak libmount/src/utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit dd5c22a67956318c21044f8454c3d62cb7bf50cb Author: Karel Zak Date: Wed Dec 12 20:48:15 2012 +0100 blkid: fix double free [coverity scan] Signed-off-by: Karel Zak misc-utils/blkid.c | 1 + 1 file changed, 1 insertion(+) commit 6fc8122490aacbeee8cf6ad7ed37819549e987c4 Author: Karel Zak Date: Wed Dec 12 13:32:52 2012 +0100 libmount: make mkstemp() more robust [coverity scan] Signed-off-by: Karel Zak libmount/src/utils.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit 880f09c828cd5b29d65a71b9a5337568236b3207 Author: Karel Zak Date: Wed Dec 12 12:40:48 2012 +0100 swapon: fix memmory leak [coverity scan] Signed-off-by: Karel Zak sys-utils/swapon.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 7317ba6d37f8e3600ddac6050f39c87b512c334c Author: Karel Zak Date: Wed Dec 12 12:27:05 2012 +0100 libblkid: check mkdir(/run/blkid) return code [coverity scan] Signed-off-by: Karel Zak libblkid/src/save.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) commit a0e35e304411e6afff334c763205671ce72bc58c Author: Karel Zak Date: Wed Dec 12 12:18:20 2012 +0100 swapon: don't care about xasprintf() return code Signed-off-by: Karel Zak sys-utils/swapon.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) commit 76a9fcc91357c461735e3ff0159b55931d453d05 Author: Karel Zak Date: Wed Dec 12 12:16:16 2012 +0100 prlimit: don't care about xasprintf() return code Signed-off-by: Karel Zak sys-utils/prlimit.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) commit 9d8537ff21e09d6dc01834795406fcbe93e0e995 Author: Karel Zak Date: Wed Dec 12 12:13:38 2012 +0100 lscpu: don't care about xasprintf() return code Signed-off-by: Karel Zak sys-utils/lscpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 7a591a1fb5023d80f3e9bf51defd9c148c8db93d Author: Karel Zak Date: Wed Dec 12 12:12:25 2012 +0100 namei: don't care about xasprintf() return code Signed-off-by: Karel Zak misc-utils/namei.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 0d7ebfc4a7b96d82f7f0c1b43920a3c91998b8ef Author: Karel Zak Date: Wed Dec 12 12:11:17 2012 +0100 lslocks: don't care about xasprintf() return code Signed-off-by: Karel Zak misc-utils/lslocks.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) commit b5fd07bcdbed72aeef5c7f2dba442ec8514cfd5a Author: Karel Zak Date: Wed Dec 12 12:09:44 2012 +0100 lsblk: don't care about xasprintf() return code Signed-off-by: Karel Zak misc-utils/lsblk.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) commit 60b17c6f0e85b1f86fe548c94f508e33e9a03710 Author: Karel Zak Date: Wed Dec 12 12:08:06 2012 +0100 findmnt: don't care about xasprintf() return code Signed-off-by: Karel Zak misc-utils/findmnt.c | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) commit 8acf2fb6e22a560d484ed34a620a955c5d438475 Author: Karel Zak Date: Wed Dec 12 11:57:40 2012 +0100 partx: don't care about xasprintf() return code Signed-off-by: Karel Zak disk-utils/partx.c | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) commit 83d02ed2931feecb3e13e86ce710c8e422193d45 Author: Karel Zak Date: Wed Dec 12 11:48:08 2012 +0100 login: check lastlog lseek return code [coverity scan] Signed-off-by: Karel Zak login-utils/login.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 36f9133dd2ee442b16d257c0d5d4027a7b72fea0 Author: Karel Zak Date: Wed Dec 12 10:48:01 2012 +0100 chsh: use return rather than exit in main, clean up man page Signed-off-by: Karel Zak login-utils/chsh.1 | 18 ++++++++++-------- login-utils/chsh.c | 17 ++++++++--------- 2 files changed, 18 insertions(+), 17 deletions(-) commit 6affea028b655ebf8d6dc2181d4a2f94424153ac Author: Karel Zak Date: Wed Dec 12 10:41:44 2012 +0100 chfn: always use return rather than exit() in main Signed-off-by: Karel Zak login-utils/chfn.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 97da60c64e231bdfba163e23cbbe9e52c1550d06 Author: Karel Zak Date: Wed Dec 12 10:36:32 2012 +0100 chfn: clean up exit status The old version in some cases (but not always) returns -1 (255) on error. It seems better to cleanup the code and don't return internal return codes by exit(). Signed-off-by: Karel Zak login-utils/chfn.1 | 2 ++ login-utils/chfn.c | 11 +++++------ 2 files changed, 7 insertions(+), 6 deletions(-) commit 72c9217951b7dd317a5d903d88291a9e87297969 Author: Karel Zak Date: Mon Dec 10 13:43:11 2012 +0100 tests: unset *_DEBUG variables Reported-by: Bernhard Voelker Signed-off-by: Karel Zak tests/run.sh | 4 ++++ 1 file changed, 4 insertions(+) commit cd79396704f7e9828217e75d38cc36b011b4d741 Author: Karel Zak Date: Mon Dec 10 13:31:08 2012 +0100 libmount: don't use safe_getenv() for test Reported-by: Bernhard Voelker Signed-off-by: Karel Zak libmount/src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 2c0ba1ce30311c690b738bdc19a08845cb8235c2 Author: Bernhard Voelker Date: Fri Nov 30 17:12:12 2012 +0100 libmount: avoid endless loop in mnt_get_kernel_cmdline_option The above function infloops when the name to search for can only be found at the beginning of /proc/cmdline but doesn't match, e.g. when searching for "ro" in "root=/dev/sda1 quiet vga=0x31a". * libmount/src/utils.c (mnt_get_kernel_cmdline_option): Replace while by for loop to ensure the pointer p is incremented. Signed-off-by: Bernhard Voelker libmount/src/utils.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) commit c717b0328d0dd111f97b8e19b947249833a909fe Author: Karel Zak Date: Mon Dec 10 13:14:38 2012 +0100 rename: use macro to print version Signed-off-by: Karel Zak misc-utils/rename.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) commit 5a2a8177f8b9cf9be26874baf51fb336760fe64b Author: Jan (yac) Matějka Date: Mon Nov 26 16:50:08 2012 +0100 rename: add --symlink option for renaming symlink target [kzak@redhat.com: - coding style clean up] Signed-off-by: Karel Zak misc-utils/rename.1 | 3 +++ misc-utils/rename.c | 64 ++++++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 54 insertions(+), 13 deletions(-) commit 8627d0159b7166c8186ff4f2afc567b2517ef9b6 Author: Karel Zak Date: Mon Dec 10 12:25:25 2012 +0100 blkid: fix man page mess Signed-off-by: Karel Zak misc-utils/blkid.8 | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) commit e3443e8f19c2c7cdb23c2815c7565e8e24101e1b Author: Karel Zak Date: Tue Dec 4 18:03:35 2012 +0100 fdisk: (gpt) check if the "First sector" is unused Signed-off-by: Karel Zak fdisks/gpt.c | 5 +++++ 1 file changed, 5 insertions(+) commit 512a430fe7acf705880eaddb887653b79f8dc223 Author: Karel Zak Date: Tue Dec 4 17:54:15 2012 +0100 fdisk: (gpt) align newly created partitions - default "First sector" has to be aligned - "Last sector" has to be aligned if specified by + convention Signed-off-by: Karel Zak fdisks/fdisk.c | 16 +++++++++++++ fdisks/fdisk.h | 1 + fdisks/fdiskdoslabel.c | 15 ------------ fdisks/gpt.c | 64 ++++++++++++++++++++++++++++++++++---------------- 4 files changed, 61 insertions(+), 35 deletions(-) commit 602ebe7da99c2294b63a76140a1a2626d3dc7b63 Author: Karel Zak Date: Tue Dec 4 17:02:50 2012 +0100 fdisk: (gpt) fix {last,first}_usable_lba usage Signed-off-by: Karel Zak fdisks/gpt.c | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) commit 874aa9c31f5e6e5c6c8d0b1ee9366a950999d5f6 Author: Karel Zak Date: Tue Dec 4 16:34:18 2012 +0100 fdisk: cleanup partition start/end usage - always use pointers to make the code more generic - always use "const" is possible - always use le64_to_cpu() to access numbers Signed-off-by: Karel Zak fdisks/gpt.c | 88 +++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 48 insertions(+), 40 deletions(-) commit 413df906111c46bd71026c8501734c8ef32cfb87 Author: Karel Zak Date: Tue Dec 4 15:45:25 2012 +0100 fdisk: (gpt) check partitions alignment Signed-off-by: Karel Zak fdisks/gpt.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) commit b546d442262fadfa8188a5056e208afd1427251a Author: Karel Zak Date: Tue Dec 4 14:58:55 2012 +0100 fdisk: report PT type, inform about new GPT Signed-off-by: Karel Zak fdisks/fdisk.c | 2 ++ fdisks/gpt.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) commit b41846909f7ea7f2445f71c5cbedcb140410d1fd Author: Karel Zak Date: Tue Dec 4 14:49:17 2012 +0100 fdisk: (gpt) use topology to define FirstUsableLBA Signed-off-by: Karel Zak fdisks/gpt.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) commit ccb07d4d4fa87b63f280bb0dcbcd57d1a8d745ce Author: Karel Zak Date: Tue Dec 4 14:32:15 2012 +0100 vipw: remove unused set{uid,gid} calls Signed-off-by: Karel Zak login-utils/vipw.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) commit ba2bdf41c436640286df40529cddede46b3ba5d8 Author: Karel Zak Date: Tue Dec 4 14:22:39 2012 +0100 libmount: clean nonnull attribute usage - use __attribute__((nonnull) for functions where we not able to return an return code ("is", "has" and some "get" functions). - use __attribute__((nonnull) for small functions where we always modify any of the function argument (some mnt_optstr_* functions) Signed-off-by: Karel Zak libmount/src/context.c | 28 ++-- libmount/src/context_loopdev.c | 13 +- libmount/src/fs.c | 2 + libmount/src/iter.c | 15 +- libmount/src/libmount.h.in | 315 ++++++++++++++--------------------------- libmount/src/lock.c | 3 - libmount/src/mountP.h | 101 +++++-------- libmount/src/optstr.c | 6 +- libmount/src/tab_parse.c | 6 +- libmount/src/tab_update.c | 2 + libmount/src/utils.c | 22 +-- 11 files changed, 192 insertions(+), 321 deletions(-) commit f4388dea5f8685149ca370279760b83cc98ccb7e Author: Karel Zak Date: Tue Dec 4 13:02:57 2012 +0100 libblkid: re-read PART{UUID,LABEL} for successfully verified cached devices Signed-off-by: Karel Zak libblkid/src/verify.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) commit e343695663e8c43601d25e10eccf68969288ad9b Author: Karel Zak Date: Tue Dec 4 12:12:54 2012 +0100 libblkid: cleanup arguments checks Signed-off-by: Karel Zak libblkid/src/cache.c | 3 +++ libblkid/src/dev.c | 10 +++++----- libblkid/src/devname.c | 14 ++++++++------ libblkid/src/encode.c | 4 +++- libblkid/src/partitions/partitions.c | 8 +++++--- libblkid/src/probe.c | 9 ++++++--- libblkid/src/resolve.c | 14 ++++---------- libblkid/src/superblocks/superblocks.c | 3 --- libblkid/src/tag.c | 20 +++++++++++--------- libblkid/src/topology/topology.c | 10 +++++----- libblkid/src/verify.c | 2 +- 11 files changed, 51 insertions(+), 46 deletions(-) commit 2e31fe2303e4938ef735aebf13aa5b22fb031af9 Author: Karel Zak Date: Tue Dec 4 11:58:13 2012 +0100 libblkid: cleanup nonnull attribute usage - don't mix __attribute__((nonnull)) and "if (!argument) return" for the same function. The "if ()" check will be *silently* optimized out by gcc. - use __attribute__((nonnull)) for functions where is impossible to return error code. For example "is" and "has" functions or functions where we return unsigned types and zero is a valid value. Signed-off-by: Karel Zak libblkid/src/blkid.h.in | 170 +++++++++++++++--------------------------------- 1 file changed, 52 insertions(+), 118 deletions(-) commit 3c88fb56b6c2862e0d3d4f50149242e58681cb0f Author: Karel Zak Date: Mon Dec 3 16:22:17 2012 +0100 fdisk: move DOS units stuff to fdiskdoslabel.c Signed-off-by: Karel Zak fdisks/fdisk.c | 49 ++----------------------------------------------- fdisks/fdisk.h | 4 +--- fdisks/fdiskbsdlabel.c | 1 + fdisks/fdiskdoslabel.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++ fdisks/fdiskdoslabel.h | 3 +++ fdisks/fdisksunlabel.c | 12 ++++++++++-- fdisks/utils.c | 1 - 7 files changed, 64 insertions(+), 53 deletions(-) commit 9598acbcc8fb1faac3dec012fcdf5dd411803df4 Author: Karel Zak Date: Mon Dec 3 15:50:21 2012 +0100 fdisk: use BLKSSZGET as default for io-limits rather than hardcoded limit Signed-off-by: Karel Zak fdisks/utils.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit cf3808e468dd0a16506941cde318c8e813a2996e Author: Karel Zak Date: Mon Dec 3 15:32:16 2012 +0100 fdisk: remove global variable sector_offset - add cxt->first_lba as replacement to sector_offset - add label->reset_alignment() to overwrite the default alignment setting - add fdisk_reset_alignment() to setup grain, first LBA offset, etc. Signed-off-by: Karel Zak fdisks/fdisk.c | 70 ++++-------------------------- fdisks/fdisk.h | 11 ++++- fdisks/fdiskdoslabel.c | 40 ++++++++++++----- fdisks/fdiskdoslabel.h | 2 +- fdisks/utils.c | 115 +++++++++++++++++++++++++++++++++++++++++++++++-- 5 files changed, 161 insertions(+), 77 deletions(-) commit cc7b6e92c6b9200a59e60350bf8ca652a15fc604 Author: Karel Zak Date: Fri Nov 30 21:33:06 2012 +0100 fdisk: zerosize EBR buffer Signed-off-by: Karel Zak fdisks/fdiskdoslabel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8254c3a59480c2727ae8d3a903e16a0d9fac0a8b Author: Davidlohr Bueso Date: Sun Nov 25 20:29:18 2012 -0800 fdisk: api: propagate add partitions to users Similarly to commit 1f5eb51b79275e32d045fd6718753bf04cde8374 we do not propagate problems when adding partitions to user visible api. Signed-off-by: Davidlohr Bueso fdisks/fdisk.h | 2 +- fdisks/fdiskaixlabel.c | 4 +++- fdisks/fdiskbsdlabel.c | 19 +++++++++++-------- fdisks/fdiskdoslabel.c | 36 ++++++++++++++++++++---------------- fdisks/fdiskmaclabel.c | 4 +++- fdisks/fdisksgilabel.c | 12 +++++++----- fdisks/fdisksunlabel.c | 9 +++++---- fdisks/gpt.c | 12 +++++++----- 8 files changed, 57 insertions(+), 41 deletions(-) commit 5759a4a22bb3d05898a6853702d9ea90b5834ba4 Author: Davidlohr Bueso Date: Sun Nov 25 20:29:12 2012 -0800 fdisk: remove dead code Signed-off-by: Davidlohr Bueso fdisks/fdisk.c | 9 --------- 1 file changed, 9 deletions(-) commit ff5775bd4f391facbfecc864a394b5be55179a85 Author: Davidlohr Bueso Date: Sun Nov 25 20:25:49 2012 -0800 fdisk: api: move disklabel type to cxt Get rid of it as a global variable as it belongs in the context. To compare a disklabel on the device, the fdisk_dev_is_disklabel() function is introduced. Also, to avoid naming issues, the fdisk_labeltype members where renamed to FDISK_DISKLABEL_. Signed-off-by: Davidlohr Bueso fdisks/fdisk.c | 191 +++++++++++++++++++++++++------------------------ fdisks/fdisk.h | 34 ++++----- fdisks/fdiskaixlabel.c | 2 +- fdisks/fdiskbsdlabel.c | 2 +- fdisks/fdiskdoslabel.c | 2 +- fdisks/fdiskmaclabel.c | 2 +- fdisks/fdisksgilabel.c | 4 +- fdisks/fdisksunlabel.c | 8 +-- fdisks/gpt.c | 14 ++-- fdisks/utils.c | 16 ++++- 10 files changed, 146 insertions(+), 129 deletions(-) commit 1258b5f55e3b974472e6771349fd16de7ade56d7 Merge: 2c68911 3ee4265 Author: Karel Zak Date: Fri Nov 30 13:43:42 2012 +0100 Merge branch '2012wk47' of git://github.com/kerolasa/lelux-utiliteetit commit 2c6891154ade66b3c1e1af30837a85e95c14930b Author: Karel Zak Date: Fri Nov 30 12:58:33 2012 +0100 build-sys: fix typo Signed-off-by: Karel Zak configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7e34c79f01c76c383fb4f5d301e81540f9053851 Author: Karel Zak Date: Fri Nov 30 12:48:44 2012 +0100 build-sys: use pkg-config for selinux - we need libselinux 2.x (where is security_get_initial_context()) - the latest selinux versions are linked with -lpcre Reported-by: Gregory Nietsky Signed-off-by: Karel Zak configure.ac | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) commit 896da7cd342b06f9170872455d3a23f323eb24d0 Author: Karel Zak Date: Fri Nov 30 12:47:08 2012 +0100 build-sys: add devel-non-docs compile profile Signed-off-by: Karel Zak tools/config-gen.d/devel-non-docs.conf | 5 +++++ 1 file changed, 5 insertions(+) commit 21770662c3ddc0655831312067e2d2b9e5281eec Author: Karel Zak Date: Fri Nov 30 11:54:10 2012 +0100 fdisk: don't fails silently if EBR is outside of disk Reported-by: Phillip Susi Signed-off-by: Karel Zak fdisks/fdisk.h | 18 +++++++++++------- fdisks/fdiskdoslabel.c | 14 ++++++++++++-- 2 files changed, 23 insertions(+), 9 deletions(-) commit e45fccafdef8e0e540730f635f76892873812b4e Author: Karel Zak Date: Fri Nov 30 11:10:22 2012 +0100 libblkid: cleanup blkid_strconcat Signed-off-by: Karel Zak libblkid/src/blkidP.h | 3 --- libblkid/src/devno.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) commit e0a9b8cf2d7a2f0264332fbc870341103840ed06 Author: Karel Zak Date: Fri Nov 30 10:56:54 2012 +0100 libblkid: remove blkid_{strndup,strdup} Don't try to be smart. Let's use standard libc functions. (Note that we have fallback for strndup() in include/strutils.h) Signed-off-by: Karel Zak libblkid/src/blkidP.h | 4 ---- libblkid/src/cache.c | 8 ++++---- libblkid/src/config.c | 4 ++-- libblkid/src/devname.c | 4 ++-- libblkid/src/devno.c | 26 ++------------------------ libblkid/src/evaluate.c | 2 +- libblkid/src/read.c | 2 +- libblkid/src/resolve.c | 12 +++++------- libblkid/src/save.c | 2 +- libblkid/src/tag.c | 10 +++++----- 10 files changed, 23 insertions(+), 51 deletions(-) commit d93ce29e699ff604ed5afad8d722233dbc2d7da7 Author: Karel Zak Date: Fri Nov 30 10:33:22 2012 +0100 libblkid: add function attributes to private API Signed-off-by: Karel Zak libblkid/src/blkidP.h | 174 +++++++++++++++++++++++++++++++++++--------------- 1 file changed, 123 insertions(+), 51 deletions(-) commit 21eff1145758436d28f68ada396514cd9aef9298 Author: Ondrej Oprala Date: Fri Nov 30 10:32:12 2012 +0100 libblkid: add function attributes to public API [kzak@redhat.com: - use __ul prefix in public API, - define minimal requirement gcc 3.4] Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak libblkid/src/blkid.h.in | 378 ++++++++++++++++++++++++++++++++++-------------- 1 file changed, 273 insertions(+), 105 deletions(-) commit 90cd46cbbd26a1e26a65716704c7a6bd788f4aa4 Author: Ondrej Oprala Date: Fri Nov 30 09:01:10 2012 +0100 libmount: add function attributes to private API Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak libmount/src/cache.c | 2 +- libmount/src/context.c | 5 +- libmount/src/mountP.h | 136 ++++++++++++++++++++++++++++++++----------------- libmount/src/utils.c | 2 +- 4 files changed, 93 insertions(+), 52 deletions(-) commit a639778557679b115ec0d61926271d03e56b5a96 Author: Ondrej Oprala Date: Fri Nov 30 08:56:11 2012 +0100 libmount: add function attributes to public API [kzak@redhat.com: - use __ul prefix in public API, - define minimal requirement gcc 3.4] Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak libmount/src/libmount.h.in | 827 ++++++++++++++++++++++++++++++++------------- 1 file changed, 584 insertions(+), 243 deletions(-) commit bdc251e60a79bb85d374c79c8b282025cc4ddd01 Author: Karel Zak Date: Tue Nov 27 11:13:42 2012 +0100 docs: cleanup TODO Signed-off-by: Karel Zak Documentation/TODO | 65 ------------------------------------------------------ 1 file changed, 65 deletions(-) commit 742b877b2d4a81106c3352d121a90252c0eefbd0 Author: Karel Zak Date: Tue Nov 27 10:44:28 2012 +0100 lsblk: fix copy & past bug Signed-off-by: Karel Zak misc-utils/lsblk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit cc8cc8f32c863f3ae6a8a88e97b47bcd6a21825f Author: Karel Zak Date: Mon Nov 26 16:25:46 2012 +0100 umount: sanitize paths from non-root users Signed-off-by: Karel Zak sys-utils/umount.c | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) commit 5ebbc3865d1e53ef42e5f121c41faab23dd59075 Author: Karel Zak Date: Mon Nov 26 14:30:22 2012 +0100 mount: sanitize paths from non-root users $ mount /root/.ssh/../../dev/sda2 mount: only root can mount UUID=17bc65ec-4125-4e7c-8a7d-e2795064c736 on /boot this is too promiscuous. It seems better to ignore on command line specified paths which are not resolve-able for non-root users. Fixed version: $ mount /root/.ssh/../../dev/sda2 mount: /root/.ssh/../../dev/sda2: Permission denied $ mount /dev/sda2 mount: only root can mount UUID=17bc65ec-4125-4e7c-8a7d-e2795064c736 on /boot Note that this bug has no relation to mount(2) permissions evaluation in suid mode. The way how non-root user specifies paths on command line is completely irrelevant for comparison with fstab entries. Signed-off-by: Karel Zak sys-utils/mount.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) commit 33c5fd0c5a774458470c86f9d318d8c48a9c9ccb Author: Karel Zak Date: Mon Nov 26 16:24:28 2012 +0100 lib/canonicalize: add canonicalize_path_restricted() to canonicalize without suid permisssions Signed-off-by: Karel Zak include/canonicalize.h | 1 + lib/canonicalize.c | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) commit 1e7f2e6cf46360143198a4662c0711cebf2ceab8 Author: Karel Zak Date: Mon Nov 26 12:19:02 2012 +0100 libmount: make debug stuff more robust Signed-off-by: Karel Zak libmount/src/mountP.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 0377ef91270d06592a0d4dd009c29e7b1ff9c9b8 Author: Karel Zak Date: Mon Nov 26 11:57:26 2012 +0100 mount: (deprecated) drop --guess-fstype The option is undocumented and unnecessary. Signed-off-by: Karel Zak mount-deprecated/mount.c | 13 ------------- 1 file changed, 13 deletions(-) commit ec8121b103bafec90bc1d2fef524f94d408caab3 Author: Karel Zak Date: Mon Nov 26 11:21:40 2012 +0100 libmount: correctly interpret '*' from /etc/filesystems - single line with '*' in /etc/filesystems means that libmount has to read /proc/filesystems, otherwise /proc/filesystems has to be ignored - mount(2) ENODEV is no reason to break the do_mount_by_pattern() loop when trying to mount by /{etc,proc}/filesystems Reported-by: NeilBrown Signed-off-by: Karel Zak libmount/src/context_mount.c | 3 ++- libmount/src/utils.c | 29 ++++++++++++++++++++++++----- 2 files changed, 26 insertions(+), 6 deletions(-) commit 3ee4265171e34cf30998113972ab50eaf7da5c7d Author: Sami Kerola Date: Sat Oct 27 18:58:54 2012 +0100 docs: ddate removal Missed in commit 4cf02b65109029a38f708148dea8d2bdf2fa19de Signed-off-by: Sami Kerola Documentation/ddate.txt | 73 ------------------------------------------------- 1 file changed, 73 deletions(-) commit 777b517333323625053425e217f5685517c7a20f Author: Sami Kerola Date: Tue Oct 23 20:59:26 2012 +0100 docs: mention what Open Group has marked legacy Reviewed-by: Bruce Dubbs Signed-off-by: Sami Kerola Documentation/deprecated.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) commit 288ec58ccd33b454722146884edc69eacd684bb6 Author: Sami Kerola Date: Tue Oct 23 20:50:38 2012 +0100 docs: remove dead link Signed-off-by: Sami Kerola Documentation/howto-contribute.txt | 3 --- 1 file changed, 3 deletions(-) commit 820f4c4aea3af9d652cb0988d15689cf4c11476d Author: Sami Kerola Date: Tue Oct 23 20:14:53 2012 +0100 docs: mention Open Group requirements Commands cal col ipcrm ipcs kill line logger mesg more newgrp pg renice has Open Group requirements. Contributors need to be aware of them. Reviewed-by: Adam Sampson Reviewed-by: Bruce Dubbs Reviewed-by: Ángel González Signed-off-by: Sami Kerola Documentation/howto-contribute.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) commit 6c32b388b5407c4692dbaf4d7ee835f87f2e98b2 Author: Karel Zak Date: Fri Nov 23 15:01:27 2012 +0100 lscpu: remove unnecessary variable Signed-off-by: Karel Zak sys-utils/lscpu.c | 1 - 1 file changed, 1 deletion(-) commit 3cd877331808828fe3a091773caff5b056ca4522 Author: Sami Kerola Date: Sun Nov 11 22:41:24 2012 +0000 ipcs: remove print_perms() The function is no longer in use. Signed-off-by: Sami Kerola sys-utils/ipcs.c | 26 -------------------------- 1 file changed, 26 deletions(-) commit 2bd2f79dde4298347c0f252603e5a1d06791f9bf Author: Sami Kerola Date: Sun Nov 11 22:31:21 2012 +0000 ipcs: make individual message queue id printing to use /proc [kzak@redhat.com: - fix msgctl() call, move q_qbytes to ipc_msg_get_info] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak sys-utils/ipcs.c | 47 +++++++++++++++++++++++------------------------ sys-utils/ipcutils.c | 11 +++++++++-- 2 files changed, 32 insertions(+), 26 deletions(-) commit 35118dfc31ac15e14380c3773334b5b7c10b423f Author: Sami Kerola Date: Sun Nov 11 22:10:54 2012 +0000 ipcs: clean up do_msg(), and add ipc_msg_get_info() Signed-off-by: Sami Kerola sys-utils/ipcs.c | 89 ++++++++++++++++++++-------------------- sys-utils/ipcutils.c | 114 +++++++++++++++++++++++++++++++++++++++++++++++++++ sys-utils/ipcutils.h | 20 +++++++++ 3 files changed, 178 insertions(+), 45 deletions(-) commit b5504a3d4b318ef30600749b490c06b89f99349e Author: Sami Kerola Date: Sun Nov 11 21:12:20 2012 +0000 ipcs: make individual semaphore id printing to use /proc And reindent the print_shm() function. [kzak@redhat.com: move semctl(GET*...) calls to ipcutils.c] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak sys-utils/ipcs.c | 63 +++++++++++++++++++++++----------------------------- sys-utils/ipcutils.c | 38 ++++++++++++++++++++++++++++++- sys-utils/ipcutils.h | 7 ++++++ 3 files changed, 72 insertions(+), 36 deletions(-) commit 1e2418a234e2361fe1916a835ea59aa19c0e4810 Author: Sami Kerola Date: Sun Nov 11 20:53:07 2012 +0000 ipcs: clean up do_sem(), and add ipc_sem_get_info() Signed-off-by: Sami Kerola sys-utils/ipcs.c | 80 ++++++++++++++++++------------------- sys-utils/ipcutils.c | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++ sys-utils/ipcutils.h | 15 +++++++ 3 files changed, 164 insertions(+), 40 deletions(-) commit 3ec6f77833a530a38592ff0c261c4d4c7c42196b Author: Sami Kerola Date: Sun Oct 21 15:33:25 2012 +0100 ipcs: make individual shared memory id printing to use /proc And reindent the print_shm() function. Signed-off-by: Sami Kerola Signed-off-by: Karel Zak sys-utils/ipcs.c | 45 ++++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 21 deletions(-) commit 7d94d1cebc296cfceb991240f3c2e19028a22adc Author: Karel Zak Date: Mon Nov 5 17:28:07 2012 +0100 ipcs: fix ipc_shm_get_info(), use calloc Signed-off-by: Karel Zak sys-utils/ipcutils.c | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) commit 61e14b4a61818568051471075c39fa595b60bb35 Author: Karel Zak Date: Mon Nov 5 16:48:12 2012 +0100 ipcs: clean up do_shm() - don't expect maxid as argument in ipc_shm_get_info() - if there is @id argument then use it everywhere in ipc_shm_get_info() - don't call shmctl() if not necessary in do_shm() Signed-off-by: Karel Zak sys-utils/ipcs.c | 33 ++++++++++++++++++++++----------- sys-utils/ipcutils.c | 13 +++++++++++-- sys-utils/ipcutils.h | 2 +- 3 files changed, 34 insertions(+), 14 deletions(-) commit 058e81540fbb0d2b780245361fa13376478b7375 Author: Sami Kerola Date: Sun Oct 14 16:01:05 2012 +0100 ipcs: read shared memory values from /proc [kzak@redhat.com: - move to ipcutils.{c,h}, - fix datatypes to be arch independent] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak sys-utils/ipcs.c | 73 +++++++++++++-------------- sys-utils/ipcutils.c | 138 +++++++++++++++++++++++++++++++++++++++++++++++++++ sys-utils/ipcutils.h | 33 ++++++++++++ 3 files changed, 205 insertions(+), 39 deletions(-) commit e5995acda2d3d55ba4d926741ddd789c9776f1e7 Author: Sami Kerola Date: Sun Oct 21 17:40:28 2012 +0100 ipcs: determine ipc limits from /proc Some of the limit values are not dynamic. Like in kernel these values are #defined. [kzak@redhat.com: - use better names for functions, - add ipcutils.{c,h} - read also shmmax from /proc] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak include/pathnames.h | 1 + sys-utils/Makemodule.am | 6 ++- sys-utils/ipcs.c | 120 ++++++++---------------------------------------- sys-utils/ipcutils.c | 89 +++++++++++++++++++++++++++++++++++ sys-utils/ipcutils.h | 102 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 217 insertions(+), 101 deletions(-) commit 37a5c7ee418d9684e3e444934b98a7474a898b3b Author: Karel Zak Date: Mon Nov 5 12:28:00 2012 +0100 lib/path: add path_read_u64() Signed-off-by: Karel Zak include/path.h | 6 +++++- lib/path.c | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) commit ca01695b77815d175814e0826968d2b680e1c629 Author: Karel Zak Date: Mon Nov 5 12:23:55 2012 +0100 lib/path: rename functions to be more explicit ... and to have names compatible with lib/sysfs.c Signed-off-by: Karel Zak include/path.h | 12 ++++++------ lib/path.c | 18 ++++++++++-------- sys-utils/chcpu.c | 22 +++++++++++----------- sys-utils/lscpu.c | 35 ++++++++++++++++++----------------- 4 files changed, 45 insertions(+), 42 deletions(-) commit d2b5c8c4fbfe60218488f93c001dbfe23cdb6137 Author: Sami Kerola Date: Sun Oct 21 17:39:36 2012 +0100 ipcs: add /proc and /sys path definitions The necessary proc and sysfs files are tested to be present. When information files are missing the ipcs will use obsolted system calls, and data structures, as fallback. [kzak@redhat.com: - fix #define _PATH_PROC_IPC_MSG "/proc/sys/kernel/sem" typo] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak include/pathnames.h | 11 +++++++++++ 1 file changed, 11 insertions(+) commit c74a7af17c7a176c358dfaa8e1814786c89ebc14 Author: Karel Zak Date: Thu Nov 22 15:23:14 2012 +0100 su: log failed logins to btmp Signed-off-by: Karel Zak Documentation/TODO | 2 +- login-utils/su-common.c | 52 +++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 51 insertions(+), 3 deletions(-) commit bbc5a5eac417a343b00c713018256d2f31befccb Author: Karel Zak Date: Thu Nov 22 14:45:49 2012 +0100 su: use get_terminal_name() for compatibility with login(1) login(1) uses tty name (!= path) in the syslog messages. Signed-off-by: Karel Zak login-utils/Makemodule.am | 4 ++-- login-utils/su-common.c | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) commit 70aaa7308ba771ab832023fabe5f782d92b332cc Author: Karel Zak Date: Thu Nov 22 14:42:10 2012 +0100 login: use get_terminal_name() from ttyutils.c Signed-off-by: Karel Zak login-utils/login.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) commit 1ef28920f802fd076280ce81efd299bd58ad0e17 Author: Karel Zak Date: Thu Nov 22 14:36:17 2012 +0100 lib/ttyutils: add get_terminal_name() Signed-off-by: Karel Zak include/ttyutils.h | 2 +- lib/ttyutils.c | 45 +++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 44 insertions(+), 3 deletions(-) commit 5f247c8bcd81a4d227051d22f35ea73a31e3616e Author: Karel Zak Date: Thu Nov 22 14:32:21 2012 +0100 lib/ttyutils: add test program Signed-off-by: Karel Zak lib/Makemodule.am | 5 +++++ lib/ttyutils.c | 9 +++++++++ 2 files changed, 14 insertions(+) commit 4e76adb0e1aed7b8a094d26adcef793b51ce252b Author: Karel Zak Date: Thu Nov 22 14:26:41 2012 +0100 lib/ttyutils: create .c file Well, now all tty stuff are incline functions in include/ttyutils.h. It's seems more elegant to create regular lib/ttyutils.c for libcommon and write test program. Signed-off-by: Karel Zak include/ttyutils.h | 35 +++-------------------------------- lib/Makemodule.am | 1 + lib/ttyutils.c | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 32 deletions(-) commit 6f059702964a418a0940e742ce364e5673c258b2 Author: Karel Zak Date: Thu Nov 22 14:25:10 2012 +0100 build-sys: use libcommon.a for lslocks Signed-off-by: Karel Zak misc-utils/Makemodule.am | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) commit b03321129070954acd0083be18d170e868394da2 Author: Karel Zak Date: Thu Nov 22 13:53:25 2012 +0100 su: rename log_su to log_syslog Signed-off-by: Karel Zak login-utils/su-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 5676f36563cb1e7d46067631f08bc1456bbf6736 Author: Karel Zak Date: Thu Nov 22 11:23:53 2012 +0100 agetty: remove @ and # as default kill and erase chars Signed-off-by: Karel Zak term-utils/agetty.8 | 12 +++++++----- term-utils/agetty.c | 4 +--- 2 files changed, 8 insertions(+), 8 deletions(-) commit cb872ac99d66247496af14bf30605536d279a759 Author: Karel Zak Date: Thu Nov 22 11:14:02 2012 +0100 agetty: add --{erase,kill}-chars options We need way to disable the default kill and erase agetty chars to make the getty usable for Active Directory users with '@' in username. It seems that the most extendible solution is to add options that allow to complete control additional erase/kill chars. If you specify empty strings then the chars are disabled at all. Note that this patch is backwardly compatible. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=870854 Signed-off-by: Karel Zak term-utils/agetty.8 | 11 +++++++++++ term-utils/agetty.c | 33 ++++++++++++++++++++++++++++----- 2 files changed, 39 insertions(+), 5 deletions(-) commit f907d66b6346f80ff4d6289eedd46741efa6f415 Author: Karel Zak Date: Wed Nov 21 15:47:56 2012 +0100 libblkid: (gpt) don't modify in memory buffers LIBBLKID_DEBUG=0xffff blkid -p .... gpt: ---> call probefunc() reuse buffer: off=0 len=1024 pr=0xb0b690 reuse buffer: off=0 len=1024 pr=0xb0b690 reuse buffer: off=1024 len=16384 pr=0xb0b690 GPT entries corrupted reuse buffer: off=10737417728 len=512 pr=0xb0b690 reuse buffer: off=10737401344 len=16384 pr=0xb0b690 GPT entries corrupted gpt: <--- (rc = 1) Reported-by: Dave Reisner Signed-off-by: Karel Zak libblkid/src/partitions/gpt.c | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) commit 2968c3fc7388f88b8debe64d61d9785601c16436 Author: Richard W.M. Jones Date: Mon Nov 19 15:02:13 2012 +0000 wipefs: Add --force option to force it to erase. Commit c550f728f724360f99aae0fdb45b0589d9a347e0 added O_EXCL when opening the thing to erase. This broke the wipefs utility when used on anything which isn't an unmounted filesystem. eg. If you use it on a block device containing partitions, then it won't work because the kernel recognizes the partitions and so thinks the device is in use. This change adds the --force option which, when used, undoes the above flag change. However you still have to use --force most of the time when erasing something that isn't a plain unmounted filesystem. Signed-off-by: Richard W.M. Jones misc-utils/wipefs.8 | 3 +++ misc-utils/wipefs.c | 19 +++++++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) commit 933956cb499e12d0d0e5228b6de34ffa5c9a9e08 Author: Karel Zak Date: Mon Nov 19 10:54:58 2012 +0100 agetty: make --autologin useful with --skip-login (prompt) The --autologin prints hostname login: username (automatic login) message. This commit allows to suppress the message at all if --skip-login (aka skip prompt) is specified. It means that agetty --skip-login --noissue --autologin foouser does completely silent autologin. Addresses: https://github.com/karelzak/util-linux/issues/21 Signed-off-by: Karel Zak term-utils/agetty.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) commit 71383195ceabfbba056ce43954d904d31df76728 Author: Karel Zak Date: Mon Nov 19 09:50:08 2012 +0100 uuidgen: fix --random Addresses: https://github.com/karelzak/util-linux/issues/20 Signed-off-by: Karel Zak misc-utils/uuidgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7b4a2697b17dcb9c1d7b1a51f03fbcc3638a2c7b Author: Dave Reisner Date: Thu Nov 15 23:18:07 2012 -0500 umount: (recursive) add a cache to the table Without this table libmount will not resolve paths, meaning that umounting by relative path will fail. [kzak@redhat.com: - use mnt_context_get_cache() to make it sensitive to --no-canonicalize cmdline option] Signed-off-by: Dave Reisner Signed-off-by: Karel Zak sys-utils/umount.c | 2 ++ 1 file changed, 2 insertions(+) commit bbf9ce79eca50e2c9464a4f81571dc2616a5a59b Author: Gleb Fotengauer-Malinovskiy Date: Thu Sep 27 20:48:34 2012 +0400 libmount: fix support of comma-separated fs types lists # grep cdrom /etc/fstab /dev/sr0 /media/cdrom udf,iso9660 ro,noauto,user,utf8 0 0 # mount /media/cdrom mount: unknown filesystem type 'udf,iso9660' # mount -t udf,iso9660 /dev/sr0 /media/cdrom mount: /dev/sr0 is write-protected, mounting read-only [kzak@redhat.com: - add some comments - don't try to found external helpers for the types] Signed-off-by: Gleb Fotengauer-Malinovskiy Signed-off-by: Karel Zak libmount/src/context.c | 10 ++++++---- libmount/src/context_mount.c | 10 +++++++--- 2 files changed, 13 insertions(+), 7 deletions(-) commit ae978c4d6ca376bdab6398e635be1664be370ffa Author: Karel Zak Date: Thu Nov 15 16:44:07 2012 +0100 umount: (recursive) don't call umount(2) for already unmounted targets In the umount --recursive we follow entries from mountinfo, but the entries maybe already obsolete. Especially if the hierarchy of the mountpoints contains shared subtrees and umount(2) for one entry may generate umount for some other entry too. Signed-off-by: Karel Zak libmount/src/tab.c | 14 +++++++++----- sys-utils/umount.c | 38 +++++++++++++++++++++++++++++++------- 2 files changed, 40 insertions(+), 12 deletions(-) commit 7dd72c98349b58d5eb34180029e0b9ca1e13b981 Author: Karel Zak Date: Thu Nov 15 16:42:56 2012 +0100 tests: add shared subtrees to umount --recursive test Signed-off-by: Karel Zak tests/expected/mount/umount-recursive | 2 ++ tests/ts/mount/umount-recursive | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) commit f3107fc244b960e6ec88b25fac65fcf3412c9b89 Author: Karel Zak Date: Thu Nov 15 16:42:05 2012 +0100 libmount: don't reset NOSWAPMATCH context flag Signed-off-by: Karel Zak libmount/src/context.c | 1 + 1 file changed, 1 insertion(+) commit 224f5b92ac25208e41d342bd3bb082a056ae4d70 Author: Karel Zak Date: Thu Nov 15 15:59:59 2012 +0100 libmount: don't try to play with loopdevs if umount argument is really mountpoint Signed-off-by: Karel Zak libmount/src/context_umount.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) commit 9be1607fa340f222a23e193ee91ed894ebf49c32 Author: Karel Zak Date: Thu Nov 15 15:35:24 2012 +0100 libmount: more robust tab filter usage Signed-off-by: Karel Zak libmount/src/context.c | 5 +++++ libmount/src/tab_parse.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) commit bec4e32bfba6fe44d7aa988a5722f38d5bc2f4cc Author: Karel Zak Date: Thu Nov 15 13:34:14 2012 +0100 tests: add umount --recursive test Signed-off-by: Karel Zak tests/expected/mount/umount-recursive | 12 +++++ tests/ts/mount/umount-recursive | 90 +++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) commit a8cc72dea0f4641f44fc48488f6eb7a86a9e309e Author: Karel Zak Date: Thu Nov 15 11:55:48 2012 +0100 umount: clean --recursive - mark some options combinations mutually exclusive - reset libmount context before next umount (this is important!) Signed-off-by: Karel Zak sys-utils/umount.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) commit 1f8590b56b8a461014acb3b7d041c1af3f658613 Author: Karel Zak Date: Wed Nov 14 13:14:29 2012 +0100 libblkid: remove obsolete tags from cache The libblkid cache tags are not removed if a new version of the tags is empty (e.g. label 'foo' -> ''). # mkfs.ext4 -L test_label /dev/sda15 # blkid /dev/sda15 /dev/sda15: LABEL="test_label" # tune2fs -L '' /dev/sda15 # blkid /dev/sda15 /dev/sda15: LABEL="test_label" ^^^^^^^^^^ Reported-by: Mike Fleetwood Signed-off-by: Karel Zak libblkid/src/tag.c | 2 +- libblkid/src/verify.c | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) commit e9bf0935d63ea4788f77bebee9295368252302d0 Author: Davidlohr Bueso Date: Wed Nov 14 00:04:24 2012 -0800 fdisk: gpt: check header size UEFI states that the size of the GPT header must be between 92 and the sector size. Add the check when verifying a valid header. Signed-off-by: Davidlohr Bueso fdisks/gpt.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) commit 74b89d7d7a80b0d26489fd3fa7bac831144e599c Author: Karel Zak Date: Tue Nov 13 18:05:36 2012 +0100 fdisk: don't offer GPT stuff in BSD menu Signed-off-by: Karel Zak fdisks/fdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 06069d5f636d68736a2bd7ab406efd9645a40cac Author: Karel Zak Date: Tue Nov 13 16:50:02 2012 +0100 umount: allways return MOUNT_EX_* Signed-off-by: Karel Zak sys-utils/umount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 13ee1c911657bb55f7e624470d9a275540cd6720 Author: Dave Reisner Date: Wed Nov 7 13:02:28 2012 -0500 umount: add -R, --recursive option This allows unmounting of an entire tree of filesystems, which might be of particular interest for a shutdown initramfs. [kzak@redhat.com: - always return MOUNT_EX_* codes - cosmetic changes on coding style] Signed-off-by: Dave Reisner Signed-off-by: Karel Zak sys-utils/umount.8 | 4 +++ sys-utils/umount.c | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 85 insertions(+), 4 deletions(-) commit d4bfa64d44e0515c59e5274d2384dedd9f9d4cc8 Author: Karel Zak Date: Tue Nov 13 10:36:25 2012 +0100 lscpu: make read_topology() more robust to avoid SIGFPE Signed-off-by: Karel Zak sys-utils/lscpu.c | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) commit a901dd5dadbbcdc51c7cbd65d5cea53474f9732f Author: Karel Zak Date: Mon Nov 12 16:21:29 2012 +0100 tests: add armv7 lscpu dump Signed-off-by: Karel Zak tests/expected/lscpu/lscpu-armv7 | 12 ++++++++++++ tests/ts/lscpu/dumps/armv7.tar.gz | Bin 0 -> 3163 bytes 2 files changed, 12 insertions(+) commit 16872ce11e1b3eb60a62e30d83f4ce5614aa133d Author: Karel Zak Date: Mon Nov 12 16:21:09 2012 +0100 tests: add ppc64-POWER7-64cpu lscpu dump Signed-off-by: Karel Zak tests/expected/lscpu/lscpu-ppc64-POWER7-64cpu | 80 +++++++++++++++++++++++++ tests/ts/lscpu/dumps/ppc64-POWER7-64cpu.tar.gz | Bin 0 -> 56662 bytes 2 files changed, 80 insertions(+) commit a292bbdeceb361c61c20579b30a20a90dbcebdc9 Author: Karel Zak Date: Mon Nov 12 15:00:24 2012 +0100 tests: remove lscpu /sys dumps without 'possible' CPU mask Signed-off-by: Karel Zak tests/ts/lscpu/dumps/i386-amdshanghai.tar.gz | Bin 3395 -> 0 bytes tests/ts/lscpu/dumps/i386-dellpe700.tar.gz | Bin 799 -> 0 bytes tests/ts/lscpu/dumps/i386-intels5000phb.tar.gz | Bin 2865 -> 0 bytes tests/ts/lscpu/dumps/ia64-512cpus.tar.gz | Bin 67254 -> 0 bytes tests/ts/lscpu/dumps/ia64-hpmatterhorn.tar.gz | Bin 3514 -> 0 bytes tests/ts/lscpu/dumps/ia64-hprx1620.tar.gz | Bin 1384 -> 0 bytes tests/ts/lscpu/dumps/ia64-pg0.tar.gz | Bin 7784 -> 0 bytes tests/ts/lscpu/dumps/sparc64-UltraSparc-T1.tar.gz | Bin 23071 -> 0 bytes tests/ts/lscpu/dumps/x86_64-dell_poweredge1950.tar.gz | Bin 1492 -> 0 bytes tests/ts/lscpu/dumps/x86_64-dell_poweredgeR610.tar.gz | Bin 14095 -> 0 bytes tests/ts/lscpu/dumps/x86_64-dellr710.tar.gz | Bin 14300 -> 0 bytes tests/ts/lscpu/dumps/x86_64-el5xen.tar.gz | Bin 7296 -> 0 bytes tests/ts/lscpu/dumps/x86_64-hpdl585.tar.gz | Bin 6910 -> 0 bytes tests/ts/lscpu/dumps/x86_64-ibme326m.tar.gz | Bin 1461 -> 0 bytes tests/ts/lscpu/dumps/x86_64-necem14.tar.gz | Bin 1307 -> 0 bytes 15 files changed, 0 insertions(+), 0 deletions(-) commit a5cfffff28a4eb10604750b0f1f4e8696af3947c Author: Toshi Kani Date: Tue Oct 23 13:49:46 2012 -0600 lscpu: Fix issue found on CPU hot-remove read_basicinfo() relies on sysfs cpu directories "/sys/devices/system/cpu/cpu%d" with assumption that cpu logical number %d is always sequentially assigned for all CPUs. However, this assumption is not correct with CPU hot-remove operation since it removes a target sysfs cpu directory after it is ejected. As a result, lscpu may not recognize all CPUs. The issue can be easily reproduced on KVM or VirtualBox, which supports CPU eject operation, as follows. 1) The system has 4 CPUs $ lscpu -a -e CPU NODE SOCKET CORE L1d:L1i:L2 ONLINE 0 0 0 0 0:0:0 yes 1 0 1 1 1:1:1 yes 2 0 2 2 2:2:2 yes 3 0 3 3 3:3:3 yes 2) Eject cpu2 # echo 1 > /sys/bus/acpi/devices/LNXCPU:02/eject 3) lscpu no longer recognizes cpu3 after cpu2 is ejected $ lscpu -a -e CPU NODE SOCKET CORE L1d:L1i:L2 ONLINE 0 0 0 0 0:0:0 yes 1 0 1 1 1:1:1 yes The following changes are made to address this issue. - Use maxcpus to allocate and parse bitmaps. - Set desc->ncpu from cpu/present, which includes both on-line and off-line CPUs. - Add is_cpu_present() to check if a CPU is present. Ejected CPUs are not present. [kzak@redhat.com: - read also /sys/devices/system/cpu/possible mask to determine maximal number of CPUs, - err() if possible mask is not found in /sys] Signed-off-by: Toshi Kani Signed-off-by: Karel Zak sys-utils/lscpu.c | 66 ++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 44 insertions(+), 22 deletions(-) commit 65178cb3f24c02f902869a102cd0456aa917bb03 Author: Karel Zak Date: Mon Nov 12 14:36:29 2012 +0100 losetup: allow to use -O without --list Signed-off-by: Karel Zak sys-utils/losetup.c | 2 ++ 1 file changed, 2 insertions(+) commit 4ad996d7f9cf5b9322796cffc147e3c25c0bf552 Author: Karel Zak Date: Mon Nov 12 13:24:45 2012 +0100 losetup: rename SIZE->SIZELIMIT Signed-off-by: Karel Zak sys-utils/losetup.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit ead259e325367b1752d63dbbdb63dc53cd1c632b Author: Karel Zak Date: Mon Nov 12 13:23:19 2012 +0100 docs: mark old losetup output format as DEPRECATED Signed-off-by: Karel Zak Documentation/TODO | 6 ------ Documentation/deprecated.txt | 18 ++++++++++++++++++ sys-utils/losetup.8 | 5 ++++- 3 files changed, 22 insertions(+), 7 deletions(-) commit 896352d3906c19e8519670f1a511afb01083ed5e Author: Ondrej Oprala Date: Mon Nov 12 13:08:00 2012 +0100 losetup: add --list and --output option The --list --all is the default output: # losetup NAME SIZE OFFSET AUTOCLEAR RO BACK-FILE /dev/loop0 0 0 0 0 /home/fs-images/swap.img /dev/loop1 0 100 0 0 /home/fs-images/disk.img [kzak@redhat.com: - default to --all if no device specified, - cleanup column names (add BACK- prefix) - add MAJ:MIN to of the loopdev device] Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak sys-utils/losetup.8 | 10 +- sys-utils/losetup.c | 262 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 261 insertions(+), 11 deletions(-) commit b481b622c566cba8474d8e0206aea42fe6691082 Author: Karel Zak Date: Mon Nov 12 12:10:52 2012 +0100 lib/loopdev: make loopcxt_get_device() more robust Signed-off-by: Karel Zak lib/loopdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 874dbb9c9215d3120fc572c4b2cdd6d24fdd483e Author: Karel Zak Date: Fri Nov 9 12:59:33 2012 +0100 lib/console: fix possible fd leak Signed-off-by: Karel Zak lib/consoles.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 27a76b7bd057c6683c5ee100f0d4e3109cc8675d Author: Karel Zak Date: Fri Nov 9 12:52:33 2012 +0100 lib/consoles: try another methods before go to fallback The current code goes immediately to the fallback section if any detection method fails. It seems better to try another methods before the fallback solution. Signed-off-by: Karel Zak lib/consoles.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) commit b25343bbbcfbaef9d24f2b53e7b0c122c5a26413 Author: Karel Zak Date: Fri Nov 9 12:44:00 2012 +0100 lib/consoles: add debug messages - may be enabled by CONSOLES_DEBUG env. variable Signed-off-by: Karel Zak lib/consoles.c | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 59 insertions(+), 8 deletions(-) commit 6ea0921e16eeb94c591c994d71bb0a9ffcb4834e Author: Karel Zak Date: Fri Nov 9 12:18:31 2012 +0100 lib/consoles: TIOCGDEV code refactoring - add missing scandev() otherwise TIOCGDEV make no sense - use this method independent on /proc/cmdline code Signed-off-by: Karel Zak lib/consoles.c | 109 +++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 67 insertions(+), 42 deletions(-) commit 4fcee23da592ab88c693131ffcf5659ab12e7661 Author: Karel Zak Date: Fri Nov 9 11:52:11 2012 +0100 lib/consoles: cmdline code refactoring Signed-off-by: Karel Zak lib/consoles.c | 163 ++++++++++++++++++++++++++++++++------------------------- 1 file changed, 91 insertions(+), 72 deletions(-) commit 615eada9b22255a1544b7a024e3ff4474121c5f7 Author: Karel Zak Date: Fri Nov 9 11:17:23 2012 +0100 lib/consoles: sysfs code refactoring Signed-off-by: Karel Zak lib/consoles.c | 101 ++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 64 insertions(+), 37 deletions(-) commit aded518ae122cda91098cf3391ac755f09465c74 Author: Karel Zak Date: Fri Nov 9 10:49:56 2012 +0100 lib/consoles: /proc/consoles code refactoring - move to separate function - cleanup code - fix fscanf() usage to avoid buffer overflow Signed-off-by: Karel Zak lib/consoles.c | 82 +++++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 55 insertions(+), 27 deletions(-) commit 97909f6131015d19624ea2ec51f8de4a54741ec5 Author: Karel Zak Date: Fri Nov 9 10:30:14 2012 +0100 lib/consoles: small cleanup Signed-off-by: Karel Zak lib/consoles.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) commit f0d6004ce7d530ae55453418d32a99a3c4864a48 Author: Karel Zak Date: Fri Nov 9 10:18:49 2012 +0100 lib/consoles: don't call perror() Signed-off-by: Karel Zak lib/consoles.c | 37 ++++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) commit 82d11fbd0fd37cb4bf56afa25a071408de93b8f2 Author: Karel Zak Date: Fri Nov 9 10:12:35 2012 +0100 lib/consoles: add test program Signed-off-by: Karel Zak lib/Makemodule.am | 5 +++++ lib/consoles.c | 27 +++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) commit cf987d0aa7f1f2efa3c80ab329f095cd315d0ee0 Author: Karel Zak Date: Fri Nov 9 10:06:23 2012 +0100 lib/consoles: remove global variable consoles Signed-off-by: Karel Zak include/consoles.h | 5 +++-- lib/consoles.c | 36 +++++++++++++++++------------------- 2 files changed, 20 insertions(+), 21 deletions(-) commit 6c7c1eaf2a3372347852aeeb00f95907b0e1a4ba Author: Karel Zak Date: Fri Nov 9 09:52:35 2012 +0100 lib/consolas: remove global variable concount, fix linked list Signed-off-by: Karel Zak lib/consoles.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) commit 53e0a68806bc4b1d605ca92edbdd1a234c0960a8 Author: Karel Zak Date: Thu Nov 8 17:25:09 2012 +0100 lib/consoles: remove global variable initcp Signed-off-by: Karel Zak lib/consoles.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit e0e5974fde081584861cf4ce1b8a37df26ff18f3 Author: Karel Zak Date: Thu Nov 8 17:22:45 2012 +0100 lib/consoles: remove global variable comparedev Signed-off-by: Karel Zak lib/consoles.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) commit 95226b5522ca3d3cc31225e46915140c1009159b Author: Karel Zak Date: Thu Nov 8 17:04:01 2012 +0100 lib/consoles: minor clean ups Signed-off-by: Karel Zak lib/consoles.c | 86 ++++++++++++++++++++++++++++------------------------------ 1 file changed, 41 insertions(+), 45 deletions(-) commit 3a08f74f1d9b85be4e7454daa15bf3c8413a69b5 Author: Werner Fink Date: Thu Nov 8 15:55:48 2012 +0100 lib/consoles: add code to detect all system consoles Signed-off-by: Werner Fink include/Makemodule.am | 1 + include/consoles.h | 48 +++++ lib/Makemodule.am | 1 + lib/consoles.c | 508 ++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 558 insertions(+) commit 958e39d238fa8d880d1dda963c7f0fcd264c0f61 Author: Sami Kerola Date: Tue Nov 6 21:14:14 2012 +0000 script: do not try to close stderr twice The commit cdd2a8c360c70d16804ace7cc923a6c6bb7c9ca9 broke script(1) return value. $ script -e -c "echo"; echo $? 1 The reason, as Daniel it reported, was that the script will close stderr twice, once as timing file and atexit() in function close_stdout(). This commit fixes the problem. Reported-by: Daniel Narvaez Signed-off-by: Sami Kerola term-utils/script.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) commit 3da7f698c17f64512994593e9c368181d4c52488 Author: Karel Zak Date: Thu Nov 8 14:43:38 2012 +0100 libmount: convert /dev/root from mountinfo to the device name Signed-off-by: Karel Zak libmount/src/tab_parse.c | 45 ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 40 insertions(+), 5 deletions(-) commit f308ec19a71327b5601915ce6f8064eefe6ee0d5 Author: Karel Zak Date: Thu Nov 8 11:52:23 2012 +0100 libmount: add private mnt_get_kernel_cmdline_option() Signed-off-by: Karel Zak include/pathnames.h | 3 + libmount/src/mountP.h | 2 + libmount/src/utils.c | 91 ++++++++++++++++++++++++++++ tests/expected/libmount/utils-kernel-cmdline | 5 ++ tests/ts/libmount/files/kernel_cmdline | 1 + tests/ts/libmount/utils | 9 +++ 6 files changed, 111 insertions(+) commit 021eb7bc3f22af13b14ac161a3872ad570ac20c9 Author: Karel Zak Date: Wed Nov 7 20:46:38 2012 +0100 docs: update TODO file Signed-off-by: Karel Zak Documentation/TODO | 5 ----- 1 file changed, 5 deletions(-) commit 360e088738aa792bf6c52e777d64b5163b45362a Author: Karel Zak Date: Wed Nov 7 15:20:39 2012 +0100 su: fix "COMMAND not specified" error # su su: COMMAND not specified This error message make sense for "runuser -u " only. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=872787 Signed-off-by: Karel Zak login-utils/su-common.c | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) commit a402012e6198e2361f3e6d9f9250c4026f53217f Author: Karel Zak Date: Wed Nov 7 14:39:43 2012 +0100 lsblk: fix and update man page about --scsi Signed-off-by: Karel Zak misc-utils/lsblk.8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 9b5535b38885a85a1648e4846228bb064d39605c Author: Karel Zak Date: Wed Nov 7 14:34:51 2012 +0100 lsblk: add TRANsport to --scsi output Signed-off-by: Karel Zak misc-utils/lsblk.c | 1 + 1 file changed, 1 insertion(+) commit a0e3e3de7b13fabf8db1dac3cd12095933c79c59 Author: Karel Zak Date: Wed Nov 7 14:25:32 2012 +0100 lsblk: don't ignore disk device Signed-off-by: Karel Zak misc-utils/lsblk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 28ffc2b7350bcb6c43b885c660b6250e4207ec72 Author: Milan Broz Date: Fri Nov 2 18:56:31 2012 +0100 lsblk: Add --scsi switch The --scsi switch prints similar information to lsscsi command. Signed-off-by: Milan Broz misc-utils/lsblk.8 | 2 ++ misc-utils/lsblk.c | 23 ++++++++++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) commit 99f43b721f3dd31dcc8bdb1835c66c5b735aa63f Author: Milan Broz Date: Fri Nov 2 18:56:30 2012 +0100 lsblk: Add vendor column Signed-off-by: Milan Broz misc-utils/lsblk.c | 9 +++++++++ 1 file changed, 9 insertions(+) commit d6681ceeb15ffd6b08a76736d48032d6899958ba Author: Milan Broz Date: Fri Nov 2 18:56:29 2012 +0100 lsblk: Add revision column Signed-off-by: Milan Broz misc-utils/lsblk.c | 9 +++++++++ 1 file changed, 9 insertions(+) commit c13d60b291cfe3e2c094225195d967c9f195ca54 Author: Michal Schmidt Date: Mon Oct 29 23:33:01 2012 +0100 agetty: fix autodetection for TERM open_tty() autodetects whether to set TERM to "linux" or "vt102", but it can apply the result only if op->term is still NULL. term-utils/agetty.c | 1 - 1 file changed, 1 deletion(-) commit 3f73100190e26d531b715dccfcf7ea07936d6a9d Author: Davidlohr Bueso Date: Sat Oct 27 19:23:47 2012 +0200 gpt: create empty disklabels This patch enables creating a new, empty, GPT disklabel from either an empty disk or one that already has a disklabel. For this purpose, a 'g' option is added to the main menu and is visible to all labels. Here's an example for a scsi_debug device (/dev/sdb): ... Device does not contain a recognized partition table Building a new DOS disklabel with disk identifier 0x20a614c8. 3696: fdisk: CONTEXT: zeroize in-memory first sector buffer Command (m for help): g 3696: fdisk: LABEL: changing to gpt label 3696: fdisk: CONTEXT: zeroize in-memory first sector buffer 3696: fdisk: LABEL: created new empty GPT disklabel (GUID: D4EA0706-F011-46DC-B7DE-6A72C7090AF8) Command (m for help): w The partition table has been altered! ... Acked-by: Petr Uzel Signed-off-by: Davidlohr Bueso fdisks/fdisk.c | 4 ++ fdisks/gpt.c | 202 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 200 insertions(+), 6 deletions(-) commit 1961311196cdc290d5e0951f29882d42e01dadd9 Author: Davidlohr Bueso Date: Sat Oct 27 19:23:36 2012 +0200 fdisk: gpt: write entire first sector We were writing only 1 byte in LBA0, and GPT requires dealing with an entire sector. This bug wasn't affecting when dealing with already existing devices with GPT as we weren't writing an important part of the first sector, thus leaving it unchanged. Also use write_all() wrapper from all-io.h Acked-by: Petr Uzel Signed-off-by: Davidlohr Bueso fdisks/gpt.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) commit e21e6d265d3803e51db2be6a332a601280fce7a8 Author: Karel Zak Date: Fri Nov 2 12:07:36 2012 +0100 build-sys: cleanup cpu_set_t usage - make taskset depend on cpu_set_t - make cpuset.c optional for libcommon and lib/path.c Signed-off-by: Karel Zak configure.ac | 1 + include/path.h | 10 ++++++++++ lib/Makemodule.am | 5 ++++- lib/path.c | 5 ++++- 4 files changed, 19 insertions(+), 2 deletions(-) commit 6cf20040dd8e2c79b9ac3028b09200a3ca871b93 Author: Karel Zak Date: Fri Nov 2 09:17:49 2012 +0100 sfdisk: fix formatting typo in man page Signed-off-by: Karel Zak fdisks/sfdisk.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 47b014f776b402eff91d7002eadf8923fc4e3eb2 Author: Karel Zak Date: Thu Nov 1 13:03:28 2012 +0100 su: fix stupid typo Signed-off-by: Karel Zak login-utils/runuser.c | 4 ++-- login-utils/su.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) commit 5b68dea9d5771733aa555aa4806fa2767d30e715 Author: Karel Zak Date: Thu Nov 1 12:01:52 2012 +0100 build-sys: move runuser(1) to sbin dir Signed-off-by: Karel Zak login-utils/Makemodule.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7a7f9d388686b32f0f66a45db4f07ea652bdf47c Author: Karel Zak Date: Thu Sep 13 11:58:00 2012 +0200 runuser: add -u to not execute shell Signed-off-by: Karel Zak login-utils/runuser.1 | 20 ++++--- login-utils/su-common.c | 138 +++++++++++++++++++++++++++++++----------------- login-utils/su.1 | 1 + 3 files changed, 105 insertions(+), 54 deletions(-) commit 59414c6b4af56232e5ac218e69a0bbb3f5ba1952 Author: Karel Zak Date: Wed Oct 24 23:59:04 2012 +0200 mount: supports paths canonicalization for alternative fstabs # mount --fstab /path/my.fstab has to support standard operations with paths. Signed-off-by: Karel Zak sys-utils/mount.c | 10 ++++++++++ 1 file changed, 10 insertions(+) commit b2cbe99f3317bcc98fa4ff0f9ad5772aad828457 Author: Karel Zak Date: Wed Oct 24 23:44:11 2012 +0200 libmount: support loopdevs in mnt_table_is_fs_mounted() Signed-off-by: Karel Zak libmount/src/tab.c | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) commit 449a7646d01a2cadc5dfb5268eb28bb9537d5c4e Author: Karel Zak Date: Tue Oct 23 15:45:50 2012 +0200 libmount: tiny refactoring in mnt_table_is_fs_mounted() Signed-off-by: Karel Zak libmount/src/tab.c | 54 +++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) commit 8f3b568cd7c7f618ad22ef7a3d07c3db28dfa77e Author: Karel Zak Date: Tue Oct 23 15:10:26 2012 +0200 fdisk: fix compiler warning [-Wpointer-arith] and floating point exception Signed-off-by: Karel Zak fdisks/fdisksgilabel.c | 24 +++++++++++++----------- sys-utils/readprofile.c | 2 +- 2 files changed, 14 insertions(+), 12 deletions(-) commit 9f51089e7f14f9b6f432a20ca59c0db5e5f16325 Author: Karel Zak Date: Tue Oct 23 12:40:39 2012 +0200 misc: make readlink() usage more robust Signed-off-by: Karel Zak lib/sysfs.c | 2 +- misc-utils/lsblk.c | 4 ++-- misc-utils/lslocks.c | 2 +- sys-utils/eject.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) commit 2f2f7e80f15d5ccb68deee7bd58d2c87a88238e0 Author: Karel Zak Date: Tue Oct 23 12:21:37 2012 +0200 lsblk: use new sysfs functions, clean up get_transport() Signed-off-by: Karel Zak misc-utils/lsblk.c | 84 ++++++++++++++---------------------------------------- 1 file changed, 22 insertions(+), 62 deletions(-) commit a5dc4d2d9567aaa97a5c9ef2f6ce0b5a9124adb8 Author: Karel Zak Date: Tue Oct 23 12:12:07 2012 +0200 lib/sysfs: add SCSI link functions Signed-off-by: Karel Zak include/pathnames.h | 2 ++ include/sysfs.h | 2 ++ lib/sysfs.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 54 insertions(+), 2 deletions(-) commit 23a11c74a6bacf129e170060c85ff32a65b13610 Author: Karel Zak Date: Tue Oct 23 11:32:55 2012 +0200 lib/sysfs: add functions for SCSI host attributes Signed-off-by: Karel Zak include/sysfs.h | 3 +++ lib/sysfs.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ misc-utils/lsblk.c | 53 +++++++++++------------------------------------------ 3 files changed, 66 insertions(+), 42 deletions(-) commit d0f7e5b4a0a1b83e515c9fd894d74ed36d7da5c1 Author: Karel Zak Date: Tue Oct 23 10:57:59 2012 +0200 include/sysfs: add SCSI host:channel:target:lun support Signed-off-by: Karel Zak include/sysfs.h | 11 +++++++++++ lib/sysfs.c | 42 +++++++++++++++++++++++++++++++++++++++--- misc-utils/lsblk.c | 25 ++----------------------- 3 files changed, 52 insertions(+), 26 deletions(-) commit c47681b4e42a7445fc4f559c9073b0f590e9986d Author: Karel Zak Date: Tue Oct 23 10:56:23 2012 +0200 lib/tt: don't ignore "extreme" columns if an free space is available Signed-off-by: Karel Zak lib/tt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit a5fb4d23ebc8456869e548d7c899d57018abe571 Author: Milan Broz Date: Fri Oct 19 14:10:41 2012 +0200 lsblk: add SCSI transport type attribute Patch adds "SCSI transport layer" similar attribute to "lsscsi -t". This is useful for script where you want to distinguish e.g. FC, iSCSI or USB devices from local disks. Detection logic is quite simplified in comparison to lsscsi but it should provide the same output (except detailed transport attributes). Signed-off-by: Milan Broz misc-utils/lsblk.c | 131 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 131 insertions(+) commit 699e5c4f96bb69b3462032386a90cc4f82b77dc9 Author: Milan Broz Date: Fri Oct 19 14:10:40 2012 +0200 lsblk: add SCSI H:C:T:L attribute For block devices it is sometimes useful to print SCSI device ID" Host:Channel:Target:LUN. Patch adds column name HCTL which can be used in lsblk. Signed-off-by: Milan Broz misc-utils/lsblk.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) commit 310c06035630a83dddfafaca55e5de8d0971a20c Author: Milan Broz Date: Fri Oct 19 14:10:39 2012 +0200 lsblk: add parent kernel name column For raw output used in scripts it is sometimes necessary to reconstruct tree of devices. Parent kernel name (PKNAME) provides needed information to do that easily. Signed-off-by: Milan Broz misc-utils/lsblk.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit b8ac29e80fde7fa02aad16807b18e291eddf3602 Author: Karel Zak Date: Mon Oct 22 13:13:02 2012 +0200 login: fix compiler warning [-Wunused-result] It's probably unnecessary paranoia, but let's check if we're able to restore the original IDs after ~/.hushlogin file check. Signed-off-by: Karel Zak login-utils/login.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) commit 2a31396a9cee344fcc3a4d34f5e26954fccc6e16 Author: Karel Zak Date: Mon Oct 22 11:03:09 2012 +0200 include/c: move usleep() fallback to c.h To make it available everywhere in code. Signed-off-by: Karel Zak include/Makemodule.am | 1 - include/all-io.h | 2 ++ include/c.h | 15 +++++++++++++++ include/usleep.h | 18 ------------------ mount-deprecated/fstab.c | 2 +- sys-utils/hwclock-kd.c | 4 +--- sys-utils/rtcwake.c | 1 - text-utils/tailf.c | 1 - 8 files changed, 19 insertions(+), 25 deletions(-) commit dab8e8cfd4e8c91df37918fa7a4f489658c90643 Author: Sami Kerola Date: Fri Oct 12 22:13:05 2012 +0100 build-sys: remove gethostbyname() check Removed as unnecessary, there are no references to gethostbyname() in code. Signed-off-by: Sami Kerola configure.ac | 4 ---- 1 file changed, 4 deletions(-) commit 74b3df85f7f8d3a34a0b97c02413dd602a7b12c8 Author: Sami Kerola Date: Fri Oct 12 22:11:16 2012 +0100 agetty: replace gethostbyname() with getaddrinfo() The gethostbyname() is legacy function which may be withdrawn in a future. Reference: http://pubs.opengroup.org/onlinepubs/009695399/functions/gethostbyname.html Signed-off-by: Sami Kerola term-utils/agetty.8 | 2 +- term-utils/agetty.c | 24 ++++++++++++++++++------ 2 files changed, 19 insertions(+), 7 deletions(-) commit 24f4db69724ab5dc8144eddb2d2feaa631245787 Author: Sami Kerola Date: Fri Oct 12 21:28:41 2012 +0100 logger: replace gethostbyname() with getaddrinfo() The gethostbyname() is legacy function which may be withdrawn in a future. Reference: http://pubs.opengroup.org/onlinepubs/009695399/functions/gethostbyname.html Signed-off-by: Sami Kerola misc-utils/logger.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) commit 913e43b8e2dedbac69880e26fc1eead509fb666e Author: Sami Kerola Date: Fri Oct 12 20:23:54 2012 +0100 libmount, eject: replace index() and rindex() with strrch() or strrchr() Both index() and rindex() are legacy functions which may be withdrawn in a future. Reference: http://pubs.opengroup.org/onlinepubs/009695399/functions/index.html Reference: http://pubs.opengroup.org/onlinepubs/009695399/functions/rindex.html Acked-by: Mike Frysinger Signed-off-by: Sami Kerola libmount/src/tab_parse.c | 4 ++-- sys-utils/eject.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) commit 6c32ae7868dee85720d6b716590dde88ced87fdd Author: Karel Zak Date: Mon Oct 22 10:10:55 2012 +0200 fsck.cramfs: compile with -DINCLUDE_FS_TESTS for make check make check sudo su - cd tests ./run.sh cramfs Signed-off-by: Karel Zak disk-utils/Makemodule.am | 5 +++++ tests/commands.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) commit ed56c9673137bfe98f5dc98a64c8957bf3c9f587 Author: Sami Kerola Date: Wed Oct 10 19:14:43 2012 +0100 docs: add line breaks to whereis.1 Fix to tools script checkmans.sh warning. testing: /home/src/util-linux/misc-utils/whereis.1 :120: warning [p 1, 10.8i, div `an-div', 0.0i]: can't break line Signed-off-by: Sami Kerola misc-utils/whereis.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 4ca5163aa4d4ae39056bb8985c8e0eafc0bb8e34 Author: Karel Zak Date: Fri Oct 19 16:58:11 2012 +0200 include/c: remove MAXHOSTNAMELEN macro Signed-off-by: Karel Zak include/c.h | 11 ----------- 1 file changed, 11 deletions(-) commit 7ff816381500c83bd596af7ae0c1886e8dd494bb Author: Karel Zak Date: Fri Oct 19 16:56:57 2012 +0200 last: stop usig MAXHOSTNAMELEN Signed-off-by: Karel Zak login-utils/last.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) commit a0fc344b785559a0ef3866a9ebe5c082affe84ed Author: Karel Zak Date: Fri Oct 19 16:27:58 2012 +0200 write: stop using MAXHOSTNAMELEN Signed-off-by: Karel Zak term-utils/write.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) commit 2448f336379d1cba610d809b9220e54838af24d6 Author: Karel Zak Date: Fri Oct 19 16:27:46 2012 +0200 agetty: stop using MAXHOSTNAMELEN Signed-off-by: Karel Zak term-utils/agetty.c | 78 +++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 55 insertions(+), 23 deletions(-) commit f0196a13af2d58cd4f48ba0817c568ace4795cdc Author: Karel Zak Date: Fri Oct 19 16:27:29 2012 +0200 login: stop using MAXHOSTNAMELEN Signed-off-by: Karel Zak login-utils/login.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 1b2aa6293d10d9d1b12c8620ab9e4436e678843b Author: Karel Zak Date: Fri Oct 19 16:23:54 2012 +0200 include/xalloc: add xgethostname() The new function allocates memory by xalloc() for hostname and fill in the buffer by gethostname(). Signed-off-by: Karel Zak include/xalloc.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) commit e0b6ab56871b8122dca5ba6237b32687ead8232c Author: Sami Kerola Date: Wed Oct 17 20:26:14 2012 +0100 include/env: unify indentation Signed-off-by: Sami Kerola Signed-off-by: Karel Zak include/env.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) commit 1ee4dff7246949cbebef884d84ccdc127450bee0 Author: Sami Kerola Date: Wed Oct 17 20:16:06 2012 +0100 include/c: add get_hostname_max() inline function Using sysconf(_SC_HOST_NAME_MAX) does not work everywhere. At such even header values for hostname length should be preferred, and if nothing else works guess the maxium being 64 bytes. Based-on-code-by: Karel Zak CC: Mike Frysinger References: http://www.spinics.net/lists/util-linux-ng/msg07050.html Signed-off-by: Sami Kerola Signed-off-by: Karel Zak include/c.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) commit 0b3e1d9baef8dd7ed121c68a1a480d903fb0ad06 Author: Davidlohr Bueso Date: Sun Oct 7 16:34:08 2012 +0200 fdisk: gpt: use swap_efi_guid for new partitions Signed-off-by: Davidlohr Bueso fdisks/gpt.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) commit 42c384fa98d83d473f87dafef46e07b6697ccd9f Author: Davidlohr Bueso Date: Sun Oct 7 16:34:01 2012 +0200 fdisk: fix segfault when printing gpt raw data Signed-off-by: Davidlohr Bueso fdisks/fdisk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 537187be6732e720911ddcd24d74bb7397ddaaf4 Author: Davidlohr Bueso Date: Sun Oct 7 16:33:45 2012 +0200 fdisk: api: improve some comments Signed-off-by: Davidlohr Bueso fdisks/utils.c | 48 ++++++++++++++++++++++++++++++++++-------------- 1 file changed, 34 insertions(+), 14 deletions(-) commit 1f5eb51b79275e32d045fd6718753bf04cde8374 Author: Davidlohr Bueso Date: Sun Oct 7 16:33:37 2012 +0200 fdisk: api: propagate partition deletion to users The generic fdisk_delete_partition() function returns 0 when a partition is correctly deleted, otherwise it's corresponding error (negative values). This, however, does not include problems that can occur in actual label specific contexts, so we need to propagate the corresponding return code, back to the user visible api. Signed-off-by: Davidlohr Bueso fdisks/fdisk.c | 6 ++++-- fdisks/fdisk.h | 2 +- fdisks/fdiskbsdlabel.c | 6 ++++-- fdisks/fdiskdoslabel.c | 4 +++- fdisks/fdisksgilabel.c | 13 ++++++++----- fdisks/fdisksunlabel.c | 12 +++++++----- fdisks/gpt.c | 8 +++++--- fdisks/utils.c | 3 +-- 8 files changed, 33 insertions(+), 21 deletions(-) commit 2831866ed6e452a2255373a2499e3647f06bbfb5 Author: Karel Zak Date: Thu Oct 18 10:48:01 2012 +0200 docs: update deprecated file The goal is to consolidate the very basic linux commands and minimize dependence on another packages (e.g. shadow-utils). It seems better to keep newgrp, vipw and vigr as non-deprecated for now. Maybe we will found a way how to improve the code. We will see... :-) Signed-off-by: Karel Zak Documentation/deprecated.txt | 15 --------------- 1 file changed, 15 deletions(-) commit df0f2ad7633b3e2cc830298239cbaaa656e724cd Author: Karel Zak Date: Wed Oct 17 11:43:39 2012 +0200 lib/loopdev: check for /sys The current loopdev code prefers /sys to get information about loop devices. The old methods like scan /dev are fallback solution only. Unfortunately, the code does not check if /sys is mounted. Addresses: http://blog.flameeyes.eu/2012/10/sophistication-can-be-bad Signed-off-by: Karel Zak lib/loopdev.c | 6 ++++++ 1 file changed, 6 insertions(+) commit f4bf95926a5a4cda9328154f3804f0b6f542897d Author: Karel Zak Date: Wed Oct 17 11:42:21 2012 +0200 lib/loopdev: improve debug messages Signed-off-by: Karel Zak lib/loopdev.c | 22 ++++++++++++++++++---- sys-utils/losetup.c | 2 -- 2 files changed, 18 insertions(+), 6 deletions(-) commit 098ce273cab48c806e6da0ccda197e6309dbfadc Author: Ondrej Oprala Date: Tue Oct 9 12:32:55 2012 +0200 dmesg: Add a --color option to colorize error and panic messages [kzak@redhat.com: - update man page - colorize critical messages too] Signed-off-by: Karel Zak Signed-off-by: Ondrej Oprala sys-utils/dmesg.1 | 2 ++ sys-utils/dmesg.c | 41 ++++++++++++++++++++++++++++++++++++++--- 2 files changed, 40 insertions(+), 3 deletions(-) commit dfa68ad183617ef2a18e86ea7782c4e95c0f8e01 Author: Ondrej Oprala Date: Tue Oct 16 16:39:00 2012 +0200 lib/color: add module for work with terminal colors [kzak@redhat.com: - split from dmesg patch - add more colors] Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak include/colors.h | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ lib/Makemodule.am | 1 + lib/colors.c | 28 ++++++++++++++++++++++++++++ 3 files changed, 79 insertions(+) commit b4359220da23d6bf5a8c0c8c3f5153c850ff643a Author: Bill Pemberton Date: Wed Oct 10 16:54:02 2012 -0400 mount: add long options for -L and -U to man page The -L and -U flags both have long options too (--label and --uuid). The usage() function will show them but the man page didn't list them. Signed-off-by: Bill Pemberton sys-utils/mount.8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 249fd0114fcb2e54911af4cb5210c9a98d485acb Author: Bill Pemberton Date: Wed Oct 10 16:54:01 2012 -0400 mount: add -c abbreviation for --no-canonicalize to man page The --no-canonicalize option can also be set using -c. The --help for mount shows this option but the man page did not. Add -c to the man page. Signed-off-by: Bill Pemberton sys-utils/mount.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a887e5844d22ac8e2b1a6fde4908ba961d8e9499 Author: Bill Pemberton Date: Wed Oct 10 16:54:00 2012 -0400 docs: remove hwclock --compare from TODO commit 83765871ef0d6c554c46027577648b77c7351a78 added the --compare option to hwclock so it can be removed from the TODO. Signed-off-by: Bill Pemberton Documentation/TODO | 21 --------------------- 1 file changed, 21 deletions(-) commit d0b76eacc8182333908077699277168888e438fd Author: Bill Pemberton Date: Wed Oct 10 16:53:59 2012 -0400 hwclock: add the --compare option to the man page The compare option for hwclock was not listed in the man page. This adds a simple decription of it. Signed-off-by: Bill Pemberton sys-utils/hwclock.8 | 5 +++++ 1 file changed, 5 insertions(+) commit c038564d165f8cbb4965f41a64c32212cf85a35c Author: Karel Zak Date: Tue Oct 16 11:27:35 2012 +0200 docs: add su(1) btmp logging Signed-off-by: Karel Zak Documentation/TODO | 6 ++++++ 1 file changed, 6 insertions(+) commit 72980306ec41702e9f95ceaa664c205f670fdd77 Author: Karel Zak Date: Mon Oct 15 17:28:02 2012 +0200 tests: add mising "export" keyword Signed-off-by: Karel Zak tests/ts/cramfs/mkfs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 92273ea17731cea40f8bc65496b792fbc8a6862a Author: Gilles Espinasse Date: Sun Oct 14 17:19:10 2012 +0200 tests: skip ipcs limits overflow when bc is not available Found only this one while trying as-root tests Signed-off-by: Gilles Espinasse tests/ts/ipcs/limits | 1 + 1 file changed, 1 insertion(+) commit a4bc341c7d09630eadfcfb61dae6adb246beecad Author: Gilles Espinasse Date: Sun Oct 14 15:52:55 2012 +0200 tests: fix ipcs basic limit when bc is not available Skip basic limit test if bc is not available. That happen to be the case when building from sources, following LFS book Signed-off-by: Gilles Espinasse tests/ts/ipcs/limits2 | 1 + 1 file changed, 1 insertion(+) commit 39e119f5dc0f7bc9fcfe87b3bdbc6333a6b2da3c Author: Raul Gutierrez Segales Date: Sat Oct 13 08:59:31 2012 -0700 libmount: fixed comment about param Signed-off-by: Raul Gutierrez Segales libmount/src/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit e37cd480f9ca0709d2c47a545d72e5ae1450ca7f Author: Karel Zak Date: Mon Oct 15 17:01:30 2012 +0200 libblkid: fix compiler warning [-Wstrict-aliasing] libblkid/src/superblocks/befs.c: In function 'get_uuid': libblkid/src/superblocks/befs.c:353:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Signed-off-by: Karel Zak libblkid/src/superblocks/befs.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) commit e09bd8d0c54053c5c3f977cea633c6c69f2c6e1a Author: Sami Kerola Date: Mon Oct 8 08:08:20 2012 +0100 swapon: remove loop declaration [smatch scan] sys-utils/swapon.c:677:2: error: 'for' loop initial declarations are only allowed in C99 mode Signed-off-by: Sami Kerola sys-utils/swapon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 53078e08879cdef94d37128f6e99ac8e024f36fb Author: Sami Kerola Date: Mon Oct 8 08:08:19 2012 +0100 more: remove few memory leaks The remaining memory leaks are related to ncurses internals, or the one open file descriptor when user users 'q' to exit. Signed-off-by: Sami Kerola text-utils/more.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) commit 1ee762370d0669fe1c5d4fdf76fd6d148286737a Author: Sami Kerola Date: Mon Oct 8 08:08:18 2012 +0100 more: align void in functions with prototypes, and remove void casts If there is void in argument list at function prototype it is reasonable to expect to see it also where the function is wrote. This change also removes unnecessary return value void casting. Signed-off-by: Sami Kerola text-utils/more.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) commit 4eaab145eb8bccf7e332dc1c75dea7d47ef18c86 Author: Sami Kerola Date: Mon Oct 8 08:08:17 2012 +0100 more: fix coding style Signed-off-by: Sami Kerola text-utils/more.c | 3408 ++++++++++++++++++++++++++--------------------------- 1 file changed, 1694 insertions(+), 1714 deletions(-) commit bb7ae5bfa71151ff8526762c76c1fb9f483c4dc7 Author: Sami Kerola Date: Mon Oct 8 08:08:16 2012 +0100 pg: fix coding style Signed-off-by: Sami Kerola text-utils/pg.c | 686 ++++++++++++++++++++++++-------------------------------- 1 file changed, 287 insertions(+), 399 deletions(-) commit 7d35cf4e5766f4968ea75ec222554064508d4e94 Author: Sami Kerola Date: Mon Oct 8 08:08:15 2012 +0100 pg: do not turn off warnigns artificially Compiler warnings often mean something, fiddling with them is not good practise. Besides the 'proglem' removed macro tried to 'fix' does not even occur when compiling with modern gcc. Signed-off-by: Sami Kerola text-utils/pg.c | 21 --------------------- 1 file changed, 21 deletions(-) commit 69f3ff5e7eb071a4125f591ea592898a29b3bad6 Author: Sami Kerola Date: Mon Oct 8 08:08:14 2012 +0100 pg: use unistd.h STDOUT_FILENO Signed-off-by: Sami Kerola text-utils/pg.c | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) commit f494ef65e0ad5a5798339124c7f90e874462df68 Author: Sami Kerola Date: Mon Oct 8 08:08:13 2012 +0100 pg: add noreturn function attributes Signed-off-by: Sami Kerola text-utils/pg.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit 4cf02b65109029a38f708148dea8d2bdf2fa19de Author: Sami Kerola Date: Mon Oct 8 08:08:07 2012 +0100 ddate: remove from util-linux See RedHat bug for reasons why the ddate is cleaned up. The reference is where to get the command in future. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=823156 References: https://github.com/bo0ts/ddate Acked-by: Petr Uzel Signed-off-by: Sami Kerola Signed-off-by: Karel Zak .gitignore | 1 - Documentation/howto-usage-function.txt | 2 +- Makefile.am | 3 +- configure.ac | 11 - man/ru/ddate.1 | 123 -------- misc-utils/Makemodule.am | 7 - misc-utils/ddate.1 | 114 -------- misc-utils/ddate.c | 374 ------------------------ tests/expected/build-sys/config-all | 1 - tests/expected/build-sys/config-all-devel | 1 - tests/expected/build-sys/config-all-non-nls | 1 - tests/expected/build-sys/config-devel | 1 - tests/expected/build-sys/config-devel-new-mount | 1 - tools/checkmans.sh | 2 +- 14 files changed, 3 insertions(+), 639 deletions(-) commit 8b8f3fa5d9bac9bab0a9d87bc1a9b1a6a4fe63b2 Author: Sami Kerola Date: Mon Oct 8 08:08:12 2012 +0100 pg: add const qualifiers where suitable Includes a fix also to one assignment warning (see below). text-utils/pg.c:1477:24: warning: assignment discards 'const' qualifier \ from pointer target type [enabled by default] [kzak@redhat.com: - use const char rather than xstrdup() for static /bin/sh string] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak text-utils/pg.c | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) commit 5ad961719df99fc17c08c3ac5428a7f8c979b468 Author: Sami Kerola Date: Mon Oct 8 08:08:11 2012 +0100 pg: use libc error printing facilities Signed-off-by: Sami Kerola text-utils/pg.c | 39 ++++++++++++--------------------------- 1 file changed, 12 insertions(+), 27 deletions(-) commit f2d2af5e3c8d48b2519451462f28a245e25f8266 Author: Sami Kerola Date: Mon Oct 8 08:08:10 2012 +0100 pg: refactor argument handing Add function parse_arguments(), which has the same code block that was in over long, and too deeply intended, main(). Signed-off-by: Sami Kerola text-utils/pg.c | 159 ++++++++++++++++++++++++++++++-------------------------- 1 file changed, 84 insertions(+), 75 deletions(-) commit 3295cde4afc03e9513658ba35e3cd53c25056417 Author: Sami Kerola Date: Mon Oct 8 08:08:09 2012 +0100 docs: fix column.1 groff syntax error Quote backslash which user is expected to see. Signed-off-by: Sami Kerola text-utils/column.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 47bd8ddc5b72739cf30f287ce84c984eb05b124e Author: Sami Kerola Date: Mon Oct 8 08:08:08 2012 +0100 column: add --output-separator option The --output-separator option will allow user to define table column separator. This will allow for example to write back same delimeter as which was used as input separator, for example column -t -s : -o : /etc/passwd Signed-off-by: Sami Kerola text-utils/column.1 | 2 ++ text-utils/column.c | 20 +++++++++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) commit f150ac37bc60579a4c956470a2fbd797612a20a3 Author: Sami Kerola Date: Wed Oct 3 23:14:26 2012 +0100 mkfs.minix: check numeric user inputs Signed-off-by: Sami Kerola Signed-off-by: Karel Zak disk-utils/mkfs.minix.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) commit 2e472189c1a818b83158e305140adbb03fdc29f9 Author: Sami Kerola Date: Tue Oct 2 21:15:18 2012 +0100 pg: check numeric user inputs Signed-off-by: Sami Kerola Signed-off-by: Karel Zak text-utils/Makemodule.am | 4 ++-- text-utils/pg.c | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) commit 9404a96a579f2ebd82d77c3ba8211cd279bda2eb Author: Sami Kerola Date: Tue Oct 2 21:15:17 2012 +0100 swapon: clarify swapon.8 priority option Value -1 is valid argument for -p, even though it might not make much sense as the -1 is in use when priority is not specified at all. Signed-off-by: Sami Kerola sys-utils/swapon.8 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 9db6a749051faedb69358a10b245a24c8777af38 Author: Sami Kerola Date: Tue Oct 2 21:15:16 2012 +0100 swapon: check numeric user inputs Signed-off-by: Sami Kerola Signed-off-by: Karel Zak sys-utils/swapon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 9f6bd5bdf55819c0a793433295dff9da5d8e84bb Author: Sami Kerola Date: Tue Oct 2 19:43:59 2012 +0100 docs: align blkdiscard.8 with how-to-man-page.txt * Add spaces after dots (English spacing). * Remove use of inline emphasis where possible. * Use mail and url macros. Signed-off-by: Sami Kerola sys-utils/blkdiscard.8 | 62 +++++++++++++++++++++++++++----------------------- 1 file changed, 34 insertions(+), 28 deletions(-) commit c550f728f724360f99aae0fdb45b0589d9a347e0 Author: Karel Zak Date: Mon Oct 15 12:38:09 2012 +0200 wipefs: use O_EXCL Address: https://bugzilla.redhat.com/show_bug.cgi?id=865961 Signed-off-by: Karel Zak misc-utils/wipefs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 6d5d2b5fd342308bb2db6b82d89ac22ef7374184 Author: Karel Zak Date: Mon Oct 15 11:10:50 2012 +0200 libmount: don't use umount optimization for -l or -f The options -l (lazy) and -f (force) means that the mountpoint may be unreadable (for example because NFS server is unreadable). So we should not try to be smart in this case and we should try to minimize number of situations when stat() or readlink() is used for the mountpoint. Signed-off-by: Karel Zak libmount/src/context_umount.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 71b161ea37c57dc6a8341aeec6c0c2ae7cd4cfe3 Author: Karel Zak Date: Wed Oct 10 13:06:01 2012 +0200 build-sys: clean update-potfiles script - use only sed(1) - remove config.h from the result - remove samples/, tests/, util-linu-*/ ("make ditcheck" product) directories from the result Signed-off-by: Karel Zak po/update-potfiles | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 78dd43cadcad4d211606ef8df3a4d7f884363c8c Author: Karel Zak Date: Wed Oct 10 13:05:20 2012 +0200 build-sys: remove --enable-gtk-doc from make check Signed-off-by: Karel Zak Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 2d609d9945b119dfa9ad7d9d73a38068a35fa5f0 Author: Mike Frysinger Date: Wed Oct 10 00:29:54 2012 -0400 sfdisk: fix aliasing warnings Compiles down to the same code. Signed-off-by: Mike Frysinger fdisks/sfdisk.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit 6c6f7196880bdb4f48742b3df4457feca9c332d0 Author: Mike Frysinger Date: Wed Oct 10 00:22:38 2012 -0400 md5: fix strict aliasing warnings This is the same fix as was merged in gcc/binutils where this code appears to originate from. Signed-off-by: Mike Frysinger lib/md5.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) commit 5eec85708da68e9d2d32f51db6db30f2c0ffb438 Author: Milan Broz Date: Fri Oct 5 18:37:40 2012 +0200 tests: fix mount move test to work with shared mount If parent mount for test directory is mounted with shared flag, move mount test fails because kernel rejects mount move operation. Use another directory level and explicitly make parent mount private. (All "modern" systems using system have mounts shared for some reason.) Signed-off-by: Milan Broz tests/ts/mount/move | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) commit 53ebc440fc2c470e98d835f1e193e344bcc62c21 Author: Milan Broz Date: Fri Oct 5 18:37:39 2012 +0200 tests: ignore test if kernel doesn't support minix fs Minix mount test returs failure if kernel have no minix support, minix: mkfs ... FAILED (minix/mkfs) ignore test result instead in this case. Signed-off-by: Milan Broz tests/ts/minix/mkfs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit fd22f8dbe840ad612c0c6e6010ab79a6419ba16d Author: Milan Broz Date: Fri Oct 5 18:37:38 2012 +0200 tests: fix timezone for cramfs cramfs test need explicitly set timezone otherwise ls diff fails with cramfs: mkfs checksums ... FAILED (cramfs/mkfs) Signed-off-by: Milan Broz tests/ts/cramfs/mkfs | 1 + 1 file changed, 1 insertion(+) commit 8323d9fd593534ee9257237b48f6ca4710d9f4cb Author: Mike Frysinger Date: Thu Oct 4 21:34:34 2012 -0400 fix bold style of man page references Signed-off-by: Mike Frysinger disk-utils/fsck.8 | 2 +- fdisks/cfdisk.8 | 4 ++-- misc-utils/blkid.8 | 2 +- misc-utils/ddate.1 | 4 ++-- mount-deprecated/mount.8 | 4 ++-- mount-deprecated/umount.8 | 2 +- sys-utils/eject.1 | 2 +- sys-utils/losetup.8 | 2 +- sys-utils/mount.8 | 6 +++--- sys-utils/swapon.8 | 2 +- sys-utils/umount.8 | 2 +- sys-utils/unshare.1 | 5 +++-- 12 files changed, 19 insertions(+), 18 deletions(-) commit 6d9bbf886aa8d853071a02faeb795f61d8ca7214 Author: Marcin Juszkiewicz Date: Wed Oct 3 10:31:19 2012 +0100 fdisk: add AArch64 support Attached patch fixed build problem when util-linux is built for AArch64 architecture. fdisks/fdiskbsdlabel.h | 1 + 1 file changed, 1 insertion(+) commit 84600ddc6d34d88c9aa6e0a6145457f14d71acf7 Author: Karel Zak Date: Tue Oct 9 11:56:35 2012 +0200 mount: add verbose messages Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=864227 Signed-off-by: Karel Zak sys-utils/mount.c | 26 +++++++++++++++++++++++++- sys-utils/umount.c | 22 ++++++++++++++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) commit dc3ea1335696434863c9ef4376858dcd4df6ec1b Author: Karel Zak Date: Fri Oct 5 20:35:34 2012 +0200 libmount: fix umount file.img The umount optimization (commit 9cc03553f7b8494c7193024eec6e13b903eb2eec) has to be disabled if the umount argument is not a directory. Reported-by: Milan Broz Signed-off-by: Karel Zak libmount/src/context_umount.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) commit 98193daa8c3cd285c347a91579e1cb11944b7fc0 Author: Karel Zak Date: Fri Oct 5 12:07:10 2012 +0200 login: reuse DEAD_PROCESS utmp entries Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=858009 Signed-off-by: Karel Zak login-utils/login.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) commit f7b59bb27f9514e387dd03ebd5e09581fbbea798 Author: Karel Zak Date: Wed Oct 3 11:41:52 2012 +0200 hwclock: fix in usage() Signed-off-by: Karel Zak sys-utils/hwclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8c8fa302c10d646a49d1d7565cbb60c5356a60b3 Author: Bjørn Mork Date: Tue Oct 2 01:54:49 2012 +0200 dmesg: fix console-level off-by-one commit f06ec64f dmesg; support level names (e.g. --console-level=alert) introduced an off-by-one error. The kernel will print messages with a *higher* level than the console-level. The bug made it impossible to set the level for debugging, like it is documented in e.g Documentation/networking/netconsole.txt : nemi:/tmp# dmesg -n 8 dmesg: unknown level '8' And attempting to set the "emerg" level would result in an invalid 0 value: nemi:/tmp# dmesg -n emerg dmesg: klogctl failed: Invalid argument Restoring the old behaviour for numeric levels, and mapping the level names so that "dmesg -n debug" behaves as expected: logging everything at level "debug" and higher. [kzak@redhat.com: - add comment to parse_level()] Signed-off-by: Bjørn Mork Signed-off-by: Karel Zak sys-utils/dmesg.c | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) commit 018dfb0fe7fc65720332abd9d0e8bdffa89eaa5c Author: Sami Kerola Date: Sat Sep 29 10:21:59 2012 +0100 column: describe change of separator behavior in man page bugs section Add to manual page how to achieve old behavior, just in case someone relies on buggy behavior of the command. [kzak@redhat.com: - remove unnecessary info from the man page :-)] Reported-by: Padraig Brady Signed-off-by: Sami Kerola Signed-off-by: Karel Zak text-utils/column.1 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) commit 61cebf77476ee2b08d1add7add5ca26cac9d371a Author: Vitezslav Cizek Date: Mon Oct 1 14:48:16 2012 +0200 su: fixed a typo in pam error message Signed-off-by: Vitezslav Cizek login-utils/su-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a38dc987cac340d401141438d3b6c6a308838c73 Author: Pádraig Brady Date: Wed Sep 26 22:20:07 2012 +0100 column: clarify the --separator option Indicate that the string is a set, which also clarifies that it's only significant when parsing the input. text-utils/column.1 | 4 ++-- text-utils/column.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) commit 732e3dec7d2cf7678201dc890f9b0a19fb42e6e9 Author: Sami Kerola Date: Wed Sep 26 21:45:36 2012 +0100 column: make defined separator to be non-greedy This patch changes interpretation of subsequent delimeter interpretation. Earlier version merged columns that had null string as content together, which lead to output as visualized below. $ printf "a:b:c\n1::3\n" | column -t -s ':' a b c 1 3 The number 3 has wrong column, which this patch takes care of, and alters the output following way. $ printf "a:b:c\n1::3\n" | column -t -s ':' a b c 1 3 This patch does not alter the default case, e.g., subsequent white spaces are understood as separator of the same field, and the beginning of line white spaces are being ignored together. Signed-off-by: Sami Kerola text-utils/column.c | 37 ++++++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) commit f036b4c7301f858cfd945ed50f762917c0635a73 Author: Mike Frysinger Date: Tue Sep 25 18:39:00 2012 -0400 mount: fix a few typos Nothing of note here. Signed-off-by: Mike Frysinger Documentation/releases/v2.21-ReleaseNotes | 2 +- mount-deprecated/mount.8 | 20 ++++++++++---------- sys-utils/mount.8 | 24 ++++++++++++------------ 3 files changed, 23 insertions(+), 23 deletions(-) commit 45683be54330906a61a0b6b4696e72574561efb5 Author: Gilles Espinasse Date: Sat Sep 22 09:59:19 2012 +0200 textual: typo fixes Signed-off-by: Gilles Espinasse libmount/src/context_mount.c | 2 +- libmount/src/context_umount.c | 4 ++-- misc-utils/blkid.8 | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) commit 8d687180b2efc4331bb9ce3145c207de0606815e Author: Peter Rajnoha Date: Fri Sep 21 14:23:32 2012 +0200 lsblk: fix reporting of 'part' type Partitions are incorrectly marked with 'disk' type on lsblk output while it should be marked as 'part' type. Before: $ lsblk /dev/sda NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 128M 0 disk `-sda1 8:1 0 64M 0 disk With this patch applied: $ lsblk /dev/sda NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 128M 0 disk `-sda1 8:1 0 64M 0 part Signed-off-by: Peter Rajnoha misc-utils/lsblk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 705ee62ff03a083ea7c06159420b7a71b0b20902 Author: Karel Zak Date: Tue Oct 2 10:14:05 2012 +0200 su: don't modify PATH if -l not specified This patch reverts a6fdd3f8125be23930d955c2bc6b7a46cdaf8a12. su(1) modifies PATH if: - option -l specified - ALWAYS_SET_PATH login.defs variable set Reported-by: Thomas Bächler Signed-off-by: Karel Zak login-utils/su-common.c | 126 +----------------------------------------------- 1 file changed, 1 insertion(+), 125 deletions(-) commit b83b9b11c2563e52280d041e9b18e7cc41561636 Author: Bernhard Voelker Date: Wed Sep 5 15:12:01 2012 +0200 ipcrm: avoid 'uninitialized' warning GCC 4.1.2 on SLES 10.4: sys-utils/ipcrm.c: In function ‘main’: sys-utils/ipcrm.c:297: warning: ‘what_all’ may be used uninitialized in this function * sys-utils/ipcrm.c: Initialize what_all to ALL. Signed-off-by: Bernhard Voelker sys-utils/ipcrm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d964b669c8d8675af1b7d7e1742ee8b68dc285ef Author: Lukas Czerner Date: Wed Sep 12 17:49:15 2012 -0400 blkdiscard: add new command blkdiscard is used to discard device sectors. This is useful for solid-state drivers (SSDs) and thinly-provisioned storage. Unlike fstrim this command is used directly on the block device. blkkdiscard uses BLKDISCARD ioctl or BLKSECDISCARD ioctl for the secure discard. All data in the discarded region on the device will be lost! Signed-off-by: Lukas Czerner .gitignore | 1 + sys-utils/Makemodule.am | 5 ++ sys-utils/blkdiscard.8 | 66 ++++++++++++++++++ sys-utils/blkdiscard.c | 173 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 245 insertions(+) commit fce05e9617b72555863153aac9950a844cca573f Author: Karel Zak Date: Fri Sep 28 01:10:08 2012 +0200 Revert "blkdiscard: new command" This was only attempt as alternative implementation, unfortunately pushed publicly... sorry. This reverts commit c84ed54cefdcaa07f3d1f40a65434c9d4277da08. .gitignore | 1 - sys-utils/Makemodule.am | 10 +--- sys-utils/blkdiscard.8 | 66 --------------------- sys-utils/fstrim.c | 154 +++++++++++------------------------------------- 4 files changed, 36 insertions(+), 195 deletions(-) commit 766d5156c43b784700d28d1c1141008b2bf35ed7 Author: Davidlohr Bueso Date: Thu Sep 27 09:50:27 2012 +0200 fdisk: add GPT support This patch allows fdisk to handle GUID partition tables, based on the latest UEFI specifications version 2.3.1, from June 27th, 2012. The following operations are supported: - Probing (detects both protective and hybrid MBRs) - Writing to disk - Listing used partitions - Adding partitions - Deleting partitions - Data integrity verifications (for both headers and partitions). A few considerations: - Currently we do not fix invalid primary headers -- we just abort! - Header checksums are updated upon every change (ie: add/delete partitions), this allows us to mathematically verify the changes on-the-fly, and not only when writing to disk, like most other related tools do. - We are extremly picky when writing to disk, any error aborts the opeartion. - When creating a new partition, the following GUIDs are available: http://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs For test cases, the gpt.img from libblkid tests, scsi_debug and my own hard drive (/dev/sda) were used. For the image, all operations were tested successfully, and for /dev/sda all except write, which was not tested - hey, I'm not suicidal! [kzak@redhat.com: - add get/set partition type functions - use unified on strings based table for partition types - add partition type to table list function] Tested-and-reviewed-by: Petr Uzel Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak fdisks/Makemodule.am | 21 +- fdisks/cfdisk.c | 8 - fdisks/fdisk.c | 33 +- fdisks/fdisk.h | 2 + fdisks/gpt.c | 1488 +++++++++++++++++++++++++++++++++++++++++++++----- fdisks/gpt.h | 3 +- fdisks/sfdisk.c | 25 - fdisks/utils.c | 6 +- 8 files changed, 1380 insertions(+), 206 deletions(-) commit 2b1a43cf170292a7360a90428f798cdb38e1cc1a Author: Karel Zak Date: Wed Sep 26 14:31:22 2012 +0200 fdisk: cleanup debug messages and comments Signed-off-by: Karel Zak fdisks/utils.c | 53 ++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 40 insertions(+), 13 deletions(-) commit ed470672bbbfeb160008cecb28c2a443e755d289 Author: Karel Zak Date: Wed Sep 26 14:14:54 2012 +0200 fdisk: use fdisk_parttype in add_partition Signed-off-by: Karel Zak fdisks/fdisk.c | 6 +----- fdisks/fdisk.h | 4 ++-- fdisks/fdiskaixlabel.c | 2 +- fdisks/fdiskbsdlabel.c | 2 +- fdisks/fdiskdoslabel.c | 23 ++++++++++++----------- fdisks/fdiskmaclabel.c | 2 +- fdisks/fdisksgilabel.c | 10 ++++++---- fdisks/fdisksunlabel.c | 5 +++-- fdisks/utils.c | 7 ++++--- 9 files changed, 31 insertions(+), 30 deletions(-) commit 02460b8aae3f44cb56d7a23bff2a420e2241c4be Author: Karel Zak Date: Wed Sep 26 13:30:44 2012 +0200 fdisk: add fdisk_set_partition_type() - remove all label specific partition type stuff from fdisk.c to label files - add new fdisk_set_partition_type() to API Signed-off-by: Karel Zak fdisks/fdisk.c | 83 +++++++++----------------------------------------- fdisks/fdisk.h | 5 ++- fdisks/fdiskbsdlabel.c | 18 +++++++++++ fdisks/fdiskdoslabel.c | 31 ++++++++++++++++++- fdisks/fdiskdoslabel.h | 1 - fdisks/fdisksgilabel.c | 53 +++++++++++++++++++------------- fdisks/fdisksunlabel.c | 75 +++++++++++++++++++++++++++------------------ fdisks/utils.c | 17 +++++++++++ 8 files changed, 160 insertions(+), 123 deletions(-) commit 010186f2a29edc43b845e8de8f37cf49ad25666b Author: Karel Zak Date: Tue Sep 25 12:12:28 2012 +0200 fdisk: add fdisk_get_partition_type() Signed-off-by: Karel Zak fdisks/fdisk.c | 24 +++++------------------- fdisks/fdisk.h | 5 +++++ fdisks/fdiskbsdlabel.c | 14 ++++++++++++++ fdisks/fdiskdoslabel.c | 16 ++++++++++++++++ fdisks/fdisksgilabel.c | 25 ++++++++++++++++++++----- fdisks/fdisksgilabel.h | 1 - fdisks/fdisksunlabel.c | 21 ++++++++++++++++----- fdisks/fdisksunlabel.h | 1 - fdisks/utils.c | 19 +++++++++++++++++-- 9 files changed, 93 insertions(+), 33 deletions(-) commit 559d921edad8be1ec4e2837095b327eb9e297b7a Author: Karel Zak Date: Tue Sep 25 10:23:36 2012 +0200 fdisk: add new functions for work with fdisk_parttype - add flags to fdisk_parttype to store more information about the types - function for conversion from code to fdisk_parttype - function for conversion from string to fdisk_parttype - function for conversion from user input to fdisk_parttype - support for unknown complex types (e.g. unknown UUIDs) Signed-off-by: Karel Zak fdisks/fdisk.c | 129 +++++++++++++++++++++++++---------------------- fdisks/fdisk.h | 26 +++++++++- fdisks/fdiskbsdlabel.c | 9 +++- fdisks/fdiskdoslabel.c | 2 + fdisks/fdisksgilabel.c | 10 ++-- fdisks/fdisksunlabel.c | 7 +-- fdisks/utils.c | 132 +++++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 246 insertions(+), 69 deletions(-) commit 7b575fcc3bea4f622d700b2ebb1b8b3fb2f1767d Author: Karel Zak Date: Mon Sep 24 13:24:09 2012 +0200 fdisk: improve list partition types - add fdisk_parttype->typestr for types like GPT UUID or Mac - list typestr if specified Signed-off-by: Karel Zak fdisks/fdisk.c | 79 ++++++++++++++++++++++++++++++++------------------ fdisks/fdisk.h | 5 ++-- fdisks/fdiskbsdlabel.c | 2 +- 3 files changed, 55 insertions(+), 31 deletions(-) commit 749af4b6095598feadc7b934afcdf2ac7450a3c9 Author: Karel Zak Date: Mon Sep 24 11:30:26 2012 +0200 fdisk: move partition types to label specific part - move MBR partition types to dos_part_types.h - make dos_part_types.h independent on datetypes to keep it useful in all fdisks - add struct fdisk_parrtype - move label specific partition types to context->label Signed-off-by: Karel Zak fdisks/Makemodule.am | 3 +- fdisks/cfdisk.c | 9 ++++ fdisks/common.h | 7 --- fdisks/dos_part_types.h | 105 +++++++++++++++++++++++++++++++++++++++++++++ fdisks/fdisk.c | 32 ++++++-------- fdisks/fdisk.h | 17 ++++++-- fdisks/fdiskaixlabel.h | 2 - fdisks/fdiskbsdlabel.c | 18 +++----- fdisks/fdiskbsdlabel.h | 2 +- fdisks/fdiskdoslabel.c | 5 +++ fdisks/fdiskmaclabel.h | 1 - fdisks/fdisksgilabel.c | 6 ++- fdisks/fdisksgilabel.h | 1 - fdisks/fdisksunlabel.c | 6 ++- fdisks/fdisksunlabel.h | 1 - fdisks/i386_sys_types.c | 110 ------------------------------------------------ fdisks/sfdisk.c | 11 ++++- 17 files changed, 174 insertions(+), 162 deletions(-) commit c84ed54cefdcaa07f3d1f40a65434c9d4277da08 Author: Karel Zak Date: Thu Sep 27 11:21:35 2012 +0200 blkdiscard: new command Add to fstrim(8) code to support new discard BLKDISCARD and BLKSECDISCARD ioctls for block devices. The new command is only symlink to fstrim(8) as the both utils share some code and the basic ideas. Based on patch from Lukas Czerner . Signed-off-by: Karel Zak .gitignore | 1 + sys-utils/Makemodule.am | 10 +++- sys-utils/blkdiscard.8 | 66 +++++++++++++++++++++ sys-utils/fstrim.c | 154 +++++++++++++++++++++++++++++++++++++----------- 4 files changed, 195 insertions(+), 36 deletions(-) commit 1ae3d0d9327a6ca390afb6f1b812b2d5d05921a4 Author: Karel Zak Date: Wed Sep 26 11:25:01 2012 +0200 libmount: don't setup new loopdev on remount with regular mtab [chroot-i486] root:/tmp$ mount -oloop /tmp/blob /tmp/mnt [chroot-i486] root:/tmp$ mount -o remount,loop,ro /tmp/mnt [chroot-i486] root:/tmp$ mount /dev/loop0 on /tmp/mnt type ext2 (ro,loop) [chroot-i486] root:/tmp$ losetup -a /dev/loop0: [2051]:306957 (/tmp/blob) /dev/loop1: [0005]:2218 (/dev/loop0) [chroot-i486] root:/tmp$ umount /tmp/mnt umount: /tmp/mnt: filesystem umounted, but mount(8) failed: Device or resource busy [chroot-i486] root:/tmp$ losetup -d /dev/loop1 [chroot-i486] root:/tmp$ losetup -d /dev/loop0 Reported-by: g.esp@free.fr Signed-off-by: Karel Zak libmount/src/context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit ab6c01925c62a3bf695cf09379a914f93769094e Author: Karel Zak Date: Tue Sep 25 17:04:21 2012 +0200 libmount: improve debug message Signed-off-by: Karel Zak libmount/src/tab_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4709c9e6a19f46bbd085199607438b5ec9f0b0f6 Author: Karel Zak Date: Tue Sep 25 16:47:18 2012 +0200 libmount: optimize mtab and utab parsing in umount create 8000 NFS mountpoints: #!/bin/bash mount=/tmp/mount if [ ! -d $mount ]; then mkdir -p $mount fi for dir in {1..8000}; do if [ ! -d $mount/$dir ]; then mkdir -p $mount/$dir fi echo mount $dir mount -t nfs 127.0.0.1:/ $mount/$dir done old version: time ./umount /tmp/mount/2255 real 0m1.254s user 0m1.002s sys 0m0.238s new version: time ./umount /tmp/mount/2244 real 0m0.332s user 0m0.111s sys 0m0.218s Reported-by: chenditang Signed-off-by: Karel Zak libmount/src/context.c | 26 ++++++++++++++++++++++++++ libmount/src/context_umount.c | 41 +++++++++++++++++++++++++++++++++++++++++ libmount/src/mountP.h | 15 +++++++++++++++ libmount/src/tab_parse.c | 31 ++++++++++++++++++++++++++++++- 4 files changed, 112 insertions(+), 1 deletion(-) commit 9af2433419bd6f484f6c6d7c3ab6d679d769dae7 Author: Karel Zak Date: Fri Sep 21 17:15:07 2012 +0200 libmount: user-mounted loopback fs cannot be unmounted by user Addresses: https://bugs.archlinux.org/task/31624 Signed-off-by: Karel Zak libmount/src/context_umount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c1f1b301718ec0f5ffeae5b631c3ff38455b9ccd Author: Milan Broz Date: Mon Sep 10 12:58:39 2012 +0200 mkswap: wipe old signature if there is no part table by default Historically mkswap avoids wiping any signature on "whole disk", until force option is given. While the idea is that it should not wipe possible boot loader, in reality it leads to many situations where e.g. LUKS device is overwritten but still can be detected as LUKS (but unusable). Patch chnges behaviour that only if partition table is detected, signatures are not wiped. Also it removes check for block device - loop device can now map partitions in-kernel, so using mkswap on disk image in file should behave the same as on disk. Also it adds warning that know signature was wiped. Signed-off-by: Milan Broz disk-utils/mkswap.8 | 5 ++--- disk-utils/mkswap.c | 47 ++++++++++++++++++++--------------------------- 2 files changed, 22 insertions(+), 30 deletions(-) commit 4082ab2c6fa51bdc67893c3422b9616dd1d49d83 Author: Karel Zak Date: Fri Sep 21 12:38:18 2012 +0200 su: fix compiler warning [-Wstrict-prototypes] Signed-off-by: Karel Zak login-utils/logindefs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ea8a10391b9cba4b472d843b7108c0b140a392ab Author: Ondrej Oprala Date: Tue Sep 11 16:39:17 2012 +0200 su: add segmentation fault reporting of the child process Child processes that ended with segmentation fault previously indicated this with return status only. The report is now more verbose if core dump is allowed. Improved-by: Pádraig Brady Signed-off-by: Ondrej Oprala login-utils/su-common.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit da30cb2a87184822baf681057df4290abf568637 Author: Peter Rajnoha Date: Thu Sep 20 13:17:13 2012 +0200 lsblk: fix processing of dm partition mappings As blkid_devno_to_wholedisk returns parent dm device for a partition mapping, the condition used in lsblk incorrectly checked the parent-child relationship. In this particular case, we need to process the dm partition mapping like any other non-partition device as dm devices always use proper holders/slaves sysfs hierarchy instead of /sys/block// that is used for real partitions. Example (test1 is a partition mapping and sdb1 is a real partition): $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 128M 0 disk `-test (dm-0) 253:0 0 128M 0 dm `-test1 (dm-1) 253:1 0 127M 0 part sdb 8:16 0 128M 0 disk `-sdb1 8:17 0 127M 0 disk Before this patch (test1 skipped!): $ lsblk -s /dev/mapper/test1 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT test (dm-0) 253:0 0 128M 0 dm `-sda 8:0 0 128M 0 disk $ lsblk -s /dev/sdb1 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdb1 8:17 0 127M 0 disk `-sdb 8:16 0 128M 0 disk With this patch (test1 processed correctly): $ lsblk -s /dev/mapper/test1 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT test1 (dm-1) 253:1 0 127M 0 part `-test (dm-0) 253:0 0 128M 0 dm `-sda 8:0 0 128M 0 disk $ lsblk -s /dev/sdb1 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdb1 8:17 0 127M 0 disk `-sdb 8:16 0 128M 0 disk misc-utils/lsblk.c | 68 +++++++++++++++++++++++++++++++++--------------------- 1 file changed, 42 insertions(+), 26 deletions(-) commit 857db7f53c03ca363de50682a4958ae9f1f77391 Author: Peter Rajnoha Date: Thu Sep 20 09:39:57 2012 +0200 lib/sysfs: fix sysfs_devname_to_devno for dm partitions Partitions mapped by device-mapper are not like real partitions where there's a /sys/block///dev sysfs path. We need to look at /sys/block//dev like we do for any other non-partition devices. The mapped partition is not found otherwise. For example, this bug shows up in lsblk while specifying a device on command line while that device is a dm mapping over a partition: $lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 128M 0 disk `-test (dm-0) 253:0 0 128M 0 dm `-test1 (dm-1) 253:1 0 127M 0 part Before this patch: $lsblk /dev/mapper/test1 lsblk: dm-1: unknown device name With this patch: $lsblk /dev/mapper/test1 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT test1 (dm-1) 253:1 0 127M 0 part lib/sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 2754ffc5f52294a48ab73f4f26182020907997b0 Author: Petr Uzel Date: Thu Sep 20 15:53:50 2012 +0200 setterm: make error message more informative If `setterm -dump` fails because of lack of permission to read /dev/vcsa, it should not report that it couldn't read /dev/vcsa0. This could be misleading if there is only /dev/vcsa, but not /dev/vcsa0. Before: $ ./setterm -dump setterm: Couldn't read /dev/vcsa0 After: $ ./setterm -dump setterm: Couldn't read neither /dev/vcsa0 nor /dev/vcsa (Note: /dev/vcsa0 does not exist and the user does not have read permission on /dev/vcsa in this case). Addresses: https://bugzilla.novell.com/show_bug.cgi?id=780615 Reported-by: Christopher Yeleighton Signed-off-by: Petr Uzel term-utils/setterm.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) commit 4862db73e8cf1ee519bd8f251fdd21c211cb4dcd Author: Thierry Reding Date: Wed Sep 19 11:48:46 2012 +0200 sfdisk: Fix format specifiers for size_t The proper specifier for size_t is %zu. %lu will work fine on 64-bit architectures but not on 32-bit. Signed-off-by: Thierry Reding fdisks/sfdisk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 910a090039cbd529041bfb5f6be72bf27a96bd47 Author: Tom Gundersen Date: Thu Sep 20 22:02:46 2012 +0000 hwclock: don't warp the systemtime if the RTC is in UTC A sideeffect of 839be2ba6b44fa9dc927f081d547ebadec9de19c is that we now warp the systemtime according to the timezone, on the first call of --systz. This is not always the correct thing to do, and causes a regression for us in Arch Linux. The behavior is correct if the RTC, and hence the systemtime, is in localtime. However, if the systemtime is already in UTC we don't want to touch it when we set the kernel timezone (which we still need to do as some filesystems use this information). An almost identical issue was also fixed in systemd commit 72edcff5db936e54cfc322d9392ec46e2428fd9b. Signed-off-by: Tom Gundersen sys-utils/hwclock.8 | 11 +++++++---- sys-utils/hwclock.c | 17 +++++++++++++++-- 2 files changed, 22 insertions(+), 6 deletions(-) commit 72fc8ca062f538413419f6b282827dbd5e6a7b06 Author: Karel Zak Date: Fri Sep 21 12:05:12 2012 +0200 hwclock: wait time in hwclock is not long enough for some ARM devices On Sun, Sep 16, 2012 at 02:11:48PM +0800, Queen Adam wrote: > I'm using Archlinux ARM for my Melo A100 box. > The hwclock always timeout when using select() in rtc.c. > > After I change the timeout from 5 to 10, the problem is solved. > > In fact the timeout in my ARM box seems only to be a little larger > than 5s. Signed-off-by: Karel Zak sys-utils/hwclock-rtc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 9e94f3938d2f6c3803c7113daddf624c07d2afa4 Author: Ville Skyttä Date: Sat Sep 15 09:29:50 2012 +0300 docs: AUTHORS, NEWS: UTF-8 fixes. Signed-off-by: Ville Skyttä AUTHORS | 5 ++--- NEWS | 34 +++++++++++++++++----------------- 2 files changed, 19 insertions(+), 20 deletions(-) commit 53859b5f595bd26dc256df7bbbaada77f04c028e Author: Ville Skyttä Date: Sat Sep 15 09:29:49 2012 +0300 docs: umount.8 syntax fix. Signed-off-by: Ville Skyttä sys-utils/umount.8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit e8cd1819675bdda61d7edee6d951bf9f2b5d9091 Author: Karel Zak Date: Tue Sep 18 11:40:44 2012 +0200 libmount: append loop option when automatically create loopdev The loop option is optional, mount(8) is able to detect that the source path is regular file (image) with known filesystem -- then a loop device is automatically created. In this case we have to store "loop" option to mtab on systems without autoclear loopdev flag. Signed-off-by: Karel Zak libmount/src/context_loopdev.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 475c30d0614383692ed87e63b1889099757420c2 Author: Karel Zak Date: Tue Sep 18 11:22:17 2012 +0200 libmount: detach loopdev on umount if loop option in mtab [chroot-i486] root:/$ mount --version mount from util-linux 2.22 (libmount 2.22.0: debug) [chroot-i486] root:/$ losetup -a [chroot-i486] root:/$ mount -oloop /tmp/foo_fs /tmp/bar_dir [chroot-i486] root:/$ umount /tmp/foo_fs [chroot-i486] root:/$ losetup -a /dev/loop0: [2051]:387175 (/tmp/foo_fs) Reported-by: g.esp@free.fr Signed-off-by: Karel Zak libmount/src/context_umount.c | 4 ++++ 1 file changed, 4 insertions(+) commit 829eab67e6f279ef76e18df7d5fe36ffe43979e1 Author: Giacomo Date: Wed Sep 12 17:33:39 2012 +0000 rtcwake: doesn't reset wakealarm Disable an alarm use the same logic used to enable it: first try RTC_WKALM_SET with the "enabled" flag set to false, if it fails fall back to RTC_AIE_OFF. Signed-off-by: Giacomo Signed-off-by: Karel Zak sys-utils/rtcwake.c | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) commit 2b945eda3da145c7434cd7cc9ebc6392dcbea15d Author: Karel Zak Date: Thu Sep 13 12:54:36 2012 +0200 agetty: add \4 and \6 issue file sequences to print IP addresses Based on Andrea Bonomi ideas. Signed-off-by: Karel Zak term-utils/agetty.8 | 8 ++++ term-utils/agetty.c | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 121 insertions(+), 3 deletions(-) commit df0bd828b173e2953ae155c1fa0c8de013f49bcf Author: Karel Zak Date: Wed Sep 12 18:09:28 2012 +0200 build-sys: simplify usrlib_execdir initialization Signed-off-by: Karel Zak configure.ac | 33 ++++++--------------------------- 1 file changed, 6 insertions(+), 27 deletions(-) commit 10a42fb776695b1e2541e6db4ce3c01d16770a69 Author: Karel Zak Date: Wed Sep 12 16:36:06 2012 +0200 build-sys: fix --localstatedir heuristics Signed-off-by: Karel Zak configure.ac | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) commit 9d57f184cfe7abd2e046463f867bcfb93a313f43 Author: Karel Zak Date: Wed Sep 12 14:49:49 2012 +0200 tests: remove encryption loopdev test Reported-by: Bernhard Voelker Signed-off-by: Karel Zak tests/expected/mount/encryption | 1 - tests/ts/mount/encryption | 64 ----------------------------------------- 2 files changed, 65 deletions(-) commit 4be900c51d371a7a41495e4eca2d29fc77c20c7c Author: Karel Zak Date: Wed Sep 12 14:27:12 2012 +0200 libmount: don't remove user= when executed by root The original mount(8) allows to store arbitrary user= option to mtab file if called by root user. For example: # mount -f foo /bar -t xxx -o rw,user=kzak the new mount removes the 'user=' and 'users' options at all for root user. This is regression. The original functionality is necessary by 'sshfs' where fuse writes to mtab file by mount(8). Reported-by: Juergen Daubert (and 'horrorStruck' on IRC) Signed-off-by: Karel Zak libmount/src/context_mount.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) commit 3de77c2173e5bc8664a427ce9a8b08c68eea7c7f Author: Karel Zak Date: Wed Sep 12 11:57:19 2012 +0200 libmount: segfaults if neither /etc/filesystems nor/proc/filesystems exists Reported-by: Juergen Daubert Signed-off-by: Karel Zak libmount/src/context_mount.c | 3 +++ libmount/src/utils.c | 4 ++++ 2 files changed, 7 insertions(+) commit 5cf05c71472bf7230075cbdcd5cd6eb12b1d3654 Author: Ludwig Nussel Date: Tue Sep 11 10:46:11 2012 +0200 mount: losetup: remove obsolete encryption support kernel cryptoloop is deprecated since ages and support for cryptoloop in util-linux is incomplete/broken. - no password hashing - last 8 bit of key are always set to zero - no binary keys possible (stops reading key at \n and \0) In the past some Distros added the above features with patches. So remove cryptoloop support from util-linux completely to make sure people won't try using it. Signed-off-by: Ludwig Nussel Signed-off-by: Karel Zak include/loopdev.h | 3 --- lib/loopdev.c | 56 ------------------------------------------ libmount/src/context_loopdev.c | 22 +++-------------- mount-deprecated/mount.8 | 9 ++----- mount-deprecated/mount.c | 26 +++----------------- sys-utils/losetup.8 | 29 ++-------------------- sys-utils/losetup.c | 30 ++++++---------------- sys-utils/mount.8 | 7 +----- sys-utils/mount.c | 42 ++----------------------------- 9 files changed, 22 insertions(+), 202 deletions(-) commit af2e97b56bb7d26160b219723459b2087e0e8dd9 Author: Karel Zak Date: Tue Sep 11 10:06:23 2012 +0200 build-sys: remove static from config-gen.d/{devel,all}.conf It's impossible to compile static when gcc/ld is forced to use GNU_RELRO and BIND_NOW for suid binaries (e.g. mount). Signed-off-by: Karel Zak tools/config-gen.d/all.conf | 1 - tools/config-gen.d/devel.conf | 1 - 2 files changed, 2 deletions(-) commit 0391552429921a5367704b1469945ea8daa56c86 Author: Karel Zak Date: Tue Sep 11 09:30:16 2012 +0200 libblkid: fix copyright noticed to be consistent (so all are LGPL) The libblkid library was intended to be released under the LGPL. There is very little significant code in version.c; just a version parser, and the original copyright holder (Theodore Ts'o, tytso@mit.edu) has confirmed that he had intended to relicense all of the files under the LGPL during a time when he was the sole author. Acked-by: "Theodore Ts'o" Reported-by: John Calcote Signed-off-by: Karel Zak libblkid/libblkid.3 | 3 ++- libblkid/src/version.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) commit 83765871ef0d6c554c46027577648b77c7351a78 Author: Ondrej Oprala Date: Wed Aug 29 18:11:15 2012 +0200 hwclock: add a new --compare option The new option imitates adjtimex -c functionality and outputs the drift in 10 second intervals. [kzak@redhat.com: - coding style - print hw and system time columns too] Signed-off-by: Karel Zak sys-utils/hwclock.c | 82 +++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 77 insertions(+), 5 deletions(-) commit 6cd3e35c777ffdd679087c3063348150300471c0 Merge: c667aff 3b4f1ae Author: Karel Zak Date: Mon Sep 10 11:17:53 2012 +0200 Merge https://github.com/hramrach/util-linux commit c667aff93fb9f16121fcb1ed32f557949dab3eee Author: Karel Zak Date: Mon Sep 10 10:30:11 2012 +0200 libmount: improve mnt_table_get_root_fs() docs Fix info about return value, improve description. Reported-by: Amit Signed-off-by: Karel Zak libmount/src/tab.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) commit 2eb5ba0bd46cf49e3dd1efafc4cf95e85606cd35 Author: Karel Zak Date: Fri Sep 7 18:08:55 2012 +0200 wdctl: add fallbacks for old kernel headers Reported-by: Moritz Barsnick Signed-off-by: Karel Zak sys-utils/wdctl.c | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) commit 7fcccbdfbe6898a3706a23ba63c8b4d81a1b0fa5 Author: Karel Zak Date: Fri Sep 7 14:19:17 2012 +0200 build-sys: add --disable-wdctl Signed-off-by: Karel Zak configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 92fe6e9633a5210d7b35ada393590192fd771ca7 Author: Karel Zak Date: Fri Sep 7 13:43:36 2012 +0200 eject: robust strings usage [coverity scan] Signed-off-by: Karel Zak sys-utils/eject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 63beec6443a1b2db215c321870b57ffabf4b4b2e Author: Karel Zak Date: Fri Sep 7 13:34:38 2012 +0200 whereis: improve readability for analysers Signed-off-by: Karel Zak misc-utils/whereis.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 9d48340d44a83fdfc24ce70a69fd84b6dd0ca3fd Author: Karel Zak Date: Fri Sep 7 13:29:55 2012 +0200 lib/pager: robust work with file descriptors [coverity scan] Signed-off-by: Karel Zak lib/pager.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) commit 7a84c0393a7bad637657579ae99b75bd5cb2982a Author: Karel Zak Date: Fri Sep 7 13:16:10 2012 +0200 sulogin: cleanup file descriptors usage - use _FILENO macros rather than magic numbers - check for dup() result Signed-off-by: Karel Zak login-utils/sulogin.c | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) commit 17df84df275aa6ebf92dfb727a477bb8c2abe6eb Author: Karel Zak Date: Fri Sep 7 13:02:42 2012 +0200 switch_root: check open() return value [coverity scan] Signed-off-by: Karel Zak sys-utils/switch_root.c | 4 ++++ 1 file changed, 4 insertions(+) commit 3b4f1aeeccb985fcb97e1fcd1df6c050e169dfb3 Author: Michal Suchanek Date: Fri Sep 7 12:55:48 2012 +0200 Fix configure to work with multiarch distributions. configure.ac | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) commit fee9431f972c8cb6ef70350f12f76d6f352312d2 Author: Karel Zak Date: Fri Sep 7 12:15:39 2012 +0200 lib/sysfs: more robust sysfs_opendir() [coverity scan] Signed-off-by: Karel Zak lib/sysfs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 67757329cce3102f220be82e0c5499a1df0969ae Author: Karel Zak Date: Fri Sep 7 12:05:56 2012 +0200 mark expected fallthrough for static analysers Signed-off-by: Karel Zak fdisks/sfdisk.c | 2 ++ text-utils/colcrt.c | 1 + 2 files changed, 3 insertions(+) commit a291c7ff514736e6bb334cd3a2de87a37137d87c Author: Karel Zak Date: Fri Sep 7 12:00:53 2012 +0200 tunelp: add missing break [coverity scan] Signed-off-by: Karel Zak sys-utils/tunelp.c | 1 + 1 file changed, 1 insertion(+) commit f7fff0096a69e64c5b87bf968abf5b48b8037547 Author: Karel Zak Date: Fri Sep 7 11:42:34 2012 +0200 getopt: make the code more readable for analysers Signed-off-by: Karel Zak misc-utils/getopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 38efd1e2b7d4d108026b33a1c720f671b16dd771 Author: Karel Zak Date: Fri Sep 7 11:39:38 2012 +0200 namei: remove dead code [coverity scan] Signed-off-by: Karel Zak misc-utils/namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ceaff03b27d3e5be9263c980ce8006854c4bff60 Author: Karel Zak Date: Fri Sep 7 11:00:54 2012 +0200 libblkid: check fchmod() return value [coverity scan] libblkid/src/save.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) commit c1028673fe34ad723472a32f63591f51d18c3a9d Author: Karel Zak Date: Fri Sep 7 10:58:49 2012 +0200 libblkid: improve DBG() macro Signed-off-by: Karel Zak libblkid/src/blkidP.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1a1c0ad77cdc9b45919f7a35f12f8cd8161949c0 Author: Karel Zak Date: Wed Sep 5 14:06:28 2012 +0200 docs: add note about /etc/pam.d/su-l to ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.22-ReleaseNotes | 2 ++ 1 file changed, 2 insertions(+) commit 309f26bb5f72123712e3fa2d8c70ea5a6f9efd17 Author: Björn Jacke Date: Wed Sep 5 13:39:48 2012 +0200 mount: fix man pahe typo in quota mount option names sys-utils/mount.8 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit bda67d64de47bd6e3c04bb163e76517e78dfd5db Author: Karel Zak Date: Wed Sep 5 11:26:20 2012 +0200 su: move long options to main() Signed-off-by: Karel Zak login-utils/su-common.c | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) commit 4e1834978f7efa6b62616c35e23551ad77d73cd1 Author: Karel Zak Date: Wed Sep 5 11:21:07 2012 +0200 su: verify writing to streams was successful Signed-off-by: Karel Zak login-utils/su-common.c | 2 ++ 1 file changed, 2 insertions(+) commit d10028a712eca099bbba835b9b43e372749ff592 Author: Karel Zak Date: Wed Sep 5 11:13:34 2012 +0200 su: more robust getpwuid() for GNU Hurt [coreutils 71b7ddc] Let's support GNU Hurd over-engineering where a process can exist without UID and getuid() returns -1 and sets errno. Signed-off-by: Karel Zak login-utils/su-common.c | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) commit 6edbca18bbeccd855b0fc8a9c9d842d7605a7f31 Author: Dave Reisner Date: Tue Sep 4 22:31:03 2012 -0400 build-sys: install su.1 if building su Signed-off-by: Dave Reisner login-utils/Makemodule.am | 1 + 1 file changed, 1 insertion(+) commit b8ccc27c1b7da01cc12139de71daeb25795bbe31 Author: Benno Schulenberg Date: Fri Aug 31 12:51:50 2012 +0200 wdctl: treat aligned translatable strings in a uniform manner Signed-off-by: Benno Schulenberg sys-utils/wdctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 19c19b637d4d5e714cfd732c30ad043fa6e40f2c Author: Benno Schulenberg Date: Thu Aug 30 21:08:47 2012 +0200 wdctl: gettextize one forgotten word Signed-off-by: Benno Schulenberg sys-utils/wdctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit e9e7698eb4a33b647a54676d33b10191a3374839 Author: Benno Schulenberg Date: Wed Aug 29 21:32:22 2012 +0200 textual: add missing comma and colon in some help texts Signed-off-by: Benno Schulenberg misc-utils/lslocks.c | 2 +- sys-utils/losetup.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit bbac757b1e50259d6e61b0ed932f09a504f6bcea Author: Yuri Chornoivan Date: Sat Aug 18 21:47:08 2012 +0300 textual: fix typos in messages misc-utils/lsblk.c | 2 +- schedutils/chrt.c | 2 +- sys-utils/flock.c | 2 +- text-utils/column.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) commit ca3dbca10b4f96b8e309e579933dfdcab80b20b5 Author: Davidlohr Bueso Date: Tue Sep 4 15:58:06 2012 +0200 libmount: document LIBMOUNT_DEBUG users Update the manpages of programs that use this environment variable for extra debugging information. Signed-off-by: Davidlohr Bueso disk-utils/fsck.8 | 3 +++ misc-utils/lsblk.8 | 3 +++ sys-utils/mountpoint.1 | 4 ++++ sys-utils/swapon.8 | 4 ++++ sys-utils/umount.8 | 7 +++++++ 5 files changed, 21 insertions(+) commit ddfeda98d84e8459de07f579da70f4cf30eb49f5 Author: Davidlohr Bueso Date: Tue Sep 4 15:58:02 2012 +0200 blkid: document LIBBLKID_DEBUG users Update the manpages of programs that use this environment variable for extra debugging information. Signed-off-by: Davidlohr Bueso disk-utils/fsck.8 | 3 +++ disk-utils/mkswap.8 | 3 +++ disk-utils/partx.8 | 3 +++ disk-utils/swaplabel.8 | 3 +++ misc-utils/blkid.8 | 3 +++ misc-utils/findfs.8 | 3 +++ misc-utils/wipefs.8 | 3 +++ 7 files changed, 21 insertions(+) commit 12b06c3dfcc74fd843975b9cb70aaa3c7951d8e7 Author: Milan Broz Date: Fri Aug 17 20:25:26 2012 +0200 lsblk: add add_random columns Allow printing of queue/add_random attribute which describes if device adds randomness to kernel RNG pool. Signed-off-by: Milan Broz misc-utils/lsblk.c | 7 +++++++ 1 file changed, 7 insertions(+) commit 4f2c0b2d03789eedf815038f944fee3b2d44d0b6 Author: Karel Zak Date: Tue Sep 4 16:53:22 2012 +0200 runuser: add note about PAM to man page Signed-off-by: Karel Zak login-utils/runuser.1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 21d7483eb41840482975d2becaed2bd79de513b2 Author: Karel Zak Date: Wed Aug 29 18:02:24 2012 +0200 docs: add list of expected PAM config files Signed-off-by: Karel Zak Documentation/PAM-configuration.txt | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) commit 7ec6adb1cc00719b10b21a732474fc444acaac95 Author: Karel Zak Date: Wed Aug 29 17:34:26 2012 +0200 runuser: new command (derived from su(1)) This command is based on su(1), the differences: - based on Fedora runuser su(1) patch - not installed with suid rights - allowed for root users only - don't ask for password - uses PAM session, for example: $ cat /etc/pam.d/runuser auth sufficient pam_rootok.so session optional pam_keyinit.so revoke session required pam_limits.so session required pam_unix.so $ cat /etc/pam.d/runuser-l auth include runuser session optional pam_keyinit.so force revoke session include runuser Signed-off-by: Karel Zak .gitignore | 1 + configure.ac | 9 ++ login-utils/Makemodule.am | 13 +++ login-utils/runuser.1 | 230 ++++++++++++++++++++++++++++++++++++++++++++++ login-utils/runuser.c | 7 ++ login-utils/su-common.c | 51 ++++++++-- 6 files changed, 303 insertions(+), 8 deletions(-) commit cf1a99dacc9b1b6a091e03906b60c47774a339f5 Author: Karel Zak Date: Tue Aug 28 18:10:58 2012 +0200 su: move generic su code to su-common.c Signed-off-by: Karel Zak login-utils/Makemodule.am | 2 + login-utils/su-common.c | 883 ++++++++++++++++++++++++++++++++++++++++++++++ login-utils/su-common.h | 11 + login-utils/su.c | 876 +-------------------------------------------- 4 files changed, 899 insertions(+), 873 deletions(-) commit 8528ea2f81487142047a49ec6601a745f2eab365 Author: Karel Zak Date: Tue Aug 28 16:32:28 2012 +0200 su: add --group and --supp-group options These options allow to specify alternative groups. The command su(1) has to be executed by root. The implementation is based on Fedora runuser(1) command. For example: # su --group=kzak --supp-group=uuidd - # id uid=0(root) gid=1000(kzak) groups=0(root),985(uuidd),1000(kzak) non-root user: $ su --group=kzak - su: only root can specify alternative groups Signed-off-by: Karel Zak login-utils/su.1 | 6 +++++ login-utils/su.c | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 75 insertions(+), 4 deletions(-) commit 4e1073c23b4208de3df1dc32ffc5cf59bcf78ef8 Author: Karel Zak Date: Wed Aug 29 21:16:21 2012 +0200 build-sys: add configure summary Signed-off-by: Karel Zak configure.ac | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) commit 0825179f47146d19c9f03340ee19880e965de46b Author: Karel Zak Date: Wed Aug 29 20:32:19 2012 +0200 col: fix compiler warning [-Wstrict-prototypes] text-utils/col.c:142:43: warning: function declaration isn’t a prototype [-Wstrict-prototypes] Signed-off-by: Karel Zak text-utils/col.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit aa71999827c5a1436eca184d25f1906dacec5e63 Author: Karel Zak Date: Wed Aug 29 20:30:11 2012 +0200 fsck.cramfs: fix compiler warning [-Wpointer-arith] disk-utils/fsck.cramfs.c: In function ‘test_crc’: disk-utils/fsck.cramfs.c:231:32: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] disk-utils/fsck.cramfs.c:233:24: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] Signed-off-by: Karel Zak disk-utils/fsck.cramfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit dcd33c3e156a2a453961d1d0083afb2b4051a118 Author: Karel Zak Date: Wed Aug 29 20:26:21 2012 +0200 build-sys: add another compiler warnings Signed-off-by: Karel Zak configure.ac | 4 ++++ 1 file changed, 4 insertions(+) commit d39c2b438f0f99481f4b14d01b859dd0ea4c6d03 Author: Karel Zak Date: Wed Aug 29 20:08:18 2012 +0200 libmount: use O_CLOEXEC everywhere Signed-off-by: Karel Zak libmount/src/lock.c | 4 ++-- libmount/src/utils.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) commit 49a8f58e48a5b7f5d4852700ecdd317c7b547a74 Author: Karel Zak Date: Wed Aug 29 19:49:19 2012 +0200 libblkid: use O_CLOEXEC Signed-off-by: Karel Zak libblkid/src/evaluate.c | 2 +- libblkid/src/probe.c | 4 ++-- libblkid/src/read.c | 2 +- libblkid/src/topology/md.c | 2 +- libblkid/src/verify.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-)