Changes between v2.23 and v2.24-rc1 -------------------------------------------- commit 9ef14b45c38c6a63f6981fdeba6f856d7a611ee9 Author: Karel Zak Date: Fri Sep 27 14:34:41 2013 +0200 build-sys: release++ (v2.24-rc1) Signed-off-by: Karel Zak configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0773e4b213379218b612998cf0dcf9b7e97d2307 Author: Karel Zak Date: Fri Sep 27 14:27:10 2013 +0200 docs: update v2.24-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.24-ReleaseNotes | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) commit 6073251ca88c7f17366ea409c4a947dd9e98cdcf Author: Karel Zak Date: Fri Sep 27 14:06:14 2013 +0200 build-sys: one install dir for all pylibmount stuff Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 1 - libmount/python/Makemodule.am | 10 ++++++---- 3 files changed, 10 insertions(+), 5 deletions(-) commit bccc956df3d254ddc10eda2fbcbb8890819e943a Author: Karel Zak Date: Fri Sep 27 14:02:58 2013 +0200 build-sys: fix lastb symlink Signed-off-by: Karel Zak login-utils/Makemodule.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a2a896a8c4753310674ce084e1617166ffaac481 Author: Karel Zak Date: Fri Sep 27 12:28:06 2013 +0200 po: merge changes Signed-off-by: Karel Zak po/ca.po | 46 +++++++++++++++++++++++----------------------- po/cs.po | 46 +++++++++++++++++++++++----------------------- po/da.po | 46 +++++++++++++++++++++++----------------------- po/de.po | 46 +++++++++++++++++++++++----------------------- po/es.po | 46 +++++++++++++++++++++++----------------------- po/et.po | 46 +++++++++++++++++++++++----------------------- po/eu.po | 46 +++++++++++++++++++++++----------------------- po/fi.po | 46 +++++++++++++++++++++++----------------------- po/fr.po | 46 +++++++++++++++++++++++----------------------- po/gl.po | 46 +++++++++++++++++++++++----------------------- po/hr.po | 46 +++++++++++++++++++++++----------------------- po/hu.po | 46 +++++++++++++++++++++++----------------------- po/id.po | 46 +++++++++++++++++++++++----------------------- po/it.po | 46 +++++++++++++++++++++++----------------------- po/ja.po | 46 +++++++++++++++++++++++----------------------- po/nl.po | 46 +++++++++++++++++++++++----------------------- po/pl.po | 46 +++++++++++++++++++++++----------------------- po/pt_BR.po | 46 +++++++++++++++++++++++----------------------- po/ru.po | 46 +++++++++++++++++++++++----------------------- po/sl.po | 46 +++++++++++++++++++++++----------------------- po/sv.po | 46 +++++++++++++++++++++++----------------------- po/tr.po | 46 +++++++++++++++++++++++----------------------- po/uk.po | 46 +++++++++++++++++++++++----------------------- po/util-linux.pot | 46 +++++++++++++++++++++++----------------------- po/vi.po | 46 +++++++++++++++++++++++----------------------- po/zh_CN.po | 46 +++++++++++++++++++++++----------------------- po/zh_TW.po | 46 +++++++++++++++++++++++----------------------- 27 files changed, 621 insertions(+), 621 deletions(-) commit 5259e1e1f90ddaed002738008408a63821041180 Author: Karel Zak Date: Fri Sep 27 12:19:14 2013 +0200 tests: update build tests Signed-off-by: Karel Zak tests/expected/build-sys/config-all | 3 ++- tests/expected/build-sys/config-all-non-nls | 3 ++- tests/expected/build-sys/config-audit | 4 +++- tests/expected/build-sys/config-chfnsh-libuser | 4 +++- tests/expected/build-sys/config-chfnsh-no-password | 4 +++- tests/expected/build-sys/config-chfnsh-pam | 4 +++- tests/expected/build-sys/config-core | 4 +++- tests/expected/build-sys/config-devel | 3 ++- tests/expected/build-sys/config-devel-non-docs | 3 ++- tests/expected/build-sys/config-non-libblkid | 4 +++- tests/expected/build-sys/config-non-libmount | 4 +++- tests/expected/build-sys/config-non-libs | 4 +++- tests/expected/build-sys/config-non-libuuid | 4 +++- tests/expected/build-sys/config-non-nls | 4 +++- tests/expected/build-sys/config-old-mount | 4 +++- tests/expected/build-sys/config-selinux | 4 +++- tests/expected/build-sys/config-slang | 4 +++- tests/expected/build-sys/config-static | 4 +++- 18 files changed, 50 insertions(+), 18 deletions(-) commit d924b10b941ec0e31ca3be18e5399adb726edcfc Author: Karel Zak Date: Fri Sep 27 12:03:33 2013 +0200 build-sys: fix static builds Signed-off-by: Karel Zak configure.ac | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit 6ea595d996a07fa9327fe3d2c1d611724078fc89 Author: Karel Zak Date: Fri Sep 27 10:38:47 2013 +0200 libblkid: update docs Signed-off-by: Karel Zak libblkid/docs/libblkid-docs.xml | 1 + libblkid/docs/libblkid-sections.txt | 1 + 2 files changed, 2 insertions(+) commit 47cca89934d3cceba7278e34ecd4998dcb8adb3b Author: Karel Zak Date: Fri Sep 27 10:38:39 2013 +0200 libmount: update docs Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 6 +++--- libmount/src/fs.c | 2 +- libmount/src/libmount.h.in | 4 ++-- libmount/src/tab.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) commit 726f9fbf46c3e0427c47e7c68c69d4ae42191b71 Author: Karel Zak Date: Fri Sep 27 10:06:44 2013 +0200 umount: provide more helpful error message non-root user on device that is not mounted: $ umount /mnt/flash umount: /mnt/flash: umount failed: Operation not permitted this is true, because we cannot evaluate permissions as there is no entry in mtab, but users expect something more helpful -- for example umount: /mnt/flash: not mounted References: https://bugs.archlinux.org/task/31647 Signed-off-by: Karel Zak sys-utils/umount.c | 6 ++++++ 1 file changed, 6 insertions(+) commit c410f64734cb8a67e3396d924b4b475022c9494e Author: Karel Zak Date: Fri Sep 27 10:06:09 2013 +0200 libmount: small cleanup in umount code Signed-off-by: Karel Zak libmount/src/context_mount.c | 2 +- libmount/src/context_umount.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) commit 2ab413a6891be621e92cd4d28dd062e38e736d64 Author: Karel Zak Date: Thu Sep 26 16:17:01 2013 +0200 docs: add v2.24-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.24-ReleaseNotes | 784 ++++++++++++++++++++++++++++++ 1 file changed, 784 insertions(+) commit 71e87708b9455324ad17b36029d83cc6583420d9 Author: Karel Zak Date: Thu Sep 26 15:42:54 2013 +0200 mount: add notes about UUIDs to the man page Signed-off-by: Karel Zak sys-utils/fstab.5 | 3 ++- sys-utils/mount.8 | 9 +++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) commit 51e3530cdcb1d4f3ab91ae953ebc5adcdc5f9239 Author: Karel Zak Date: Thu Sep 26 14:45:14 2013 +0200 libmount: compose mount. helpers paths more carefully The [u]mount helper path is "/sbin/mount.", the should not be possible to interpret like a path, for example: # mkdir /sbin/mount.fake # mount -t fake/../../../home/user/foo.sh Anyway, this is *not mount(8) security issue*, because: - non-root users don't have permissions to specify -t on mount(8) command line - /sbin is not writable for regular users This patch makes libmount more robust for situations when the library is used by incompetent developers who don't sanitize user's input. Reported-by: "Horsfall, Matthew" Signed-off-by: Karel Zak libmount/src/context.c | 1 + 1 file changed, 1 insertion(+) commit e4d394fa365d7e8b53076f96410b0e0cff1ae4c5 Author: Karel Zak Date: Thu Sep 26 14:02:40 2013 +0200 build-sys: add pylibmount __init__.py EXTRA_DIST Signed-off-by: Karel Zak libmount/python/Makemodule.am | 2 ++ 1 file changed, 2 insertions(+) commit 3745d4a94d23edb22f4792d8c2cb2064e1116834 Author: Karel Zak Date: Thu Sep 26 13:15:10 2013 +0200 build-sys: fix ${prefix} usage, be more verbose about py paths - incorrect ${prefix} and ${exec_prefix} usage in AC_CASE (bug introduced by commit 9f57e6e8) - disable python by default (you have to use --with-python) - add python paths to the finale ./configure info message Signed-off-by: Karel Zak configure.ac | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) commit 808c876512187d146b3d54e1ee2b74a6520b5216 Author: Karel Zak Date: Thu Sep 26 12:55:30 2013 +0200 build-sys: install to the correct python dirs It seems we have to call AM_PATH_PYTHON() monster to get pyexec (shared libs) and python (scripts) directories. Signed-off-by: Karel Zak configure.ac | 3 +-- libmount/python/Makemodule.am | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) commit 22581a6c490c8a5c9c54ee528bb8e070f261dd29 Author: Karel Zak Date: Thu Sep 26 12:07:45 2013 +0200 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) commit d0992120a850b84bb3c690236713b7c3814e479c Author: Karel Zak Date: Thu Sep 26 12:01:10 2013 +0200 po: merge changes Signed-off-by: Karel Zak po/ca.po | 217 +- po/cs.po | 18366 ++++++++++++++++++++------------------ po/da.po | 217 +- po/de.po | 219 +- po/es.po | 217 +- po/et.po | 217 +- po/eu.po | 217 +- po/fi.po | 217 +- po/fr.po | 25120 ++++++++++++++++++++++++++++------------------------ po/gl.po | 217 +- po/hr.po | 217 +- po/hu.po | 217 +- po/id.po | 217 +- po/it.po | 217 +- po/ja.po | 217 +- po/nl.po | 24318 ++++++++++++++++++++++++++------------------------ po/pl.po | 11109 +++++++++++++---------- po/pt_BR.po | 217 +- po/ru.po | 217 +- po/sl.po | 217 +- po/sv.po | 217 +- po/tr.po | 217 +- po/uk.po | 11450 ++++++++++++++---------- po/util-linux.pot | 212 +- po/vi.po | 24441 ++++++++++++++++++++++++++------------------------ po/zh_CN.po | 9679 +++++++++++--------- po/zh_TW.po | 11092 ++++++++++++----------- 27 files changed, 75740 insertions(+), 63955 deletions(-) commit 91d51a937311f8c346f359cb145d041d23b361e0 Author: Wei-Lun Chao Date: Thu Sep 26 11:47:14 2013 +0200 po: update zh_TW.po (from translationproject.org) po/zh_TW.po | 8551 ++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 4656 insertions(+), 3895 deletions(-) commit f983d5204be349312aac2978d432f66c3d1227b5 Author: Wylmer Wang Date: Thu Sep 26 11:47:14 2013 +0200 po: update zh_CN.po (from translationproject.org) po/zh_CN.po | 6204 ++++++++++++++++++++++++++++++----------------------------- 1 file changed, 3203 insertions(+), 3001 deletions(-) commit 1fc80ef6a0c805d6d8c8464ca9b00640bb3170bb Author: Trần Ngọc Quân Date: Thu Sep 26 11:47:14 2013 +0200 po: update vi.po (from translationproject.org) po/vi.po | 5206 ++++++++++++++++++++++++++------------------------------------ 1 file changed, 2186 insertions(+), 3020 deletions(-) commit a0efcfcb2609304756421d77300c665613b1327e Author: FULL NAME Date: Thu Sep 26 11:47:14 2013 +0200 po: update util-linux.pot (from translationproject.org) po/util-linux.pot | 7178 +++++++++++++++++++++++++++-------------------------- 1 file changed, 3710 insertions(+), 3468 deletions(-) commit 168f00c06b2a09e5a61f405ab99dd99f3df66613 Author: Yuri Chornoivan Date: Thu Sep 26 11:47:14 2013 +0200 po: update uk.po (from translationproject.org) po/uk.po | 2255 +++++++++++++++++++++----------------------------------------- 1 file changed, 770 insertions(+), 1485 deletions(-) commit 27ca625eace7ae56df0a18b8328c828378098b3d Author: Nilgün Belma Bugüner Date: Thu Sep 26 11:47:13 2013 +0200 po: update tr.po (from translationproject.org) po/tr.po | 9854 +++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 5303 insertions(+), 4551 deletions(-) commit db74a1b60bf36ef380fb1ce96d65c9afee21536b Author: Daniel Nylander Date: Thu Sep 26 11:47:13 2013 +0200 po: update sv.po (from translationproject.org) po/sv.po | 9876 +++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 5314 insertions(+), 4562 deletions(-) commit 3020039da5659cbeb9896cee84b5eb1ed23dbf65 Author: Simon Mihevc Date: Thu Sep 26 11:47:13 2013 +0200 po: update sl.po (from translationproject.org) po/sl.po | 9809 +++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 5281 insertions(+), 4528 deletions(-) commit d2ac3547834501ef82227c4347d573aaffa2ded0 Author: Pavel Maryanov Date: Thu Sep 26 11:47:13 2013 +0200 po: update ru.po (from translationproject.org) po/ru.po | 9861 +++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 5315 insertions(+), 4546 deletions(-) commit c3314963cebad795a7ab5953be6bdc1b7eabdcf4 Author: Rodrigo Stulzer Lopes Date: Thu Sep 26 11:47:13 2013 +0200 po: update pt_BR.po (from translationproject.org) po/pt_BR.po | 9774 ++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 5252 insertions(+), 4522 deletions(-) commit ecd0627276d7d598872695bae203cfa276c20209 Author: Jakub Bogusz Date: Thu Sep 26 11:47:13 2013 +0200 po: update pl.po (from translationproject.org) po/pl.po | 1852 ++++++++++++++++++++++---------------------------------------- 1 file changed, 655 insertions(+), 1197 deletions(-) commit d8b923554d84a800bb710c1de9fbef7bd736c9c3 Author: Benno Schulenberg Date: Thu Sep 26 11:47:13 2013 +0200 po: update nl.po (from translationproject.org) po/nl.po | 2856 ++++++++++++++++++++++++-------------------------------------- 1 file changed, 1091 insertions(+), 1765 deletions(-) commit e32dbe1f6d0db65eb05d003684797be6f6cb6910 Author: Takeshi Hamasaki Date: Thu Sep 26 11:47:13 2013 +0200 po: update ja.po (from translationproject.org) po/ja.po | 9849 +++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 5315 insertions(+), 4534 deletions(-) commit ca552a2eeb3adb877989bf0e0c81c01246fcc84e Author: Marco Colombo Date: Thu Sep 26 11:47:13 2013 +0200 po: update it.po (from translationproject.org) po/it.po | 9827 +++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 5282 insertions(+), 4545 deletions(-) commit 66932699f538e80350b5068f662699f91dad9043 Author: Arif E. Nugroho Date: Thu Sep 26 11:47:13 2013 +0200 po: update id.po (from translationproject.org) po/id.po | 9975 ++++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 5397 insertions(+), 4578 deletions(-) commit a70fbb019ef7447cf5430b930dfe9d2ff0b19e27 Author: Gabor Kelemen Date: Thu Sep 26 11:47:13 2013 +0200 po: update hu.po (from translationproject.org) po/hu.po | 9863 +++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 5317 insertions(+), 4546 deletions(-) commit e197d4385a6aeea4f780ecbaf408f1c7ee59484a Author: Tomislav Krznar Date: Thu Sep 26 11:47:13 2013 +0200 po: update hr.po (from translationproject.org) po/hr.po | 7499 ++++++++++++++++++++++++++++++++------------------------------ 1 file changed, 3908 insertions(+), 3591 deletions(-) commit d059c4f8321ac4d7e7197abeca3ff0a626d556f2 Author: Fran Diéguez Date: Thu Sep 26 11:47:13 2013 +0200 po: update gl.po (from translationproject.org) po/gl.po | 8324 +++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 4386 insertions(+), 3938 deletions(-) commit 771fc8afab6855bb3579cb9704e46aba532209e0 Author: David Prévot Date: Thu Sep 26 11:47:13 2013 +0200 po: update fr.po (from translationproject.org) po/fr.po | 3070 +++++++++++++++++++++----------------------------------------- 1 file changed, 1023 insertions(+), 2047 deletions(-) commit f74675cce47a11b79cf6523e84cf04d71873cd3b Author: Lauri Nurmi Date: Thu Sep 26 11:47:13 2013 +0200 po: update fi.po (from translationproject.org) po/fi.po | 9801 +++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 5290 insertions(+), 4511 deletions(-) commit 04af08db5bc7ee2bf591c604fe908f06d352889f Author: Mikel Olasagasti Uranga Date: Thu Sep 26 11:47:12 2013 +0200 po: update eu.po (from translationproject.org) po/eu.po | 9165 +++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 4892 insertions(+), 4273 deletions(-) commit 4c8e077d3944247d4c97c9a4720d03da312657ce Author: Meelis Roos Date: Thu Sep 26 11:47:12 2013 +0200 po: update et.po (from translationproject.org) po/et.po | 9608 +++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 5169 insertions(+), 4439 deletions(-) commit 6edfc09126c3e383b96878c9ee1c1af89e94b9aa Author: Santiago Vila Doncel Date: Thu Sep 26 11:47:12 2013 +0200 po: update es.po (from translationproject.org) po/es.po | 9914 +++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 5338 insertions(+), 4576 deletions(-) commit 86ebb498dbfbe2dbb11118a642e85b54f41fde4c Author: Arun Persaud Date: Thu Sep 26 11:47:12 2013 +0200 po: update de.po (from translationproject.org) po/de.po | 9834 +++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 5306 insertions(+), 4528 deletions(-) commit c8ef301a190515cae70acd6ebbc803fc3e53c7bb Author: Joe Hansen Date: Thu Sep 26 11:47:12 2013 +0200 po: update da.po (from translationproject.org) po/da.po | 10092 +++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 5479 insertions(+), 4613 deletions(-) commit 534c25f7085aeb996c07f7c5c50a14893ed3c8c2 Author: Petr Písař Date: Thu Sep 26 11:47:12 2013 +0200 po: update cs.po (from translationproject.org) po/cs.po | 1951 ++++++++++++++++++++++---------------------------------------- 1 file changed, 700 insertions(+), 1251 deletions(-) commit 5cf0d07d18c5bae79e226cea731a75df14df5d25 Author: Josep Puigdemont Date: Thu Sep 26 11:47:12 2013 +0200 po: update ca.po (from translationproject.org) po/ca.po | 9878 +++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 5317 insertions(+), 4561 deletions(-) commit f2bf736868cec9fba37cebfc95faa82b906f9b83 Author: Karel Zak Date: Thu Sep 26 11:31:17 2013 +0200 last: fix man page groff warning tbl::166: column separation specified for last column Signed-off-by: Karel Zak login-utils/last.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 64e6c3bb25ed057a91d7ae94803d6bd812a26f44 Author: Karel Zak Date: Thu Sep 26 11:03:20 2013 +0200 mount: fix repeating words in the man page Signed-off-by: Karel Zak sys-utils/mount.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5afed1872e763b3171aad79c9f08dfa111ef76a1 Author: Karel Zak Date: Thu Sep 26 10:58:03 2013 +0200 fdisk: use xalloc stuff Signed-off-by: Karel Zak fdisks/fdisk.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) commit a29fdcc001b926c4c44a513b1feffce4c569b11e Author: Karel Zak Date: Thu Sep 26 10:57:35 2013 +0200 libfdisk: (bds) cleanup includes Signed-off-by: Karel Zak libfdisk/src/bsd.c | 2 -- 1 file changed, 2 deletions(-) commit e93d5475fe0bc4dca8ad65466afaeb1315872dcc Author: Karel Zak Date: Thu Sep 26 10:41:18 2013 +0200 build-sys: fix include Makemodule.am Signed-off-by: Karel Zak include/Makemodule.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 99004bc87300fc70169e83422e15af613fc220e7 Author: Karel Zak Date: Thu Sep 26 10:25:24 2013 +0200 tests: improve cal --color test Signed-off-by: Karel Zak tests/ts/cal/color | 3 +++ 1 file changed, 3 insertions(+) commit 412d542f6e9b875931fb05c8dbc06dbf5070046e Author: Karel Zak Date: Thu Sep 26 09:48:33 2013 +0200 libblkid: Get rid of an unnecessary check Signed-off-by: Karel Zak libblkid/src/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1e670193db20e9fe9b57cab90166c732a41b6117 Author: Karel Zak Date: Thu Sep 26 09:45:22 2013 +0200 libmount: make mnt_fs_{ap,pre}pend_options() more robust We should not use the results from mnt_split_optstr() if the function failed. Signed-off-by: Karel Zak libmount/src/fs.c | 6 ++++++ 1 file changed, 6 insertions(+) commit a5a6e12619aedb5842ed9df63a379dce2c537eff Author: Namhyung Kim Date: Thu Sep 26 00:32:06 2013 +0900 libmount: Remove stale comment on mnt_context_mount() The commit f9906424 ("libmount: add post-mount checks to detect ro/rw") added necessary check so the comment is not valid anymore. Signed-off-by: Namhyung Kim libmount/src/context_mount.c | 5 ----- 1 file changed, 5 deletions(-) commit 0705e84a1327cc03eeae184a4a47edeea4675f93 Author: Namhyung Kim Date: Thu Sep 26 00:32:05 2013 +0900 libmount: Set each optstr's to NULL if failed When mnt_split_optstr() failed in the middle, vfs, fs, user optstr's are freed but not reset. It can lead to double frees at the end of mnt_fs_{ap,pre}pend_options(). Signed-off-by: Namhyung Kim libmount/src/optstr.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) commit c470cbfc85ffba5f0fae7a74d27553fd623a9844 Author: Namhyung Kim Date: Thu Sep 26 00:32:04 2013 +0900 libmount: Free splitted optstr's when error occurred When strdup() failed, u, v and f optstr's should be freed. Signed-off-by: Namhyung Kim libmount/src/fs.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit e868d1835bc04f479b669f855a0271d3d65f17bc Author: Namhyung Kim Date: Thu Sep 26 00:32:03 2013 +0900 libmount: Get rid of an unnecessary check libmount_debug_mask was OR'ed to MNT_DEBUG_INIT so it should be non-null. Thus the check is pointless. Signed-off-by: Namhyung Kim libmount/src/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5aef9347480830ef41e0d7b707020ff104169f9d Author: Karel Zak Date: Wed Sep 25 17:51:13 2013 +0200 tests: update odd output fdisk test Signed-off-by: Karel Zak tests/expected/fdisk/oddinput | 1 + 1 file changed, 1 insertion(+) commit 5ae0491ee8b767f8f0bd3d0ea5a1c0e63be96a55 Author: Karel Zak Date: Wed Sep 25 17:41:26 2013 +0200 ORIG_HEAD tests: update sun label test * add fdisk -l outputs (to make the test more usable) * use more usable geometry * don't expect that 'create sun label' oprations asks for C/H/S (we follows fdisk_context defaults) Signed-off-by: Karel Zak tests/expected/fdisk/sunlabel | 91 +++++++++++++++++++++++++++++++++++++++---- tests/ts/fdisk/sunlabel | 2 +- 2 files changed, 85 insertions(+), 8 deletions(-) commit 96dc2798a86196d6f679dca1d46540fc38ab9524 Author: Karel Zak Date: Wed Sep 25 17:36:21 2013 +0200 fdisk: print geometry for dos-compatible mode too fdisks/fdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b325f31a5bd0d731bb0f7ed23fb8a44b86ff9566 Author: Karel Zak Date: Wed Sep 25 17:13:47 2013 +0200 libfdisk: (sun) make it more obvious why the first sector moved Signed-off-by: Karel Zak libfdisk/src/sun.c | 6 +++++- tests/ts/fdisk/sunlabel | 35 +++++++++++++++++++++++++---------- 2 files changed, 30 insertions(+), 11 deletions(-) commit a4347d207290d70a8e110d5cce3fa757b3458c5a Author: Karel Zak Date: Wed Sep 25 17:11:08 2013 +0200 libfdisk: improve fdisk_save_user_geometry() The functions should not overwrite old setting if the new value (C/H/S) is zero. Signed-off-by: Karel Zak libfdisk/src/alignment.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) commit e5b5a349cd6f5d6cf1b4b084e3ea18e6ec2d3051 Author: Karel Zak Date: Wed Sep 25 15:34:34 2013 +0200 libfdisk: use context geometry in SGI and SUN * don't call HDIO_GETGEO ioctls in the drivers * use context geometry (so user can overwrite it by -C/H/S options) * use default geometry is ioctl does not return anything Signed-off-by: Karel Zak libfdisk/src/sgi.c | 55 +++++++++++++++++++++++------------------------------- libfdisk/src/sun.c | 22 +++++++--------------- 2 files changed, 30 insertions(+), 47 deletions(-) commit 15c755975bb95186955c5eb254e04e5b3e98fdf2 Author: Karel Zak Date: Wed Sep 25 15:33:40 2013 +0200 tests: remove remaining set -x Signed-off-by: Karel Zak tests/ts/libmount/tabfiles-py | 6 ------ 1 file changed, 6 deletions(-) commit 8f5503cf8f3a971eff3bd61817ead02864fe09fe Author: Karel Zak Date: Wed Sep 25 14:23:48 2013 +0200 tests: update lscpu tests Signed-off-by: Karel Zak tests/expected/lscpu/lscpu-armv7 | 1 + tests/expected/lscpu/lscpu-x86_64-64cpu | 1 + tests/expected/lscpu/lscpu-x86_64-dell_e4310 | 1 + 3 files changed, 3 insertions(+) commit 5dd9251f198d4b034cc9ba70506aef07cdd9e2bb Author: Karel Zak Date: Wed Sep 25 11:45:59 2013 +0200 libfdisk: fix possible floating point exception Signed-off-by: Karel Zak libfdisk/src/sun.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 1fd10841fa7ce0c14daee234450f47f139fea412 Author: Davidlohr Bueso Date: Sat Sep 21 20:45:16 2013 -0700 libfdisk: gpt: loosen check fot pmbr size in lba While most disk partitioning tools out there create a pMBR's size in lba to be the lesser of the whole disk or 2Tib, Microsoft apparently does not[1]. It always sets the entry to the maximum 32-bit limitation - even though a drive may be smaller than that. Loosen this check and only verify that the size is either the whole disk or 0xFFFFFFFF. No tool in its right mind would set it to any value other than these. [1] http://thestarman.pcministry.com/asm/mbr/GPT.htm#GPTPT Signed-off-by: Davidlohr Bueso libfdisk/src/gpt.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) commit ac920fed6cce7ad84e25eeb8df38d8e966c52946 Author: Davidlohr Bueso Date: Sat Sep 21 20:45:14 2013 -0700 libfdisk: gpt: avoid unnecessary pmbr check We only jump to the 'check_hybrid' label when a valid pmbr is detected, so we need not recheck again. Move the label's logic so it doesn't include the check. Signed-off-by: Davidlohr Bueso libfdisk/src/gpt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit e065a597d6d13455e388b44d94f51ac4ba539570 Author: Davidlohr Bueso Date: Sat Sep 21 20:43:40 2013 -0700 lscpu: report cpu min mhz The lscpu tool only shows the current and max CPU frequencies, however, in many scenarios this is not enough. If there are energy saving situations (like some CPUs being idle, or not fully used) the cpugov can lower this value. Signed-off-by: Davidlohr Bueso sys-utils/lscpu.c | 50 +++++++++++++++++++++++++++++++++++++------------- 1 file changed, 37 insertions(+), 13 deletions(-) commit 464074532c0d1898f945a00c2f143e5b3ca59601 Author: Ondrej Oprala Date: Thu Aug 29 14:57:04 2013 +0200 pylibmount: rewrite to be py2/py3 universal Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak libmount/python/context.c | 15 +++--- libmount/python/fs.c | 86 ++++++++++++++++++++---------- libmount/python/pylibmount.c | 89 +++++++++++++++++++++++++++++--- libmount/python/pylibmount.h | 1 + libmount/python/tab.c | 41 +++++---------- libmount/python/test_mount_context.py | 33 ++++++------ libmount/python/test_mount_tab.py | 45 ++++++++-------- libmount/python/test_mount_tab_update.py | 9 ++-- tests/functions.sh | 5 ++ tests/ts/libmount/context-py | 25 ++++----- tests/ts/libmount/context-utab-py | 13 ++--- tests/ts/libmount/tabfiles-py | 30 ++++++----- tests/ts/libmount/tabfiles-tags-py | 17 +++--- tests/ts/libmount/update-py | 5 +- 14 files changed, 256 insertions(+), 158 deletions(-) commit 8e5c46750073137ff35154242437e56c3b41ec1b Author: Karel Zak Date: Fri Sep 20 12:42:45 2013 +0200 build-sys: support --with-python[={2,3}] * we use pkg-config to get CGLAGS and LIBS, use package specific config (e.g. python-config) is non-sense. * default is to follow distribution and use pkg-config module name "python". This is probably symlink to python2.pc or python3.pc. * --with-python=2 forces to pkg-module "python2 >= 2" * --with-python=3 forces to pkg-module "python3 >= 3" Signed-off-by: Karel Zak configure.ac | 41 +++++++++++++++++++++++++---------------- libmount/python/Makemodule.am | 3 +-- 2 files changed, 26 insertions(+), 18 deletions(-) commit 2afcbe139d272fa494c28c8e6a0624d93a96e157 Author: Dave Reisner Date: Wed Sep 18 10:15:29 2013 -0400 libmount: free username after check Leak reported by valgrind: ==14226== 7 bytes in 1 blocks are definitely lost in loss record 1 of 1 ==14226== at 0x4C2757B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==14226== by 0x5534839: strdup (in /usr/lib/libc-2.18.so) ==14226== by 0x4E53FE0: mnt_get_username (utils.c:560) ==14226== by 0x4E456A5: mnt_context_prepare_umount (context_umount.c:413) ==14226== by 0x4E464F7: mnt_context_umount (context_umount.c:851) ==14226== by 0x403476: umount_one (umount.c:299) ==14226== by 0x402B34: main (umount.c:629) Signed-off-by: Dave Reisner libmount/src/context_umount.c | 2 ++ 1 file changed, 2 insertions(+) commit 4e9f59d1ee293108cd1d577f7b1a182f5b0ac9c0 Author: Dave Reisner Date: Tue Sep 17 17:05:09 2013 -0400 libmount: use memmove when overlap possible When unmounting some mountpoints as an unprivileged user (via the 'user' option in fstab), the umount fails. Debug output of 'umount /opt' reveals: 17760: libmount: CXT: [0x22890e0]: do umount 17760: libmount: UTILS: moving to /opt parent 17760: libmount: CXT: current directory moved to / [last_component='opt'] 17760: libmount: CXT: [0x22890e0]: umount(2) [target='pt', flags=0x00000000] valgrind shows the problem: ==23544== Source and destination overlap in memcpy(0x58d1370, 0x58d1371, 4) ==23544== at 0x4C2BBC3: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==23544== by 0x4E537C3: mnt_chdir_to_parent (utils.c:168) ==23544== by 0x4E45E4C: mnt_context_do_umount (context_umount.c:601) ==23544== by 0x4E46513: mnt_context_umount (context_umount.c:855) ==23544== by 0x403476: umount_one (umount.c:299) ==23544== by 0x402B34: main (umount.c:629) ==23544== ref: https://bugs.archlinux.org/task/36968 Signed-off-by: Dave Reisner libmount/src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 86cfa193ad7c56ba82199e35faeee696b4561313 Author: Mike Frysinger Date: Thu Sep 12 20:49:04 2013 -0400 bash-completion: fix typos in mkfs.bfs logic There is no "bfs" command. Change this file to match the other mkfs files where we have a "mkfs." prefix. Reported-by: Michał Górny Signed-off-by: Mike Frysinger bash-completion/mkfs.bfs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 51c7fb55d2c307333c7264fc69de8a4c785d488a Author: Karel Zak Date: Thu Sep 19 15:04:14 2013 +0200 tests: update fdisk outputs Signed-off-by: Karel Zak tests/expected/blkid/md-raid0-whole | 38 +++++++++++++++++++------------------ tests/expected/blkid/md-raid1-part | 38 +++++++++++++++++++------------------ tests/expected/blkid/md-raid1-whole | 37 +++++++++++++++++++----------------- tests/expected/partx/partx-dos+bsd | 4 ++-- tests/ts/blkid/md-raid0-whole | 2 +- 5 files changed, 63 insertions(+), 56 deletions(-) commit 920d6e9cd8f8ba5fb2d1ad77dc12f5e570832399 Author: Karel Zak Date: Thu Sep 19 14:17:52 2013 +0200 tests: update sun label test Note that we use a little different label setting, so the checksums are also different. For more details see commit 4170ae9cbd3ad54c9c7427212eaae6fdb030b57a. Signed-off-by: Karel Zak tests/expected/fdisk/sunlabel | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit e1fe1815da9f864286d3154514b5a4437af50902 Author: Karel Zak Date: Wed Sep 18 15:38:33 2013 +0200 tests: refresh fdisk tests tests/expected/fdisk/align-512-4K | 88 +++++++------- tests/expected/fdisk/align-512-4K-63 | 88 +++++++------- tests/expected/fdisk/align-512-4K-md | 83 +++++++------ tests/expected/fdisk/align-512-512 | 79 +++++++------ tests/expected/fdisk/align-512-512-topology | 84 ++++++------- tests/expected/fdisk/bsd | 88 ++++++++------ tests/expected/fdisk/gpt | 102 ++++++++-------- tests/expected/fdisk/mbr-dos-mode | 169 +++++++++++++------------- tests/expected/fdisk/mbr-nondos-mode | 176 +++++++++++++++------------- tests/expected/fdisk/oddinput | 4 +- tests/functions.sh | 13 +- tests/ts/fdisk/align-512-4K-md | 1 + tests/ts/fdisk/align-512-512 | 3 +- tests/ts/fdisk/bsd | 10 +- tests/ts/fdisk/gpt | 7 +- tests/ts/fdisk/mbr-dos-mode | 56 ++++----- tests/ts/fdisk/mbr-nondos-mode | 29 ++--- 17 files changed, 560 insertions(+), 520 deletions(-) commit 80063996be1593c0a37a7dd55d1a5baf1345588d Author: Karel Zak Date: Wed Sep 18 14:50:54 2013 +0200 libfdisk: fix cylinders and sector buffer usage - sector buffer has to be correctly deallocated - round to cylinders when use cylinder units in dos driver Signed-off-by: Karel Zak libfdisk/src/alignment.c | 6 ++++++ libfdisk/src/dos.c | 14 ++++++++++++-- libfdisk/src/fdiskP.h | 1 + libfdisk/src/sgi.c | 3 +++ libfdisk/src/sun.c | 3 +++ 5 files changed, 25 insertions(+), 2 deletions(-) commit 9c825fa026b5c848b1b5ffaa53192f46cdf6d156 Author: Karel Zak Date: Wed Sep 18 12:50:35 2013 +0200 libfdisk: fix sectorbuffer usage in dos driver Signed-off-by: Karel Zak libfdisk/src/dos.c | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) commit b572966747ab6b51783c70982840acefb6e6f178 Author: Karel Zak Date: Tue Sep 17 15:58:09 2013 +0200 fdisk: fix 'r' in BSD menu Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) commit c66a03c8d8dd9cb451280d5e7f7048cfdb3a6532 Author: Karel Zak Date: Tue Sep 17 15:14:51 2013 +0200 libfdisk: update test_ranges() code Signed-off-by: Karel Zak libfdisk/src/ask.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) commit e5db5e805279f0c987479fe2a8f88cae2ea6ac41 Author: Karel Zak Date: Tue Sep 17 15:13:15 2013 +0200 fdisk: remove unnecessary test Signed-off-by: Karel Zak fdisks/Makemodule.am | 6 ------ fdisks/fdisk-menu.c | 25 ------------------------- 2 files changed, 31 deletions(-) commit 811d2eccaf1df44ef045ad05b67a7254f26986d7 Author: Karel Zak Date: Tue Sep 17 14:43:30 2013 +0200 fdisk: bloody revolution in the man page Signed-off-by: Karel Zak fdisks/fdisk.8 | 333 +++++++++++++++++++++++++++++---------------------------- 1 file changed, 169 insertions(+), 164 deletions(-) commit 8d32ade58e0ef024c505c249e566fcf3dd0de7d1 Author: Karel Zak Date: Tue Sep 17 13:17:58 2013 +0200 libfdisk: use fdisk_warnx() in fdisk_ask_partnum() Signed-off-by: Karel Zak libfdisk/src/ask.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 4ec31f101f22ba70bf32bf9de5c880f062021e5c Author: Karel Zak Date: Tue Sep 17 12:22:55 2013 +0200 fdisk: separate disks by \n in -l output Signed-off-by: Karel Zak fdisks/fdisk.c | 1 + 1 file changed, 1 insertion(+) commit 44a6492ce3aa3c4eb8439aa6d9694e76ab20bf1d Author: Karel Zak Date: Tue Sep 17 09:46:24 2013 +0200 sfdisk: fix y/n mismatch Signed-off-by: Karel Zak fdisks/sfdisk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit ffcf0540412eb532be3a446c9f6f1dc1bd16e20c Author: Karel Zak Date: Tue Sep 17 09:42:53 2013 +0200 fdisk: add debug message, use colors for -l Signed-off-by: Karel Zak fdisks/fdisk.c | 5 +++-- libfdisk/src/ask.c | 7 ++++++- 2 files changed, 9 insertions(+), 3 deletions(-) commit d31d3fc74a836f3298f7a188b3ab838103dacb1e Author: Karel Zak Date: Mon Sep 16 17:04:57 2013 +0200 fdisk: fix -l Signed-off-by: Karel Zak fdisks/fdisk.c | 7 ++++++- libfdisk/src/label.c | 5 ++--- 2 files changed, 8 insertions(+), 4 deletions(-) commit 2961a4fce2b19a99f90cf5b2bf20301c29521116 Author: Karel Zak Date: Mon Sep 16 16:48:44 2013 +0200 libfdisk: remove "gpt support is new" warning Signed-off-by: Karel Zak libfdisk/src/gpt.c | 4 ---- 1 file changed, 4 deletions(-) commit 1f75d1ce6ffeb741b6d5b1e080d11fd32b0fb01e Author: Karel Zak Date: Mon Sep 16 16:26:52 2013 +0200 fdisk: remove unused code, coding style changes Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 2 +- fdisks/fdisk.c | 22 +++++++++------------- fdisks/fdisk.h | 15 --------------- libfdisk/src/alignment.c | 2 +- 4 files changed, 11 insertions(+), 30 deletions(-) commit b1ce8bcba02b146a3f44b723441e5ce32eea04b7 Author: Karel Zak Date: Mon Sep 9 11:24:24 2013 +0200 libfdisk: make default geom usage more robust .. to avoid SIGFPE References: https://bugzilla.redhat.com/show_bug.cgi?id=1005566 Signed-off-by: Karel Zak libfdisk/src/alignment.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) commit e916600f54be606f2253a79ef4c711b1078110b5 Author: Karel Zak Date: Tue Sep 3 17:36:35 2013 +0200 fdisk: rewrite dump first sector add dump disklabel command Expert command (m for help): D PMBR: offset = 0, size = 512 bytes. 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 * 000001c0 01 00 ee fe ff ff 01 00 00 00 ff 9f 0f 00 00 00 000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 * 000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa GPT Header: offset = 512, size = 512 bytes. 00000200 45 46 49 20 50 41 52 54 00 00 01 00 00 02 00 00 00000210 ae 36 81 28 00 00 00 00 01 00 00 00 00 00 00 00 00000220 ff 9f 0f 00 00 00 00 00 00 08 00 00 00 00 00 00 00000230 de 9f 0f 00 00 00 00 00 e0 9d d8 d5 d6 da 1a 44 00000240 98 57 e4 11 64 88 ce 3b 02 00 00 00 00 00 00 00 00000250 80 00 00 00 80 00 00 00 4b c7 c9 54 00 00 00 00 00000260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 * GPT Entries: offset = 1024, size = 16384 bytes. 00000400 af 3d c6 0f 83 84 72 47 8e 79 3d 69 d8 47 7d e4 00000410 bc ae 48 5e 22 e5 ca 4c aa 98 14 6d c9 1d 72 f4 00000420 00 08 00 00 00 00 00 00 de 9f 0f 00 00 00 00 00 00000430 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 * Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 8 +++-- fdisks/fdisk.c | 90 ++++++++++++++++++++++++++++++++++++++++++----------- fdisks/fdisk.h | 4 ++- 3 files changed, 80 insertions(+), 22 deletions(-) commit 775001ad2bbf0532920a82564120430aef7ed077 Author: Karel Zak Date: Tue Sep 3 17:36:04 2013 +0200 libfdisk: (gpt) support for disklabel dump Signed-off-by: Karel Zak libfdisk/src/gpt.c | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) commit c0d20aae6fb4fe5dfdb314ff11858ba2afadab67 Author: Karel Zak Date: Tue Sep 3 17:35:15 2013 +0200 libfdisk: add fdisk_locate_disklabel() The function returns offset and size of disklabel elements. Signed-off-by: Karel Zak libfdisk/src/fdiskP.h | 3 +++ libfdisk/src/label.c | 14 ++++++++++++++ libfdisk/src/libfdisk.h | 1 + 3 files changed, 18 insertions(+) commit 513d546289500da75d9e14a933509b7c58b1554e Author: Karel Zak Date: Tue Sep 3 13:43:26 2013 +0200 libfdisk: (gpt) use generic 'created partition' message Signed-off-by: Karel Zak fdisks/fdisk.c | 2 +- libfdisk/src/ask.c | 2 +- libfdisk/src/gpt.c | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) commit ac1a559a671cc143d6fee7604c433ebc4c82a2ae Author: Karel Zak Date: Tue Sep 3 13:29:58 2013 +0200 libfdisk: use fdisk_colon() and fdisk_sinfo() Signed-off-by: Karel Zak fdisks/fdisk.c | 24 ++++++++++++------------ libfdisk/src/bsd.c | 51 ++++++++++++++++++++++++++++----------------------- libfdisk/src/dos.c | 51 +++++++++++++++++++++++++++------------------------ libfdisk/src/gpt.c | 36 +++++++++++++++++++++--------------- libfdisk/src/sgi.c | 13 +++++++------ libfdisk/src/sun.c | 50 +++++++++++++++++++++++++------------------------- 6 files changed, 120 insertions(+), 105 deletions(-) commit dd00d1b27dae225f5ffad8fe0790f35fab44bb11 Author: Karel Zak Date: Tue Sep 3 13:28:02 2013 +0200 libfdisk: extend fdisk_info() functionality - add per message flags - add fdisk_colon() for "foo bar: bla bla..." messages - add fdisk_sinfo() as smart version of fdisk_info() Signed-off-by: Karel Zak fdisks/fdisk-ask.c | 53 ++++++++++++++++++++++++++++++++----------------- libfdisk/src/ask.c | 53 ++++++++++++++++++++++++++++++++++++++++++++----- libfdisk/src/fdiskP.h | 1 + libfdisk/src/libfdisk.h | 12 ++++++++++- 4 files changed, 95 insertions(+), 24 deletions(-) commit 09f0c3d9239c12be6f064bb6dca4703578d5e5ff Author: Karel Zak Date: Tue Sep 3 12:18:33 2013 +0200 fdisk: use fdisk_{info,warn} on more places Signed-off-by: Karel Zak fdisks/fdisk-ask.c | 5 ++--- fdisks/fdisk.c | 26 +++++++++++++------------- 2 files changed, 15 insertions(+), 16 deletions(-) commit 879fadf173fdd51ab281cd0f94bdd8ee76602134 Author: Karel Zak Date: Mon Sep 2 13:15:09 2013 +0200 libfdisk: (gpt) more robust PMBR partition size check According UEFI specification at least one (does not mean that the first) partition is 0xFF, it makes sense to check the size of the partition rather than check the first partition. Signed-off-by: Karel Zak libfdisk/src/gpt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 80a1712f546eb0669c9e4130a32c78cdeeb5fdab Author: Karel Zak Date: Mon Sep 2 10:54:30 2013 +0200 fdisk: add -L to colorize output Signed-off-by: Karel Zak fdisks/fdisk-ask.c | 28 ++++++++++++++++++++++++++-- fdisks/fdisk-menu.c | 6 ++++-- fdisks/fdisk.8 | 4 ++++ fdisks/fdisk.c | 20 ++++++++++++++++---- fdisks/fdisk.h | 2 +- include/colors.h | 19 +++++++++++++++++-- lib/colors.c | 13 +++++++++---- 7 files changed, 77 insertions(+), 15 deletions(-) commit a41309c2277aa5cc623288b3ea54516a80f7f6d2 Author: Karel Zak Date: Fri Aug 30 16:12:16 2013 +0200 fdisk: improve info output Signed-off-by: Karel Zak fdisks/fdisk-ask.c | 18 ++++++++++++++++-- fdisks/fdisk.c | 4 ++-- 2 files changed, 18 insertions(+), 4 deletions(-) commit 9af73f84d0c76511785ba3af68d336498cee5877 Author: Karel Zak Date: Fri Aug 30 15:47:50 2013 +0200 fdisk: use fdisk_info() to print geometry Signed-off-by: Karel Zak fdisks/fdisk.c | 37 ++++++++++++++++--------------------- 1 file changed, 16 insertions(+), 21 deletions(-) commit 6aa2ed3bc3e026dc87eac7b16feef4e9dade0822 Author: Karel Zak Date: Fri Aug 30 15:20:01 2013 +0200 fdisk: -l refactoring Signed-off-by: Karel Zak fdisks/fdisk.c | 42 +++++++++++++++++------------------------- 1 file changed, 17 insertions(+), 25 deletions(-) commit 9564e46ce21cd0c6ef99e3df9a52197793288f24 Author: Karel Zak Date: Fri Aug 30 13:34:16 2013 +0200 fdisk: mark -s option as deprecated Signed-off-by: Karel Zak Documentation/deprecated.txt | 5 +++++ fdisks/fdisk.8 | 4 +++- fdisks/fdisk.c | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) commit 5b72b3dd8e9236b0154a9c98d9ba55323f65488c Author: Karel Zak Date: Fri Aug 30 13:26:24 2013 +0200 fdisk: main() refactoring Signed-off-by: Karel Zak fdisks/fdisk.c | 67 ++++++++++++++++++++++++++++++---------------------------- 1 file changed, 35 insertions(+), 32 deletions(-) commit 6bcd192c7bc79539d80399be842cd68701955bf6 Author: Karel Zak Date: Fri Aug 30 13:06:15 2013 +0200 libfdisk: add fdisk_has_user_device_properties() Signed-off-by: Karel Zak fdisks/fdisk.c | 21 +++++++++------------ libfdisk/src/alignment.c | 9 +++++++++ libfdisk/src/libfdisk.h | 3 +++ 3 files changed, 21 insertions(+), 12 deletions(-) commit fcd9a2a42d7aebf0bb6e4c57d0e6666406fd0766 Author: Karel Zak Date: Fri Aug 30 10:46:37 2013 +0200 fdisk: cleanup header file Signed-off-by: Karel Zak fdisks/fdisk.c | 2 ++ fdisks/fdisk.h | 6 ++++++ 2 files changed, 8 insertions(+) commit 76b3b13d71919fb76fde8c4795597ead6ecbe9ef Author: Karel Zak Date: Fri Jul 12 12:35:16 2013 +0200 libfdisk: provide more details about GPT Signed-off-by: Karel Zak libfdisk/src/gpt.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) commit a57639e1f83149111e9855f3a042630117fe9736 Author: Karel Zak Date: Fri Jul 12 11:57:44 2013 +0200 libfdisk: move sync() and reread PT code from fdisk to libfdisk Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 10 ++++++---- fdisks/fdisk.c | 35 ----------------------------------- libfdisk/src/alignment.c | 32 ++++++++++++++++++++++++++++++++ libfdisk/src/context.c | 17 +++++++++++++++++ libfdisk/src/libfdisk.h | 3 ++- 5 files changed, 57 insertions(+), 40 deletions(-) commit df4bfa97b866452b53f5e2ef433e69a0b732fab6 Author: Karel Zak Date: Fri Jul 12 11:38:05 2013 +0200 fdisk: cleanup write table code Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 12 +++++++++--- fdisks/fdisk.c | 15 --------------- 2 files changed, 9 insertions(+), 18 deletions(-) commit 27ddd4f1587b8d122f3d0f8e8a77ced5edf6cc6a Author: Karel Zak Date: Fri Jul 12 11:31:12 2013 +0200 fdisk: move remaining actions to menu callbacks Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 95 ++++++++++++++++++++++++++++++++++++++++++----------- fdisks/fdisk.c | 81 ++------------------------------------------- 2 files changed, 78 insertions(+), 98 deletions(-) commit 8930996828824de42894688ddab60162f64c8c05 Author: Karel Zak Date: Fri Jul 12 10:44:35 2013 +0200 fdisk: move expect actions to menu callback Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 42 +++++++++++++++++++++++++++++++++++++++++- fdisks/fdisk.c | 52 ++++------------------------------------------------ 2 files changed, 45 insertions(+), 49 deletions(-) commit 5e860870181a60bd72ca78e8b992f0b6d717df98 Author: Karel Zak Date: Thu Jul 11 18:03:54 2013 +0200 fdisk: consolidate code in fdisk.c Signed-off-by: Karel Zak fdisks/fdisk.c | 114 ++++++++++++++++++--------------------------------------- 1 file changed, 36 insertions(+), 78 deletions(-) commit ac84272d7dbd4cd499637c5644d2f392416f8e79 Author: Karel Zak Date: Thu Jul 11 17:38:13 2013 +0200 libfdisk: cleanup SGI functions names Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 4 ++-- libfdisk/src/libfdisk.h | 12 ++---------- libfdisk/src/sgi.c | 19 +++++++++++++------ 3 files changed, 17 insertions(+), 18 deletions(-) commit aae727f2f565a69ee8e2749b68c9be880ea5b587 Author: Karel Zak Date: Thu Jul 11 17:08:45 2013 +0200 fdisk: cleanup sgi menu callbackswq Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++- fdisks/fdisk.c | 31 ------------------------------ 2 files changed, 53 insertions(+), 32 deletions(-) commit b3ac22eff31bb95bd20f903c7cb4756b0edfc220 Author: Karel Zak Date: Thu Jul 11 16:56:00 2013 +0200 fdisk: move "create label" actions to menu callback Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 32 +++++++++++++++++++++++++++++++- fdisks/fdisk.c | 12 ------------ 2 files changed, 31 insertions(+), 13 deletions(-) commit 6d9362988ec5117e4fd8efe50eae0ef3c0a2664a Author: Karel Zak Date: Wed Jul 10 17:39:22 2013 +0200 fdisk: remove common.h Signed-off-by: Karel Zak fdisks/Makemodule.am | 8 +++----- fdisks/cfdisk.c | 1 - fdisks/common.h | 8 -------- fdisks/fdisk.c | 1 - fdisks/partname.c | 2 +- fdisks/partname.h | 8 ++++++++ fdisks/sfdisk.c | 2 +- 7 files changed, 13 insertions(+), 17 deletions(-) commit d0ccfeb193b87a1dc7356cf274f64f49ccc67d1a Author: Karel Zak Date: Wed Jul 10 17:33:09 2013 +0200 libfdisk: explicitly add COPYING file Signed-off-by: Karel Zak libfdisk/COPYING | 8 ++++++++ libfdisk/src/gpt.c | 15 --------------- 2 files changed, 8 insertions(+), 15 deletions(-) commit d5b2b8dbbb46c09741c1b8d73b6c9c4629fc1244 Author: Karel Zak Date: Wed Jul 10 17:30:08 2013 +0200 libfdisk: add bsd driver Signed-off-by: Karel Zak fdisks/Makemodule.am | 2 - fdisks/fdisk-menu.c | 2 - fdisks/fdisk.c | 1 - fdisks/fdiskbsdlabel.c | 983 --------------------------------------------- fdisks/fdiskbsdlabel.h | 46 --- libfdisk/src/Makemodule.am | 1 + libfdisk/src/bsd.c | 939 +++++++++++++++++++++++++++++++++++++++++++ libfdisk/src/libfdisk.h | 5 + 8 files changed, 945 insertions(+), 1034 deletions(-) commit 19c2cc4e75e29d31d85969009b12b473257e9d82 Author: Karel Zak Date: Wed Jul 10 17:10:58 2013 +0200 fdisk: (bsd) final code clean up Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) commit 2872ffa0e5130bd634375dfeaf976e3e23d37268 Author: Karel Zak Date: Wed Jul 10 17:08:37 2013 +0200 fdisk: (bsd) remove xbsd_ prefix Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 74 +++++++++++++++++++++++++------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) commit 0bf367edf6ca485b5b51877918cefea8056427a7 Author: Karel Zak Date: Wed Jul 10 17:07:40 2013 +0200 fdisk: (bsd) minor code clean up Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 50 ++++++++++++++------------------------------------ fdisks/fdiskbsdlabel.h | 2 -- 2 files changed, 14 insertions(+), 38 deletions(-) commit e563f05525f112148c004676f234db832cfcb8ef Author: Karel Zak Date: Wed Jul 10 17:00:11 2013 +0200 fdisk: (bsd) rewrite list disklabel function Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 8 +- fdisks/fdisk.c | 15 ++-- fdisks/fdiskbsdlabel.c | 228 +++++++++++++++++++++++++++++-------------------- fdisks/fdiskbsdlabel.h | 1 - 4 files changed, 147 insertions(+), 105 deletions(-) commit bcef4db44395702fa2a8051c94bb34e55649fcd3 Author: Karel Zak Date: Wed Jul 10 15:35:27 2013 +0200 fdisk: (bsd) coding style, remove unnecessary #ifdef Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) commit 0b08fb074af3b5b3ea532209e9eb058084166d18 Author: Karel Zak Date: Wed Jul 10 15:30:49 2013 +0200 fdisk: (bsd) fix add/link partition Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 86 +++++++++++++------------------------------------- 1 file changed, 22 insertions(+), 64 deletions(-) commit 0dc6555cf5e8967df3637c09363f763878151517 Author: Karel Zak Date: Wed Jul 10 15:12:10 2013 +0200 fdisk: (bsd) remove dead code Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 19 ------------------- 1 file changed, 19 deletions(-) commit 22ddf5470510b3d09177ed25c18ccaf15081324f Author: Karel Zak Date: Wed Jul 10 14:59:49 2013 +0200 fdisk: (bsd) *OSF --> *BSD Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 18 +++++++++--------- fdisks/fdisk.c | 2 +- fdisks/fdiskbsdlabel.c | 8 ++++---- libfdisk/src/libfdisk.h | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) commit b529ea2abc1ef432a55e0af4560c4fb85e05c53d Author: Karel Zak Date: Wed Jul 10 14:54:25 2013 +0200 fdisk: (bsd) implement regular bsd menu callback Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 39 ++++++++++++++++++++++++--- fdisks/fdisk.c | 12 --------- fdisks/fdiskbsdlabel.c | 73 +++++++++++++------------------------------------- fdisks/fdiskbsdlabel.h | 7 ++++- 4 files changed, 60 insertions(+), 71 deletions(-) commit d5b243144e527cf47150b7d1da580821421b90d4 Author: Karel Zak Date: Wed Jul 10 14:31:02 2013 +0200 fdisk: (bsd) remove generic actions from bsd_command_prompt() Signed-off-by: Karel Zak fdisks/fdisk.c | 3 +++ fdisks/fdiskbsdlabel.c | 31 ------------------------------- 2 files changed, 3 insertions(+), 31 deletions(-) commit a47fec81b2a9eae2712da86c75db27cf76fae4b4 Author: Karel Zak Date: Wed Jul 10 14:17:58 2013 +0200 fdisk: allow to exchange context pointer in menu callbacks ... to make it possible to switch to nested contexts (nested partition tables). Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 53 ++++++++++++++++++++++++++++++++++++----------------- fdisks/fdisk.c | 12 ++++++++++-- fdisks/fdisk.h | 2 +- 3 files changed, 47 insertions(+), 20 deletions(-) commit 296b856d4282bfa20c581814e0db18031cb61960 Author: Karel Zak Date: Wed Jul 10 13:12:05 2013 +0200 fdisk: (bsd) remove printf() from the driver code Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) commit 87ed95ffc465a96115db1cf3412c98c71c486526 Author: Karel Zak Date: Wed Jul 10 13:01:24 2013 +0200 fdisk: (bsd) move bsdbuffer to fdisk_bsd_label struct Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) commit 0efc6c57500df75918df204aebdca27133d4beeb Author: Karel Zak Date: Wed Jul 10 12:24:53 2013 +0200 fdisk: (bsd) move global label variables to fdisk_bsd_label struct Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 316 ++++++++++++++++++++++--------------------------- 1 file changed, 143 insertions(+), 173 deletions(-) commit 0dd3dfb8e32aaa7206ca5703d0ebb22c2f4f164d Author: Karel Zak Date: Fri Jun 28 11:37:54 2013 +0200 fdisk: (bsd) write/read PT code cleanup Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 151 +++++++++++++++++++++++-------------------------- include/pt-bsd.h | 3 - 2 files changed, 72 insertions(+), 82 deletions(-) commit 30b46e7cb07f12b88f64917fa528a30d5c0be0e5 Author: Karel Zak Date: Fri Jun 28 10:16:06 2013 +0200 libblkid: fix kboff usage in BSD prober Signed-off-by: Karel Zak libblkid/src/partitions/bsd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit e36e16316bed32091322fc6d7ed0a401508783fd Author: Karel Zak Date: Thu Jun 27 14:21:43 2013 +0200 fdisk: (bsd) add bsd_get_partition_status() Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 56 +++++++++++++++++++++++++++++++++++--------------- 1 file changed, 40 insertions(+), 16 deletions(-) commit bb029cd3bf8acecb486c9bca08fa2025035516d0 Author: Karel Zak Date: Thu Jun 27 14:21:07 2013 +0200 fdisk: ask for partition in chars Signed-off-by: Karel Zak fdisks/fdisk-ask.c | 51 ++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 38 insertions(+), 13 deletions(-) commit 181aab4013efd6e2147668326e9c0382a52a9696 Author: Karel Zak Date: Thu Jun 27 14:18:57 2013 +0200 libfdisk: allow to address partition by chars For example BSD uses letters rather tahn numbers to address partition, the fist partition is 'a', last partition is 'p'. Signed-off-by: Karel Zak libfdisk/src/ask.c | 43 ++++++++++++++++++++++++++++++++----------- libfdisk/src/fdiskP.h | 6 ++++-- libfdisk/src/libfdisk.h | 2 +- 3 files changed, 37 insertions(+), 14 deletions(-) commit 7e937b77745a2d9b1c7a15bcc4ed5ae5f0fbbeaf Author: Karel Zak Date: Thu Jun 27 11:26:00 2013 +0200 fdisk: improve menus to make it more usable for BSD label Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 36 +++++++++++++++++++++--------------- libfdisk/src/libfdisk.h | 11 +++++------ 2 files changed, 26 insertions(+), 21 deletions(-) commit 818d79246126787347860dfbcf697c38918c02ff Author: Karel Zak Date: Thu Jun 27 10:54:19 2013 +0200 fdisk: (bsd) cleanup driver initialization - assume DOS partition only for nested BSD (cxt->parent is set) - don't create BSD label in label probe function, require fdisk_create_disklabel() call Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 10 ++- fdisks/fdiskbsdlabel.c | 170 +++++++++++++++++++++++++------------------------ 2 files changed, 93 insertions(+), 87 deletions(-) commit 8a9256f9fcc0a3fa209b3cbb53edc1d9c1ea20f6 Author: Karel Zak Date: Thu Jun 27 10:52:34 2013 +0200 libfdisk: improve nested context initialization - all label prober() function in fdisk_new_nested_context() - don't reset device properties for nested contexts Signed-off-by: Karel Zak libfdisk/src/context.c | 21 ++++++++++++++++++--- libfdisk/src/label.c | 15 +++++++++------ 2 files changed, 27 insertions(+), 9 deletions(-) commit 60c1b03620651cc545f0a0d4f8fd1c2e6033dc94 Author: Karel Zak Date: Wed Jun 26 13:29:50 2013 +0200 libfdisk: (dos) cosmetic changes Signed-off-by: Karel Zak libfdisk/src/dos.c | 41 +++++++++++++++++++++++++++++------------ 1 file changed, 29 insertions(+), 12 deletions(-) commit e11858e27340f86c1854ca0aad5341e753d51f0b Author: Karel Zak Date: Wed Jun 26 13:18:50 2013 +0200 fdisk: (bsd) clean up header file Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 43 ++++++++++++++++++++++++++++++++++++++++++- fdisks/fdiskbsdlabel.h | 48 ------------------------------------------------ 2 files changed, 42 insertions(+), 49 deletions(-) commit 3e24c3adf14d7d3988cc9a28a2a89d0402d8606b Author: Karel Zak Date: Wed Jun 26 11:46:09 2013 +0200 fdisk: (bsd) use macros from pt-mbr.h Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) commit 66ea98478d4039e4c55ab808a6920c7ef487d97e Author: Karel Zak Date: Wed Jun 26 11:32:19 2013 +0200 fdisk: (bsd) use pt-bsd.h Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 48 ++++++++-------- fdisks/fdiskbsdlabel.h | 152 +------------------------------------------------ 2 files changed, 25 insertions(+), 175 deletions(-) commit cc3d127e4c91d9c037b9febacd0cbcda10034ac4 Author: Karel Zak Date: Wed Jun 26 11:32:06 2013 +0200 libblkid: move bsd definitions to pt-bsd.h Signed-off-by: Karel Zak include/Makemodule.am | 1 + include/pt-bsd.h | 159 ++++++++++++++++++++++++++++++++++++++++++ libblkid/src/partitions/bsd.c | 79 +-------------------- 3 files changed, 161 insertions(+), 78 deletions(-) commit ef083b7cf5059257ef64f7f429e2dc4f12e5036f Author: Karel Zak Date: Wed Jun 26 11:11:59 2013 +0200 fdisk: (bsd) clean up BSD_LABEL* macros Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.h | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) commit 5099226711aa6e4ea254c24b4d496d32a51d3bb1 Author: Karel Zak Date: Wed Jun 26 10:21:31 2013 +0200 libfdisk: move mbr code to the library Signed-off-by: Karel Zak fdisks/Makemodule.am | 3 - fdisks/cfdisk.c | 2 +- fdisks/dos_part_types.h | 105 --- fdisks/fdisk-menu.c | 1 - fdisks/fdisk.c | 1 - fdisks/fdiskbsdlabel.c | 1 - fdisks/fdiskdoslabel.c | 1919 -------------------------------------------- fdisks/fdiskdoslabel.h | 15 - fdisks/sfdisk.c | 2 +- include/Makemodule.am | 1 + include/pt-mbr-partnames.h | 105 +++ libfdisk/src/Makemodule.am | 1 + libfdisk/src/dos.c | 1916 +++++++++++++++++++++++++++++++++++++++++++ libfdisk/src/libfdisk.h | 11 + 14 files changed, 2036 insertions(+), 2047 deletions(-) commit 235adaa60544ab72534ce749702aefbae242e289 Author: Karel Zak Date: Wed Jun 26 08:54:01 2013 +0200 fdisk: (dos) use libfdisk to ask for partition type Signed-off-by: Karel Zak fdisks/fdiskdoslabel.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) commit 4f79f8872b1b116d36a929cc61f57dda4391a654 Author: Karel Zak Date: Tue Jun 25 16:57:56 2013 +0200 fdisk: cleanup warning messages Signed-off-by: Karel Zak fdisks/fdisk.c | 10 ---------- fdisks/fdiskdoslabel.c | 42 +++++++++++++++++++++--------------------- libfdisk/src/label.c | 9 ++++++++- 3 files changed, 29 insertions(+), 32 deletions(-) commit c10937dcaf58a03844ace4e081becb77fad71dac Author: Karel Zak Date: Tue Jun 25 16:40:01 2013 +0200 fdisk: remove nowarn global variable Signed-off-by: Karel Zak fdisks/fdisk.c | 4 +--- fdisks/fdisk.h | 2 -- fdisks/fdiskdoslabel.c | 18 +++++++++--------- libfdisk/src/context.c | 23 +++++++++++++++++++++++ libfdisk/src/fdiskP.h | 5 ++++- 5 files changed, 37 insertions(+), 15 deletions(-) commit f8ad38998695da18497a0452a1fe603c973c706e Author: Karel Zak Date: Tue Jun 25 16:22:51 2013 +0200 fdisk: (dos) cleanup public function names Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 4 ++-- fdisks/fdiskdoslabel.c | 29 ++++++++++++++++++----------- fdisks/fdiskdoslabel.h | 6 ++---- 3 files changed, 22 insertions(+), 17 deletions(-) commit bb58112e74fdbce1fe0170776e7695abd8d9200c Author: Karel Zak Date: Tue Jun 25 16:14:23 2013 +0200 fdisk: (dos) remove unnecessary header file stuff Signed-off-by: Karel Zak fdisks/fdisk.h | 23 +---------------------- fdisks/fdiskbsdlabel.c | 16 +++++++++------- fdisks/fdiskdoslabel.c | 25 +++++++++++++++++++------ fdisks/fdiskdoslabel.h | 2 -- 4 files changed, 29 insertions(+), 37 deletions(-) commit c37ebc12a5d7fd9c824a727215ceeb7f0243d9c3 Author: Karel Zak Date: Tue Jun 25 15:58:36 2013 +0200 fdisk: cleanup header file Signed-off-by: Karel Zak fdisks/fdisk.h | 27 --------------------------- fdisks/fdiskdoslabel.c | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 27 deletions(-) commit f02fecd19a658c54eb2ef2d5af35c0b46380461b Author: Karel Zak Date: Tue Jun 25 15:55:02 2013 +0200 fdisk: (dos) add dos menu callback Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++- fdisks/fdisk.c | 40 ++++---------------------------- fdisks/fdisk.h | 1 + 3 files changed, 71 insertions(+), 37 deletions(-) commit 35b1f0a4c4fc151723e2b2880ffb0203b1bdfd84 Author: Karel Zak Date: Tue Jun 25 15:31:21 2013 +0200 libfdisk: add generic function to set disklabel ID Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 7 ++++++- fdisks/fdisk.c | 3 +-- fdisks/fdiskdoslabel.c | 10 ++++++++-- fdisks/fdiskdoslabel.h | 3 --- libfdisk/src/fdiskP.h | 2 ++ libfdisk/src/gpt.c | 48 +++++++++++++++++++++++++++++++++++++++++++++++- libfdisk/src/label.c | 19 ++++++++++++++++++- libfdisk/src/libfdisk.h | 1 + 8 files changed, 83 insertions(+), 10 deletions(-) commit 21fe3dde849c59a54641f43cbea2eafdf4d07acf Author: Karel Zak Date: Tue Jun 25 14:40:34 2013 +0200 libfdisk: add generic function to get disklabel ID Signed-off-by: Karel Zak fdisks/fdisk.c | 10 ++++++---- fdisks/fdiskdoslabel.c | 17 ++++++++++++++--- libfdisk/src/fdiskP.h | 2 ++ libfdisk/src/gpt.c | 35 ++++++++++++++++++++++++----------- libfdisk/src/label.c | 18 ++++++++++++++++++ libfdisk/src/libfdisk.h | 2 ++ 6 files changed, 66 insertions(+), 18 deletions(-) commit 9af7ed4eab9a66e28e4fdf9a40fc2f6b415c87c4 Author: Karel Zak Date: Tue Jun 25 14:08:02 2013 +0200 fdisk: (gpt) enlarge columns in list output Signed-off-by: Karel Zak libfdisk/src/gpt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit f61d2632a695544aca4148531122129a8d5291be Author: Karel Zak Date: Tue Jun 25 13:15:09 2013 +0200 fdisk: (dos) remove remaining printf() usage Signed-off-by: Karel Zak fdisks/fdiskdoslabel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 1cf67f1c3342e05abb02a2b135082dfa980eae25 Author: Karel Zak Date: Tue Jun 25 13:06:55 2013 +0200 fdisk: (dos) clean up list PT functions - use tt.c to list partitions - list extended partitions in expert mode Signed-off-by: Karel Zak fdisks/fdisk.c | 4 +- fdisks/fdiskdoslabel.c | 246 ++++++++++++++++++++++++++++++++++--------------- fdisks/fdiskdoslabel.h | 5 +- 3 files changed, 177 insertions(+), 78 deletions(-) commit ddec0e407e1c47e94e53fc485d7f5815050e0a1a Author: Karel Zak Date: Fri Jun 21 13:11:59 2013 +0200 fdisk: (dos) fix possible mem-leaks Signed-off-by: Karel Zak fdisks/fdiskdoslabel.c | 41 +++++++++++++++++++++++++++++++++++------ fdisks/fdiskdoslabel.h | 1 - 2 files changed, 35 insertions(+), 7 deletions(-) commit 28b85e603dbac18b35fa18288eb68024ca7d4756 Author: Karel Zak Date: Fri Jun 21 12:45:30 2013 +0200 fdisk: (dos) move macro is_dos_compatible() Signed-off-by: Karel Zak fdisks/fdiskdoslabel.c | 3 +++ fdisks/fdiskdoslabel.h | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) commit 8b3d92417166829b6546a31049c8a4413f82964b Author: Karel Zak Date: Fri Jun 21 12:44:03 2013 +0200 fdisk: (dos) remove remaining global variables Signed-off-by: Karel Zak fdisks/fdiskdoslabel.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) commit fcea064b703ac63eed27a0a3e7e46f2cb3fa807e Author: Karel Zak Date: Fri Jun 21 12:37:14 2013 +0200 fdisk: (dos) remove global variables for extended partitions Signed-off-by: Karel Zak fdisks/fdiskdoslabel.c | 327 +++++++++++++++++++++++++++---------------------- fdisks/fdiskdoslabel.h | 3 - 2 files changed, 180 insertions(+), 150 deletions(-) commit 6dc30bc6df4e958c1fad0426a580fde753367327 Author: Karel Zak Date: Thu Jun 20 11:36:25 2013 +0200 fdisk: (dos) don't check for CHS in move-begin command Signed-off-by: Karel Zak fdisks/fdisk.c | 2 +- fdisks/fdiskdoslabel.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) commit af0df606a2511a1e6e65190cdfba968c98d9992c Author: Karel Zak Date: Thu Jun 20 11:30:39 2013 +0200 fdisk: (dos) remove global ptes[] Signed-off-by: Karel Zak fdisks/fdisk.c | 10 +- fdisks/fdiskbsdlabel.c | 6 +- fdisks/fdiskdoslabel.c | 324 +++++++++++++++++++++++++++++++------------------ fdisks/fdiskdoslabel.h | 24 +--- 4 files changed, 219 insertions(+), 145 deletions(-) commit e8bf93ded2d055eabefd337b9eb324bde5c6efab Author: Karel Zak Date: Wed Jun 19 15:42:47 2013 +0200 fdisk: add mbr_get_partition() Signed-off-by: Karel Zak fdisks/fdiskdoslabel.c | 10 +++++----- fdisks/fdiskdoslabel.h | 3 --- include/pt-mbr.h | 6 ++++++ libblkid/src/partitions/dos.c | 7 +++---- libblkid/src/partitions/gpt.c | 4 +--- libblkid/src/partitions/minix.c | 6 +++--- 6 files changed, 18 insertions(+), 18 deletions(-) commit a64aa3b86b6c88b4746be04b00c35fdcaa44f41b Author: Karel Zak Date: Wed Jun 19 14:42:45 2013 +0200 fdisk: (dos) remove inline function from header file Signed-off-by: Karel Zak fdisks/fdiskdoslabel.c | 7 +++++++ fdisks/fdiskdoslabel.h | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) commit 6fe71269056c3c02b0b993308cd455b1c6861f1d Author: Karel Zak Date: Wed Jun 19 14:39:40 2013 +0200 fdisk: (dos) remove unnecessary function Signed-off-by: Karel Zak fdisks/fdiskdoslabel.c | 6 ++++-- fdisks/fdiskdoslabel.h | 6 ------ 2 files changed, 4 insertions(+), 8 deletions(-) commit 61eaad50d069be8e04de40c6f2e9b4cc4959dfea Author: Karel Zak Date: Wed Jun 19 14:36:59 2013 +0200 fdisk: (dos) move pte specific function to dos.c Signed-off-by: Karel Zak fdisks/fdiskdoslabel.c | 29 +++++++++++++++++------------ fdisks/fdiskdoslabel.h | 5 ----- 2 files changed, 17 insertions(+), 17 deletions(-) commit b44244cb98aee904faf3d95a55b9e42cc105cabd Author: Karel Zak Date: Wed Jun 19 14:32:48 2013 +0200 fdisk: use functions from pt-mbr.h Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 20 ++++----- fdisks/fdiskdoslabel.c | 96 ++++++++++++++++------------------------- fdisks/fdiskdoslabel.h | 44 +------------------ include/pt-mbr.h | 37 ++++++++++++---- libblkid/src/partitions/dos.c | 22 +++++----- libblkid/src/partitions/gpt.c | 2 +- libblkid/src/partitions/minix.c | 4 +- 7 files changed, 93 insertions(+), 132 deletions(-) commit dad39f5f3eace7fd614de4e7f33f52b86f169c2f Author: Karel Zak Date: Tue Jun 18 15:27:24 2013 +0200 fdisk: (dos) use pt-mbr.h Signed-off-by: Karel Zak fdisks/fdiskdoslabel.h | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) commit da9672365707bc89e2154bf84a73f808aa643bee Author: Karel Zak Date: Tue Jun 18 15:22:31 2013 +0200 fdisk: rename CHS dos_partition struct members ... to make the code more compatible with include/pt-mbr.h Signed-off-by: Karel Zak fdisks/fdiskdoslabel.c | 44 ++++++++++++++++++++++---------------------- fdisks/fdiskdoslabel.h | 12 ++++-------- 2 files changed, 26 insertions(+), 30 deletions(-) commit 71ade4da581ccb122d7c6c8d6bcfaaabbf4012e4 Author: Karel Zak Date: Tue Jun 18 15:11:57 2013 +0200 libblkid: rename sys_type to sys_ind This makes struct dos_partition more compatible with the current fdisk code. Signed-off-by: Karel Zak include/pt-mbr.h | 2 +- libblkid/src/partitions/dos.c | 14 +++++++------- libblkid/src/partitions/gpt.c | 2 +- libblkid/src/partitions/minix.c | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) commit b1981115232823b76e0205df226686f0f4f600f9 Author: Karel Zak Date: Tue Jun 18 15:06:48 2013 +0200 include/pt-mbr: add functio to store le Signed-off-by: Karel Zak include/pt-mbr.h | 8 ++++++++ 1 file changed, 8 insertions(+) commit f917738efaa60bd1390482d2959986393cea4737 Author: Karel Zak Date: Tue Jun 18 15:03:26 2013 +0200 libblkid: move MBR definitions to include/pt-mbr.h include/pt-mbr.h | 37 +++++++++++++++++++++++++++++++++++++ libblkid/src/Makemodule.am | 1 - libblkid/src/partitions/dos.c | 11 +++++------ libblkid/src/partitions/dos.h | 41 ----------------------------------------- libblkid/src/partitions/gpt.c | 3 +-- libblkid/src/partitions/minix.c | 5 ++--- 6 files changed, 45 insertions(+), 53 deletions(-) commit f540fe15c3ce602ebaeea43012b4bbba4ff25b9a Author: Karel Zak Date: Tue Jun 18 14:52:25 2013 +0200 fdisk: (dos) rename struct partition to dos_partition Signed-off-by: Karel Zak fdisks/fdisk.h | 12 ----------- fdisks/fdiskbsdlabel.c | 18 ++++++++--------- fdisks/fdiskdoslabel.c | 54 +++++++++++++++++++++++++------------------------- fdisks/fdiskdoslabel.h | 34 +++++++++++++++++++++---------- 4 files changed, 60 insertions(+), 58 deletions(-) commit 6864f1681a08619f248d1989c7b08070a3ff4eec Author: Karel Zak Date: Tue Jun 18 14:45:01 2013 +0200 fdisk: (dos) rename members in struct pte ... to make it more readable. Signed-off-by: Karel Zak fdisks/fdisk.h | 1 - fdisks/fdiskbsdlabel.c | 4 +- fdisks/fdiskdoslabel.c | 142 ++++++++++++++++++++++++------------------------- fdisks/fdiskdoslabel.h | 15 +++--- 4 files changed, 82 insertions(+), 80 deletions(-) commit 76add3b2353d599693ecfa7631541b04e89ce200 Author: Karel Zak Date: Fri Jun 14 15:56:55 2013 +0200 fdisk: move dos specific code Signed-off-by: Karel Zak fdisks/fdisk.h | 35 ----------------------------------- fdisks/fdiskdoslabel.h | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 35 deletions(-) commit 9604138d1700a564f58c799119dcc3c3fc96fc43 Author: Karel Zak Date: Fri Jun 14 15:49:05 2013 +0200 fdisk: remove dead code Signed-off-by: Karel Zak fdisks/fdisk.h | 6 ------ 1 file changed, 6 deletions(-) commit 0b52b94c3e383234645301717dc4731cee1528de Author: Karel Zak Date: Fri Jun 14 15:17:45 2013 +0200 fdisk: cleanup warnings Signed-off-by: Karel Zak fdisks/fdisk.c | 65 ++++++------------------------------------------- fdisks/fdiskdoslabel.c | 20 +++++++++++++-- libfdisk/src/label.c | 22 +++++++++++++++++ libfdisk/src/libfdisk.h | 3 +++ 4 files changed, 50 insertions(+), 60 deletions(-) commit caad858324b9d1311cbea64cd565854cd4f44fae Author: Karel Zak Date: Fri Jun 14 14:33:51 2013 +0200 libfdisk: add FDISK_LABEL_FL_REQUIRE_GEOMETRY Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 4 ++-- fdisks/fdiskdoslabel.c | 4 ++-- libfdisk/src/fdiskP.h | 3 ++- libfdisk/src/label.c | 2 +- libfdisk/src/sgi.c | 2 ++ libfdisk/src/sun.c | 2 ++ 6 files changed, 11 insertions(+), 6 deletions(-) commit 04d83a9251509e67cd22d9185ddec3a7fdcb21af Author: Karel Zak Date: Wed Jun 12 17:47:49 2013 +0200 fdisk: move remaining ptes[] code to fdiskdoslabel.c Signed-off-by: Karel Zak fdisks/fdisk.c | 5 ----- fdisks/fdiskdoslabel.c | 4 ++++ 2 files changed, 4 insertions(+), 5 deletions(-) commit 3f0ac58755c385f5fd31ca4b4bd13e9ad60ad7a0 Author: Karel Zak Date: Wed Jun 12 17:28:26 2013 +0200 fdisk: cleanup usage() Signed-off-by: Karel Zak fdisks/fdisk.c | 56 ++++++++++++++++++++++++++++++-------------------------- 1 file changed, 30 insertions(+), 26 deletions(-) commit 5497ba0442a78615ae9ada765c5d68d26eae82fc Author: Karel Zak Date: Wed Jun 12 17:16:39 2013 +0200 fdisk: move get_nr_sects() fdisk.h Signed-off-by: Karel Zak fdisks/fdisk.c | 4 ---- fdisks/fdisk.h | 7 +++++-- 2 files changed, 5 insertions(+), 6 deletions(-) commit afb7c835205985dd079b235d90ed6484944f4433 Author: Karel Zak Date: Wed Jun 12 17:10:42 2013 +0200 fdisk: remove old code to ask user Old code has been broken by design: * use global variables * fixed buffer size * useless within libfdisk Signed-off-by: Karel Zak fdisks/fdisk.c | 218 --------------------------------------------------------- fdisks/fdisk.h | 5 -- 2 files changed, 223 deletions(-) commit 950edd1a71d76a9fe6bbc72bba4efcb26cf723b7 Author: Karel Zak Date: Wed Jun 12 17:09:28 2013 +0200 fdisk: use libfdisk to ask for partition type Signed-off-by: Karel Zak fdisks/fdisk-ask.c | 27 +++++++++++++++++++++++++++ fdisks/fdisk.c | 30 ++---------------------------- fdisks/fdisk.h | 3 ++- fdisks/fdiskbsdlabel.c | 2 +- libfdisk/src/libfdisk.h | 2 ++ libfdisk/src/parttype.c | 15 +++++++++++++++ 6 files changed, 49 insertions(+), 30 deletions(-) commit 2ff943c73250de803d6b0e6df70701e562dd84d7 Author: Karel Zak Date: Wed Jun 12 13:41:44 2013 +0200 fdisk: (bsd) use libfdisk for partition number dialog Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 47 +++++++++++++++++++++++++++++++---------------- 1 file changed, 31 insertions(+), 16 deletions(-) commit 9e346a026cb3d2c4686910c182c46287e90e35ae Author: Karel Zak Date: Wed Jun 12 13:25:57 2013 +0200 fdisk: (bsd) cleanup bootstrap install code Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 160 ++++++++++++++++++++++++++----------------------- 1 file changed, 85 insertions(+), 75 deletions(-) commit 6a0b468fee5fed23a6482d9c77015247201beaaa Author: Karel Zak Date: Wed Jun 12 12:28:43 2013 +0200 fdisk: (bsd) use libfdisk to ask for label setting Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 93 +++++++++++++++++++++++++++++++------------------- 1 file changed, 57 insertions(+), 36 deletions(-) commit 75d059ef77c2c3cb62fa1fc175abf34d14b88370 Author: Karel Zak Date: Wed Jun 12 11:33:15 2013 +0200 fdisk: (bsd) cleanup label initialization - remove unused variables - cleanup code - use ask API Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 63 ++++++++++++++++++++++++++------------------------ 1 file changed, 33 insertions(+), 30 deletions(-) commit 682802db5a2dd1b761c1a469eb52ffb27ba9003b Author: Karel Zak Date: Tue Jun 11 15:42:50 2013 +0200 fdisk: (bsd) use ask API for add partition dialog Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 65 ++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 50 insertions(+), 15 deletions(-) commit b720e0d7b412971dadc3cb3e3d5730cfa64e210f Author: Karel Zak Date: Tue Jun 11 15:42:08 2013 +0200 libfdisk: copy ask callback from parental context Signed-off-by: Karel Zak libfdisk/src/context.c | 3 +++ 1 file changed, 3 insertions(+) commit 117c042813d3f655b1ec2e473575b75f4754c7ac Author: Karel Zak Date: Tue Jun 11 15:25:48 2013 +0200 fdisk: (dos) fix offset dialog unit Signed-off-by: Karel Zak fdisks/fdiskdoslabel.c | 1 - 1 file changed, 1 deletion(-) commit bd0d850b3e43531f72d36293291df6b086f8fdbc Author: Karel Zak Date: Tue Jun 11 15:05:03 2013 +0200 fdisk: (dos) remove remaining read_{int,char}() functions Signed-off-by: Karel Zak fdisks/fdiskdoslabel.c | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) commit 0e07540df5264c02fdce175c7f1d4b0ef517f2dc Author: Karel Zak Date: Tue Jun 11 14:50:15 2013 +0200 fdisk: (dos) use ask API for new partition dialog Signed-off-by: Karel Zak fdisks/fdiskdoslabel.c | 80 ++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 58 insertions(+), 22 deletions(-) commit 0a49e5d581f30c00b7898e26ec14fe0e8b177da7 Author: Karel Zak Date: Tue Jun 11 12:03:12 2013 +0200 fdisk: (dos) use ask API to change disk ID Signed-off-by: Karel Zak fdisks/fdiskdoslabel.c | 32 +++++++++++++++++++------------- fdisks/fdiskdoslabel.h | 2 +- 2 files changed, 20 insertions(+), 14 deletions(-) commit 918afd3f1a5c3be33098f3b5cb3c51189f2eb48c Author: Karel Zak Date: Tue Jun 11 10:41:34 2013 +0200 fdisk: remove ugly fatal() function Signed-off-by: Karel Zak fdisks/fdisk.c | 22 --------------------- fdisks/fdisk.h | 9 --------- fdisks/fdiskbsdlabel.c | 53 ++++++++++++++++++++++++++++++-------------------- 3 files changed, 32 insertions(+), 52 deletions(-) commit 3c08cb2df0f43acc353ec157c775605ffd885af5 Author: Karel Zak Date: Tue Jun 11 10:17:57 2013 +0200 fdisk: remove Mac code The code has been used only to detect magic strings, nothing else. Signed-off-by: Karel Zak fdisks/Makemodule.am | 2 - fdisks/fdisk.c | 1 - fdisks/fdiskmaclabel.c | 133 ------------------------------------------------ fdisks/fdiskmaclabel.h | 33 ------------ libfdisk/src/ask.c | 2 - libfdisk/src/context.c | 1 - libfdisk/src/fdiskP.h | 1 - libfdisk/src/libfdisk.h | 1 - libfdisk/src/utils.c | 3 -- 9 files changed, 177 deletions(-) commit a239b1792673c3bc866a1abb8e06af56179f02aa Author: Karel Zak Date: Mon Jun 10 12:04:27 2013 +0200 lsblk: use TT_FL_FREEDATA for tt table Signed-off-by: Karel Zak misc-utils/lsblk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 082479c5826d57162ba3a1262fa8f0a6987ccd57 Author: Karel Zak Date: Mon Jun 10 12:00:12 2013 +0200 lscpu: use TT_FL_FREEDATA for tt table Signed-off-by: Karel Zak sys-utils/lscpu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit 1e7708511fbae88d19d00ee7e4eba7e7987ff86a Author: Karel Zak Date: Mon Jun 10 11:55:52 2013 +0200 prlimit: use TT_FL_FREEDATA for tt table Signed-off-by: Karel Zak sys-utils/prlimit.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit 3173ea8e7f65b6225a6f21518338218b0e192fb0 Author: Karel Zak Date: Mon Jun 10 11:51:44 2013 +0200 swapon: use TT_FL_FREEDATA for tt table Signed-off-by: Karel Zak sys-utils/swapon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5c32f352c8eb3499e44583bd6c3e795bfb60deb7 Author: Karel Zak Date: Mon Jun 10 11:49:38 2013 +0200 losetup: use TT_FL_FREEDATA for tt table Signed-off-by: Karel Zak sys-utils/losetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 6df8dcfb391a82381c8bb8ad92493bba10c7e498 Author: Karel Zak Date: Mon Jun 10 11:48:16 2013 +0200 partx: use TT_FL_FREEDATA for tt table Signed-off-by: Karel Zak disk-utils/partx.c | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) commit 4bab4729e2e7be447f5c214cd5e61647b5ee3a83 Author: Karel Zak Date: Mon Jun 10 11:44:40 2013 +0200 lslocks: use TT_FL_FREEDATA for tt table Signed-off-by: Karel Zak misc-utils/lslocks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b3386c83fe77318f7036a1928cb42cc5a3e7d9a8 Author: Karel Zak Date: Mon Jun 10 11:39:03 2013 +0200 findmnt: use TT_FL_FREEDATA for tt table For findmnt(8) output we mix static and libmount data together with in-findmnt allocated buffers. This patch cleanup all and use allocated buffers for all output. All is deallocated by tt_free_table(). Signed-off-by: Karel Zak misc-utils/findmnt.c | 107 ++++++++++++++++++++++++--------------------------- 1 file changed, 51 insertions(+), 56 deletions(-) commit 2ffddb6a0ba80feb4ced540567ab65f47933d388 Author: Karel Zak Date: Mon Jun 10 11:08:08 2013 +0200 wdctl: use TT_FL_FREEDATA for tt table Signed-off-by: Karel Zak sys-utils/wdctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 067686d895f6bc1b3fc3088726ff0122111e69cc Author: Karel Zak Date: Mon Jun 10 11:03:12 2013 +0200 libfdisk: (sgi) add driver Signed-off-by: Karel Zak fdisks/Makemodule.am | 2 - fdisks/fdisk.c | 1 - fdisks/fdisksgilabel.c | 1183 -------------------------------------------- fdisks/fdisksgilabel.h | 25 - libfdisk/src/Makemodule.am | 1 + libfdisk/src/libfdisk.h | 14 + libfdisk/src/sgi.c | 1182 +++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 1197 insertions(+), 1211 deletions(-) commit c88006509601070adc944b67210fa6c8b5d7962a Author: Karel Zak Date: Fri Jun 7 15:34:39 2013 +0200 fdisk: (sgi) remove dead code Signed-off-by: Karel Zak fdisks/fdisk.c | 6 ++---- fdisks/fdisksgilabel.c | 37 ++++--------------------------------- fdisks/fdisksgilabel.h | 5 ----- 3 files changed, 6 insertions(+), 42 deletions(-) commit a97422aa1549eedfa463768d8f7366584e95482c Author: Karel Zak Date: Fri May 31 13:12:15 2013 +0200 fdisk: (sgi) rewrite sgi_list_table() Signed-off-by: Karel Zak fdisks/fdisk.c | 10 +-- fdisks/fdisksgilabel.c | 181 +++++++++++++++++++++++++++++++------------------ fdisks/fdisksgilabel.h | 1 - 3 files changed, 119 insertions(+), 73 deletions(-) commit 38859cf52d1a6448d934b47f52c35d03609e2cb1 Author: Karel Zak Date: Fri May 31 11:49:42 2013 +0200 fdisk: (sgi) small coding style changes Signed-off-by: Karel Zak fdisks/fdisksgilabel.c | 79 ++++++++++++++++++-------------------------------- 1 file changed, 28 insertions(+), 51 deletions(-) commit 65b6abf33f74ad4202f1b5f5ddd39c3defa69f1d Author: Karel Zak Date: Fri May 31 11:18:36 2013 +0200 fdisk: (sgi) rdon't use read_chars() to ask yes/no question Signed-off-by: Karel Zak fdisks/fdisksgilabel.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) commit e22bdfa8c3f78c343b60796e7f2bf500699831cd Author: Karel Zak Date: Fri May 31 11:11:45 2013 +0200 fdisk: (sgi) cleanup boot file name code Signed-off-by: Karel Zak fdisks/fdisksgilabel.c | 81 +++++++++++++++++++++++++++----------------------- fdisks/fdisksgilabel.h | 3 +- 2 files changed, 46 insertions(+), 38 deletions(-) commit a7cb9829c91a65f3055e648113b2fc3da32de14c Author: Karel Zak Date: Thu May 30 17:44:54 2013 +0200 fdisk: (sgi) use ask API for first/last dialogs Signed-off-by: Karel Zak fdisks/fdisksgilabel.c | 108 ++++++++++++++++++++++++++++++++----------------- 1 file changed, 70 insertions(+), 38 deletions(-) commit d4caf7006776370a3fa13d8dbaf1d3f638c54c53 Author: Karel Zak Date: Thu May 30 17:43:03 2013 +0200 fdisk: (sgi) fix checksum calculation Signed-off-by: Karel Zak include/pt-sgi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 937173b9627e43b7cc5585c7e75709338a0ad4fc Author: Karel Zak Date: Thu May 30 15:42:30 2013 +0200 fdisk: (sgi) use stuff ffrom pt-mbr.h and libfdisk Signed-off-by: Karel Zak fdisks/fdisksgilabel.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) commit 7e5f8f3824637aeab65f7628aed90c005496832a Author: Karel Zak Date: Thu May 30 15:22:41 2013 +0200 libblkid: move MBR partition types to include/ Signed-off-by: Karel Zak include/Makemodule.am | 1 + include/pt-mbr.h | 106 ++++++++++++++++++++++++++ libblkid/src/Makemodule.am | 1 - libblkid/src/partitions/blkid_parttypes.h | 121 ------------------------------ libblkid/src/partitions/bsd.c | 6 +- libblkid/src/partitions/dos.c | 20 ++--- libblkid/src/partitions/gpt.c | 2 +- libblkid/src/partitions/minix.c | 4 +- libblkid/src/partitions/partitions.c | 6 +- libblkid/src/partitions/partitions.h | 2 +- 10 files changed, 127 insertions(+), 142 deletions(-) commit 9fc1f5d809bc10e875661197f6d6aa646dd30c9d Author: Karel Zak Date: Thu May 30 11:31:38 2013 +0200 fdisk: (sgi) cleanup devparams flags Signed-off-by: Karel Zak fdisks/fdisksgilabel.c | 6 ++++-- fdisks/fdisksgilabel.h | 11 ----------- include/pt-sgi.h | 13 ++++++++++++- 3 files changed, 16 insertions(+), 14 deletions(-) commit bfe99a55cba1363208df70482e66f2cee3b2f958 Author: Karel Zak Date: Wed May 29 15:26:23 2013 +0200 fdisk: (sgi) remove global freelist Signed-off-by: Karel Zak fdisks/fdisksgilabel.c | 130 +++++++++++++++++++++++++++---------------------- 1 file changed, 71 insertions(+), 59 deletions(-) commit f91d32ae92924f026a69b2221ebd5fccce6893a8 Author: Karel Zak Date: Wed May 29 15:10:03 2013 +0200 fdisk: (sgi) remove unnecessary code Signed-off-by: Karel Zak fdisks/fdisksgilabel.c | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) commit a8dd3d1532c692d7ab308cd44887750c846fad5c Author: Karel Zak Date: Wed May 29 15:08:12 2013 +0200 libfdisk: (sun) remove duplicate code Signed-off-by: Karel Zak libfdisk/src/sun.c | 5 ----- 1 file changed, 5 deletions(-) commit 4b9353f68d63f920ef36fdc0e8baacf062c1b5e7 Author: Karel Zak Date: Wed May 29 15:06:33 2013 +0200 fdisk: (sgi) cleanup disk label struct usage Signed-off-by: Karel Zak fdisks/fdisksgilabel.c | 79 +++++++++++++++++++++++++++++++++++++++++++++----- fdisks/fdisksgilabel.h | 4 --- 2 files changed, 71 insertions(+), 12 deletions(-) commit 1a9889ad7f5cb5eef4856b388b6b2f6141fcfbb1 Author: Karel Zak Date: Wed May 29 14:43:05 2013 +0200 fdisk: (sgi) cleanu sgi_info stuff Signed-off-by: Karel Zak fdisks/fdisk.c | 2 +- fdisks/fdisksgilabel.c | 100 ++++++++++++++++++++++++++++++------------------- fdisks/fdisksgilabel.h | 25 ++----------- include/pt-sgi.h | 2 + 4 files changed, 68 insertions(+), 61 deletions(-) commit 5105f75f6765cf8de2770caf9ae0d3b4851ebd0e Author: Karel Zak Date: Wed May 29 14:23:56 2013 +0200 fdisk: (sgi) remove magic strings Signed-off-by: Karel Zak fdisks/fdisksgilabel.c | 14 ++++++-------- include/pt-sgi.h | 3 ++- 2 files changed, 8 insertions(+), 9 deletions(-) commit d83a4c5dfd05597874d851aec81612c82dc9e0b9 Author: Karel Zak Date: Wed May 29 14:19:19 2013 +0200 fdisk: (sgi) use cpu_to_beXX() and beXX_to_cpu() Signed-off-by: Karel Zak fdisks/fdisksgilabel.c | 160 ++++++++++++++++++++++--------------------------- fdisks/fdisksgilabel.h | 3 - 2 files changed, 72 insertions(+), 91 deletions(-) commit a78651d77883aa123844c7435303789254279ffc Author: Karel Zak Date: Wed May 29 13:54:34 2013 +0200 fdisk: (sgi) share disk label definition with libblkid Signed-off-by: Karel Zak fdisks/fdisksgilabel.c | 121 +++++++++++++++++++++++++------------------------ fdisks/fdisksgilabel.h | 70 +--------------------------- include/pt-sgi.h | 4 ++ 3 files changed, 67 insertions(+), 128 deletions(-) commit 1c314b318307ee8f0c1366b31ee26d44210db111 Author: Karel Zak Date: Wed May 29 13:17:06 2013 +0200 libblkid: move SGI disklabel definitions to include/ Signed-off-by: Karel Zak include/Makemodule.am | 1 + include/pt-sgi.h | 90 +++++++++++++++++++++++++++++++++++++++++++ libblkid/src/partitions/sgi.c | 80 ++------------------------------------ 3 files changed, 94 insertions(+), 77 deletions(-) commit 1653f0b0c2e825f53f0ad067967a6cd696b95227 Author: Karel Zak Date: Fri May 24 11:48:58 2013 +0200 libfdisk: make it possible to reset device properties - remember user C/H/S and sector size - reset all device properties before create a new label (maybe the old setting has been affected by previous on-disk label) - always apply user setting after the reset - improve topology/geometry debug messages Note that for fdisk "user C/H/S and sector size" means on command line specified values. If you override the setting by c/h/s commands in expert menu then the setting is applied to the current disk label only. If you create a new disk label (e.g change MBR to GPT) then fdisk will use the original setting. Signed-off-by: Karel Zak fdisks/fdisk.c | 50 ++++++--------- libfdisk/src/alignment.c | 164 +++++++++++++++++++++++++++++++++++++---------- libfdisk/src/context.c | 19 ++---- libfdisk/src/fdiskP.h | 11 +++- libfdisk/src/label.c | 9 ++- libfdisk/src/libfdisk.h | 10 +++ 6 files changed, 182 insertions(+), 81 deletions(-) commit 533b9b2dbe7d1eacd2f1a3b62c3fd28403633852 Author: Karel Zak Date: Fri May 24 09:36:11 2013 +0200 fdisk: (sgi) remove printf from code Signed-off-by: Karel Zak fdisks/fdisksgilabel.c | 107 +++++++++++++++++++++++-------------------------- 1 file changed, 51 insertions(+), 56 deletions(-) commit b93a7a25978fd4a052e3818c2f81ed2e6fd1ad7f Author: Karel Zak Date: Fri May 24 08:55:45 2013 +0200 fdisk: cleanup SGI verify disklabel function - the function is also used to detect gaps, so the verbose output has to be optional rather than permanently enabled Signed-off-by: Karel Zak fdisks/fdisksgilabel.c | 132 ++++++++++++++++++++++++++----------------------- 1 file changed, 69 insertions(+), 63 deletions(-) commit 9f2809033e72e7a24b5d5169b74afa6efbc63330 Author: Karel Zak Date: Thu May 23 15:55:35 2013 +0200 fdisk: move sun commands to sun menu callback Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++- fdisks/fdisk.c | 28 ++------------------------- libfdisk/src/sun.c | 2 +- 3 files changed, 57 insertions(+), 28 deletions(-) commit 8e40a677bdbe466d44c613ecdc3589635e28b4a7 Author: Karel Zak Date: Wed May 22 15:37:47 2013 +0200 fdisk: add functions to geometry menu Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 43 +++++++++++++++++++++++++++++++++++++++---- fdisks/fdisk.c | 34 ++-------------------------------- 2 files changed, 41 insertions(+), 36 deletions(-) commit be9ba6f3f924fd44a0635536bff07eed2782e129 Author: Karel Zak Date: Wed May 22 15:11:56 2013 +0200 fdisk: move geometry commands to separate menu Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) commit 4170ae9cbd3ad54c9c7427212eaae6fdb030b57a Author: Karel Zak Date: Wed May 22 14:41:58 2013 +0200 libfdisk: clean up sun geometry stuff - move fdisk_sun_set_* functions to public API file - remove extra function to set ncyl -- this has to follow regular geo.cylinders - set alternative cylinders to zero (to be compatible with parted) - it seems that the previous code completely ignored relation between geo.cylinders, sunlabel->acyl and sunlabel->ncyl. Signed-off-by: Karel Zak fdisks/fdisk.c | 3 --- libfdisk/src/fdiskP.h | 9 -------- libfdisk/src/libfdisk.h | 7 +++++++ libfdisk/src/sun.c | 56 ++++++++++++++++++++++++++++++------------------- 4 files changed, 41 insertions(+), 34 deletions(-) commit 1054699ccd358a42c4869e523b4835151f4c4804 Author: Karel Zak Date: Tue May 21 16:12:10 2013 +0200 libfdisk: support GPT partition name (label) change Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 3 +-- libfdisk/src/gpt.c | 54 ++++++++++++++++++++++++++++++++++++++++++------- libfdisk/src/libfdisk.h | 1 + 3 files changed, 49 insertions(+), 9 deletions(-) commit 36050e7001d7a44ac64a3e0513665fba649ff054 Author: Karel Zak Date: Tue May 21 15:30:16 2013 +0200 libfdisk: add FDISK_DEBUG_FRONTEND Currently we use private libfdisk in fdisk code, because the library API is not stable yet. Let's add debug flag to make it obvious in the debug output what is from libfdisk and what is from fdisk frontend. Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 14 +++++++------- libfdisk/src/fdiskP.h | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) commit b9e94cd7f8d0b141492e601eeb4339b12d0f59bf Author: Karel Zak Date: Tue May 21 15:29:01 2013 +0200 fdisk: add GPT specific callback to menu Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 39 ++++++++++++++++++++++++++++++++++++++- fdisks/fdisk.c | 5 ----- 2 files changed, 38 insertions(+), 6 deletions(-) commit a410f8df0f4dcbd32986890111397f0b9309cd51 Author: Karel Zak Date: Tue May 21 15:06:11 2013 +0200 fdisk: use new menu infrastructure to verify keys - use generic function to ask for key - verify the key against the current menu - call menu callback if defined Signed-off-by: Karel Zak fdisks/fdisk-ask.c | 4 ++-- fdisks/fdisk-menu.c | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++- fdisks/fdisk.c | 26 ++++++++++++++------------ fdisks/fdisk.h | 4 ++++ 4 files changed, 72 insertions(+), 15 deletions(-) commit 74fcee985d267f1a86b8d3677f81a9afaf708828 Author: Karel Zak Date: Tue May 21 14:09:40 2013 +0200 fdisk: use remove read_int() usage from fdisk.c Signed-off-by: Karel Zak fdisks/fdisk.c | 45 +++++++++++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 16 deletions(-) commit 38eea0d5031a7a605ac9030e4319aa8063f199e0 Author: Karel Zak Date: Fri May 17 15:27:39 2013 +0200 fdisk: (sgi) don't try to convert MBR to SGI .. because there don't have to be old MBR at all. Signed-off-by: Karel Zak fdisks/fdisksgilabel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 287ce9ed6c105ea970b62847a08e745aa2a876da Author: Karel Zak Date: Fri May 17 15:26:31 2013 +0200 fdisk: make internal command line case sensitive Hey, this is Linux, year 2013... Signed-off-by: Karel Zak fdisks/fdisk.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) commit 39f01b7b2ba982b79ddad8b90852920096c934e1 Author: Karel Zak Date: Fri May 17 15:11:11 2013 +0200 fdisk: use new menus Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 6 ++-- fdisks/fdisk.c | 78 +++----------------------------------------------- fdisks/fdisk.h | 2 ++ fdisks/fdiskbsdlabel.c | 2 +- 4 files changed, 10 insertions(+), 78 deletions(-) commit 6ae5e1e09c6abbc89365c4f6133c04ef099ff20e Author: Karel Zak Date: Fri May 17 15:01:31 2013 +0200 fdisk: add bsd, dos and sgi menus Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 62 +++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 56 insertions(+), 6 deletions(-) commit 3b4f9f16446895de513b6655a48d2e8074aec9b9 Author: Karel Zak Date: Fri May 17 14:11:51 2013 +0200 fdisk: detect menu entries collisions in debug mode Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) commit 2a1a67df8622f78488a17b366802bdf2fa901e5d Author: Karel Zak Date: Fri May 17 13:44:29 2013 +0200 fdisk: add sun menu Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) commit 161b0d1aa97a73f12b1a56451e47d3a9ba902945 Author: Karel Zak Date: Fri May 17 12:35:23 2013 +0200 fdisk: add new stuff to display menus fdisk menus: - driven by menu and menu_entry structs - supports normal and expect mode - supports multiple independent menus - supports menu separators to make output more readable - allows to exclude by whole menu or menu entries by label type TODO: - define per label menus - per menu callback - sensitive only to keys defined in the currently printed menu Signed-off-by: Karel Zak fdisks/Makemodule.am | 7 ++ fdisks/fdisk-menu.c | 206 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 213 insertions(+) commit 7ab242ecbe715922f82442a261aa7cbc6d6e132e Author: Karel Zak Date: Fri May 17 12:24:05 2013 +0200 libfdisk: make the library usable with tests We don't have completely initialized all label drivers in the tests, so make the code more robust. Signed-off-by: Karel Zak libfdisk/src/context.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit bfcd337995cd972d5270d187a6b376f967803eaa Author: Karel Zak Date: Fri May 17 10:18:57 2013 +0200 libfdisk: remove unnecessary code from test_fdisk_ask .. 'sun' stuff is already in the library. Signed-off-by: Karel Zak libfdisk/src/ask.c | 1 - 1 file changed, 1 deletion(-) commit 67dac5c5a37982ffd46a2549821320019d68b4e9 Author: Karel Zak Date: Wed May 15 16:07:39 2013 +0200 fdisk: (gpt) add t, v and x to menu Signed-off-by: Karel Zak fdisks/fdisk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit ad3b5e74bac0d0ca09d78e224d9f6ba42f336517 Author: Karel Zak Date: Wed May 15 15:34:54 2013 +0200 fdisk: revert add 'G' to create SGI label to the main menu 'G' does not make sense, fdisk menus are case insensitive. Yes... Signed-off-by: Karel Zak fdisks/fdisk.c | 4 ---- 1 file changed, 4 deletions(-) commit 414b6b0f90f2ae086ac6ddecbfdfceacb6544abb Author: Karel Zak Date: Wed May 15 14:07:14 2013 +0200 fdisk: always allow 'p'rint command in expert menu Signed-off-by: Karel Zak fdisks/fdisk.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) commit b1920e0b5f0df67c061748e247deb1ef3132da18 Author: Karel Zak Date: Wed May 15 14:06:34 2013 +0200 libfdisk: (gpt) print UUID and NAME in expert mode only Signed-off-by: Karel Zak libfdisk/src/gpt.c | 55 ++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 39 insertions(+), 16 deletions(-) commit d45fa25d7b6f06d916efb13033bab9187baeb082 Author: Karel Zak Date: Wed May 15 13:43:00 2013 +0200 libfdisk: (gpt) cleanup structs members names Signed-off-by: Karel Zak libfdisk/src/gpt.c | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) commit d87c7ce2bf9f49368b6406fa96c20a4dc7190b3b Author: Karel Zak Date: Wed May 15 13:33:24 2013 +0200 fdisk: add asktype "string" and support UUID partition change Signed-off-by: Karel Zak fdisks/fdisk-ask.c | 14 +++++++++++++- fdisks/fdisk.c | 10 ++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-) commit 34b06299ce71aea4fd2b1437217ced0be013d91d Author: Karel Zak Date: Wed May 15 13:33:24 2013 +0200 libfdisk: add asktype "string" and support UUID partition change Signed-off-by: Karel Zak libfdisk/src/ask.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ libfdisk/src/fdiskP.h | 4 ++++ libfdisk/src/gpt.c | 43 +++++++++++++++++++++++++++++++++++++++++++ libfdisk/src/libfdisk.h | 13 ++++++++++++- 4 files changed, 105 insertions(+), 1 deletion(-) commit b4bfbaddfa30e2e91a36ff42e461e51504544d16 Author: Karel Zak Date: Thu May 2 15:40:36 2013 +0200 libfdisk: (sun) move driver from fdisk to library ... and also add fdisk_info_new_partition() Signed-off-by: Karel Zak fdisks/Makemodule.am | 2 - fdisks/fdisk.c | 14 +- fdisks/fdisk.h | 4 - fdisks/fdiskdoslabel.c | 7 +- fdisks/fdisksgilabel.c | 6 +- fdisks/fdisksunlabel.c | 1010 -------------------------------------------- fdisks/fdisksunlabel.h | 14 - libfdisk/src/Makemodule.am | 2 + libfdisk/src/ask.c | 15 + libfdisk/src/fdiskP.h | 17 +- libfdisk/src/libfdisk.h | 4 + libfdisk/src/sun.c | 1008 +++++++++++++++++++++++++++++++++++++++++++ 12 files changed, 1052 insertions(+), 1051 deletions(-) commit 0d75581e441ebcc56147500236cfdeca54c1a23c Author: Karel Zak Date: Thu May 2 14:54:55 2013 +0200 libfdisk: add fdisk_scround() Signed-off-by: Karel Zak fdisks/fdisksunlabel.c | 36 ++++++++++++++++++------------------ libfdisk/src/alignment.c | 7 +++++++ libfdisk/src/fdiskP.h | 2 ++ libfdisk/src/utils.c | 1 - 4 files changed, 27 insertions(+), 19 deletions(-) commit aec8d8834968b472d8986e1299f3d7dda76db5ea Author: Karel Zak Date: Thu May 2 13:39:46 2013 +0200 fdisk: (gpt, sun) use fdisk_partname() Signed-off-by: Karel Zak fdisks/fdisksunlabel.c | 8 +++----- libfdisk/src/gpt.c | 15 ++++++++------- 2 files changed, 11 insertions(+), 12 deletions(-) commit bb8a40366a425c785bd5ad2a695891fee5f9ec7e Author: Karel Zak Date: Thu May 2 13:39:01 2013 +0200 libfdisk: add fdisk_partname() Signed-off-by: Karel Zak libfdisk/src/Makemodule.am | 8 ++++- libfdisk/src/fdiskP.h | 1 + libfdisk/src/utils.c | 78 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 86 insertions(+), 1 deletion(-) commit 0e5bafbed2b2ee913d9c115f4079130def1f27e4 Author: Karel Zak Date: Thu May 2 12:29:01 2013 +0200 fdisk: (sun) use tt.c to list disk label Signed-off-by: Karel Zak fdisks/fdisksunlabel.c | 90 +++++++++++++++++++++++++++++++++++--------------- fdisks/fdisksunlabel.h | 3 -- 2 files changed, 63 insertions(+), 30 deletions(-) commit b1b1a7b7e25bc33ddebd210ec0571f9326862228 Author: Karel Zak Date: Thu May 2 11:49:28 2013 +0200 fdisk: (sun) consolidate 'p'rint output * use label operation list() * use generic fdisk geometry output for sun * don't duplicate geometry information Signed-off-by: Karel Zak fdisks/fdisk.c | 11 ++++------- fdisks/fdisksunlabel.c | 35 ++++++++++++++--------------------- 2 files changed, 18 insertions(+), 28 deletions(-) commit a5c1b0fa2079b3584c8b71548f95391879b685b0 Author: Karel Zak Date: Thu May 2 11:23:25 2013 +0200 libfdisk: add fdisk_context_enable_details() Signed-off-by: Karel Zak fdisks/fdisk.c | 3 +++ libfdisk/src/context.c | 21 +++++++++++++++++++++ libfdisk/src/fdiskP.h | 7 ++++++- libfdisk/src/libfdisk.h | 3 ++- 4 files changed, 32 insertions(+), 2 deletions(-) commit 3c5fb4757fa2ca0e4c30b9ec65ec87af2cc60bcb Author: Karel Zak Date: Tue Apr 30 11:57:30 2013 +0200 libfdisk: add list() label operation ... and use it for GPT Signed-off-by: Karel Zak fdisks/fdisk.c | 14 +++++--------- libfdisk/src/fdiskP.h | 3 +++ libfdisk/src/gpt.c | 12 ++++++++---- libfdisk/src/label.c | 18 ++++++++++++++++++ libfdisk/src/libfdisk.h | 1 + 5 files changed, 35 insertions(+), 13 deletions(-) commit d9948c3716a75fb0e0ae8b85af599a954edc5df3 Author: Karel Zak Date: Mon Apr 29 15:30:55 2013 +0200 libfdisk: (gpt) use lib/tt.c to list partitions Signed-off-by: Karel Zak libfdisk/src/gpt.c | 50 ++++++++++++++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 20 deletions(-) commit 0c870c1c73985a5e153a35209a650bcacce94c5b Author: Karel Zak Date: Mon Apr 29 15:29:48 2013 +0200 libfdisk: add new 'ask' type TABLE The new type could be used to print table-like output (for example list of the partitions). Signed-off-by: Karel Zak fdisks/fdisk-ask.c | 3 +++ libfdisk/src/ask.c | 27 +++++++++++++++++++++++++++ libfdisk/src/fdiskP.h | 6 ++++++ libfdisk/src/libfdisk.h | 4 +++- 4 files changed, 39 insertions(+), 1 deletion(-) commit f234cc3b5116ab215f1b13fab6f5242c295b293b Author: Karel Zak Date: Mon Apr 29 15:27:42 2013 +0200 lib/tt: add TT_FL_FREEDATA ... to call free() for line data. Signed-off-by: Karel Zak include/tt.h | 8 +++++--- lib/tt.c | 10 +++++++++- 2 files changed, 14 insertions(+), 4 deletions(-) commit 2719215751489be68e1f8e90b9201741e5d5b156 Author: Karel Zak Date: Tue Apr 23 15:25:53 2013 +0200 fdisk: (sun) remove dead code Signed-off-by: Karel Zak fdisks/fdisksunlabel.c | 8 -------- fdisks/fdisksunlabel.h | 1 - 2 files changed, 9 deletions(-) commit b34f097e756ab2c762b1ce0f8c9813dbc7e3e308 Author: Karel Zak Date: Thu Sep 12 12:44:09 2013 +0200 agetty: add \S to output /etc/os-release data This patch allows to use a new \S or \S{VARNAME} sequence in the /etc/issue file. The sequence prints data from /etc/os-release. The reason is to keep /etc/issue file distribution and release independent. The \S{ANSI_COLOR} is converted to the real terminal escape seq. For example: \S Kernel \r on an \m (\l) or more complex example: Welcome to \S{ANSI_COLOR}\S{NAME}0m \S{VERSION} Report bugs at \S{BUG_REPORT_URL}. See http://www.freedesktop.org/software/systemd/man/os-release.html fr more details about /etc/issue. Based on patch from Bill Nottingham . Signed-off-by: Karel Zak include/pathnames.h | 1 + term-utils/agetty.8 | 13 ++++++- term-utils/agetty.c | 100 +++++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 112 insertions(+), 2 deletions(-) commit 35ab31266e2e788b80437809d39e1d8e4806e19c Author: Karel Zak Date: Thu Sep 12 11:11:15 2013 +0200 build-sys: add *vim and clang_complete to gitignore Signed-off-by: Karel Zak .gitignore | 2 ++ 1 file changed, 2 insertions(+) commit d267fdb8540202f77efb28fdf5dddd9826626757 Author: Sami Kerola Date: Tue Sep 10 20:51:14 2013 +0100 rev: fix new line regression Commit 4b4eb34004378fe70259acd8f2f859e7b5cc3726 made output incorrect for input lines that does not have new line. For example $ printf "a b c\n1 2 3" | rev c b a 2 13 Signed-off-by: Sami Kerola text-utils/rev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 050babd4e426d9a9547a66008b445a8e4e85d0f1 Author: Sami Kerola Date: Tue Sep 10 20:51:13 2013 +0100 tests: lscpu: add CPU max MHz to test results Commit 44320710bdb98a3036e8297d0e0af043fb72d702 changed default output. Signed-off-by: Sami Kerola tests/expected/lscpu/lscpu-armv7 | 1 + tests/expected/lscpu/lscpu-x86_64-64cpu | 1 + tests/expected/lscpu/lscpu-x86_64-dell_e4310 | 1 + 3 files changed, 3 insertions(+) commit f28dde8ecf1d9d6b659663a697bdfb3ebc6b51ee Author: James Buren Date: Tue Sep 3 03:01:42 2013 -0500 agetty: add baud rates available from glibc that are not already supported This adds userspace support for baud rates reater than 230400, provided the tty also supports it. term-utils/agetty.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) commit 09625c2ec7cbc0f39f1a3400326fecb2ad0a0ac5 Author: James Buren Date: Tue Sep 3 02:50:57 2013 -0500 agetty: only use EXTA/EXTB macros if B19200/B38400 macros are not present term-utils/agetty.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) commit d88803a4ad1b4797180ce07ce00c7b879c66dd55 Author: Karel Zak Date: Wed Sep 11 17:42:48 2013 +0200 libblkid: export info about bad csum If a bad check sum is detected and BLKID_SUBLKS_BADCSUM is enabled than SBBADCSUM=1 is added to the probing result. Signed-off-by: Karel Zak libblkid/src/probe.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) commit c475943a32d57df9ef6d217be21699291af07fc6 Author: Karel Zak Date: Wed Sep 11 17:16:18 2013 +0200 tests: add bcache images images generated by Rolf Fokkens Signed-off-by: Karel Zak tests/expected/blkid/low-probe-bcache-B | 4 ++++ tests/expected/blkid/low-probe-bcache-C | 4 ++++ tests/ts/blkid/images-fs/bcache-B.img.bz2 | Bin 0 -> 161 bytes tests/ts/blkid/images-fs/bcache-C.img.bz2 | Bin 0 -> 201 bytes 4 files changed, 8 insertions(+) commit a083b725a1e7d299caeb80ec2dbd21d518bf6e87 Author: Rolf Fokkens Date: Fri Sep 6 12:58:45 2013 +0200 libblkid: Add bcache support From https://bugzilla.redhat.com/show_bug.cgi?id=1001120#c11 [kzak@redhat.com: - move crc64 code to lib/ by separate patch, - use BLKID_USAGE_OTHER rather than _RAID] Signed-off-by: Karel Zak libblkid/src/Makemodule.am | 1 + libblkid/src/superblocks/bcache.c | 136 +++++++++++++++++++++++++++++++++ libblkid/src/superblocks/superblocks.c | 1 + libblkid/src/superblocks/superblocks.h | 1 + 4 files changed, 139 insertions(+) commit db2a3dda748cbf06c1129cbb24a003a703c2fa85 Author: Karel Zak Date: Wed Sep 11 14:37:22 2013 +0200 lib: add crc64() Based on bcache code from Rolf Fokkens. Signed-off-by: Karel Zak include/Makemodule.am | 1 + include/crc32.h | 1 + include/crc64.h | 9 +++++ lib/Makemodule.am | 1 + lib/crc64.c | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 120 insertions(+) commit 02f3c12a5f71b3e70f8ccbf311b88808756b5d17 Author: Gabriel de Perthuis Date: Fri Sep 6 19:18:15 2013 +0200 wipefs: Also wipe superblocks with bad checksums [kzak@redhat.com: - move BLKID_SUBLKS_BADCSUM login to blkid_probe_verify_csum()] Signed-off-by: Gabriel de Perthuis Signed-off-by: Karel Zak libblkid/src/blkid.h.in | 1 + libblkid/src/probe.c | 8 ++++++-- misc-utils/wipefs.c | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) commit c89a1defc729afaabf70921c7dd183e9e108db9d Author: Karel Zak Date: Wed Sep 11 13:19:44 2013 +0200 libblkid: use separate function to verify checksums * consolidate "incorrect checksum" debug messages * verify all on one place Based on patch from Gabriel de Perthuis Signed-off-by: Karel Zak libblkid/src/blkidP.h | 3 +++ libblkid/src/probe.c | 24 ++++++++++++++++++++++++ libblkid/src/superblocks/lvm.c | 11 +++++------ libblkid/src/superblocks/nilfs.c | 4 ++-- libblkid/src/superblocks/silicon_raid.c | 8 +++----- libblkid/src/superblocks/via_raid.c | 4 ++-- 6 files changed, 39 insertions(+), 15 deletions(-) commit fa419f45dea69df9e5a3a4e938dbb19c901e8412 Author: Karel Zak Date: Wed Sep 11 16:21:16 2013 +0200 tests: use stable MBR ID Signed-off-by: Karel Zak tests/expected/blkid/lowprobe-pt-dos+bsd | 6 +++--- tests/expected/blkid/md-raid1-part | 3 +++ tests/ts/blkid/md-raid1-part | 10 ++++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) commit c177052c595bf612dd089224d2dae141673b482d Author: Karel Zak Date: Wed Sep 11 15:47:02 2013 +0200 tests: refresh jbd blkid test Signed-off-by: Karel Zak tests/expected/blkid/low-probe-jbd | 1 + 1 file changed, 1 insertion(+) commit 9bfd6f52005d6262dbfd605e8437a8a16add00ae Author: Karel Zak Date: Wed Sep 11 15:45:52 2013 +0200 tests: add XFS log image Signed-off-by: Karel Zak tests/expected/blkid/low-probe-xfs-log | 3 +++ tests/ts/blkid/images-fs/xfs-log.img.bz2 | Bin 0 -> 138 bytes 2 files changed, 3 insertions(+) commit e9b1e01762897895354c10f71b383d54a1f91271 Author: Karel Zak Date: Wed Sep 11 15:37:05 2013 +0200 libblkid: don't use UUID= for xfs external log The log UUID is usually the same as filesystem UUID, it is bad idea to have two devices with the same UUID in the system. It seems batter to use only LOGUUID= for xfs external log. # mkfs.xfs -l logdev=/dev/sdb1 /dev/sdb2 # blkid -p -o udev /dev/sdb1 | grep FS ID_FS_LOGUUID=4063d453-5c01-46ce-b92f-9523d64aecc7 ID_FS_TYPE=xfs_external_log ID_FS_USAGE=other # blkid -p -o udev /dev/sdb2 | grep FS ID_FS_UUID=4063d453-5c01-46ce-b92f-9523d64aecc7 ID_FS_TYPE=xfs ID_FS_USAGE=filesystem The filesystem (sdb2) uses UUID= and log (sdb1) uses LOGUUID=. Signed-off-by: Karel Zak libblkid/src/superblocks/xfs.c | 1 - 1 file changed, 1 deletion(-) commit ed5a064d2ef8660c6cf329d9f57a39afc59ff675 Author: Karel Zak Date: Wed Sep 11 15:33:26 2013 +0200 libblkid: don't interpret regual XFS as external xfs log $ blkid -o udev -p tests/output/blkid/images-fs/xfs.img ID_FS_AMBIVALENT=filesystem:xfs other:xfs_external_log it seems that regular XFS with internal log may be interpreted as log device. This is incorrect. This patch checks for XFS magic string to avoid this collision. Signed-off-by: Karel Zak libblkid/src/superblocks/xfs.c | 3 +++ 1 file changed, 3 insertions(+) commit 42d3e8163193baa3c9005ede794d60a4cb039cf5 Author: Karel Zak Date: Wed Sep 11 12:54:19 2013 +0200 libblkid: diffs between errors and failed probing in via raid Signed-off-by: Karel Zak libblkid/src/superblocks/via_raid.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) commit 422501ca8314b700fd22e77626199e8cf346326f Author: Karel Zak Date: Wed Sep 11 12:54:19 2013 +0200 libblkid: diffs between errors and failed probing in silicon raid Signed-off-by: Karel Zak libblkid/src/superblocks/silicon_raid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 8bd67a19f73b5fc8d1f13e2ec0929b5bae90544b Author: Karel Zak Date: Wed Sep 11 11:15:33 2013 +0200 libblkid: populate jbd LOGUUID in addition to UUID The LOGUUID is alias for UUID, this alias is necessary to standardize the tag name (we want to use the same tag LOGUUID= for all external logs on all filesystems). Note that for another filesystems (e.g. xfs) we have to differentiate between the journal and filesystem uuids to avoid collisions, because both devices use the same uuid. Signed-off-by: Karel Zak libblkid/src/superblocks/ext.c | 2 ++ 1 file changed, 2 insertions(+) commit c57e6f5208cf62d6a7ca24ff332469eb0d5f539b Author: Karel Zak Date: Wed Sep 11 10:40:13 2013 +0200 libblkid: rename UUID_LOG to LOGUUID * the goal is to make the uuid visible and usable it as mount variable/spec, then LOGUUID= seems better than UUID_LOG= * we already have PARTUUID= * the UUID_RAW and UUID_SUB are not used by mount(8) Signed-off-by: Karel Zak libblkid/src/superblocks/superblocks.c | 2 +- libblkid/src/superblocks/xfs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 0a2002551d65f73576cb4514fb052765d46cc8c5 Author: Eric Sandeen Date: Mon Aug 5 18:09:35 2013 -0500 libblkid: Detect external XFS log device Detects external XFS log devices with a minimum size of 10MB. It's possible to craft a smaller log, but that would be very unlikely; it'd require a small XFS filesystem and an intentionally small log, which would defeat the performance goal of an external log in the first place. [kzak@redhat.com: - use UUID_LOG variable name for the log uuid] Signed-off-by: Eric Sandeen Signed-off-by: Karel Zak libblkid/src/superblocks/superblocks.c | 3 ++ libblkid/src/superblocks/superblocks.h | 1 + libblkid/src/superblocks/xfs.c | 86 ++++++++++++++++++++++++++++++++++ 3 files changed, 90 insertions(+) commit 60f25deae7714a4c67fbabc3b2b0c78bf8dc035e Author: Karel Zak Date: Tue Sep 10 13:11:02 2013 +0200 lib: rename time-util.c to timeutils.c, fix headers Signed-off-by: Karel Zak include/Makemodule.am | 2 +- include/time-util.h | 55 -------- include/timeutils.h | 55 ++++++++ lib/Makemodule.am | 2 +- lib/time-util.c | 337 ------------------------------------------------- lib/timeutils.c | 338 ++++++++++++++++++++++++++++++++++++++++++++++++++ libmount/src/lock.c | 1 + login-utils/last.c | 2 +- 8 files changed, 397 insertions(+), 395 deletions(-) commit 4ccf1137046d3f28bf2f2781a095ecd225294fd8 Author: Sami Kerola Date: Sun Sep 8 17:09:09 2013 +0100 hexdump: revert global exitval variable change The change f2a037fb7b153954d5d34cca48182b6d8832fcfa had unfavorable effect of making hexdump to return non-zero exit value always. This happen because oversight when 'exitval' gets to be set. By clance, one might expect main() to call next() which will return value for 'exitval'. That assessment misses later call chain main() -> display() -> get() -> next(), which in reverse should return correct value for 'exitval'. It was mentioned in util-linux maillist that Ondrej Oprala is working on major renewal of the hexdump . That in mind it seems best to simply to revert the global 'exitval' and avoid conflict with Ondrej's work. Reference: http://markmail.org/message/sbnvuhkboreujj5p Reported-by: Dave Reisner CC: Ondrej Oprala Signed-off-by: Sami Kerola text-utils/display.c | 6 +++--- text-utils/hexdump.c | 4 ++-- text-utils/hexdump.h | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) commit 0a2c1e8ed72547571eb3ed6d492c89b136993d11 Author: Sami Kerola Date: Sun Sep 8 17:09:07 2013 +0100 tools: generate autotools files if missing Signed-off-by: Sami Kerola tools/config-gen | 4 ++++ 1 file changed, 4 insertions(+) commit bce5163b68962ff8b76bacc62fb664e662e67598 Author: Sami Kerola Date: Sun Sep 8 17:09:06 2013 +0100 last: fix memory leak Signed-off-by: Sami Kerola login-utils/last.c | 4 ++++ 1 file changed, 4 insertions(+) commit 646e159aa980063cde55704450db0dbd903ea814 Author: Karel Zak Date: Tue Sep 10 12:18:20 2013 +0200 lib/strutils: optimalize {starts,ends}with() Signed-off-by: Karel Zak include/strutils.h | 43 ++++++++++++++++++++++++++++++++--- lib/strutils.c | 66 ------------------------------------------------------ 2 files changed, 40 insertions(+), 69 deletions(-) commit 9b5dc4cb8d5d82c31c0cda898832998c21afc303 Author: Karel Zak Date: Mon Sep 9 12:24:01 2013 +0200 su: fix lastlog and btmp logging The su(1) logging code mix ups "old" and "new" passwd structs. The result is things like Sep 9 11:50:45 x2 su: (to kzak) kzak on none in /var/log/messages. The right log entry is Sep 9 11:50:45 x2 su: (to root) kzak on pts/3 The bug has been introduced by commit c74a7af17c7a176c358dfaa8e1814786c89ebc14. References: https://bugzilla.redhat.com/show_bug.cgi?id=1005194 Signed-off-by: Karel Zak login-utils/su-common.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) commit 46568b002dec9939d8505fbc6339ddb0c29a3046 Author: Karel Zak Date: Mon Sep 9 09:06:50 2013 +0200 agetty: cleanup debug ifdefs Signed-off-by: Karel Zak term-utils/agetty.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit 2ea747ebf1ed89cd1d5a704677e72c2d008eb6f1 Author: Karel Zak Date: Mon Sep 2 11:42:44 2013 +0200 last: --fulltime and --time-format are mutually exclusive Signed-off-by: Karel Zak login-utils/last.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) commit c87e4fbbf47e56f81adb93e065c6d24f7a7282d4 Author: Karel Zak Date: Mon Sep 2 11:28:43 2013 +0200 last: consolidate time formatting to one struct Signed-off-by: Karel Zak login-utils/last.c | 45 ++++++++++++++++++++++----------------------- 1 file changed, 22 insertions(+), 23 deletions(-) commit ee24e58f86d66ee5d3e5ed7192e27cdf6db64197 Author: Karel Zak Date: Mon Sep 2 11:11:38 2013 +0200 last: use bit array Signed-off-by: Karel Zak login-utils/last.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) commit 1342426248124fa26cfc1fdc174a677edb43272e Author: Sami Kerola Date: Thu Aug 29 10:56:47 2013 +0100 tests: check last(1) and utmpdump(1) IPv6 functionality Signed-off-by: Sami Kerola tests/expected/last/ipv6 | 20 +++++++++++++++++++ tests/expected/utmpdump/ipv6tobin | Bin 0 -> 768 bytes tests/expected/utmpdump/ipv6totxt | 2 ++ tests/ts/last/ipv6 | 41 ++++++++++++++++++++++++++++++++++++++ tests/ts/last/ipv6-input | Bin 0 -> 768 bytes tests/ts/utmpdump/ipv6bin | Bin 0 -> 768 bytes tests/ts/utmpdump/ipv6tobin | 25 +++++++++++++++++++++++ tests/ts/utmpdump/ipv6totxt | 25 +++++++++++++++++++++++ tests/ts/utmpdump/ipv6txt | 2 ++ 9 files changed, 115 insertions(+) commit ee508c153fe25142d3aaafb6b456a592e51d4ac5 Author: Sami Kerola Date: Thu Aug 29 10:34:00 2013 +0100 utmpdump: make IPv6 addresses work (unless bug[s]) This change is backwards compatibile. Earlier binary to text dumps can be converted back to binary, or otherway around. The only thing that will not work are IPv6 addresses that possible earlier conversion had broke. Such conversions resulted with random IPv4 in place of IPv6 address in text format, and original information is gone forever. Signed-off-by: Sami Kerola login-utils/utmpdump.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) commit cfa7fe890b09693ed503da7516977402cbbe13ed Author: Sami Kerola Date: Thu Aug 29 07:46:46 2013 +0100 last, utmpdump, agetty, wall, write: avoid compatibility hacks In include/bits/utmp.h the ut_user and ut_time macros are marked with comment they are backwards compatibility hacks. It is probably best to avoid use of these macros where ever possible. Signed-off-by: Sami Kerola login-utils/last.c | 50 ++++++++++++++++++++++++++++---------------------- login-utils/utmpdump.c | 11 +++++++++-- term-utils/agetty.c | 4 ++++ term-utils/wall.c | 2 +- term-utils/write.c | 4 ++-- 5 files changed, 44 insertions(+), 27 deletions(-) commit 31d28e09510f0a1fe8c11617f33fb4c445d041ac Author: Sami Kerola Date: Wed Aug 28 18:53:22 2013 +0100 last: tell verbally system is still running Use of uptime time stamp as previous boot login time makes the output not constant, which is rather difficult to test. Verbal message 'system is still running' makes testing easy, and noticing which boot is still running clear to a person. Signed-off-by: Sami Kerola login-utils/last.c | 13 +++++++++++-- tests/expected/last/last | 10 +++++----- 2 files changed, 16 insertions(+), 7 deletions(-) commit 97bbb5e41c1a41a1306aedc20d2fd4331d58730a Author: Sami Kerola Date: Wed Aug 28 18:31:48 2013 +0100 last: trim trailing white spaces Signed-off-by: Sami Kerola login-utils/last.c | 18 ++++++++++++++++++ tests/expected/last/last | 4 ++-- 2 files changed, 20 insertions(+), 2 deletions(-) commit da051b5aaa2caeec0cd7146450a86b68c7ad5f00 Author: Sami Kerola Date: Wed Aug 28 18:00:35 2013 +0100 tests: add last(1) test Signed-off-by: Sami Kerola tests/commands.sh | 1 + tests/expected/last/last | 121 +++++++++++++++++++++++++++++++++++++++++++++++ tests/ts/last/last | 62 ++++++++++++++++++++++++ tests/ts/last/wtmp | Bin 0 -> 7296 bytes 4 files changed, 184 insertions(+) commit 438269dca9d8b099fee4c8db4904ffb926d45f99 Author: Sami Kerola Date: Wed Aug 28 15:37:46 2013 +0100 last: never restrict session time When a session time will reach whopping 10000 days the last round bracket is unnecessarily removed from output. Signed-off-by: Sami Kerola login-utils/last.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 4440390ef04b3a74e4c36fe5df07a03da891be88 Author: Sami Kerola Date: Tue Aug 27 18:15:00 2013 +0100 docs: add --time-format to last(1) manual page Signed-off-by: Sami Kerola login-utils/last.1 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) commit 45f11b6bf7da716c160c67bf351645db5ea04fc3 Author: Sami Kerola Date: Tue Aug 27 13:48:27 2013 +0100 last: add --time-format with iso-8601 format The ISO-8601 format makes consuming time stamps easy with various parsers. The format includes time zone information which is crucial when an investigator is trying to make sense outputs collected from systems all a across planet. Signed-off-by: Sami Kerola login-utils/last.c | 134 ++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 111 insertions(+), 23 deletions(-) commit 83484375f212347767af4bcc884024f975b44ac4 Author: Sami Kerola Date: Tue Aug 27 13:15:08 2013 +0100 last: use configuration struct This allows reducing global variables and will minimize number of arguments for functions making code a little bit easier to read, and maintain. Signed-off-by: Sami Kerola login-utils/last.c | 211 ++++++++++++++++++++++++++++------------------------- 1 file changed, 113 insertions(+), 98 deletions(-) commit 4e01db8842507cf3f2cadab7efedfac8e3ba1423 Author: Sami Kerola Date: Tue Aug 27 11:48:54 2013 +0100 last: fix --present option logic error Printing of sessions 'still logged in' was skipped because an error in logic. Signed-off-by: Sami Kerola login-utils/last.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 36f5c80a4072bc6d16cd63940398c519279af43c Author: Sami Kerola Date: Mon Aug 26 22:14:19 2013 +0100 docs: add --since and time option formats to last(1) manual Signed-off-by: Sami Kerola login-utils/last.1 | 39 +++++++++++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 8 deletions(-) commit dd50168b9131c983be5471992e9ad41950e1aed6 Author: Sami Kerola Date: Mon Aug 26 21:52:54 2013 +0100 last: add --since time spec option The --since and --until options are companions often needed together. Signed-off-by: Sami Kerola login-utils/last.c | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) commit 75ab9bf1eb5637e5548f7c570f2086199223a436 Author: Sami Kerola Date: Thu Aug 29 16:11:41 2013 +0100 lib/time-util: move YYYYMMDDHHMMSS to common parser Even while the YYYYMMDDHHMMSS time format it not magnificent it is best to make it to be part of the one, and only, time format parser. Proposed-by: Karel Zak References: http://markmail.org/message/6baqt4ttkopu7ra6 Signed-off-by: Sami Kerola lib/time-util.c | 7 +++++++ login-utils/last.c | 45 --------------------------------------------- 2 files changed, 7 insertions(+), 45 deletions(-) commit 3a4ae395a4065bfa9df29faa022f056e4217c3d8 Author: Sami Kerola Date: Mon Aug 26 21:43:05 2013 +0100 last: parse easy to use time formats Signed-off-by: Sami Kerola login-utils/Makemodule.am | 1 + login-utils/last.c | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) commit 199e939d88333162f440ea50b83415dac625c89c Author: Sami Kerola Date: Thu Aug 29 15:50:17 2013 +0100 lib/strutils: move *swith() functions to private library Avoid code dublication in libmount and time-util. Proposed-by: Karel Zak Reference: http://markmail.org/message/h7zexvqsieqngtmx Signed-off-by: Sami Kerola include/strutils.h | 4 +++ lib/strutils.c | 67 ++++++++++++++++++++++++++++++++++++++++++++ lib/time-util.c | 58 -------------------------------------- libmount/src/context_mount.c | 1 + libmount/src/mountP.h | 5 ---- libmount/src/optmap.c | 1 + libmount/src/utils.c | 31 -------------------- 7 files changed, 73 insertions(+), 94 deletions(-) commit 2659a49ef0ecb269b1dc41f06ad541a264bda795 Author: Sami Kerola Date: Mon Aug 26 16:53:57 2013 +0100 lib/time-util: copy time parsing functions from systemd The functions are copied nearly as-is. Coding style has been modified to match with util-linux project, while the functionality remains untouched. CC: Lennart Poettering Signed-off-by: Sami Kerola include/Makemodule.am | 1 + include/time-util.h | 55 +++++++ lib/Makemodule.am | 1 + lib/time-util.c | 388 ++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 445 insertions(+) commit 0233a8ea18bec17dd59cfe1fec8281d2b9c26d22 Author: Sami Kerola Date: Sun Aug 18 10:44:13 2013 +0100 write: change determination can user write to a terminal Earlier test failed when user had write permission, but was not in special group that owns terminal devices, usually tty. This made write(1) to fail for root, if the root did not happen to be in tty group. In this commit root is granted ot write to anyone, even if they have mesg(1) turned off. For an user who is trying to write to own other session the group write bit is significant only for whether mesg(1) are enabled. Signed-off-by: Sami Kerola term-utils/write.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) commit f7afb6b6b850c25e09140e0cd75c6c517f5685c4 Author: Sami Kerola Date: Sun Aug 18 09:51:46 2013 +0100 docs: add note to wall(1) about sessions which will not get message Sessions that has in utmp data ut_line begining with ':' are skipped. This is done to avoid write errors to devices such as '/dev/:0'. For example wdm is reported to to generate such utmp line. Perhaps in future this code should be revalidated. If an utmp data contains broken device lines it might be best inform user with a error message, rather than skipping silently suspicious device entries. Signed-off-by: Sami Kerola term-utils/wall.1 | 6 ++++++ 1 file changed, 6 insertions(+) commit 2af00c40a679921db8591980f1fd39259e3f7207 Author: Sami Kerola Date: Sun Aug 18 09:33:40 2013 +0100 docs: add --present to last(1) manual page I forgot to update manual after writing this functionality. Signed-off-by: Sami Kerola login-utils/last.1 | 6 ++++++ 1 file changed, 6 insertions(+) commit 5721ea5753987a0657c47e5e7ab08c8a486c6785 Author: Sami Kerola Date: Sun Aug 18 01:17:34 2013 +0100 wall: line wrap at column 79 also when line has tab chars Earlier tabs caused random ragged right indentation, because the tab length was assumed to be 1 char which is not the case most of the time. Signed-off-by: Sami Kerola term-utils/wall.c | 2 ++ 1 file changed, 2 insertions(+) commit 1e6f6cdb846cc8ad3386d8973995877fd7bd24ad Author: Sami Kerola Date: Sun Aug 18 00:50:08 2013 +0100 mesg: sync usage() with howto-usage-function.txt Signed-off-by: Sami Kerola term-utils/mesg.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) commit bbeae1cef163e2275ffa6c8a3fa271e4b69d2c6c Author: Sami Kerola Date: Sun Aug 18 00:46:02 2013 +0100 wall: sync usage() with howto-usage-function.txt Signed-off-by: Sami Kerola term-utils/wall.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) commit 30faa20244756ffb603780c32ce6c45e6c69b62c Author: Sami Kerola Date: Sun Aug 18 00:40:52 2013 +0100 last: fix typo Signed-off-by: Sami Kerola login-utils/last.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit cff0667f4285c7faff710c88aee06ab36056f06f Author: Sami Kerola Date: Sun Aug 18 00:36:57 2013 +0100 wall: send message also to sessions opened by user 'sleeper' Ignoring an user by name, and not telling about it in manual page, is unexpected. Signed-off-by: Sami Kerola term-utils/wall.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) commit 918785dd1fce01cccbe200b23cdc4d6115a2fc82 Author: Sami Kerola Date: Mon Aug 26 13:11:44 2013 +0100 build-sys: pylibmount will not work when python3 is present While compiling with up to date Archlinux I notice the recently added pylibmount does not link correctly. Failures inform fundamental types such as PyFileObject and PyFile_Type being missing. It seems automake AM_PATH_PYTHON will prefer the python in path, which for this distribution right now is python3. As some sort of go-around one can install older python, and symlink it to earlier in PATH lookup. $ ln -s /usr/bin/python2 $HOME/bin/python $ export PATH=$HOME/bin:$PATH Signed-off-by: Sami Kerola configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) commit fb4edda749e4c81e9ce713a017240ded8f521d07 Author: Karel Zak Date: Tue Aug 27 11:23:54 2013 +0200 su: suppress PAM info messages for -c or non-login sessions The 'Last login:' messages from PAM lastlogin module is unexpected for non-login sessions or when -c executed. For example: $ su - -c id Last login: Wed Jul 24 08:36:28 CEST 2013 from dhcp-25-161.brq.redhat.com on pts/18 uid=0(root) gid=0(root) skupiny=0(root) this makes 'su' useless in scripts. This patch suppress all PAM_TEXT_INFO messages for -c and for non-login session ('-' is not specified) after pam_authenticate() and pam_acct_mgmt(). Note that the new PAM conversation function checks the first message in the msg[] array only. It seems good enough as PAM internally uses pam_info() function that does not use multiple messages for one conv call. References: https://bugzilla.redhat.com/show_bug.cgi?id=987787 Signed-off-by: Karel Zak login-utils/su-common.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) commit 03d00d495f3b505d9cae967c629fb38aca301e01 Author: Karel Zak Date: Tue Aug 27 10:02:04 2013 +0200 build-sys: add CFLAGS and LDFLAGS for daemons and shared libs This is necessary for paranoid security guys who believe that things like "-Wl,-z,relro" or "-Wl,-z,bind_now" is a way how to make the world a safer place... Signed-off-by: Karel Zak Documentation/howto-compilation.txt | 10 +++++----- configure.ac | 10 ++++++++++ libblkid/src/Makemodule.am | 2 ++ libmount/src/Makemodule.am | 2 ++ libuuid/src/Makemodule.am | 7 ++++++- misc-utils/Makemodule.am | 3 ++- 6 files changed, 27 insertions(+), 7 deletions(-) commit ef2c9e3f5e51cf13ec9cf6738d4f1d695ee32a6f Author: Karel Zak Date: Mon Aug 26 13:48:40 2013 +0200 tests: minor changes to make tests more portable Signed-off-by: Karel Zak tests/functions.sh | 2 +- tests/ts/cramfs/mkfs | 2 +- tests/ts/libmount/context-utab | 2 ++ tests/ts/libmount/context-utab-py | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) commit 7bed68bf9ef19678bdff44f61b82e37a887f257c Author: Karel Zak Date: Fri Aug 23 13:02:18 2013 +0200 swapon: cleanup man page Signed-off-by: Karel Zak sys-utils/swapon.8 | 38 +++++--------------------------------- 1 file changed, 5 insertions(+), 33 deletions(-) commit d6387c98cb0e0811aafbfdff09256ce2ff7742e4 Author: Rafael Aquini Date: Sun May 26 01:31:56 2013 -0300 swapon: allow a more flexible swap discard policy Introduce the necessary changes to swapon(8) allowing a sysadmin to leverage the new changes introduced to sys_swapon by "swap: discard while swapping only if SWAP_FLAG_DISCARD_PAGES", therefore allowing a more flexible set of choices when selection the discard policy for mounted swap areas. This patch introduces the following optional arguments to the already existent swapon(8) "--discard" option, in order to allow a discard type to be selected at swapon time: * once : only single-time area discards are issued. (swapon) * pages : discard freed pages before they are reused. If no policy is selected both discard types are enabled. (default) [kzak@redhat.com: - support argument for short -d option too, - add errx() on unsupported policy name] Signed-off-by: Rafael Aquini Acked-by: KOSAKI Motohiro Signed-off-by: Karel Zak sys-utils/swapon.8 | 24 ++++++++++---- sys-utils/swapon.c | 93 ++++++++++++++++++++++++++++++++++++++++++------------ 2 files changed, 89 insertions(+), 28 deletions(-) commit b86727542f24c750414a742d2599da1dad9fafa2 Author: Karel Zak Date: Fri Aug 23 12:01:01 2013 +0200 last: mention optional arguments in usage Reported-by: Bernhard Voelker Signed-off-by: Karel Zak login-utils/last.1 | 4 ++-- login-utils/last.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) commit 37f534a66782b53760746fb095ccda7b1b6d5b91 Author: Sami Kerola Date: Sat Aug 17 19:15:21 2013 +0100 last: add --present option The --present option will allow user to easily determine who where logged in at a given time. Signed-off-by: Sami Kerola login-utils/last.c | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) commit 7ec782296506497aa133631d5af2f48a61367f29 Author: Sami Kerola Date: Sat Aug 17 19:15:20 2013 +0100 last: allow --file to be defined multiple times This is useful when an admin is trying to find something, and has to process all available data. Signed-off-by: Sami Kerola login-utils/last.1 | 4 ++ login-utils/last.c | 202 +++++++++++++++++++++++++++++------------------------ 2 files changed, 115 insertions(+), 91 deletions(-) commit 751947b6fc64c989614f29fe844c0fe9f5e52c3f Author: Sami Kerola Date: Sat Aug 17 19:15:19 2013 +0100 last: global variables are initialize automatically to zero Signed-off-by: Sami Kerola login-utils/last.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit 328734c04860ded2750fbf0b85d2acb9d0a5e0c9 Author: Sami Kerola Date: Sat Aug 17 19:15:17 2013 +0100 last: use as narrow variable scoping as possible Signed-off-by: Sami Kerola login-utils/last.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit f65833b93089e902176dd90e6272da39b8bfd027 Author: Sami Kerola Date: Sat Aug 17 19:15:16 2013 +0100 last: remove broken code Comment in the deletion tells everything necessary. "This doesn't work on modern systems, where only a DNS lookup of the result from hostname() will get you the domainname. Remember that domainname() is the NIS domainname, not DNS. So basically this whole piece of code is bullshit." Signed-off-by: Sami Kerola login-utils/last.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) commit e843d047535b6523c16db8c37479f6fe29a50b72 Author: Sami Kerola Date: Sat Aug 17 19:15:15 2013 +0100 last: prefer enum rather than #definition list Incremental number lists are more hard to get wrong with enum, and they are nicer to debug as for example gdb is aware of these symbolic names. Signed-off-by: Sami Kerola login-utils/last.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) commit 5cae90f9d13d89e340a88a428411b2fc1eb29272 Author: Sami Kerola Date: Sat Aug 17 19:15:14 2013 +0100 last: make switch cases complete, and inform if impossible occurs Some of the ut_type numbers does not seem to be recognized by last(1) so they are, at least for now, silently ignored. See glibc documentation for information what the ignored EMPTY, INIT_PROCESS, LOGIN_PROCESS, and ACCOUNTING mean. Reference: FIXME Signed-off-by: Sami Kerola login-utils/last.c | 11 +++++++++++ 1 file changed, 11 insertions(+) commit 1bd68aab3b3495f62b9eb596524e7fab73e7135d Author: Sami Kerola Date: Sat Aug 17 19:15:13 2013 +0100 last: check expected numeric user input is number This commit also changes the line count to use unsigned integers, as negative numbers in this context does not make sense. Signed-off-by: Sami Kerola login-utils/Makemodule.am | 2 +- login-utils/last.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) commit 2e58cd407e41937f7ca82a19577ac0198d77cceb Author: Sami Kerola Date: Sat Aug 17 19:15:12 2013 +0100 last: use carefulput() for printable character output Signed-off-by: Sami Kerola login-utils/last.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) commit ada6c48f0609edd0c04836370228485a6b1859a0 Author: Sami Kerola Date: Sat Aug 17 19:15:11 2013 +0100 include: carefulput: print determined char when unprintable char is found This is done to allow reuse of the functin in last(1). Signed-off-by: Sami Kerola include/carefulputc.h | 4 ++-- term-utils/wall.c | 2 +- term-utils/write.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) commit 9e1d79a95ed6291491f43932e450aaa77e8777e0 Author: Sami Kerola Date: Sat Aug 17 19:15:10 2013 +0100 docs: add long options to last.1 manual page And align the manual page with Documentation/howto-man-page.txt Signed-off-by: Sami Kerola login-utils/last.1 | 180 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 102 insertions(+), 78 deletions(-) commit 80ae42351cc4e0f93af4032bbd68cbf6f11ec6a4 Author: Sami Kerola Date: Sat Aug 17 19:15:09 2013 +0100 docs: be clear which last(1) is deprecated The recently merged sysvinit last(1) and lastb(1) are supported. Signed-off-by: Sami Kerola Documentation/deprecated.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a272c5747c08495187d4f1b7fb1c9874af597b32 Author: Sami Kerola Date: Sat Aug 17 19:15:08 2013 +0100 build-sys: complete elvtune removal The first removal managed to remove only most of the elvtune, this commit will complete the task. Original-removal: 7f1fe74248290c50f5447c2c09fcf0f0575a7666 Signed-off-by: Sami Kerola .gitignore | 1 - Documentation/deprecated.txt | 5 ----- 2 files changed, 6 deletions(-) commit 33292d98e88b3d53b3670265dfe76c2faa4e82c5 Author: Sami Kerola Date: Sat Aug 17 19:15:07 2013 +0100 docs: update TODO The minix type fixes took place December 2012. Commit: a180dc6c54f90896d6491f9bdf704523236dd99c Signed-off-by: Sami Kerola Documentation/TODO | 5 ----- 1 file changed, 5 deletions(-) commit 54e6639071cd9f5ced85a1757ec89e7f81b7380a Author: Sami Kerola Date: Sat Aug 17 19:15:06 2013 +0100 build-sys: remove unnecessary environment variable The addition to original removal done in commit 952f1d79. Signed-off-by: Sami Kerola autogen.sh | 1 - 1 file changed, 1 deletion(-) commit 40e5013ce5249c4863fa8d63d774ea752a097be0 Author: Karel Zak Date: Thu Aug 22 13:24:00 2013 +0200 pylibmount: improve helps strings formatting Signed-off-by: Karel Zak libmount/python/context.c | 432 +++++++++++++++++++++++----------------------- 1 file changed, 214 insertions(+), 218 deletions(-) commit b7e47ac1ac3f2d17536e8864db9c8bdada340b87 Author: Karel Zak Date: Thu Aug 22 12:10:13 2013 +0200 pylibmount: add debug messages Signed-off-by: Karel Zak libmount/python/context.c | 2 ++ libmount/python/fs.c | 22 ++++++++++++++++---- libmount/python/pylibmount.c | 22 +++++++++++++++++++- libmount/python/pylibmount.h | 48 ++++++++++++++++++++++++++++++++++++++++++++ libmount/python/tab.c | 26 +++++++++++++++++++++++- 5 files changed, 114 insertions(+), 6 deletions(-) commit 14104e931e90e224be8139a4a20848cd4001d0ef Author: Karel Zak Date: Thu Aug 22 11:57:06 2013 +0200 libmount: cleanup libmnt_fs list after mnt_table_remove_fs() .. otherwise mnt_free_fs() will try to remove FS from non-existing list. Signed-off-by: Karel Zak libmount/src/fs.c | 11 ++++++++++- libmount/src/tab.c | 3 +++ 2 files changed, 13 insertions(+), 1 deletion(-) commit 20b222ec5c6bd4dbfc3d88efdb4b32839629efb3 Author: Karel Zak Date: Thu Aug 22 09:44:38 2013 +0200 pylibmount: use libmount reference counting Signed-off-by: Karel Zak libmount/python/context.c | 2 +- libmount/python/fs.c | 12 ++++++++---- libmount/python/pylibmount.c | 8 +++++--- libmount/python/pylibmount.h | 10 +++++----- libmount/python/tab.c | 27 ++++++++++++++------------- 5 files changed, 33 insertions(+), 26 deletions(-) commit 50fccba1ab7097bcb69048bbe929ab739be3fc1e Author: Karel Zak Date: Wed Aug 21 16:07:51 2013 +0200 misc: use libmnt_table reference counter Signed-off-by: Karel Zak disk-utils/fsck.c | 4 ++-- misc-utils/findmnt.c | 7 ++++--- misc-utils/lsblk.c | 5 +++-- misc-utils/lslocks.c | 2 +- sys-utils/eject.c | 10 +++++----- sys-utils/mount.c | 3 ++- sys-utils/mountpoint.c | 2 +- sys-utils/swapon-common.c | 4 ++-- sys-utils/umount.c | 6 +++--- 9 files changed, 23 insertions(+), 20 deletions(-) commit c9f1585e67717068e82ba22bc498aabf2954c113 Author: Karel Zak Date: Wed Aug 21 16:07:25 2013 +0200 libmount: add reference counter to libmnt_table Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 2 ++ libmount/src/cache.c | 3 +- libmount/src/context.c | 53 ++++++++++++++++++-------------- libmount/src/libmount.h.in | 3 ++ libmount/src/libmount.sym | 2 ++ libmount/src/mountP.h | 4 +-- libmount/src/tab.c | 61 +++++++++++++++++++++++++++++-------- libmount/src/tab_diff.c | 4 +-- libmount/src/tab_parse.c | 6 ++-- libmount/src/tab_update.c | 12 ++++---- 10 files changed, 100 insertions(+), 50 deletions(-) commit 6195f9e6fab612694ff97e66f9b276b913aa2d24 Author: Karel Zak Date: Wed Aug 21 14:38:38 2013 +0200 misc: use libmnt_cache reference counting Signed-off-by: Karel Zak disk-utils/fsck.c | 2 +- misc-utils/findmnt.c | 2 +- misc-utils/lsblk.c | 2 +- sys-utils/eject.c | 5 +++-- sys-utils/mount.c | 5 ++--- sys-utils/mountpoint.c | 2 +- sys-utils/swapoff.c | 2 +- sys-utils/swapon.c | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) commit 0105691d541ea2be766b681b437f3082e78dd664 Author: Karel Zak Date: Wed Aug 21 14:37:55 2013 +0200 libmount: add reference counting to libmnt_cache Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 2 ++ libmount/src/cache.c | 41 ++++++++++++++++++++++++++++++++++--- libmount/src/context.c | 36 ++++++++++++-------------------- libmount/src/libmount.h.in | 3 +++ libmount/src/libmount.sym | 2 ++ libmount/src/tab.c | 16 +++++++++++---- 6 files changed, 70 insertions(+), 30 deletions(-) commit 72c08aa910bcebf44e7f8e89ccac8f087870f8d6 Author: Karel Zak Date: Wed Aug 21 12:53:15 2013 +0200 fsck: use libmount fs reference counter Signed-off-by: Karel Zak disk-utils/fsck.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) commit 26d0c0aefde9a94f29d9850514fcbcf638eb8728 Author: Karel Zak Date: Wed Aug 21 12:31:43 2013 +0200 libmount: add reference counting to libmount_fs * mnt_new_fs() returns object with refcount=1 * mnt_free_fs() does not care about reference counter * new functions mnt_ref_fs() and mnt_unref_fs() * mnt_table_add_fs() and mnt_table_rem_fs() uses reference counter * libmmnt_context uses reference counter for internal FS (as it could be shared outside the context) * backwardly incompatible change: - FS could be deallocated after mnt_table_remove_fs() * it's recommended to use mnt_unref_fs() after mnt_table_add_fs() Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 2 ++ libmount/src/context.c | 20 ++++++-------- libmount/src/fs.c | 52 ++++++++++++++++++++++++++++++++++--- libmount/src/libmount.h.in | 2 ++ libmount/src/libmount.sym | 2 ++ libmount/src/mountP.h | 11 +++++++- libmount/src/tab.c | 34 ++++++++++++------------ libmount/src/tab_diff.c | 13 ++++++++++ libmount/src/tab_parse.c | 3 ++- libmount/src/tab_update.c | 17 +++++++----- 10 files changed, 115 insertions(+), 41 deletions(-) commit 6d5189376d92cf8855a4745f6c8429e83f7b11e0 Author: Karel Zak Date: Wed Aug 21 10:06:15 2013 +0200 pylibmount: remove Context_get_table() It's too problematic and too low-level to support it Py binding. Signed-off-by: Karel Zak libmount/python/context.c | 29 ----------------------------- 1 file changed, 29 deletions(-) commit a4ac8f0385be8f80d05a202803187342286d0127 Author: Karel Zak Date: Wed Aug 21 10:02:19 2013 +0200 pylibmount: cleanup cxt usage Signed-off-by: Karel Zak libmount/python/context.c | 87 ++++++++------------------------------------ libmount/python/pylibmount.h | 1 - 2 files changed, 15 insertions(+), 73 deletions(-) commit 32953aebdd355b00fed519a06b015f63e6e3af1e Author: Karel Zak Date: Wed Aug 21 10:01:23 2013 +0200 libmount: add function for context userdata Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 3 +++ libmount/src/context.c | 36 ++++++++++++++++++++++++++++++++++++ libmount/src/libmount.h.in | 4 ++++ libmount/src/libmount.sym | 3 +++ 4 files changed, 46 insertions(+) commit 73d5b4ebdb0658eb736bac12a4b6e60f56aae5db Author: Karel Zak Date: Tue Aug 20 17:52:47 2013 +0200 pylibmount: remove unnecessary code It's enough to call mnt_free_fs() to remove fs from the table. Signed-off-by: Karel Zak libmount/python/tab.c | 1 - 1 file changed, 1 deletion(-) commit a2f17bb24ee7c3dd25639f78d5fd123161392e0c Author: Karel Zak Date: Tue Aug 20 14:35:13 2013 +0200 libmount: add mnt_table_is_empty(), improve table list usage Currently you have to use mnt_table_remove_fs() + mnt_free_fs() to destroy the list in the table. This is complicated in same situations. This patch allows to use mnt_free_fs() only. Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 1 + libmount/src/libmount.h.in | 1 + libmount/src/libmount.sym | 1 + libmount/src/mountP.h | 1 - libmount/src/tab.c | 36 ++++++++++++++++++++++++++++-------- sys-utils/swapon.c | 6 ++++-- 6 files changed, 35 insertions(+), 11 deletions(-) commit c643ad4d814f081aae19fd82acc1dd1a2aaf840d Author: Karel Zak Date: Tue Aug 20 14:01:39 2013 +0200 pylibmount: coding style changes, don't touch Context() status It's better to follow libmnt_context status than allow to play any nasty games with this important variables in Python. Signed-off-by: Karel Zak libmount/python/context.c | 102 ++++++++++++++++++++++------------------------ libmount/python/tab.c | 2 +- 2 files changed, 50 insertions(+), 54 deletions(-) commit 2d59ffa15a5ce4aae0bd82593c9e2b7a644aea8d Author: Karel Zak Date: Tue Aug 20 13:52:09 2013 +0200 pylibmount: use only public libmount API in tab.c Signed-off-by: Karel Zak libmount/python/tab.c | 76 ++++++++++++++++++++++++++++----------------------- 1 file changed, 42 insertions(+), 34 deletions(-) commit 686a64670e34250c8dce934d936ac63494d62076 Author: Karel Zak Date: Tue Aug 20 13:48:43 2013 +0200 libmount: add mnt_table_{first,last}_fs() Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 2 ++ libmount/src/libmount.h.in | 2 ++ libmount/src/libmount.sym | 2 ++ libmount/src/tab.c | 40 +++++++++++++++++++++++++++++++++++++ 4 files changed, 46 insertions(+) commit f8271ff87272afbcb661ca19742a8b7998fe7ae0 Author: Karel Zak Date: Tue Aug 20 12:41:53 2013 +0200 libmount: add new function to docs Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 3 +++ 1 file changed, 3 insertions(+) commit 2bc04c11f967261839f1ae21038c4a43faed8d1d Author: Karel Zak Date: Tue Aug 20 12:41:27 2013 +0200 libmount: add mnt_table_{set,get}_userdata() Signed-off-by: Karel Zak libmount/src/libmount.h.in | 3 +++ libmount/src/libmount.sym | 2 ++ libmount/src/tab.c | 31 +++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) commit e670df45c6d82fe5682b74cb4017d62eae653a2e Author: Karel Zak Date: Tue Aug 20 12:32:19 2013 +0200 libmount: add mnt_table_with_comments() Signed-off-by: Karel Zak libmount/src/libmount.h.in | 1 + libmount/src/libmount.sym | 1 + libmount/src/tab.c | 12 ++++++++++++ 3 files changed, 14 insertions(+) commit 278b5be599cc5b18978e4dec3c20e466c61db644 Author: Karel Zak Date: Tue Aug 20 12:07:24 2013 +0200 pylibmount: cleanup *_HELP strings formatting Signed-off-by: Karel Zak libmount/python/tab.c | 280 ++++++++++++++++++++++++++------------------------ 1 file changed, 144 insertions(+), 136 deletions(-) commit 279a6d5f411708479620843469dd76274dc46bfa Author: Karel Zak Date: Tue Aug 20 11:32:49 2013 +0200 pylibmount: use mnt_fs_set_userdata() rather than ->userdata Signed-off-by: Karel Zak libmount/python/fs.c | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) commit a2cb025024960e5822263ad9da5edb40dd32efb7 Author: Karel Zak Date: Tue Aug 20 11:08:07 2013 +0200 pylibmount: fs.c - cleanup, remove libmount private stuff * remove unnecessary comments * cleanup up strings format * remove direct access to private libmount stuff Signed-off-by: Karel Zak libmount/python/fs.c | 178 ++++++++++++++++++++++++++++----------------------- 1 file changed, 97 insertions(+), 81 deletions(-) commit 71fbe15192319e50070ccc16144d233843867638 Author: Karel Zak Date: Tue Aug 20 10:49:14 2013 +0200 pylibmount: remove bindsrc from fs API It's unnecessary and very low-level. Signed-off-by: Karel Zak libmount/python/fs.c | 54 +++++++++++++--------------------------------------- 1 file changed, 13 insertions(+), 41 deletions(-) commit 5c7664f73572b365b9b014c5afdd0a0109e69846 Author: Karel Zak Date: Mon Aug 19 17:10:07 2013 +0200 pylibmount: cleanup object names Cxt -> Context Tab -> Table Signed-off-by: Karel Zak libmount/python/context.c | 412 +++++++++++++++---------------- libmount/python/pylibmount.h | 8 +- libmount/python/tab.c | 193 ++++++++------- libmount/python/test_mount_context.py | 8 +- libmount/python/test_mount_tab.py | 5 +- libmount/python/test_mount_tab_update.py | 2 +- 6 files changed, 315 insertions(+), 313 deletions(-) commit 6b47d7f5c70decb9a6c5bd5fb880cb81932a8cbc Author: Karel Zak Date: Mon Aug 19 16:57:50 2013 +0200 pylibmount: coding style changes in tab.c Signed-off-by: Karel Zak libmount/python/tab.c | 75 ++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 53 insertions(+), 22 deletions(-) commit 679f086c5493f0935beaa7338b290b2a7135ad14 Author: Karel Zak Date: Mon Aug 19 16:51:23 2013 +0200 pylibmount: coding style changes in fs.c Signed-off-by: Karel Zak libmount/python/fs.c | 129 ++++++++++++++++++++++++++++----------------------- 1 file changed, 72 insertions(+), 57 deletions(-) commit 77733ec880b4e04a7949bc4a5485bd2ef0547c30 Author: Karel Zak Date: Mon Aug 19 16:40:47 2013 +0200 pylibmount: coding style changes in context.c Signed-off-by: Karel Zak libmount/python/context.c | 321 +++++++++++++++++++++++++++++----------------- 1 file changed, 201 insertions(+), 120 deletions(-) commit a731b5413b9736b71b12f4505b5c0e7985f77be7 Author: Karel Zak Date: Mon Aug 19 15:35:52 2013 +0200 tests: consolidate Py tests initialization Signed-off-by: Karel Zak tests/functions.sh | 9 +++++++++ tests/ts/libmount/context-py | 5 +---- tests/ts/libmount/context-utab-py | 5 +---- tests/ts/libmount/tabfiles-py | 5 +---- tests/ts/libmount/tabfiles-tags-py | 3 +-- 5 files changed, 13 insertions(+), 14 deletions(-) commit 15c2e011a769d59165f19a81268b3f93534e65b3 Author: Karel Zak Date: Mon Aug 19 15:24:33 2013 +0200 build-sys: install pylibmount into Signed-off-by: Karel Zak Makefile.am | 1 - libmount/python/Makemodule.am | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) commit 90eb39874f2dc385e84aa8e212bfa61b22a018c6 Author: Ondrej Oprala Date: Mon Aug 19 15:11:06 2013 +0200 pylibmount: add regression tests Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak libmount/python/Makemodule.am | 2 + libmount/python/test_mount_context.py | 172 ++++++++++ libmount/python/test_mount_tab.py | 162 ++++++++++ libmount/python/test_mount_tab_update.py | 58 ++++ tests/commands.sh | 3 + tests/expected/libmount/context-py | 5 + .../expected/libmount/context-py-mount-by-devname | 1 + tests/expected/libmount/context-py-mount-by-label | 1 + tests/expected/libmount/context-py-mount-by-uuid | 2 + tests/expected/libmount/context-py-mount-flags | 5 + tests/expected/libmount/context-py-mount-loopdev | 2 + .../expected/libmount/context-py-umount-by-devname | 1 + .../libmount/context-py-umount-by-mountpoint | 1 + tests/expected/libmount/context-py-x-mount.mkdir | 1 + tests/expected/libmount/context-utab-py | 9 + .../libmount/context-utab-py-mount-by-devname | 1 + .../libmount/context-utab-py-mount-uhelper | 1 + .../libmount/context-utab-py-mount-uhelper-subvol | 1 + tests/expected/libmount/context-utab-py-umount | 1 + .../libmount/context-utab-py-umount-by-devname | 1 + .../libmount/context-utab-py-umount-subvol | 1 + tests/expected/libmount/tabfiles-py-copy | 18 ++ tests/expected/libmount/tabfiles-py-find-pair | 6 + tests/expected/libmount/tabfiles-py-find-source | 8 + tests/expected/libmount/tabfiles-py-find-target | 6 + tests/expected/libmount/tabfiles-py-find-target2 | 5 + tests/expected/libmount/tabfiles-py-find-target3 | 5 + tests/expected/libmount/tabfiles-py-parse-fstab | 65 ++++ .../libmount/tabfiles-py-parse-fstab-broken | 63 ++++ .../expected/libmount/tabfiles-py-parse-fstab-full | 83 +++++ .../expected/libmount/tabfiles-py-parse-mountinfo | 352 +++++++++++++++++++++ tests/expected/libmount/tabfiles-py-parse-mtab | 68 ++++ tests/expected/libmount/tabfiles-tags-py-fstab-dev | 5 + .../libmount/tabfiles-tags-py-fstab-dev2label | 5 + .../expected/libmount/tabfiles-tags-py-fstab-label | 5 + .../libmount/tabfiles-tags-py-fstab-label2dev | 5 + .../libmount/tabfiles-tags-py-fstab-label2uuid | 5 + .../expected/libmount/tabfiles-tags-py-fstab-uuid | 5 + tests/expected/libmount/update-py-fstab-replace | 24 ++ tests/ts/libmount/context-py | 145 +++++++++ tests/ts/libmount/context-utab-py | 120 +++++++ tests/ts/libmount/tabfiles-py | 73 +++++ tests/ts/libmount/tabfiles-tags-py | 84 +++++ tests/ts/libmount/update-py | 30 ++ 44 files changed, 1616 insertions(+) commit 3246f4b98cdf5d9ca3e84cffd27951ee7586812a Author: Ondrej Oprala Date: Mon Aug 19 15:06:37 2013 +0200 pylibmount: add __init__.py Signed-off-by: Karel Zak Signed-off-by: Ondrej Oprala .gitignore | 1 + libmount/python/libmount/__init__.py | 2 ++ 2 files changed, 3 insertions(+) commit 813683a3525d0530968698b92cd604b1f49b26a7 Author: Ondrej Oprala Date: Mon Aug 19 15:00:15 2013 +0200 pylibmount: basic code [kzak@redhat.com: - split to more patches - split to more .c files] Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak libmount/python/Makemodule.am | 9 +- libmount/python/context.c | 1240 +++++++++++++++++++++++++++++++++++++++++ libmount/python/fs.c | 790 ++++++++++++++++++++++++++ libmount/python/pylibmount.c | 205 +++++++ libmount/python/pylibmount.h | 78 +++ libmount/python/tab.c | 725 ++++++++++++++++++++++++ 6 files changed, 3045 insertions(+), 2 deletions(-) commit d78df0ac6546bfe5500ca97f2bf05153d93e1eef Author: Karel Zak Date: Mon Aug 19 14:57:21 2013 +0200 build-sys: add pylibmount Signed-off-by: Karel Zak Makefile.am | 1 + configure.ac | 21 +++++++++++++++++++++ libmount/Makemodule.am | 2 +- libmount/python/Makemodule.am | 21 +++++++++++++++++++++ 4 files changed, 44 insertions(+), 1 deletion(-) commit 7f1fe74248290c50f5447c2c09fcf0f0575a7666 Author: Karel Zak Date: Tue Aug 13 15:55:52 2013 +0200 build-sys: remove deprecated elvtune command The command is deprecated for years and useless with 2.6.x kernels. Signed-off-by: Karel Zak configure.ac | 10 -- disk-utils/Makemodule.am | 8 -- disk-utils/elvtune.8 | 67 --------- disk-utils/elvtune.c | 174 ------------------------ 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 - tests/expected/build-sys/config-devel-non-docs | 1 - 10 files changed, 265 deletions(-) commit 1cc62b353872f46753795285e9f65164b67d8031 Author: Karel Zak Date: Tue Aug 13 14:11:12 2013 +0200 build-sys: enable mesg(1) by default It seems that our mesg(1) implementation is compatible with sysvinit, let's use it by default in mainstream distros. Signed-off-by: Karel Zak configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit d81c30553f4fb49173d38f69edff4b0b67a18b65 Author: Karel Zak Date: Tue Aug 13 12:23:21 2013 +0200 wall: make banner sysvinit compatible Signed-off-by: Karel Zak term-utils/wall.c | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) commit cdd3cc7fa4cafde492039180bb47f27ab8422261 Author: Karel Zak Date: Tue Aug 13 11:45:54 2013 +0200 wall: allow to specify on command line wall(1) from sysvinit supports # wall I love this company! semantic, This patch add this functionally to the util-linux wall. Signed-off-by: Karel Zak term-utils/wall.1 | 13 +++++--- term-utils/wall.c | 91 ++++++++++++++++++++++++++++++++++++------------------- 2 files changed, 68 insertions(+), 36 deletions(-) commit e781a04fec35b23df2ae4934c3d4e231e69a6577 Author: Karel Zak Date: Tue Aug 13 10:26:28 2013 +0200 last: add link to util-linux to last.1 Signed-off-by: Karel Zak login-utils/last.1 | 3 +++ 1 file changed, 3 insertions(+) commit 77079432d77ca7898437024ae8f6cce9562c2fd5 Author: Karel Zak Date: Tue Aug 13 10:22:50 2013 +0200 last: coding style clean up Signed-off-by: Karel Zak login-utils/last.c | 502 +++++++++++++++++++++++++++-------------------------- 1 file changed, 255 insertions(+), 247 deletions(-) commit a9f789e5187c73d8c66d5bc7eee598c19a0b9f09 Author: Karel Zak Date: Mon Aug 12 14:10:42 2013 +0200 last: use xalloc.h, err.h, nls.h and EXIT_ macros Signed-off-by: Karel Zak login-utils/last.c | 84 ++++++++++++++---------------------------------------- 1 file changed, 21 insertions(+), 63 deletions(-) commit 4c7dfea7a44805a4b40684ddd4478633a8629482 Author: Karel Zak Date: Mon Aug 12 13:42:25 2013 +0200 last: consolidate btmp/wtmp file paths .. so share the paths with another utils. Signed-off-by: Karel Zak login-utils/last.c | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) commit 293e0c90e412fb18563704ea4935a9c5d4d39dad Author: Karel Zak Date: Mon Aug 12 13:39:11 2013 +0200 last: add long options, improve usage() Signed-off-by: Karel Zak login-utils/last.c | 72 +++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 60 insertions(+), 12 deletions(-) commit ec01e9d048353c1d8b251a9658291bc315db3553 Author: Karel Zak Date: Mon Aug 12 12:59:52 2013 +0200 build-sys: fix last stuff Signed-off-by: Karel Zak login-utils/Makemodule.am | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit ad869f9ec5c0c93af810550cec47d7acf3538661 Author: Karel Zak Date: Mon Aug 12 12:59:22 2013 +0200 build-sys: improbe UL_CONFLICT_BUILD macro Signed-off-by: Karel Zak m4/ul.m4 | 2 ++ 1 file changed, 2 insertions(+) commit 4d1d1233f45fe87f69c148ccb6292af5a5f661eb Author: Karel Zak Date: Mon Aug 12 12:26:03 2013 +0200 last: clean up the begin of the file .. and improve last(1) stuff in configure script. Signed-off-by: Karel Zak AUTHORS | 2 ++ configure.ac | 4 ++-- login-utils/last.c | 52 +++++++++++++++++++++------------------------------- 3 files changed, 25 insertions(+), 33 deletions(-) commit ce60272039ea11952b15fefb653892dd0da02217 Author: Ondrej Oprala Date: Tue Aug 6 18:19:37 2013 +0200 last: merge sysvinit last/lastb Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak bash-completion/Makemodule.am | 2 +- configure.ac | 14 +- login-utils/Makemodule.am | 16 +- login-utils/last-deprecated.1 | 62 +++ login-utils/last-deprecated.c | 483 +++++++++++++++++ login-utils/last.1 | 174 ++++-- login-utils/last.c | 1198 +++++++++++++++++++++++++++-------------- login-utils/lastb.1 | 1 + 8 files changed, 1474 insertions(+), 476 deletions(-) commit 6f964206661e2937b9d5fc93ee56e5379b9556d9 Author: Karel Zak Date: Tue Aug 6 15:39:11 2013 +0200 agetty: -L accepts optional argument Signed-off-by: Karel Zak term-utils/agetty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 3cb2413b02ff01f535b82eb630bd4f157ed7b1c8 Author: Karel Zak Date: Tue Aug 6 11:04:35 2013 +0200 losetup: use loop-control to explicitly ask for device Now we use LOOP_CTL_GET_FREE ioctl to ask for free device, for example losetup -f foo.img Unfortunately, losetup(8) allows to ask for specified device losetup /dev/loop100 foo.img and in this case we assume that the device already exists in the system. This is incorrect, we should be able to use loop-control LOOP_CTL_ADD ioctl to ask for the specified device. Signed-off-by: Karel Zak include/loopdev.h | 1 + lib/loopdev.c | 30 ++++++++++++++++++++++++++++++ sys-utils/losetup.c | 2 ++ 3 files changed, 33 insertions(+) commit 777519226d033fdea9bcad043c01aa6539c8b71d Author: Karel Zak Date: Tue Aug 6 10:29:04 2013 +0200 blkdiscard: use fstat() rather than stat() [coverity scan] Calling function "open(char const *, int, ...)" that uses "path" after a check function. This can cause a time-of-check, time-of-use race condition. .. well, in blkdiscard context it's mostly cosmetic change. Signed-off-by: Karel Zak sys-utils/blkdiscard.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) commit 21ce3f3a4ec1a7cf97379aa4157cecc657cb814e Author: Karel Zak Date: Mon Aug 5 16:03:15 2013 +0200 losetup: fix loop device name usage The code is not paranoid enough, loopcxt_set_device() only set the device name to loopdev struct, but it does not check if the device really exists. Signed-off-by: Karel Zak sys-utils/losetup.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) commit 68c41a5f5f2649f49d6eb2aecba7fb248b57e91e Author: Karel Zak Date: Mon Aug 5 15:24:30 2013 +0200 libmount: be robust when work with loopdev backing file paths It's usually unnecessary as we compare devno and ino, but let's use absolute paths for situations when it's necessary to compare paths as strings. Signed-off-by: Karel Zak libmount/src/context_loopdev.c | 25 ++++++++++++------------- libmount/src/context_umount.c | 10 +++++----- 2 files changed, 17 insertions(+), 18 deletions(-) commit 6d62bc0f9b01ef4c58a3e8e3585385045bd10854 Author: Karel Zak Date: Mon Aug 5 15:24:30 2013 +0200 losetup: make -j more robust It's usually unnecessary as we compare devno and ino, but let's use absolute paths for situations when it's necessary to compare paths as strings. Signed-off-by: Karel Zak sys-utils/losetup.c | 38 ++++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) commit 3f420a49dd4d0c413b635dd621aa34eebce2d3d2 Author: Karel Zak Date: Mon Aug 5 13:58:01 2013 +0200 libmount: canonicalize for conversion from loopdev backing file # mount foo.img /mnt # umount foo.img umount: foo.img: not mounted The loopdev code (and sysfs backing_file) uses absolute paths, but libmount does not canonicalize the path before lookup for the backing file. References: https://bugzilla.redhat.com/show_bug.cgi?id=950497 Signed-off-by: Karel Zak libmount/src/context_umount.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit 1beb933efde7bcb6b65122a5b88bdde2bf451dc6 Author: Sami Kerola Date: Sun Aug 4 00:15:21 2013 +0100 cal: set statically defined data read-only Signed-off-by: Sami Kerola misc-utils/cal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 2587c5937c506eb399e2012141c6d6b7d381552b Author: Sami Kerola Date: Sun Aug 4 00:15:20 2013 +0100 more: make output redirection more efficient Especially with large inputs the change improves performance considerably. old> time more /boot/vmlinuz >/dev/null real 0m0.224s new> more /boot/vmlinuz >/dev/null real 0m0.009s Signed-off-by: Sami Kerola text-utils/more.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) commit d2b7bc74d9d69bf5c40639d143a92f2e7b2df062 Author: Sami Kerola Date: Sun Aug 4 00:15:19 2013 +0100 column: use variable lenght printf field width to wprint blanks This makes program to run a little faster. My test input show about 20% speed improvement. Signed-off-by: Sami Kerola text-utils/column.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit d58b315704bf21c3552d1b9b0743cfd6585ef972 Author: Ondrej Oprala Date: Fri Aug 2 12:23:50 2013 +0200 libmount: fix typos Signed-off-by: Ondrej Oprala libmount/src/cache.c | 16 +++--- libmount/src/context.c | 112 ++++++++++++++++++++--------------------- libmount/src/context_loopdev.c | 14 +++--- libmount/src/context_mount.c | 50 +++++++++--------- libmount/src/context_umount.c | 32 ++++++------ libmount/src/fs.c | 76 ++++++++++++++-------------- libmount/src/init.c | 12 ++--- libmount/src/iter.c | 10 ++-- libmount/src/libmount.h.in | 6 +-- libmount/src/lock.c | 30 +++++------ libmount/src/mountP.h | 5 +- libmount/src/optmap.c | 8 +-- libmount/src/optstr.c | 96 +++++++++++++++++------------------ libmount/src/tab.c | 96 +++++++++++++++++------------------ libmount/src/tab_diff.c | 8 +-- libmount/src/tab_parse.c | 52 +++++++++---------- libmount/src/tab_update.c | 26 +++++----- libmount/src/utils.c | 52 +++++++++---------- libmount/src/version.c | 6 +-- 19 files changed, 354 insertions(+), 353 deletions(-) commit 418cb4b3bb7a61aec62ebe91194f7722ea608842 Author: Karel Zak Date: Thu Aug 1 16:41:50 2013 +0200 more: guarantee space for multibyte .. to make the code more robust. Signed-off-by: Karel Zak text-utils/more.c | 6 ++++++ 1 file changed, 6 insertions(+) commit c36407293d63d428af176097527df89d623bc74f Author: Karel Zak Date: Thu Aug 1 16:00:21 2013 +0200 more: check for buffer size when write multibyte char Signed-off-by: Karel Zak text-utils/more.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit f1477c4b74d46f7e85b658473b3a37c87d00b886 Author: Karel Zak Date: Thu Aug 1 15:00:02 2013 +0200 mkswap: add note about swap header limit to the man page Signed-off-by: Karel Zak disk-utils/mkswap.8 | 3 +++ 1 file changed, 3 insertions(+) commit 4b4eb34004378fe70259acd8f2f859e7b5cc3726 Author: Sami Kerola Date: Sun Jul 28 22:11:21 2013 +0100 rev: use string printing rather than character output Fliping a string in memory, and printing it with multibyte output function makes the command about 1/3 quicker. Signed-off-by: Sami Kerola text-utils/rev.c | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) commit c8498f2fad2fe706a72540ab72dfd848f51af18a Author: Sami Kerola Date: Sun Jul 28 22:11:20 2013 +0100 build-sys: use backticks rather than $() for commands in configure The configure had both backticks and $() in use. These command susbstitutions are mutually interchangeable, so one should pick only one form. In this case backticks were favored because they are known with greater range of shells, making the backticks to be more portable. References: https://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Shell-Substitutions.html#index-g_t_0024_0028_0040var_007bcommands_007d_0029-1632 Signed-off-by: Sami Kerola configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 3013eb9dc05ffcdc25c1484096926c5454e482ac Author: Sami Kerola Date: Sun Jul 28 22:11:19 2013 +0100 build-sys: prefer AS_IF rather than shell 'if' Signed-off-by: Sami Kerola configure.ac | 170 +++++++++++++++++++++++++++++------------------------------ 1 file changed, 85 insertions(+), 85 deletions(-) commit 9f57e6e84987ced839b5e230a80d2ace0a7c2bcf Author: Sami Kerola Date: Sun Jul 28 22:11:18 2013 +0100 build-sys: prefer AS_CASE rather than shell 'case' References: http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Limitations-of-Builtins.html#case Signed-off-by: Sami Kerola configure.ac | 161 ++++++++++++++++++++++++++--------------------------------- 1 file changed, 72 insertions(+), 89 deletions(-) commit 034d378b231236063a71c27d9a1546ffe7ec59b3 Author: Sami Kerola Date: Sun Jul 28 22:11:17 2013 +0100 build-sys: use m4 quoting consistently Signed-off-by: Sami Kerola configure.ac | 400 +++++++++++++++++++++++++++++------------------------------ 1 file changed, 200 insertions(+), 200 deletions(-) commit f29a3d1868c847ae41bc681db58bd087fc9f941d Author: Sami Kerola Date: Sun Jul 28 22:11:16 2013 +0100 setarch: prefer preprocessor rather than autotools check It seems to be pointless to spend time in ./configure phase when preprocessor has to perform #ifndef check anyway. Signed-off-by: Sami Kerola configure.ac | 12 ------------ sys-utils/setarch.c | 22 +++++++++++----------- 2 files changed, 11 insertions(+), 23 deletions(-) commit 145a3ca3649ae5645c4d97986627f1550b2bc208 Author: Sami Kerola Date: Sun Jul 28 22:11:15 2013 +0100 lscpu: fix shadow declaration [smatch scan] sys-utils/lscpu.c:572:22: warning: symbol 'fd' shadows an earlier one Signed-off-by: Sami Kerola sys-utils/lscpu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 1ef2db5a5672e09fa1337099b7d9d6ab61c19bdc Author: Karel Zak Date: Thu Aug 1 12:58:22 2013 +0200 more: fix buffer overflow The bug has been probably introduced by commit 1ac300932deab8dea2c43050921bbbdb36d62ff1. Reported-by: "Dr. David Alan Gilbert" References: https://bugzilla.novell.com/show_bug.cgi?id=829720 Signed-off-by: Karel Zak text-utils/more.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 0dde19974bcbb07ce977992ab04b7dfa752d99b3 Author: Daniel Kahn Gillmor Date: Mon Jul 22 12:56:47 2013 +0100 setsid: add an option to wait child return value This change proposed in util-linux maillist by Damien Wyart in behalf of Daniel Kahn Gillmor. Sami Kerola changed the patch to use option rather than makign the default behavior of the command to change. Reported-by: Damien Wyart Reference: http://markmail.org/message/2z6qh5auk7wjie3l Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495881 CC: Daniel Kahn Gillmor Signed-off-by: Sami Kerola sys-utils/setsid.1 | 5 +++++ sys-utils/setsid.c | 27 ++++++++++++++++++++++----- 2 files changed, 27 insertions(+), 5 deletions(-) commit 7b1333fa6a7f5b927a8d80ba583e1b84435af105 Author: Ondrej Oprala Date: Tue Jul 30 14:25:31 2013 +0200 libmount: add missing declarations to libmount.h.in and documentation Signed-off-by: Ondrej Oprala libmount/docs/libmount-sections.txt | 12 ++++++++++++ libmount/src/fs.c | 1 + libmount/src/libmount.h.in | 3 +++ libmount/src/tab.c | 2 ++ 4 files changed, 18 insertions(+) commit 3035ba93af698f28c91acc85ffbfeeeb74b8f8da Author: Ondrej Oprala Date: Tue Jul 30 14:17:46 2013 +0200 libmount: change tailing to trailing in *_tailing_comments functions Signed-off-by: Ondrej Oprala libmount/src/libmount.h.in | 6 +++--- libmount/src/libmount.sym | 6 +++--- libmount/src/tab.c | 18 +++++++++--------- libmount/src/tab_parse.c | 4 ++-- libmount/src/tab_update.c | 8 ++++---- 5 files changed, 21 insertions(+), 21 deletions(-) commit 5042cdcf7718b192b8961d18cbb8106f54117a0f Author: Karel Zak Date: Mon Jul 29 13:48:20 2013 +0200 dmesg: don't use pager for --follow References: https://bugzilla.redhat.com/show_bug.cgi?id=984666 Signed-off-by: Karel Zak sys-utils/dmesg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 01307ecf1b1ec8f72377100d67d757f946c9dace Author: Karel Zak Date: Fri Jul 19 17:05:31 2013 +0200 losetup: set errno for misaligned offsets References: https://bugs.archlinux.org/task/36189 Signed-off-by: Karel Zak lib/loopdev.c | 26 +++++++++++++++++++------- sys-utils/losetup.c | 20 ++++++++++++++------ 2 files changed, 33 insertions(+), 13 deletions(-) commit 5d3da4a24d0f952eb3709ba62c74aaa04729e08f Author: Karel Zak Date: Tue Jul 16 11:23:51 2013 +0200 mount: update xfs docs Signed-off-by: Karel Zak sys-utils/mount.8 | 344 +++++++++++++++++++++++++++--------------------------- 1 file changed, 173 insertions(+), 171 deletions(-) commit 8cf4152c42e36700002cea0220f5aa6d0101be1c Author: Karel Zak Date: Mon Jul 15 18:04:00 2013 +0200 hwclock: remove references to adjtimex from man page The adjtimex is optional on many distros. Signed-off-by: Karel Zak sys-utils/hwclock.8 | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) commit 4d9b5956cf6a0f9bbe787873c9c0b2ca92aed1b1 Author: Karel Zak Date: Mon Jul 15 12:14:10 2013 +0200 sfdisk: don't use word 'disk'. Signed-off-by: Karel Zak fdisks/sfdisk.8 | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) commit 57a24292ff88569f6771f6dafbcf172b88dd431a Author: Karel Zak Date: Tue Jul 9 14:45:41 2013 +0200 uuidd: add missing initializer [clang-analyzer] Reported-by: Sami Kerola Signed-off-by: Karel Zak misc-utils/uuidd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit cfa44747f3413b79d47b7614415cf1a93cd6d796 Author: Karel Zak Date: Tue Jul 9 14:39:49 2013 +0200 libmount: fix memory leak [clang-analyzer] Reported-by: Sami Kerola Signed-off-by: Karel Zak libmount/src/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 8bd6450375a2f115a615e35bf1f0188806b18e3d Author: Karel Zak Date: Tue Jul 9 14:32:05 2013 +0200 sulogin: fix compiler warning Signed-off-by: Karel Zak login-utils/sulogin-consoles.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit b9f3d0c0ff7b464d07dea530332cd0546b2c55a4 Author: Sami Kerola Date: Sun Jul 7 20:54:49 2013 +0100 more: use variable lenght printf field width to print blanks This makes program to run a little faster. Signed-off-by: Sami Kerola text-utils/more.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit c630db891a1f6177b4ed136d2e20b12728096196 Author: Sami Kerola Date: Sun Jul 7 20:54:48 2013 +0100 column: dereference of null pointer [clang-analyzer] Signed-off-by: Sami Kerola text-utils/column.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 67519cdd8f69da9a81cd7a30a8f32104215a280a Author: Sami Kerola Date: Sun Jul 7 20:54:47 2013 +0100 ul: use string printing function Use of for loop and printing a string character by character is slower than to print whole string with single function. Signed-off-by: Sami Kerola text-utils/ul.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) commit aa971f7d584aa3964fb5a5b628f27985f05fe78c Author: Sami Kerola Date: Sun Jul 7 20:54:46 2013 +0100 ul: use correct types Signed-off-by: Sami Kerola text-utils/ul.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 3797cf255b78aba797db1566e52289f8d16b8238 Author: Sami Kerola Date: Sun Jul 7 20:54:44 2013 +0100 agetty: fix memory leak [clang-analyzer] Signed-off-by: Sami Kerola term-utils/agetty.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 21c4058d92f5f17b87c62063eb77d126be08bd0e Author: Sami Kerola Date: Sun Jul 7 20:54:43 2013 +0100 sulogin: fix memory leak [clang-analyzer] And make code a little bit more robust. Signed-off-by: Sami Kerola login-utils/sulogin-consoles.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) commit c1ed5e513ccb6c5c6cd15be7de8996ed36d99d51 Author: Sami Kerola Date: Sun Jul 7 20:54:42 2013 +0100 sfdisk: assigned value is never read [clang-analyzer] Signed-off-by: Sami Kerola fdisks/sfdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 467ca0b214b029d7241d8f9026eb2f58aeacfbaa Author: Sami Kerola Date: Sun Jul 7 20:54:35 2013 +0100 chfn: assigned value is never read [clang-analyzer] Signed-off-by: Sami Kerola login-utils/chfn.c | 1 - 1 file changed, 1 deletion(-) commit 31f65a8e45afcf6e23a11b23c2d8dc58fe5e31cc Author: Sami Kerola Date: Sun Jul 7 20:54:34 2013 +0100 eject: assigned value is never read [clang-analyzer] Signed-off-by: Sami Kerola sys-utils/eject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a149ad39e888819f84e75f0cd4e0b23420eb927e Author: Sami Kerola Date: Sun Jul 7 20:54:33 2013 +0100 mkfs.cramfs: argument to free() is a constant address [clang-analyzer] Signed-off-by: Sami Kerola disk-utils/mkfs.cramfs.c | 1 - 1 file changed, 1 deletion(-) commit ad20f0d88392810cb3074c9e2e0a4302df7ef54f Author: Sami Kerola Date: Sun Jul 7 20:54:32 2013 +0100 utmpdump: assigned values are never read [clang-analyzer] Signed-off-by: Sami Kerola login-utils/utmpdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit f4ec8fa2e30022a31dc45ae76cbaf944901b8438 Author: Sami Kerola Date: Sun Jul 7 20:54:31 2013 +0100 more: assigned value is never read [clang-analyzer] Signed-off-by: Sami Kerola text-utils/more.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b6e69ba6fc71b0383b253149f0dd37489c6cbda8 Author: Sami Kerola Date: Sun Jul 7 20:54:30 2013 +0100 lscpu: fix memory leak [clang-analyzer] Signed-off-by: Sami Kerola sys-utils/lscpu-dmi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 28ebd2345cf5be118a2eb07771c6ce55f3cd6b15 Author: Sami Kerola Date: Sun Jul 7 20:54:29 2013 +0100 ipcs: assigned values are never read [clang-analyzer] Signed-off-by: Sami Kerola sys-utils/ipcs.c | 3 --- 1 file changed, 3 deletions(-) commit f7ff04140917059c3feedafaf43fc1030d8c8480 Author: Sami Kerola Date: Sun Jul 7 20:54:27 2013 +0100 lib/mbsalign: initializations values are never read [clang-analyzer] Signed-off-by: Sami Kerola lib/mbsalign.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit f55d9a4f815b087227abbac7934b47b0ea3c0446 Author: Sami Kerola Date: Sun Jul 7 20:54:26 2013 +0100 lib/loopdev: assigned value is never read [clang-analyzer] Signed-off-by: Sami Kerola lib/loopdev.c | 1 - 1 file changed, 1 deletion(-) commit e7ba987a04b78189177987c42eb6ffed439b1c4b Author: Sami Kerola Date: Sun Jul 7 20:54:25 2013 +0100 dmesg: inform user --show-delta and iso8601 time format does not mix References: http://marc.info/?l=util-linux-ng&m=137267606929951&w=2 Signed-off-by: Sami Kerola sys-utils/dmesg.c | 3 +++ 1 file changed, 3 insertions(+) commit f7fe97da223159516cd1849fae29d67372ea2296 Author: Sami Kerola Date: Sun Jul 7 20:54:17 2013 +0100 docs: add missing options to sfdisk manual And improve what is said about four of the dangerous options. Signed-off-by: Sami Kerola fdisks/sfdisk.8 | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) commit cdd834c37d94a37cd391c9498a3399015eb6380c Author: Sami Kerola Date: Sun Jul 7 20:54:16 2013 +0100 sfdisk: make unhiding as complete as possible It is unlikely anyone will ever need this, but I like idea commands being complete. The partition id's that can be unhide after this change are; Hidden HPFS/NTFS Hidden W95 FAT32 Hidden W95 FAT32 (LBA) Hidden W95 FAT16 (LBA) Signed-off-by: Sami Kerola fdisks/sfdisk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 84948ff939f30b4eac7dcef5dbf6bddcffb0dd4d Merge: f5ad61d a056cfe Author: Karel Zak Date: Tue Jul 9 11:16:28 2013 +0200 Merge branch 'patch-1' of https://github.com/kernc/util-linux * 'patch-1' of https://github.com/kernc/util-linux: Fixes "getty: unrecognized option '--loginpause'" commit f5ad61d173ef9c2af9e1763843804b4f84acb06c Author: Benno Schulenberg Date: Wed Jul 3 12:09:10 2013 +0200 docs: make description of --activate clearer on man page of sfdisk Signed-off-by: Benno Schulenberg fdisks/sfdisk.8 | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) commit 75b53a08b1fd8d611dbed709ff29b727f9f04505 Author: Benno Schulenberg Date: Wed Jul 3 11:34:25 2013 +0200 docs: fix wording and formatting of man page for dmesg Signed-off-by: Benno Schulenberg sys-utils/dmesg.1 | 92 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 47 insertions(+), 45 deletions(-) commit eb2be4fd8be99bcf9a01593607ba0b50811574ce Author: Benno Schulenberg Date: Sun Jun 16 14:37:52 2013 +0200 docs: improve formatting and wording of man pages for fdisk and cfdisk Signed-off-by: Benno Schulenberg fdisks/cfdisk.8 | 112 ++++++++++++++++++++++++++++---------------------------- fdisks/fdisk.8 | 49 +++++++++++++------------ 2 files changed, 80 insertions(+), 81 deletions(-) commit 6728ca101e7edc223a8eb99201197831d8daa61f Author: Karel Zak Date: Wed Jul 3 12:28:16 2013 +0200 unshare: add --mount-proc for pid namespaces Based on patch from Mike Frysinger . Mike Frysinger wrote: When it comes to pid namespaces, it's also useful for /proc to reflect the current namespace. Again, this is easy to pull off, but annoying to force everyone to do it themselves. So let's add a --mount-proc to do the magic for us. The downside is that this also implies creating a mount namespace as mounting the new pid namespace /proc over top the system one will quickly break all other processes on the system. Signed-off-by: Karel Zak Acked-by: Mike Frysinger sys-utils/unshare.1 | 8 +++++++- sys-utils/unshare.c | 30 +++++++++++++++++++++++------- 2 files changed, 30 insertions(+), 8 deletions(-) commit 5088ec338fe5dcd7e9a2d8daf7e7fa7dd6f87c27 Author: Mike Frysinger Date: Thu Jun 27 20:04:58 2013 -0400 unshare: add --fork options for pid namespaces The ability of unshare to launch a new pid namespace is a bit limited. The first process in the namespace is expected to be the "init" for it. When it's not, you get bad behavior. For example, trying to launch a shell in a new pid namespace fails very quickly: $ sudo unshare -p dash # uname -r 3.8.3 # uname -m dash: 2: Cannot fork # ls -ld / dash: 3: Cannot fork # echo $$ 1324 For this to work smoothly, we need an init process to actively watch over things. But forcing people to re-use an existing init or write their own mini init is a bit overkill. So let's add a --fork option to unshare to do this common bit of book keeping. Now we can do: $ sudo unshare -p --fork dash # uname -r 3.8.3 # uname -m x86_64 # ls -ld / drwxr-xr-x 22 root root 4096 May 4 14:01 / # echo $$ 1 Thanks to Michael Kerrisk for his namespace articles on lwn.net [kzak@redhat.com: - fix "forkif logic, remove --mount-proc] Signed-off-by: Mike Frysinger Signed-off-by: Karel Zak sys-utils/unshare.1 | 6 +++++- sys-utils/unshare.c | 31 ++++++++++++++++++++++++++++--- 2 files changed, 33 insertions(+), 4 deletions(-) commit c9678832b15065f9a0147c308ed79d00f8d4237a Author: Karel Zak Date: Tue Jul 9 10:44:06 2013 +0200 include/xalloc: add warn_unused_result to allocation functions Signed-off-by: Karel Zak include/c.h | 4 ++-- include/xalloc.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) commit d828dfdfb258367c58819411b2f226da6533b92d Author: Karel Zak Date: Mon Jul 8 14:21:03 2013 +0200 lsblk: use devno to check if the filesystem is mounted The device (for example LVM logical volume) could be renamed and then the device name from /proc/self/mountinfo does not match with reality. So, we also need to check devno. Unfortunately we cannot completely rely on devno, because for example btrfs uses psudo device numbers. References: https://bugzilla.redhat.com/show_bug.cgi?id=980463 Signed-off-by: Karel Zak libmount/src/tab.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) commit da531dd8d5d3aa284b7f73ce6345e54ce3b3bc1d Author: Karel Zak Date: Mon Jul 8 14:21:03 2013 +0200 lsblk: use devno to get mountpoint The device (for example LVM logical volume) could be renamed and then the device name from /proc/self/mountinfo does not match with reality. So, we also need to check devno. Unfortunately we cannot completely rely on devno, because for example btrfs uses psudo device numbers. References: https://bugzilla.redhat.com/show_bug.cgi?id=980463 Signed-off-by: Karel Zak misc-utils/lsblk.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) commit a056cfe290ca47fd6823fb7e52508a448d4530a7 Author: kernc Date: Thu Jul 4 17:02:57 2013 +0200 Fixes "getty: unrecognized option '--loginpause'" Usage incorrectly stated --loginpause is a valid option, where instead --login-pause is. Also --no-hostname --> --nohostname. term-utils/agetty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 81499ab24e15532a8252c1e527d3301d9309c31e Author: Karel Zak Date: Wed Jul 3 12:42:06 2013 +0200 findmnt: avoid unused parameter warning Reported-by: Bernhard Voelker Signed-off-by: Karel Zak misc-utils/findmnt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 8e59814a3824e336a24771576c65809b189f6a64 Author: Karel Zak Date: Wed Jul 3 11:23:39 2013 +0200 tests: update libmount fstab full parse test Signed-off-by: Karel Zak tests/expected/libmount/tabfiles-parse-fstab-full | 26 ++++++++++++++--------- 1 file changed, 16 insertions(+), 10 deletions(-) commit d22f2822ed873bac1dbb28aa5fd5351f3a27b2b8 Author: Ondrej Oprala Date: Fri Jun 14 13:00:49 2013 +0200 libmount: add functions to safely replace a fs table Signed-off-by: Ondrej Oprala libmount/src/fs.c | 6 ++ libmount/src/libmount.sym | 2 + libmount/src/tab_update.c | 104 +++++++++++++++++++++++++++ tests/expected/libmount/update-fstab-replace | 24 +++++++ tests/ts/libmount/update | 12 ++++ 5 files changed, 148 insertions(+) commit cb90e24e804e2f95eadf01e96561749092c858c1 Author: Ondrej Oprala Date: Fri Jun 14 12:41:30 2013 +0200 libmount: add functions to handle comments in fs tables Co-Author: Karel Zak Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak libmount/src/fs.c | 57 ++++++++ libmount/src/libmount.h.in | 13 ++ libmount/src/libmount.sym | 14 ++ libmount/src/mountP.h | 5 + libmount/src/tab.c | 171 +++++++++++++++++++++- libmount/src/tab_parse.c | 94 +++++++++++- libmount/src/tab_update.c | 11 +- tests/expected/libmount/tabfiles-parse-fstab-full | 77 ++++++++++ tests/ts/libmount/files/fstab.comment | 22 +++ tests/ts/libmount/tabfiles | 5 + 10 files changed, 460 insertions(+), 9 deletions(-) commit 40b278648066eb0a8db7c99c804e06b2f938d37e Author: Karel Zak Date: Tue Jul 2 11:58:58 2013 +0200 libmount: add a generic append_string() function Signed-off-by: Karel Zak libmount/src/mountP.h | 1 + libmount/src/utils.c | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) commit 2c6b25f01802808b142d450af3352605720899da Author: Karel Zak Date: Tue Jul 2 10:46:10 2013 +0200 libmount: be more restrictive about valid tag names # mount DUMMY=filename.img /mnt The 'DUMMY=filename.img' is a filename and should not be interpreted as tag name. The valid tag names are LABEL, UUID, PARTLABEL and PARTUUID only. Signed-off-by: Karel Zak libmount/src/cache.c | 29 ++++++++++++----------------- libmount/src/fs.c | 9 ++++++--- libmount/src/mountP.h | 2 ++ libmount/src/tab.c | 20 ++++++++------------ libmount/src/utils.c | 12 ++++++++++++ 5 files changed, 40 insertions(+), 32 deletions(-) commit 8a52ef658cf7c6117cbbd19c2807c30bb798e436 Author: Karel Zak Date: Mon Jul 1 16:13:46 2013 +0200 lib/canonical: use realpath() from libc .. after many many years it seems that we can follow libc code rather than duplicate realpath(3) implementation. Signed-off-by: Karel Zak lib/canonicalize.c | 180 +++++++++-------------------------------------------- 1 file changed, 29 insertions(+), 151 deletions(-) commit 4ba4893b3634ff1f6bca688641283cee38989654 Author: Karel Zak Date: Mon Jul 1 15:59:16 2013 +0200 findmnt: make udev usage more robust $ findmnt -rn --target /home/kzak/.bashrc -o UUID uses libudev to ask for UUID, unfortunately /home/kzak is DM device and libudev expects sysfs-like names (e.g. dm-0). We have to convert the name to kernel devname. Signed-off-by: Karel Zak misc-utils/findmnt.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) commit 3c5384d05d3283cf93b5dbd8a4bb4fe245c4c19d Author: Sami Kerola Date: Sun Jun 30 19:11:22 2013 +0100 dmesg: make time stamps to be printed consistently Earlier uptime determination, which was done with sysinfo(2), had one second resolution, which made time stamps to be rounded unstable way depending on when a dmesg command was executed. In practical terms; the command below was supposed not to differ but it did. $ diff -q <(dmesg --ctime) <(sleep 0.5 ; dmesg --ctime) [kzak@redhat.com: - add -lrt to Makemodule.am, - fallback to sysinfo() based boot time - use #ifdef] CC: Kay Sievers References: https://lkml.org/lkml/2013/6/30/37 Buglink: https://github.com/karelzak/util-linux/issues/24 Signed-off-by: Sami Kerola Signed-off-by: Karel Zak sys-utils/Makemodule.am | 2 +- sys-utils/dmesg.c | 32 ++++++++++++++++++++++---------- 2 files changed, 23 insertions(+), 11 deletions(-) commit 3b347e26387e3fc6fc5a75f04d02a3685ce0ecac Author: Karel Zak Date: Mon Jul 1 14:06:16 2013 +0200 sfdisk: fix typo Reported-by: Sami Kerola Signed-off-by: Karel Zak fdisks/sfdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 99361a9c0e2a93ab8a21a675f74178700457f838 Author: Sami Kerola Date: Sun Jun 30 09:44:00 2013 +0100 ul: enhance command performance Avoid reseting, time after time, the memory which was not used. Effect of the change is below in before and after timings. $ time ./ul /dev/null real 0m0.320s user 0m0.307s sys 0m0.010s $ time ./ul /dev/null real 0m0.068s user 0m0.050s sys 0m0.017s [kzak@redhat.com: - add "else" and use maxcol] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak text-utils/ul.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit a84aa9df6f7eb012e10d322e21956aa4b4f195bb Author: Mike Frysinger Date: Thu Jun 27 20:05:18 2013 -0400 exec_shell: add a license and touch up func def When this file was created, the standard license header was missed. Add it using the same one from unshare.c. The noreturn attribute is not needed since we include the header which has it on the prototype. Signed-off-by: Mike Frysinger lib/exec_shell.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) commit 15a1e371682269fbfed2674cc2d76725ae3ca731 Author: Karel Zak Date: Mon Jul 1 11:29:06 2013 +0200 dmesg: define is_timefmt() macro only once Signed-off-by: Karel Zak sys-utils/dmesg.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) commit 81bd88e4f30b652a005b20c2194aea55cc27df4a Author: Karel Zak Date: Mon Jul 1 11:17:17 2013 +0200 dmesg: fix --human color initialization Signed-off-by: Karel Zak sys-utils/dmesg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 541a2cd3ab6ffa588c9522e88b9334f62466f5de Author: Karel Zak Date: Mon Jul 1 11:11:24 2013 +0200 sfdisk: clean up unhide code Signed-off-by: Karel Zak fdisks/sfdisk.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) commit f2a037fb7b153954d5d34cca48182b6d8832fcfa Author: Sami Kerola Date: Sun Jun 16 19:53:55 2013 +0100 hexdump: remove unnecessary global variables Signed-off-by: Sami Kerola text-utils/display.c | 6 +++--- text-utils/hexdump.c | 4 ++-- text-utils/hexdump.h | 2 -- 3 files changed, 5 insertions(+), 7 deletions(-) commit ee919d37c3632e8f75e1edc89b4d7f35d0bd7cff Author: Sami Kerola Date: Sun Jun 16 19:53:54 2013 +0100 sd-daemon: update files taken from systemd project Update sd-damoen.[hc] files from systemd upstream, using commit fa3868c6d317b88715c55422b898f9070afe6575 as the sync point. Signed-off-by: Sami Kerola misc-utils/sd-daemon.c | 100 ++++++++++++++++++++++--------------------------- misc-utils/sd-daemon.h | 14 +++---- 2 files changed, 52 insertions(+), 62 deletions(-) commit 06dd56f91cdbea2de7dc7e41e4af1e1ea42eb8c5 Author: Sami Kerola Date: Sun Jun 16 19:53:53 2013 +0100 dmesg: regroup time related options close to each other Signed-off-by: Sami Kerola sys-utils/dmesg.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit c31f4b860460e8211d8f15c7da5614f826c6088b Author: Sami Kerola Date: Sun Jun 16 19:53:52 2013 +0100 docs: add --time-format option and ISO-8601 format to manual Signed-off-by: Sami Kerola sys-utils/dmesg.1 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) commit 8a8be309d4d04318baff0a488b3f54862f3f0cc4 Author: Sami Kerola Date: Sun Jun 16 19:53:51 2013 +0100 dmesg: add iso-8601 time format The ISO-8601 should be welcomed by anyone who tries to parse dmesg time stamp, and compare them across servers. Time format tries to imitate coreutils 'date --iso-8601=ns' output, but instead of having nanoseconds the dmesg is using microseconds. Reference: http://www.cs.tut.fi/~jkorpela/iso8601.html Addresses: http://xkcd.com/1179/ Signed-off-by: Sami Kerola sys-utils/dmesg.c | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) commit babf605d2ca969a434f2f14579ddf44252adff4f Author: Sami Kerola Date: Sun Jun 16 19:53:50 2013 +0100 dmesg: add --time-format option Signed-off-by: Sami Kerola sys-utils/dmesg.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) commit 776eabe7514f3a8914896ed0b4cdc1a0e8943b6f Author: Sami Kerola Date: Sun Jun 16 19:53:49 2013 +0100 dmesg: convert time format bitfield to enum Foremost this commit makes time printing formats explicit. Signed-off-by: Sami Kerola sys-utils/dmesg.c | 159 ++++++++++++++++++++++++++---------------------------- 1 file changed, 77 insertions(+), 82 deletions(-) commit b7dcc9661b543bab6673b25b360308364c1ed7bc Author: Sami Kerola Date: Sun Jun 16 19:53:48 2013 +0100 sfdisk: replace my_warn() with warnx() This change adds program name in front of error messages. Often that helps user to know which command sent message, when the command is executed as part of script. Unfortunately the prefixing can break scripts, as someone might have wrote automation which expects output in the format it has always been. In programmer terms, the change has an ABI change, which some may find annoying. Signed-off-by: Sami Kerola fdisks/sfdisk.c | 223 ++++++++++++++++++++++++++------------------------------ 1 file changed, 104 insertions(+), 119 deletions(-) commit 072a6c19734bfde8128a63c833e915b6c6e49cd7 Author: Sami Kerola Date: Sun Jun 16 19:53:46 2013 +0100 docs: correct sfdisk --activate instructions The activate can be enabled by renaming the command to 'activate'. Quite confusingly the option and command arguments are interchangeable, and depending on which one is defined as --activate option argument the command will behave different rather different ways. Signed-off-by: Sami Kerola fdisks/sfdisk.8 | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) commit 1c2020990b4c983f8cd8d3db600d3e70c7d62774 Author: Sami Kerola Date: Sun Jun 16 19:53:45 2013 +0100 sfdisk: use program_invocation_short_name to determine program name Signed-off-by: Sami Kerola fdisks/sfdisk.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) commit b980b6b682518f41023f66e8777dff32d3e566bd Author: Sami Kerola Date: Sun Jun 16 19:53:44 2013 +0100 sfdisk: clean up usage() functions Includes removal of unhide usage function, which was never implemented. Signed-off-by: Sami Kerola fdisks/sfdisk.c | 39 ++++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 21 deletions(-) commit 345e4af46f335e516a586412ce7c9a468f9d371e Author: Sami Kerola Date: Sun Jun 16 19:53:43 2013 +0100 sfdisk: use libc error printing function, and symbolic exit values The commit removes all references to perror(), and replaces them with either warn() or err(). References: http://marc.info/?l=util-linux-ng&m=137060043804592&w=2 Signed-off-by: Sami Kerola fdisks/sfdisk.c | 120 ++++++++++++++++++++------------------------------------ 1 file changed, 43 insertions(+), 77 deletions(-) commit 665b3c85721e8653bef0c41d0f455e1aebbd2208 Author: Sami Kerola Date: Sun Jun 16 19:53:42 2013 +0100 renice: exit with non-zero value when arguments cause warnings This commit also fixes potential error counter wrap, which theoretically could make command to exit with a success when it internally failed just correct amount of times. Signed-off-by: Sami Kerola sys-utils/renice.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 4096946f3b4c502345ff40d22139a0c5b7e11d52 Author: Karel Zak Date: Mon Jun 24 13:28:06 2013 +0200 findmnt: test for fstype/options/maj:min before source and target This change allows to exclude for example NFS mountpoint: findmnt --fstab --target /mnt/foo --type nonfs to stall on a stalled nfs mount. Signed-off-by: Karel Zak misc-utils/findmnt.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) commit 90a0e97c7be9da39fd54600228e006b98667ad56 Author: Karel Zak Date: Tue Jun 18 12:24:28 2013 +0200 eject: Check host_status and driver_status when using SG_IO. Based on Suse patch, originally from Anna Bernathova , May 2008 SG_IO completion status is weird but still well defined. You'll need to check both host_status, driver_status and status to determine that a command actually succeeded. -- Tejun Heo, May 2008 Note that we also need to check driver_status and sense_buffer to detect situation when there is no medium. It's valid request to call eject(8) for device with no medium. References: https://bugzilla.novell.com/show_bug.cgi?id=358033 Signed-off-by: Anna Bernathova Signed-off-by: Karel Zak sys-utils/eject.c | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) commit f61a7d1fa622097d535bf6e9477bfb66767fe429 Author: Benno Schulenberg Date: Fri Jun 14 11:46:09 2013 +0200 agetty: improve wording, grammar and some formatting in man page Signed-off-by: Benno Schulenberg term-utils/agetty.8 | 98 ++++++++++++++++++++++++++--------------------------- 1 file changed, 49 insertions(+), 49 deletions(-) commit 6afe9db4712c1181615601895229489dcf649760 Author: Benno Schulenberg Date: Sat Jun 8 20:10:41 2013 +0200 agetty: fix a kill/erase error in man page and improve clarity Signed-off-by: Benno Schulenberg term-utils/agetty.8 | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) commit 34e38ad0c3be0856d7f62d4550cec0305bca6910 Author: Jari Aalto Date: Fri Jun 14 12:42:27 2013 +0300 pg.c: Add --help and --version [kzak@redhat.com: - use USAGE_{HELP,VERISON} macros] Signed-off-by: Jari Aalto Signed-off-by: Karel Zak text-utils/pg.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) commit 60c021073c884f55f550e94ad2c5a9246fc7e032 Author: Benno Schulenberg Date: Sun Jun 9 10:50:01 2013 +0200 mount: fix mistaken word and some grammar in man page of mount Reported-by: Krzysztof Żelechowski Signed-off-by: Benno Schulenberg sys-utils/mount.8 | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) commit 6b9e5bf670c70690d44b8ce4055e1997fb0b6496 Author: Richard Weinberger Date: Tue Jun 18 10:35:44 2013 +0200 nsenter: Allow selecting the uid and gid to be used in the entered userns Using -S (--setuid) and -G (--setgid) one can select the uid/gid which will be used in the entered user namespace. [kzak@redhat.com: - use setuid/gid unconditionally (always), - update man page] Acked-by: "Eric W. Biederman" Signed-off-by: Richard Weinberger Signed-off-by: Karel Zak sys-utils/nsenter.1 | 8 +++++++- sys-utils/nsenter.c | 21 ++++++++++++++++++++- 2 files changed, 27 insertions(+), 2 deletions(-) commit add1924d5b2a0936202a5d68074d3cf70bcafc8d Author: Karel Zak Date: Mon Jun 17 18:08:01 2013 +0200 cal: fix -y output for UTF8 ... in the yearly() function is a static buffer where is not space for multibyte headers. The patch also clean ups function where we initialize headers. Signed-off-by: Karel Zak misc-utils/cal.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) commit 7ba207e781c7af3945d3a718651b87425685131e Author: Karel Zak Date: Mon Jun 17 13:02:15 2013 +0200 libmount: be robust for empty target/source strings * lib/canonicalize.c: don't interpret empty strings as relative paths * libmount: more robust libmnt_table find function and debug messages References: https://bugzilla.novell.com/show_bug.cgi?id=825150 Signed-off-by: Karel Zak Signed-off-by: Karel Zak lib/canonicalize.c | 7 +++++-- libmount/src/context_umount.c | 13 +++++++++++-- libmount/src/tab.c | 28 ++++++++++++++++------------ sys-utils/umount.c | 5 ++++- 4 files changed, 36 insertions(+), 17 deletions(-) commit d67cc2889a0527b26d7bb8c76f2acac46751d673 Author: Karel Zak Date: Thu Jun 13 15:11:04 2013 +0200 libblkid: support pseudo PARTUUID= for MBR # blkid /dev/sdb1 dev/sdb1: TYPE="ext2" PARTUUID="54e743a7-01" the PARTUUID is generated from MBR Id and partition number. The same method uses Linux kernel for root=PARTUUID= on systems with MBR. Note that the patch also removes 0x prefix from PTUUID. Signed-off-by: Karel Zak libblkid/src/partitions/dos.c | 4 +++- libblkid/src/partitions/partitions.c | 10 ++++++++++ libblkid/src/partitions/partitions.h | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) commit 635c0acc1c9d8524016f86276c99a5e27c9a0022 Author: Karel Zak Date: Thu Jun 13 14:45:36 2013 +0200 libblkid: split blkid_parttable_set_id() to avoid things like strcmp(tab->type, "gpt") in generic code. Signed-off-by: Karel Zak libblkid/src/partitions/gpt.c | 2 +- libblkid/src/partitions/partitions.c | 15 ++++++++++----- libblkid/src/partitions/partitions.h | 1 + 3 files changed, 12 insertions(+), 6 deletions(-) commit 834eca4e9147fe045e9defb69c4734ad19d80912 Author: Karel Zak Date: Thu Jun 13 14:36:02 2013 +0200 blkid: export ID_PART_TABLE_UUID Signed-off-by: Karel Zak misc-utils/blkid.c | 3 +++ 1 file changed, 3 insertions(+) commit 6e9dfa41f2b52d0104cae5f7a9839599be64baab Author: Karel Zak Date: Thu Jun 13 14:35:34 2013 +0200 libblkid: set PTUUID for GPT and DOS Signed-off-by: Karel Zak libblkid/src/partitions/dos.c | 24 ++++++++++++++---------- libblkid/src/partitions/gpt.c | 12 ++++++++---- 2 files changed, 22 insertions(+), 14 deletions(-) commit 62e83b1d44bd732a6a39ca146456f29ef3efd079 Author: Karel Zak Date: Thu Jun 13 14:35:05 2013 +0200 libblkid: add functions to set PTUUID Signed-off-by: Karel Zak libblkid/src/partitions/partitions.c | 54 +++++++++++++++++++++++++++++++++++- libblkid/src/partitions/partitions.h | 4 +++ 2 files changed, 57 insertions(+), 1 deletion(-) commit 9c06cdbf61465509df37c6c58694ce8ea07ed943 Author: Karel Zak Date: Thu Jun 13 14:33:47 2013 +0200 libblkid: make uuid_is_empty() usable for whole library Signed-off-by: Karel Zak libblkid/src/blkidP.h | 2 ++ libblkid/src/probe.c | 10 ++++++++++ libblkid/src/superblocks/superblocks.c | 15 ++------------- 3 files changed, 14 insertions(+), 13 deletions(-) commit 9d07f58d5fc1242b7f026fe21ed0fc008e4290ff Author: ihno Date: Fri Jun 7 20:29:42 2013 +0200 mkfs.bfs: fix 64-Bit and endian problems [kzak@redhat.com: - use cpu_to_leXX() macros rather than htoleXX()] Signed-off-by: Karel Zak disk-utils/mkfs.bfs.c | 70 +++++++++++++++++++++++++++------------------------ 1 file changed, 37 insertions(+), 33 deletions(-) commit 321063178971c4c200d4260ddcc207915f9dbba0 Merge: 8c9c527 e41e0f9 Author: Karel Zak Date: Thu Jun 13 13:32:02 2013 +0200 Merge branch 'master' of https://github.com/eric-s-raymond/util-linux * 'master' of https://github.com/eric-s-raymond/util-linux: Fix broken list syntax. Restore use of correct alternation syntax using { | }. Re-layout a FILES section in the traditional style. Remove another .ti for .RS/.RE, and remove a .TP that broke list parsing. Replace .IP o with .IP \(bu, using the [nt]roff bullet character. Replace .ti operations with equivalent .RS/.RE pairs. commit 8c9c5277746a828c498cabf56f40ea14df37e824 Author: Nathan Rossi Date: Fri Jun 7 14:08:06 2013 +1000 fdisk: add support for the MicroBlaze architecture Add support to fdisk for the MicroBlaze architecture. Signed-off-by: Nathan Rossi fdisks/fdiskbsdlabel.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 12272030e563201e0b06732d8a87d8cea7157a04 Author: Aaron Lu Date: Thu Jun 6 16:28:37 2013 +0800 eject: unlock door before issuing CDROMEJECT command If user has inserted a disc into the drive, the drive will normally be locked. When using eject command to eject the drive, we need to unlock the door first, or the CDROMEJECT command will fail. Though the 2nd attmpt to eject the drive with eject_scsi will succeed, it actually does two things: first to unlock the door and then to eject the tray, both with the SG_IO ioctl. The problem is, Linux SCSI driver keeps track of if a device is in locked state or not, if we go with SG_IO to do the unlocking, the driver will not be aware of the unlocking and would think the drive is locked while actually it has already been unlocked by the first SG_IO command. Fix this by issuing a unlock door command before the CDROMEJECT command in cdrom_eject. Prior to this fix, the following output is expected when there is a disc inside: [aaron@aaronlu util-linux-2.22.2]$ eject -v /dev/sr0 eject: device name is `/dev/sr0' eject: /dev/sr0: mounted on /run/media/aaron/CD_ROM eject: /dev/sr0: is whole-disk device eject: /dev/sr0: is removable device eject: /run/media/aaron/CD_ROM: unmounting eject: /dev/sr0: trying to eject using CD-ROM eject command eject: CD-ROM eject command failed eject: /dev/sr0: trying to eject using SCSI commands eject: SCSI eject succeeded After this fix, the following output is expected: [aaron@aaronlu util-linux-2.22.2]$ ./eject -v /dev/sr0 lt-eject: device name is `/dev/sr0' lt-eject: /dev/sr0: mounted on /run/media/aaron/CD_ROM lt-eject: /dev/sr0: is whole-disk device lt-eject: /dev/sr0: is removable device lt-eject: /run/media/aaron/CD_ROM: unmounting lt-eject: /dev/sr0: trying to eject using CD-ROM eject command lt-eject: CD-ROM eject command succeeded And the SCSI device's locked state is correct now. Signed-off-by: Aaron Lu sys-utils/eject.c | 3 +++ 1 file changed, 3 insertions(+) commit 714cff30fd94d7fe6c7a8c6a1b4aa6cc8abd2ca7 Author: Karel Zak Date: Thu Jun 13 11:06:13 2013 +0200 agetty: use O_NONBLOCK only for serial lines with CLOCAL * regression introduced by ef264c830effc91add6da334204215f61eb8515e * also increase sleep when O_NONBLOCK used (grr.. this is so stupid thing, do we really need O_NONBLOCK for the stupid serial lines?) References: https://bugzilla.redhat.com/show_bug.cgi?id=972457 Signed-off-by: Karel Zak term-utils/agetty.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) commit 76b86412c607ba47f43ef7c0535436bca2a660d2 Author: Karel Zak Date: Wed Jun 12 17:32:03 2013 +0200 fdisk: don't use ptes[] in generic code ... the array is MBR specific. Signed-off-by: Karel Zak fdisks/fdisk.c | 6 +++--- fdisks/fdiskdoslabel.c | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) commit e41e0f9597b21e12d300371875e33b98dbb6f56d Author: Eric S. Raymond Date: Mon Jun 10 17:51:31 2013 -0400 Fix broken list syntax. Bodiless .TP entries and unterminated .TP lists interfere with page parsing. sys-utils/unshare.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7a5f441b1d05c7a265ce7e196accfa695e8278d7 Author: Eric S. Raymond Date: Mon Jun 10 17:18:15 2013 -0400 Restore use of correct alternation syntax using { | }. This is required in order for ther synopsis to be translated into the corresponding XML markup. sys-utils/ipcrm.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 48cb48dcf23f62abab39975284966cb226fb8cd5 Author: Eric S. Raymond Date: Mon Jun 10 15:58:25 2013 -0400 Re-layout a FILES section in the traditional style. term-utils/agetty.8 | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) commit e438668bd9b3e20f90a52c819b7dd9d236dd4b6d Author: Eric S. Raymond Date: Mon Jun 10 15:55:45 2013 -0400 Remove another .ti for .RS/.RE, and remove a .TP that broke list parsing. term-utils/agetty.8 | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) commit 12e45a05128d649e2ccaccd3e32b9a6b866111c6 Author: Eric S. Raymond Date: Mon Jun 10 15:48:41 2013 -0400 Replace .IP o with .IP \(bu, using the [nt]roff bullet character. This will improve the quality of generated HTML. There is a cost, which is that most terminal emulators will just display the bullet as a (less visible) dot. An alternative to this change would be to use a * character for the bullet. term-utils/agetty.8 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) commit f9da2801b62f939b649e014d11bd3354fc485489 Author: Eric S. Raymond Date: Mon Jun 10 15:42:06 2013 -0400 Replace .ti operations with equivalent .RS/.RE pairs. This change makes automatic lifting to XML-DocBook possible, and should enable generation of better-quality HTML from these pages. term-utils/agetty.8 | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) commit 97b820bffdd915893c7e6eeb9cbdcbf3388862fa Author: Benno Schulenberg Date: Wed Jun 5 21:58:13 2013 +0200 textual: improve clarity of some error messages Reported-by: Petr Písař Signed-off-by: Benno Schulenberg disk-utils/mkfs.cramfs.c | 6 +++--- disk-utils/mkfs.minix.c | 2 +- login-utils/sulogin.c | 6 +++--- misc-utils/findmnt.c | 2 +- sys-utils/losetup.c | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) commit 536dd3250e51911c1684f4fdb4f2f62027ed5525 Author: Sami Kerola Date: Sun Jun 2 18:51:25 2013 +0100 cal: fix few type mismatches Sloppiness from commit e44fe4712140774b677de466affc31e0581ee335. Signed-off-by: Sami Kerola misc-utils/cal.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit 67c47dff7a783df15986ee2c49231e0d905a89d0 Author: Sami Kerola Date: Sun Jun 2 18:51:18 2013 +0100 rev: reduce stream checking when closing read-only file descriptor Signed-off-by: Sami Kerola text-utils/rev.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) commit b2e081ce0f81f6c4d6601665bfa447da28973bf3 Author: Sami Kerola Date: Sun Jun 2 18:51:17 2013 +0100 rev: simplify new line detection and impossible test The new line detection is earlier using only '\n' so there should not be need to search for '\r' later. The detection whether allocated address is pointing to null seems to be unnecessary. Assuming xmalloc() returned valid address space the address should never be 0. Signed-off-by: Sami Kerola text-utils/rev.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) commit 7c7061f7713e47b435ce1924b225fb64d1ae56d5 Author: Sami Kerola Date: Sun Jun 2 18:51:16 2013 +0100 rev: stop adding new line at the end when input does not have it When the rev(1) is executed twice outcome is expected to be exactly what it was originally. That includes not adding new line at the end of the output. The oneliner below demonstrates earlier issue. $ printf "abc\n123" | rev | rev Signed-off-by: Sami Kerola tests/expected/misc/rev | 4 +++- tests/ts/misc/rev | 2 ++ text-utils/rev.c | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) commit e4b768c75c8870c8275abebd45e483e7a348e105 Author: Sami Kerola Date: Sun Jun 2 18:51:09 2013 +0100 docs: add lscpu max mhz to manual and bash completion Signed-off-by: Sami Kerola bash-completion/lscpu | 3 ++- sys-utils/lscpu.1 | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) commit 44320710bdb98a3036e8297d0e0af043fb72d702 Author: Sami Kerola Date: Sun Jun 2 18:51:08 2013 +0100 lscpu: add max MHz value to make cpu governor effects more visible The existing 'CPU MHz' is usually dynamic value, which CPU governor changes up on needs of CPU demand. Assuming lscpu is used to gather information to a hardware inventory the dynamic value is misleading. For inventing the maximum MHz value is more sensible. Signed-off-by: Sami Kerola sys-utils/lscpu.c | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) commit d722ce211a068d9d6610c1cc5a518357284ef40e Author: Sami Kerola Date: Sun Jun 2 18:51:07 2013 +0100 lib: remove unused code Signed-off-by: Sami Kerola lib/pager.c | 10 ---------- 1 file changed, 10 deletions(-) commit c927a0b9e715eb975035697c67bcea26c3dd44b2 Author: Benno Schulenberg Date: Thu May 30 22:55:11 2013 +0200 docs: slightly correct the man page of column Signed-off-by: Benno Schulenberg text-utils/column.1 | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) commit dde08a8767b3a0d1ced0d4357a0af6807a67a5f2 Author: Benno Schulenberg Date: Thu May 30 12:40:51 2013 +0200 docs: normalize the formatting of man pages for nsenter and unshare Signed-off-by: Benno Schulenberg sys-utils/nsenter.1 | 106 +++++++++++++++++++++++++--------------------------- sys-utils/unshare.1 | 54 +++++++++++++------------- 2 files changed, 79 insertions(+), 81 deletions(-) commit 4ce393f4d899d44e1deb8c9e04142011c072b4e0 Author: Benno Schulenberg Date: Wed May 29 21:52:56 2013 +0200 textual: fix several typos and angular brackets in messages Signed-off-by: Benno Schulenberg misc-utils/logger.c | 6 +++--- schedutils/chrt.c | 2 +- sys-utils/blkdiscard.c | 2 +- sys-utils/flock.c | 2 +- sys-utils/umount.c | 24 ++++++++++++------------ text-utils/column.c | 6 +++--- 6 files changed, 21 insertions(+), 21 deletions(-) commit 136b23efde7d6f3712bc8929e9a9ad5586be7bbe Author: Benno Schulenberg Date: Wed May 29 21:43:49 2013 +0200 textual: harmonize some loop-device error messages Signed-off-by: Benno Schulenberg sys-utils/losetup.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit cd3ef11ffd087f9606b86b185028eb82a80a62fa Author: Yuri Chornoivan Date: Wed May 29 21:38:00 2013 +0300 mount: (deprecated) fix typo tailed->failed Signed-off-by: Yuri Chornoivan mount-deprecated/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8960f3ae5f4d72be88ee76e50417785e836b35e8 Author: Ondrej Oprala Date: Fri May 17 10:50:58 2013 +0200 su: fix exit status if terminated by signal [kzak@redhat.com: - add comment] Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak login-utils/su-common.c | 56 ++++++++++++++++++++++++++++++++++++------------- login-utils/su.1 | 9 ++++++++ 2 files changed, 50 insertions(+), 15 deletions(-) commit 80591bf61e36b9845bf2776daa67b05eab88d675 Author: Benno Schulenberg Date: Wed May 29 20:09:20 2013 +0200 docs: improve grammar and consistency of comments in login.c Signed-off-by: Benno Schulenberg login-utils/login.c | 162 +++++++++++++++++++++++++--------------------------- 1 file changed, 77 insertions(+), 85 deletions(-) commit 1b435f38ef82ce0899a736b84faa202641ea1e9c Author: Benno Schulenberg Date: Wed May 29 19:53:38 2013 +0200 textual: tiny alphabetical and grammatical tweak Signed-off-by: Benno Schulenberg login-utils/su-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit bb3e58088aa7f924c0d1fbb6adadba580c3202e4 Author: Benno Schulenberg Date: Wed May 29 19:47:48 2013 +0200 textual: standardize the spelling of "superuser" Signed-off-by: Benno Schulenberg login-utils/su-common.c | 2 +- sys-utils/renice.1 | 6 +++--- term-utils/wall.1 | 2 +- term-utils/write.1 | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) commit 63578526a17a757396a7acc783c2b2ae035caea3 Author: Benno Schulenberg Date: Wed May 29 19:46:23 2013 +0200 textual: standardize synopsis for login, and improve an error message Signed-off-by: Benno Schulenberg login-utils/login.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 9ba27b269e2ba828f39bd4c82004441ae283c408 Author: Karel Zak Date: Fri Jun 7 11:26:46 2013 +0200 runuser: update man page, add note about -l vs. -p Reported-by: Bernhard Voelker Signed-off-by: Karel Zak login-utils/runuser.1 | 1 + 1 file changed, 1 insertion(+) commit c5bb244ea3f9fe8d4dbe07080ec811e232629ff8 Author: Karel Zak Date: Wed Jun 5 14:31:00 2013 +0200 login: use TCSANOW to remove HUPCL Fedora 19, kernel 3.9, systemd 204, telnetd with socket activation. login(1) code: ttt.c_cflag &= ~HUPCL; tcsetattr(0, TCSAFLUSH, &ttt); close(STDIN_FILENO); close(STDOUT_FILENO); close(STDERR_FILENO); signal(SIGHUP, SIG_IGN); /* so vhangup() wont kill us */ vhangup(); signal(SIGHUP, SIG_DFL); strace : ioctl(0, SNDCTL_TMR_CONTINUE or SNDRV_TIMER_IOCTL_GPARAMS or TCSETSF, {B9600 opost isig icanon echo ...}) = 0 close(0) = 0 close(1) = 0 close(2) = 0 --- SIGHUP {si_signo=SIGHUP, si_code=SI_KERNEL} --- --- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=1, si_uid=0} --- +++ killed by SIGTERM +++ It seems we get SIGHUP (and SIGTERM from systemd) before vhangup(). The problem occur sometimes. I guess it's because TCSAFLUSH is not applied immediately, so it would be probably better to use TCSANOW to make the code more robust. References: https://bugzilla.redhat.com/show_bug.cgi?id=962145 Signed-off-by: Karel Zak login-utils/login.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit b8b8e76806387f4a8f1b8913159d690258a43c86 Author: Karel Zak Date: Mon Jun 3 14:06:18 2013 +0200 agetty: don't remove ECHOCTL from c_lflag It's really unexpected that arrows keys move cursor when agetty/login asks for login name or password. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=969458 Signed-off-by: Karel Zak include/ttyutils.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) commit 4cfda3dce0422f4e43ed904aa40d04695efa8f9f Author: Karel Zak Date: Mon Jun 3 10:04:43 2013 +0200 agetty: update man page and usage() - baud_rate is optional - agetty has been rewritten 2 years ago, so don't blame original authors in the man page Signed-off-by: Karel Zak term-utils/agetty.8 | 43 ++++++++++++++++++++++--------------------- term-utils/agetty.c | 2 +- 2 files changed, 23 insertions(+), 22 deletions(-) commit 8225bb78a631d032121f9d7eed19481220933c88 Author: Karel Zak Date: Thu May 30 13:29:34 2013 +0200 libmount: more robust options string parsing # mount -o=rw /dev/sdb /mnt/test mount: libmount/src/optmap.c:212: mnt_optmap_get_entry: Assertion `namelen' failed. Aborted (core dumped) Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=968786 Signed-off-by: Karel Zak libmount/src/optstr.c | 4 ++-- sys-utils/mount.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) commit 3e5c0a2db233b726ca80d37aad9eeca8bae144d4 Author: Karel Zak Date: Wed May 29 11:32:58 2013 +0200 su: ignore --preserve-environment, it's mutually exclusive to --login Addresses: http://bugs.gnu.org/10317 Reported-by: Bernhard Voelker Signed-off-by: Karel Zak login-utils/su-common.c | 5 +++++ login-utils/su.1 | 1 + 2 files changed, 6 insertions(+) commit 195c36032a313ffdc823d3a3a887fc56d31619b9 Author: Karel Zak Date: Wed May 29 10:56:05 2013 +0200 logger: small coding style changes Signed-off-by: Karel Zak misc-utils/logger.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) commit 925aa9e85d8996a14a188ace521f1c5897f645ff Author: Karel Zak Date: Wed May 29 10:54:51 2013 +0200 logger: cleanup usage() Signed-off-by: Karel Zak misc-utils/logger.c | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) commit 98920f80591b61ffdf7bfd99e2dd824406276e78 Author: Dennis H Jensen Date: Wed May 22 13:12:08 2013 +0200 logger: add support for --prio-prefix when logging stdin This patch adds a new option to logger that will make it look for a priority prefix at the beginning of every line. The priority is a single decimal number formed as explained in syslog(3). If a prefix is found logger will log the message using the found facility and level in that prefix, if the prefix doesn't contain a facility the default facility specified by the -p option will be used. If no prefix is found, logger will use the priority specified by -p. [kzak@redhat.com: - add --prio-prefix to usage() output] Signed-off-by: Dennis H Jensen Signed-off-by: Karel Zak misc-utils/logger.1 | 13 +++++++++++++ misc-utils/logger.c | 45 +++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 54 insertions(+), 4 deletions(-) commit d4be073d191067bf7b36dbe376289e670b3d3206 Author: Karel Zak Date: Tue May 28 15:33:05 2013 +0200 cal: improve coding style - use static for all global variables - use REFORMATION_YEAR macro - make if() lines more readable - etc. Signed-off-by: Karel Zak misc-utils/cal.c | 96 ++++++++++++++++++++++++++++++-------------------------- 1 file changed, 51 insertions(+), 45 deletions(-) commit 201b39f0019ae0fab34459bf6ec8b86773fb0b72 Author: Karel Zak Date: Tue May 28 15:27:22 2013 +0200 cal: simplify colormode parsing Signed-off-by: Karel Zak misc-utils/cal.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) commit b947210258580d06242283d25f28d3a0b2100b9c Merge: 0012e33 3fe71c4 Author: Karel Zak Date: Tue May 28 15:23:59 2013 +0200 Merge branch 'cal-fourth' of git://github.com/kerolasa/lelux-utiliteetit * 'cal-fourth' of git://github.com/kerolasa/lelux-utiliteetit: docs: cal: stop telling year 9999 is upper limit tests: check cal works when year is far in future cal: remove arbitrary limit of maxium year being 9999 cal: use Claus Tøndering's day of the week algorithm cal: simplify day_in_week() calculation cal: mark all functions static cal: stop trimming whitespaces tests: add cal day color corner cases docs: cal: add --color option description to manual page cal: add --color to usage() cal: support --color[={auto,always,never}] cal: de-duplicate julian specific functions cal: remove unnecessary initializations cal: simplify calendar reformat calculations tests: add calendar reformation check cal: clean up use of constants cal: convert function like definitions to functions cal: fix preprocessor directive indendation commit 0012e33c2c55acd9b77c4186867e0a059b093f37 Author: Benno Schulenberg Date: Sat May 18 09:45:11 2013 +0200 textual: fix typo in error message and uniformize their use of period Signed-off-by: Benno Schulenberg misc-utils/uuidd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit 691a8e6f5a02a08e854cfe732f5c420c63a83241 Author: Karel Zak Date: Tue May 28 12:53:35 2013 +0200 getopt: add reference to /usr/share/docs to man page Signed-off-by: Karel Zak misc-utils/getopt.1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit b1d44449886c20ecaa9777f5ec0de71ff09a837c Author: Karel Zak Date: Tue May 28 10:04:16 2013 +0200 lib/tty: fix get_terminal_name() usage, cleanup code Signed-off-by: Karel Zak lib/ttyutils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 3fe71c46c37bf08641e4197571d8a8ef4a10410b Author: Sami Kerola Date: Fri May 24 23:42:07 2013 +0100 docs: cal: stop telling year 9999 is upper limit Signed-off-by: Sami Kerola misc-utils/cal.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 3f7ea919785770a16a5c5f0422b104d289449e58 Author: Sami Kerola Date: Fri May 24 22:54:15 2013 +0100 tests: check cal works when year is far in future Signed-off-by: Sami Kerola tests/expected/cal/bigyear | 206 +++++++++++++++++++++++++++++++++++++++++++++ tests/ts/cal/bigyear | 95 +++++++++++++++++++++ 2 files changed, 301 insertions(+) commit e44fe4712140774b677de466affc31e0581ee335 Author: Sami Kerola Date: Fri May 24 22:52:16 2013 +0100 cal: remove arbitrary limit of maxium year being 9999 The change limits year to be unsigned long. In case a year + month name exceed a column width two lines are used for them. Signed-off-by: Sami Kerola misc-utils/cal.c | 121 ++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 80 insertions(+), 41 deletions(-) commit 91ac9ef5db449b38e679e85483f2dc6d9a56e1ce Author: Sami Kerola Date: Wed May 22 22:59:01 2013 +0100 cal: use Claus Tøndering's day of the week algorithm Reference: http://en.wikipedia.org/wiki/Determination_of_the_day_of_the_week#T.C3.B8ndering.27s_algorithm Signed-off-by: Sami Kerola misc-utils/cal.c | 50 ++++++++++++++++++++------------------------------ 1 file changed, 20 insertions(+), 30 deletions(-) commit d68f076f1c362847a5e96abbfe3f51b23e7b72e6 Author: Sami Kerola Date: Mon Apr 29 22:30:51 2013 +0100 cal: simplify day_in_week() calculation The day_in_week() can be made easier to read, and should return invalid weekday at the time of missing 11 days at September 1752. Reported-by: Thomas Bächler References: http://www.spinics.net/lists/util-linux-ng/msg07910.html Signed-off-by: Sami Kerola misc-utils/cal.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit 8ea0caa2fb09db4dcf584565dd882955c92297c0 Author: Sami Kerola Date: Sun Apr 28 21:11:12 2013 +0100 cal: mark all functions static Proposed-by: Dave Reisner Reference: http://marc.info/?l=util-linux-ng&m=136717012419551&w=2 Signed-off-by: Sami Kerola misc-utils/cal.c | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) commit 224687082e6c519c8f24b471ca51c7679a75dc00 Author: Sami Kerola Date: Sun Apr 28 15:35:26 2013 +0100 cal: stop trimming whitespaces Remove trailing spaces from output it is trivial cal | sed 's/ *$//' but padding them back is difficult. CC: Pádraig Brady Signed-off-by: Sami Kerola misc-utils/cal.c | 19 +--- tests/expected/cal/1m | 48 ++++----- tests/expected/cal/3m | 48 ++++----- tests/expected/cal/color | 72 ++++++------- tests/expected/cal/sep1752 | 264 ++++++++++++++++++++++----------------------- tests/expected/cal/year | 240 ++++++++++++++++++++--------------------- 6 files changed, 337 insertions(+), 354 deletions(-) commit f35ece141e1cade1b5029047fa0e9200301fa099 Author: Sami Kerola Date: Thu May 2 19:16:47 2013 +0100 tests: add cal day color corner cases Check that the first, andn last, possible dates and strange Sep 1752 dates are highlighted correctly. Signed-off-by: Sami Kerola tests/expected/cal/color | 55 +++++++++++++++++++++++++++++++++++++++ tests/ts/cal/color | 68 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 123 insertions(+) commit e47346ff19984b2bf466ca043c105bcce1154f0f Author: Sami Kerola Date: Wed May 1 23:12:16 2013 +0100 docs: cal: add --color option description to manual page Signed-off-by: Sami Kerola misc-utils/cal.1 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) commit 201d43fd12f556e0bf2ef8955073627ab7f74004 Author: Sami Kerola Date: Wed May 1 23:07:21 2013 +0100 cal: add --color to usage() And clean up the usage() function. Signed-off-by: Sami Kerola misc-utils/cal.c | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) commit 7b353df28d2d1bc8497a801602c3128ee3cca2d2 Author: Sami Kerola Date: Tue May 7 21:34:57 2013 +0100 cal: support --color[={auto,always,never}] Similar with dmesg commit 9bc2b51a06dc9cf6244106ac489ab08a91fd4360. CC: Pádraig Brady Reviewed-by: Karel Zak Signed-off-by: Sami Kerola misc-utils/Makemodule.am | 2 +- misc-utils/cal.c | 19 +++++++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) commit b283141c90c0e7876cd35b497caa3095d90564b9 Author: Sami Kerola Date: Sun Apr 28 14:09:50 2013 +0100 cal: de-duplicate julian specific functions The cost is a little bit more complex functions, while the benefit is couple data flows fewer to mind about. Signed-off-by: Sami Kerola misc-utils/cal.c | 119 +++++++++++++++++++++---------------------------------- 1 file changed, 45 insertions(+), 74 deletions(-) commit 7c0726d7e60aa3e623d863cd1228bbaffea8b27e Author: Sami Kerola Date: Sun Apr 28 12:47:55 2013 +0100 cal: remove unnecessary initializations Signed-off-by: Sami Kerola misc-utils/cal.c | 7 ------- 1 file changed, 7 deletions(-) commit e8c58289d96b89ce52ced50e71b589b661cf31e4 Author: Sami Kerola Date: Sun Apr 28 11:59:59 2013 +0100 cal: simplify calendar reformat calculations The only September 1752 offset calculation that is necessary is whether Sun or Mon is the first day of the week. Signed-off-by: Sami Kerola misc-utils/cal.c | 41 +++++++++++++++-------------------------- 1 file changed, 15 insertions(+), 26 deletions(-) commit f69e869801e6217ef666e685ad2cf01b4ccb7d3b Author: Sami Kerola Date: Sun Apr 28 11:19:28 2013 +0100 tests: add calendar reformation check Signed-off-by: Sami Kerola tests/expected/cal/sep1752 | 198 +++++++++++++++++++++++++++++++++++++++++++++ tests/ts/cal/sep1752 | 95 ++++++++++++++++++++++ 2 files changed, 293 insertions(+) commit 5f845cb765f246f0f83d678385ab6f87e05edf73 Author: Sami Kerola Date: Sun Apr 28 09:06:40 2013 +0100 cal: clean up use of constants The commit also adds few new symbolic names, such as DAYS_IN_WEEK. While these definitions may look a little too trivial to have I am sure they ease understanding what is going on in code where they are used. Reviewed-by: Thomas Bächler Signed-off-by: Sami Kerola misc-utils/cal.c | 141 ++++++++++++++++++++++++++++++++----------------------- 1 file changed, 81 insertions(+), 60 deletions(-) commit 3b66dfd6bb4abe6304c366809f4b9613fdc62eab Author: Sami Kerola Date: Sat Apr 27 22:51:35 2013 +0100 cal: convert function like definitions to functions Reviewed-by: Thomas Bächler Reviewed-by: Dave Reisner Signed-off-by: Sami Kerola misc-utils/cal.c | 45 ++++++++++++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 17 deletions(-) commit 4aefe5e88e4f986082e2c8e7fe208853204fec32 Author: Sami Kerola Date: Sat Apr 27 22:09:24 2013 +0100 cal: fix preprocessor directive indendation And code within the blocks selected by preprocessor to be live code. Signed-off-by: Sami Kerola misc-utils/cal.c | 81 +++++++++++++++++++++++++++----------------------------- 1 file changed, 39 insertions(+), 42 deletions(-) commit ef264c830effc91add6da334204215f61eb8515e Author: Karel Zak Date: Thu May 23 09:25:06 2013 +0200 agetty: allow full control on CLOCAL flag Now the -L option allows to explicitly enable CLOCAL flag. Unfortunately sometimes it's necessary to clear the flag. This patch add optional argument = to specify 'auto', 'always' and 'never' to control CLOCAL flag. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=816342 Signed-off-by: Karel Zak term-utils/agetty.8 | 14 ++++++++++++-- term-utils/agetty.c | 44 +++++++++++++++++++++++++++++++++++++------- 2 files changed, 49 insertions(+), 9 deletions(-) commit e992a7b20d6a17bde321f30b53e9d3a480e94fed Author: Gilles Espinasse Date: Mon May 13 16:52:28 2013 +0200 tests: new warning fix 2.23 added -Wstrict-prototypes check. Fix make check showing CC tests/helpers/test_md5.o tests/helpers/test_md5.c:8: warning: function declaration isn't a prototype Signed-off-by: Gilles Espinasse tests/helpers/test_md5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 34228e6972032862be093748a7cef8ca3ac7c7d1 Author: Gilles Espinasse Date: Mon May 13 16:51:08 2013 +0200 util-linux minor typo fixes Signed-off-by: Gilles Espinasse Documentation/releases/v2.23-ReleaseNotes | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit bdd384d10d4991b7a7b3ae73c8527b18311f6ec4 Author: Karel Zak Date: Tue May 21 11:32:29 2013 +0200 build-sys: always check for setns() and unshare() libs functions $ ./configure --disable-unshare $ make nsenter CC sys-utils/nsenter.o In file included from sys-utils/nsenter.c:36:0: ./include/namespace.h:31:19: error: static declaration of ‘unshare’ follows non-static declaration In file included from /usr/include/sched.h:42:0, from sys-utils/nsenter.c:23: /usr/include/bits/sched.h:86:12: note: previous declaration of ‘unshare’ was here make: *** [sys-utils/nsenter.o] Error 1 We have to always check for the libc function independently on --disable-{unshare,nsenter} to avoid collision between local and libc declarations. Reported-by: "Gabor Z. Papp" Signed-off-by: Karel Zak configure.ac | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) commit 857d9cdf494a599fb2e0a7a28ebe5b65a67b11c8 Author: Karel Zak Date: Mon May 20 16:41:19 2013 +0200 lscpu: add virtualization types Signed-off-by: Karel Zak sys-utils/lscpu.c | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) commit fb2627cec4c85e9af30df417e6bda0e98b6cd0be Author: Ondrej Oprala Date: Mon Apr 22 08:18:24 2013 -0400 lscpu: detect more hypervisor vendors [kzak@redhat.com: - cleanup coding style, - use path_exist()] Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak include/pathnames.h | 2 + sys-utils/Makemodule.am | 5 +- sys-utils/lscpu-dmi.c | 272 ++++++++++++++++++++++++++++++++++++++++++++++++ sys-utils/lscpu.c | 72 ++++++++++--- sys-utils/lscpu.h | 21 ++++ 5 files changed, 356 insertions(+), 16 deletions(-) commit e1d58c7796e2a2229fb41d1b4d31798ba36fd6de Author: Sami Kerola Date: Sat Apr 13 20:54:32 2013 +0100 cfdisk: add long options to the command Includes update to bash completion, and manual as well. [kzak@redhat.com: - remove <<< syntax from bash-completion script] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak bash-completion/cfdisk | 24 ++++++++++++----- fdisks/cfdisk.8 | 18 ++++++------- fdisks/cfdisk.c | 71 ++++++++++++++++++++++++++++++-------------------- 3 files changed, 70 insertions(+), 43 deletions(-) commit 4df7954d47e08aabae993e7fe0193f08c83b2ff0 Author: Karel Zak Date: Mon May 20 13:10:52 2013 +0200 sfdisk: don't call BLKRRPART for non-block devices Reported-by: Bertrand Jacquin Signed-off-by: Karel Zak fdisks/sfdisk.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit bcb693de80ca5b7a4e1c3ad4ce69f070568b27f0 Author: Karel Zak Date: Wed May 15 00:18:27 2013 +0200 uuidd: clean up error messages Signed-off-by: Karel Zak misc-utils/Makemodule.am | 2 +- misc-utils/uuidd.c | 77 +++++++++++++++++++----------------------------- 2 files changed, 32 insertions(+), 47 deletions(-) commit 28b856ff886a5aa3024124f92610137fa04879ac Author: Karel Zak Date: Tue May 14 23:54:07 2013 +0200 mkfs.cramfs: use standard error message Signed-off-by: Karel Zak disk-utils/mkfs.cramfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 41a8ff088b0fa3251bb802c7359a7b57e95fef5e Author: Karel Zak Date: Tue May 14 23:41:32 2013 +0200 hwclock: use warn() to print cmos errors Signed-off-by: Karel Zak sys-utils/hwclock-cmos.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) commit 9104cd2850dcda7663f9553c8fa348d4184d6229 Author: Karel Zak Date: Tue May 14 23:40:51 2013 +0200 libmount: use err.h in test Signed-off-by: Karel Zak libmount/src/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 69e74525bb3212944feebc8c2848317e04d95ec0 Author: Karel Zak Date: Tue May 14 23:33:59 2013 +0200 chcpu: clean up error messages Signed-off-by: Karel Zak sys-utils/chcpu.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit 4b3624ca21cc253da048b39eaeb3613fe5426536 Author: Karel Zak Date: Tue May 14 23:29:09 2013 +0200 sulogin: clean up error messages Signed-off-by: Karel Zak login-utils/sulogin.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 84992b8ad654e0215811eed799fb51d5150a9522 Author: Karel Zak Date: Tue May 14 15:51:35 2013 +0200 libblkid: add ReFS magic string Reported-by: "Richard W.M. Jones" Signed-off-by: Karel Zak libblkid/src/Makemodule.am | 1 + libblkid/src/superblocks/refs.c | 26 ++++++++++++++++++++++++++ libblkid/src/superblocks/superblocks.c | 1 + libblkid/src/superblocks/superblocks.h | 1 + 4 files changed, 29 insertions(+) commit 08af448f5cfa8758f172fcffdeb08511d69499a8 Author: Karel Zak Date: Tue May 14 15:03:30 2013 +0200 blkid: fix typo in ID_FS_AMBIVALEN= Signed-off-by: Karel Zak misc-utils/blkid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0b56c459568405213085d8f7ec1f76b7a85d7907 Author: Karel Zak Date: Tue May 14 10:32:56 2013 +0200 libmount: don't ignore root fs on umount -a The release v2.22 (the new umount) introduces a regression when root fs is excluded from umount --all. There is not reason for this exception. The libmount should be smart enough to disable mtab update after rootfs umount. Reported-by: Bruce Dubbs Signed-off-by: Karel Zak libmount/src/context_umount.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) commit 507341f83296f0e7786d8bfbb5d77a4de1666f3f Author: Karel Zak Date: Mon May 13 15:40:57 2013 +0200 lib/tty: don't hardcode terminal fd in get_terminal_name() Signed-off-by: Karel Zak include/ttyutils.h | 3 ++- lib/ttyutils.c | 5 +++-- login-utils/login.c | 2 +- login-utils/su-common.c | 4 ++-- 4 files changed, 8 insertions(+), 6 deletions(-) commit 66083665d55af12bb1260b86d761eaa2639fad72 Author: Mike Frysinger Date: Wed May 8 18:12:04 2013 -0400 standard SEE ALSO section of man pages The standard format is to seperate each entry with a comma, and for each one to be on a line by itself. Most util-linux pages follow this, but a few do not. Signed-off-by: Mike Frysinger disk-utils/mkfs.bfs.8 | 2 +- libblkid/libblkid.3 | 2 +- misc-utils/blkid.8 | 4 ++-- misc-utils/findfs.8 | 3 +-- misc-utils/lslocks.8 | 4 ++-- misc-utils/wipefs.8 | 3 +-- sys-utils/setpriv.1 | 2 +- sys-utils/switch_root.8 | 6 +++--- text-utils/tailf.1 | 3 ++- 9 files changed, 14 insertions(+), 15 deletions(-) commit 460c7afb79075bd5b39e7d4bc153aa41c939bab3 Author: Karel Zak Date: Mon May 13 13:33:41 2013 +0200 lsblk: add SERIAL column ... to return short serial number of the disk (from udev db) Addresses: https://github.com/karelzak/util-linux/issues/33 Signed-off-by: Karel Zak misc-utils/lsblk.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) commit 8810d532a86e60e42bb8862360d0b7328df8a6e2 Author: Karel Zak Date: Mon May 13 13:13:24 2013 +0200 tests: add losetup tests Signed-off-by: Karel Zak tests/commands.sh | 1 + tests/expected/losetup/losetup | 0 tests/expected/losetup/losetup-blkdev | 3 + tests/expected/losetup/losetup-blkdev-offset | 3 + tests/expected/losetup/losetup-blkdev-section | 3 + tests/expected/losetup/losetup-blkdev-sizelimit | 3 + tests/expected/losetup/losetup-file | 3 + tests/expected/losetup/losetup-file-offset | 3 + tests/expected/losetup/losetup-file-section | 3 + tests/expected/losetup/losetup-file-secton | 3 + tests/expected/losetup/losetup-file-sizelimit | 3 + tests/ts/losetup/losetup | 131 ++++++++++++++++++++++++ 12 files changed, 159 insertions(+) commit 9f56106df6b49864ba604f6824f9fad5aeabd17a Author: Karel Zak Date: Mon May 13 12:00:24 2013 +0200 losetup: add --raw and --noheadings Signed-off-by: Karel Zak sys-utils/losetup.8 | 10 ++++++++-- sys-utils/losetup.c | 39 +++++++++++++++++++++++++++++---------- 2 files changed, 37 insertions(+), 12 deletions(-) commit b048b8af3a5568c90f6e0c2d56f6cb399dedb0d1 Author: Karel Zak Date: Mon May 13 11:00:47 2013 +0200 losetup: use warn_size() for regular files only Signed-off-by: Karel Zak sys-utils/losetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit e3b6cb87e0ba1304fa07ec316784de1c6243b28e Author: Karel Zak Date: Mon May 13 10:54:41 2013 +0200 lib/loopdev: fix loopcxt_check_size() to work with blkdevs The loopcxt_check_size() is workaround for kernels < v3.9, kernel has been fixed by commit 541c742a7559eb65f0e36d3e2338c2ca532a3e61. The function sets loopdev size according to backing file size. The problem is that the backing file could be a block device where stat.st_size is zero, so we have to use blkdev_get_size() for block devices. Addresses: https://bugs.archlinux.org/task/35193 Reported-by: Dave Reisner Signed-off-by: Karel Zak lib/loopdev.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) commit 5673f30de61598def3f50c4285e09e70f5706d48 Author: Karel Zak Date: Thu May 9 13:19:58 2013 +0200 libfdisk: don't re-allocate range string in Ask API Signed-off-by: Karel Zak libfdisk/src/ask.c | 13 +++---------- libfdisk/src/fdiskP.h | 2 +- 2 files changed, 4 insertions(+), 11 deletions(-) commit 4fb18cde32a6cb672090762c785d89a6ed02ef57 Author: Karel Zak Date: Thu May 9 13:06:02 2013 +0200 libfdisk: do not use va_list in the Ask API # fdisk /dev/sda Welcome to fdisk (util-linux 2.23). [...] Command (m for help): a Segmentation fault (core dumped) It's too fragile, the va_list implementation is architecture specific and it seems we need such thing in libfdisk at all. Reported-by: "Gabor Z. Papp" Signed-off-by: Karel Zak fdisks/fdisk-ask.c | 13 +++---------- libfdisk/src/ask.c | 35 +++++++++-------------------------- libfdisk/src/fdiskP.h | 2 -- libfdisk/src/libfdisk.h | 2 -- 4 files changed, 12 insertions(+), 40 deletions(-) commit a21aa92fd4ba5b972c0ebd65e6b015131ca7c4e6 Author: Karel Zak Date: Thu May 9 09:22:50 2013 +0200 libmount: use MS_SILENT for /{proc,etc}/filesystems mount(8) needs to be doing silent mounts when doing this brute forcing or when the filesystem is not explicitly specified. Reported-by: Eric Sandeen Signed-off-by: Karel Zak libmount/src/context_mount.c | 4 +++- sys-utils/mount.8 | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) commit 7697771d8f1df3576c73153f392285bb8973c117 Author: Karel Zak Date: Tue May 7 09:50:22 2013 +0200 build-sys: use -Wno-clobbered for some BSD crap * extend UL_WARN_ADD() for accept non-default CFLAGS variable * add BSD_WARN_CFLAGS with -Wno-clobbered * use all this for pg(1) and more(1) Signed-off-by: Karel Zak configure.ac | 3 +++ m4/compiler.m4 | 7 ++++--- text-utils/Makemodule.am | 2 ++ 3 files changed, 9 insertions(+), 3 deletions(-) commit b7faf99128c6dd5c01e58de6227fd5ab42f5602c Author: Karel Zak Date: Tue May 7 09:09:35 2013 +0200 lib/colors: add colormode_or_err() ... to make the code easy to use in utils. Signed-off-by: Karel Zak include/colors.h | 1 + lib/colors.c | 24 +++++++++++++++--------- sys-utils/dmesg.c | 9 +++------ 3 files changed, 19 insertions(+), 15 deletions(-) commit a971fa18b63f62b8aa6b8d5ab3df299dfc630270 Author: Davidlohr Bueso Date: Sun May 5 12:46:51 2013 -0700 prlimit: delete rem_prlim prototype We can just move the function up before any of its callers. Signed-off-by: Davidlohr Bueso sys-utils/prlimit.c | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) commit b77ce61eb31e3b7ab8295e848ef741e43b16ca87 Author: Mike Frysinger Date: Sat May 4 00:49:34 2013 -0400 docs: note ddate removal Signed-off-by: Mike Frysinger Documentation/releases/v2.23-ReleaseNotes | 3 +++ 1 file changed, 3 insertions(+) commit 30b44cf1e7bcf7b96b5ca5307e7c684f6dd93890 Author: Sami Kerola Date: Thu May 2 19:55:03 2013 +0100 dmesg: fix usage() typo Signed-off-by: Sami Kerola sys-utils/dmesg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9bc2b51a06dc9cf6244106ac489ab08a91fd4360 Author: Karel Zak Date: Mon May 6 19:11:28 2013 +0200 dmesg: support --color[={auto,always,never}] Signed-off-by: Karel Zak sys-utils/dmesg.1 | 5 +++-- sys-utils/dmesg.c | 19 +++++++++++++------ 2 files changed, 16 insertions(+), 8 deletions(-) commit a10c0434932d41e6e83119ca807a6c2d07b7a044 Author: Karel Zak Date: Mon May 6 19:07:23 2013 +0200 lib/colors: add support for auto, always and never modes ... to implement --color[=] Signed-off-by: Karel Zak include/colors.h | 13 +++++++++- lib/Makemodule.am | 4 +++ lib/colors.c | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 88 insertions(+), 3 deletions(-) commit 0bd341508ec1a002b1ae4caf722671c5c5af4be3 Author: Benno Schulenberg Date: Mon Apr 22 10:06:36 2013 +0200 su: consistent angular brackets and lowercase in help text of 'su' Signed-off-by: Benno Schulenberg login-utils/su-common.c | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) commit aab691cf8deb4a53782a0317b6f96c5d8b61f8e9 Author: Karel Zak Date: Mon May 6 17:20:03 2013 +0200 libblkid: fix blkid_parse_tag_string() to ignore incomplete tags fstab entry: FOO= / btrfs defaults 1 1 Program received signal SIGABRT, Aborted. 0x00007f016ccd8819 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 56 return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig); (gdb) bt at ../sysdeps/unix/sysv/linux/libc_fatal.c:196 Reported-by: Kay Sievers Signed-off-by: Karel Zak libblkid/src/tag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit a48c321dd175d043fb4572bab625631b2055075e Author: Benno Schulenberg Date: Fri Apr 19 20:14:59 2013 +0200 textual: fixing typos in a warning and an error message Signed-off-by: Benno Schulenberg fdisks/fdiskdoslabel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit bf74d70c64048884cddee77d5a335b1ef73272bb Author: Karel Zak Date: Fri Apr 26 13:54:24 2013 +0200 cfdisk: fix ambiguous code Signed-off-by: Karel Zak fdisks/cfdisk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit d78d040933a013fc3264b014a8629734aac67650 Author: Karel Zak Date: Fri Apr 26 13:47:54 2013 +0200 build-sys: add --disable-setterm Signed-off-by: Karel Zak configure.ac | 10 ++++++++++ term-utils/Makemodule.am | 5 +---- 2 files changed, 11 insertions(+), 4 deletions(-) commit 69f1cad4ca824dbfc560725ee1fb6e12a7c7acef Author: Sami Kerola Date: Sat Apr 13 20:54:43 2013 +0100 libmount: (test) check writing to a file was successful Signed-off-by: Sami Kerola libmount/src/lock.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 7f587afc671cdbcc9712309ae779c3e309d55c32 Author: Sami Kerola Date: Sat Apr 13 20:55:01 2013 +0100 wall: check writing to a file descriptor was successful Signed-off-by: Sami Kerola term-utils/ttymsg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 14699715351070b8b6165d8780d7d5c1d3cdb5b1 Author: Sami Kerola Date: Sat Apr 13 20:55:00 2013 +0100 swapon: check writing to a file descriptor was successful Signed-off-by: Sami Kerola sys-utils/swapon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 05cef8eafbf169a8da1d2831f5ed3d5b1b81aaad Author: Sami Kerola Date: Sat Apr 13 20:54:59 2013 +0100 setpriv: check writing to a file descriptor was successful Signed-off-by: Sami Kerola sys-utils/setpriv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 5f52af507b9ab1799f39b80d5561266ad02216b9 Author: Sami Kerola Date: Sat Apr 13 20:54:58 2013 +0100 fallocate: check writing to a file descriptor was successful Signed-off-by: Sami Kerola sys-utils/fallocate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit de2ca5593179373e433d43cb97cd723a66a5c736 Author: Sami Kerola Date: Sat Apr 13 20:54:57 2013 +0100 swaplabel: check writing to a file descriptor was successful Signed-off-by: Sami Kerola disk-utils/swaplabel.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 833b7e0d8064e2b86ab42d8a9185897bc7f6e507 Author: Sami Kerola Date: Sat Apr 13 20:54:56 2013 +0100 mkswap: unify write check to a file descriptor Signed-off-by: Sami Kerola disk-utils/mkswap.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) commit 616fbb3af81d413c97eef27df4e7b064979a43c9 Author: Sami Kerola Date: Sat Apr 13 20:54:55 2013 +0100 mkfs.minix: check writing to a file descriptor was successful Signed-off-by: Sami Kerola disk-utils/mkfs.minix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 393fb46501daa199b27a4bc534ca6d2aad1f2b3d Author: Sami Kerola Date: Sat Apr 13 20:54:54 2013 +0100 mkfs.cramfs: unify write check to a file descriptor Signed-off-by: Sami Kerola disk-utils/mkfs.cramfs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit 0dfd626f5493146b5f90d7fd6fae7916dca0a866 Author: Sami Kerola Date: Sat Apr 13 20:54:53 2013 +0100 mkfs.bfs: check writing to a file descriptor was successful Signed-off-by: Sami Kerola disk-utils/mkfs.bfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 564dd4af5d9d54e2d174b03abad6324050e20ef7 Author: Sami Kerola Date: Sat Apr 13 20:54:52 2013 +0100 fsck.minix: check writing to a file descriptor was successful Signed-off-by: Sami Kerola disk-utils/fsck.minix.c | 2 ++ 1 file changed, 2 insertions(+) commit 83f210e8f96ec95f2fefc59e48966fa14f1e17a5 Author: Sami Kerola Date: Sat Apr 13 20:54:51 2013 +0100 fsck.cramfs: check writing to a file descriptor was successful Signed-off-by: Sami Kerola disk-utils/fsck.cramfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 3757e57f7b239db040604c402c26ec3a6295116f Author: Sami Kerola Date: Sat Apr 13 20:54:50 2013 +0100 wdctl: check writing to a file descriptor was successful Signed-off-by: Sami Kerola sys-utils/wdctl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit 835d1b7d2e0d7f967d5ece61100dc2e34f244810 Author: Sami Kerola Date: Sat Apr 13 20:54:49 2013 +0100 sfdisk: check writing to a file descriptor was successful Signed-off-by: Sami Kerola fdisks/sfdisk.c | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) commit c8e8b916abf2a7e9313c7ca9e28aaa493f5350ed Author: Sami Kerola Date: Sat Apr 13 20:54:48 2013 +0100 cfdisk: check writing to a file descriptor was successful Signed-off-by: Sami Kerola fdisks/cfdisk.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) commit dd79e7c9d0f9c0d8a6c72a86a8a96b092d59bb45 Author: Sami Kerola Date: Sat Apr 13 20:54:47 2013 +0100 resizepart: check writing to a file descriptor was successful Signed-off-by: Sami Kerola disk-utils/resizepart.c | 5 +++++ 1 file changed, 5 insertions(+) commit 8387429006e14d8e9b71e0fb34128921ed8f3b2a Author: Sami Kerola Date: Sat Apr 13 20:54:46 2013 +0100 partx: check writing to a file descriptor was successful Signed-off-by: Sami Kerola disk-utils/partx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 5efee9d4144752be924e29db03c55a8ae26c6c5b Author: Sami Kerola Date: Sat Apr 13 20:54:45 2013 +0100 fdformat: check writing to a file descriptor was successful Signed-off-by: Sami Kerola disk-utils/fdformat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit f416563b284a9656ed012f6e078d3498b3403781 Author: Sami Kerola Date: Sat Apr 13 20:54:44 2013 +0100 include: add close_fd() for noticing write errors before close() Essentially this helper function is similar to close_stream(), but for file descriptors. When a file descriptors are close()'d status of write is often overlooked. The close_fd() will try to determine what happen to writes with fsync() before closing the file descriptor. Signed-off-by: Sami Kerola include/closestream.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) commit 8d21d9ab8ff65decfd03499a29627b6c9ecb21f2 Author: Sami Kerola Date: Sat Apr 13 20:54:42 2013 +0100 libblkid: check writing to a file was successful Signed-off-by: Sami Kerola libblkid/src/evaluate.c | 4 +++- libblkid/src/save.c | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) commit 944ab4b9316597d4a5616ff2c8d3f90cb1f3e9ad Author: Sami Kerola Date: Sat Apr 13 20:54:41 2013 +0100 pg: check writing to a file was successful Signed-off-by: Sami Kerola text-utils/pg.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) commit 1aba8336c094e26d189ce792606ecbac246209ce Author: Sami Kerola Date: Sat Apr 13 20:54:40 2013 +0100 agetty: check writing to a file was successful Signed-off-by: Sami Kerola term-utils/agetty.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) commit f99b58b3841888703ef41802256b913abd4e3e89 Author: Sami Kerola Date: Sat Apr 13 20:54:39 2013 +0100 setpriv: check writing to a file was successful Signed-off-by: Sami Kerola sys-utils/setpriv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 1d3762ee53b17122f8ca33db4f38094345be5c83 Author: Sami Kerola Date: Sat Apr 13 20:54:38 2013 +0100 cfdisk: check writing to a file was successful Signed-off-by: Sami Kerola fdisks/cfdisk.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) commit af6d26630704afe128e1376dcf35505e29f9b65f Author: Sami Kerola Date: Sat Apr 13 20:54:37 2013 +0100 setsid: exit when control terminal cannot be set Signed-off-by: Sami Kerola sys-utils/setsid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit cdeb4292e9e1c1f1e8ec64097d40307f682311f1 Author: Sami Kerola Date: Sat Apr 13 20:54:36 2013 +0100 hexdump: add long options to the command Includes update to bash completion, and manual as well. Signed-off-by: Sami Kerola bash-completion/hexdump | 22 ++++++++++++++---- text-utils/hexdump.1 | 24 +++++++++---------- text-utils/hexsyntax.c | 61 ++++++++++++++++++++++++++++++++----------------- 3 files changed, 69 insertions(+), 38 deletions(-) commit 637fa4c6cec42adc4fe364732e0a30bc3acb30fa Author: Sami Kerola Date: Sat Apr 13 20:54:34 2013 +0100 setpriv: allow login and group name option arguments For an average user names are easier to use than uid and gid numbers. Signed-off-by: Sami Kerola sys-utils/setpriv.1 | 6 ++++-- sys-utils/setpriv.c | 42 ++++++++++++++++++++++++++++++------------ 2 files changed, 34 insertions(+), 14 deletions(-) commit 930954d87a603628a9836c5963aa4636fc957a56 Author: Sami Kerola Date: Sat Apr 13 20:54:31 2013 +0100 utmpdump: add option to write to a file Signed-off-by: Sami Kerola bash-completion/utmpdump | 2 +- login-utils/utmpdump.1 | 4 ++- login-utils/utmpdump.c | 92 ++++++++++++++++++++++++++++-------------------- 3 files changed, 58 insertions(+), 40 deletions(-) commit d0ed8dc2b99eb660b9e419d1c134ebc4ad0868bd Author: Sami Kerola Date: Sat Apr 13 20:54:30 2013 +0100 blkid, hwclock, ldattach: use program_invocation_short_name Signed-off-by: Sami Kerola misc-utils/blkid.c | 4 +--- sys-utils/hwclock.h | 1 - sys-utils/ldattach.c | 3 --- 3 files changed, 1 insertion(+), 7 deletions(-) commit 2211b13ed87cef802cfa1ed07b5e8a9847cdfb88 Author: Sami Kerola Date: Sat Apr 13 20:54:29 2013 +0100 bash-completion: add mount and umount Signed-off-by: Sami Kerola bash-completion/mount | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++ bash-completion/umount | 60 ++++++++++++++++++++++++++++++++++ 2 files changed, 147 insertions(+) commit ef75bc880e579b977ea0f5e04029e2509a9c0b4a Author: Yuri Chornoivan Date: Thu Apr 11 20:51:39 2013 +0300 Fix various typos fdisks/fdisk-ask.c | 2 +- fdisks/fdiskdoslabel.c | 4 ++-- fdisks/fdisksunlabel.c | 2 +- libfdisk/src/gpt.c | 2 +- libmount/src/context.c | 2 +- misc-utils/lsblk.c | 2 +- sys-utils/mount.8 | 2 +- sys-utils/setpriv.c | 2 +- text-utils/more.c | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) commit 1666c15588620b3d8402755650d6c707da71cd0c Author: Karel Zak Date: Fri Apr 26 12:43:31 2013 +0200 wipefs: clean up code This is C, use int & bits for boolean stuff rather than army of variables. Signed-off-by: Karel Zak misc-utils/wipefs.c | 63 +++++++++++++++++++++++++++++------------------------ 1 file changed, 35 insertions(+), 28 deletions(-) commit 7e658c15a2c1fc5092a790afbe7d9d395d04b098 Author: Ondrej Oprala Date: Wed Apr 10 18:21:27 2013 +0200 wipefs: add --backup [kzak@redhat.com: - don't wipe if failed to create a backup file - use ts_scsi_debug_init in the regression tests] Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak misc-utils/wipefs.8 | 12 +++++++++++ misc-utils/wipefs.c | 47 ++++++++++++++++++++++++++++++++++++++++---- tests/commands.sh | 1 + tests/expected/wipefs/wipefs | 1 + tests/ts/wipefs/wipefs | 30 ++++++++++++++++++++++++++++ 5 files changed, 87 insertions(+), 4 deletions(-) commit 0adc576decc2b8605b199a4c0ca4ace535ddc0f6 Author: Karel Zak Date: Fri Apr 26 10:38:33 2013 +0200 tests: partx tests cleanup * use ts_scsi_debug_init * use headers in output * use udevadm Signed-off-by: Karel Zak tests/expected/partx/partx-detect-parts | 7 +++-- tests/ts/partx/partx | 49 +++++++++++++-------------------- 2 files changed, 23 insertions(+), 33 deletions(-) commit 3a8f26bdcc6cb2242cb92718fcdfc195760cab51 Author: Ondrej Oprala Date: Wed Apr 10 15:27:59 2013 +0200 tests: add partx regression tests Signed-off-by: Ondrej Oprala tests/commands.sh | 2 + tests/expected/partx/partx-add-all | 1 + tests/expected/partx/partx-add-existing | 1 + tests/expected/partx/partx-addpart | 1 + tests/expected/partx/partx-change-by-range | 2 + tests/expected/partx/partx-delete-all | 1 + tests/expected/partx/partx-delete-non-existent | 1 + tests/expected/partx/partx-delete-one | 1 + tests/expected/partx/partx-delpart | 1 + tests/expected/partx/partx-detect-parts | 3 + tests/ts/partx/partx | 92 ++++++++++++++++++++++++++ 11 files changed, 106 insertions(+)