Changes between v2.18 and v2.19-rc1 ----------------------------------- commit 1d9aaca90cb25e3f4c9fb8d1e9194232a3ff1544 Author: Karel Zak Date: Wed Jan 5 13:41:44 2011 +0100 build-sys: release++ (v2.19-rc1) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) commit 9e1c5b38787ef1443b9afb31f100618a403a792d Author: Karel Zak Date: Wed Jan 5 13:39:35 2011 +0100 build-sys: ignore generated ltmain.sh Signed-off-by: Karel Zak .gitignore | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 3788058e88874cb5335e86e401d02fa056635f34 Author: Karel Zak Date: Wed Jan 5 13:26:38 2011 +0100 docs: update v2.19 ReleaseNotes Signed-off-by: Karel Zak docs/v2.19-ReleaseNotes | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 4b2ede3ef227e7cd19c6dd50908032da928dc87a Author: Karel Zak Date: Wed Jan 5 13:17:12 2011 +0100 build-sys: use generated libtool-2 stuff The commit 60a4edd66200be829560dce0d41a02fc70cef4f5 temporary disabled libtool-2 in autogen.sh. It seems that libtool-2 in available in many distributions now, so we don't have to manage the generated .m4 libtool files in git anymore. Signed-off-by: Karel Zak .gitignore | 9 - autogen.sh | 26 +- config/ltmain.sh | 8406 ----------------------------------------------------- m4/libtool.m4 | 7360 ---------------------------------------------- m4/ltoptions.m4 | 368 --- m4/ltsugar.m4 | 123 - m4/ltversion.m4 | 23 - m4/lt~obsolete.m4 | 92 - 8 files changed, 13 insertions(+), 16394 deletions(-) commit ffca213bfd16f83510b1a6b6d4b7a63a52c843a3 Author: Karel Zak Date: Wed Jan 5 13:05:18 2011 +0100 po: refresh gl and zh_TW Signed-off-by: Karel Zak po/gl.po | 4907 ++++++++++++++++++++++++++++++++------------------------ po/zh_TW.po | 5219 ++++++++++++++++++++++++++++++++++------------------------- 2 files changed, 5853 insertions(+), 4273 deletions(-) commit 93e0319d303b64bdde8c6adfab13884e2340c2e4 Author: Karel Zak Date: Wed Jan 5 12:49:05 2011 +0100 build-sys: cleanup autogen.sh Reported-by: Jon Grant Signed-off-by: Karel Zak autogen.sh | 54 ++++++++++++++++++++++++------------------------------ 1 files changed, 24 insertions(+), 30 deletions(-) commit ad64b1ae0b5dcbfc342b6c8781d35cd1d2602bea Author: Jon Grant Date: Sat Jan 1 17:21:46 2011 +0000 docs: correct spelling mistakes in DEPRECATED file Signed-off-by: Jon Grant DEPRECATED | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 1907099664d952b11604dbeb3539bccd1043cf30 Author: Karel Zak Date: Wed Jan 5 00:41:00 2011 +0100 docs: add v2.19 ReleaseNotes Signed-off-by: Karel Zak docs/v2.19-ReleaseNotes | 523 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 523 insertions(+), 0 deletions(-) commit f81cd256fc94ea840a89914bb9ab9138dea3ec85 Author: Karel Zak Date: Tue Jan 4 23:07:28 2011 +0100 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 28 +++++++++++++++++++++++++--- 1 files changed, 25 insertions(+), 3 deletions(-) commit 32940a75fa19f5c858073d8c61e323b2df404f74 Author: Karel Zak Date: Tue Jan 4 22:57:58 2011 +0100 po: merge changes Signed-off-by: Karel Zak po/ca.po | 3377 ++++++++++++++++------------- po/cs.po | 3364 ++++++++++++++++------------- po/da.po | 3304 ++++++++++++++++------------- po/de.po | 3336 ++++++++++++++++------------- po/es.po | 3330 ++++++++++++++++------------- po/et.po | 3334 ++++++++++++++++------------- po/eu.po | 3226 +++++++++++++++------------- po/fi.po | 3326 ++++++++++++++++------------- po/fr.po | 6194 ++++++++++++++++++++++++++++++++--------------------- po/hu.po | 5908 ++++++++++++++++++++++++++++++--------------------- po/id.po | 3325 ++++++++++++++++------------- po/it.po | 3325 ++++++++++++++++------------- po/ja.po | 5695 +++++++++++++++++++++++++++++-------------------- po/nl.po | 5598 ++++++++++++++++++++++++++++-------------------- po/pl.po | 5607 ++++++++++++++++++++++++++++-------------------- po/pt_BR.po | 3362 ++++++++++++++++------------- po/ru.po | 3378 ++++++++++++++++------------- po/sl.po | 3325 ++++++++++++++++------------- po/sv.po | 3326 ++++++++++++++++------------- po/tr.po | 3378 ++++++++++++++++------------- po/uk.po | 3367 ++++++++++++++++------------- po/util-linux.pot | 2931 ++++++++++++++------------ po/vi.po | 5612 ++++++++++++++++++++++++++++-------------------- po/zh_CN.po | 2979 ++++++++++++++------------ 24 files changed, 52890 insertions(+), 41017 deletions(-) commit da1d8fad2b74bd42d97d404303ed9dfbfd1cad6b Author: Wei-Lun Chao Date: Tue Jan 4 22:48:06 2011 +0100 po: add zh_TW.po (from translationproject.org) po/zh_TW.po |12368 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 12368 insertions(+), 0 deletions(-) commit 4de6556af51211cee80569fd10d348cce6795c49 Author: Fran Diéguez Date: Tue Jan 4 22:48:06 2011 +0100 po: add gl.po (from translationproject.org) po/gl.po |11546 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 11546 insertions(+), 0 deletions(-) commit 4614e5c19b20236a3ba357df929cbf43df54dced Author: Clytie Siddall Date: Tue Jan 4 22:48:05 2011 +0100 po: update vi.po (from translationproject.org) po/vi.po | 4836 +++++++++++++++++++++++++++----------------------------------- 1 files changed, 2093 insertions(+), 2743 deletions(-) commit dc7b21fdb4a1a54f3fd2223be6826f326b79c10e Author: Jakub Bogusz Date: Tue Jan 4 22:48:05 2011 +0100 po: update pl.po (from translationproject.org) po/pl.po | 4133 ++++++++++++++++++++++++++------------------------------------ 1 files changed, 1698 insertions(+), 2435 deletions(-) commit 023d924db5f9113e443c56109b2253f866d5c601 Author: Benno Schulenberg Date: Tue Jan 4 22:48:05 2011 +0100 po: update nl.po (from translationproject.org) po/nl.po | 4120 ++++++++++++++++++++++++++------------------------------------ 1 files changed, 1700 insertions(+), 2420 deletions(-) commit 822a89c2a7db51522dd47dbaaf39051aea82258d Author: Makoto Kato Date: Tue Jan 4 22:48:05 2011 +0100 po: update ja.po (from translationproject.org) po/ja.po | 4370 ++++++++++++++++++++++++++------------------------------------ 1 files changed, 1858 insertions(+), 2512 deletions(-) commit 051a144d425a257436c4ea6dfda878c03f1988b5 Author: Gabor Kelemen Date: Tue Jan 4 22:48:05 2011 +0100 po: update hu.po (from translationproject.org) po/hu.po | 4937 ++++++++++++++++++++++++-------------------------------------- 1 files changed, 1915 insertions(+), 3022 deletions(-) commit c4be96674a3915ba5deb756ded69736e54ba83a8 Author: Milan Bouchet-Valat Date: Tue Jan 4 22:48:05 2011 +0100 po: update fr.po (from translationproject.org) po/fr.po | 5102 +++++++++++++++++++++++++------------------------------------- 1 files changed, 2083 insertions(+), 3019 deletions(-) commit 218f9d3d6662800b2a85f2ade9824776d23137ae Author: Karel Zak Date: Tue Jan 4 22:36:09 2011 +0100 remove duplicate includes Signed-off-by: Karel Zak lib/cpuset.c | 1 - lib/strutils.c | 4 ---- misc-utils/lsblk.c | 1 - mount/lomount.c | 2 -- shlibs/blkid/src/blkidP.h | 1 - shlibs/mount/src/cache.c | 1 - shlibs/mount/src/optstr.c | 2 -- shlibs/mount/src/tab_update.c | 2 -- 8 files changed, 0 insertions(+), 14 deletions(-) commit e5b17b316a79f24ab5226cb60d43192e70d78650 Author: Karel Zak Date: Tue Jan 4 21:35:15 2011 +0100 agetty: use ignore_result() or write(1, ...) Signed-off-by: Karel Zak login-utils/agetty.c | 28 +++++++++++++++------------- 1 files changed, 15 insertions(+), 13 deletions(-) commit 06ceeef851dbb9d6c75fed4bb4420bfadacf5d47 Author: Karel Zak Date: Tue Jan 4 21:34:45 2011 +0100 lib: [c] add ignore_result() Signed-off-by: Karel Zak include/c.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit b1d78c939bc9d45cb20758c61d56275438eadac0 Author: Karel Zak Date: Tue Jan 4 20:15:51 2011 +0100 docs: fix typos in man pages Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=664458 Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=664294 Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=664182 Signed-off-by: Karel Zak mount/mount.8 | 10 +++++----- partx/addpart.8 | 2 +- partx/delpart.8 | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) commit 049caefdcf5f0fa01339fcca012ea23b7b147619 Author: Karel Zak Date: Tue Jan 4 14:01:33 2011 +0100 findmnt: add --submounts option Signed-off-by: Karel Zak include/tt.h | 2 + lib/tt.c | 8 ++++ misc-utils/findmnt.8 | 10 ++++- misc-utils/findmnt.c | 104 ++++++++++++++++++++++++++++++++++--------------- 4 files changed, 91 insertions(+), 33 deletions(-) commit 0f32f1e2fca10124952ca8d83d08f56f79b669c0 Author: Karel Zak Date: Tue Jan 4 00:43:56 2011 +0100 libmount: cleanup API and docs Signed-off-by: Karel Zak shlibs/mount/docs/libmount-docs.xml | 7 +- shlibs/mount/docs/libmount-sections.txt | 252 ++++++++++++++++++------------- shlibs/mount/src/context.c | 37 ++++- shlibs/mount/src/context_mount.c | 4 +- shlibs/mount/src/context_umount.c | 2 +- shlibs/mount/src/fs.c | 7 +- shlibs/mount/src/lock.c | 18 +-- shlibs/mount/src/mount.h.in | 45 +++---- shlibs/mount/src/mount.sym | 5 - shlibs/mount/src/mountP.h | 10 +- shlibs/mount/src/optmap.c | 118 ++------------- shlibs/mount/src/optstr.c | 11 +- shlibs/mount/src/tab.c | 6 +- shlibs/mount/src/tab_parse.c | 2 +- shlibs/mount/src/tab_update.c | 12 ++- shlibs/mount/src/utils.c | 2 +- 16 files changed, 247 insertions(+), 291 deletions(-) commit e4ac4469ad869ae5b95bbc7549b9df87878d3df7 Author: Karel Zak Date: Mon Jan 3 11:01:42 2011 +0100 mount: use verbose info for HAVE_LIBMOUNT_MOUNT only Signed-off-by: Karel Zak mount/mount.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit d440e09272df37e389fdc08bd7282391371bd03c Author: Karel Zak Date: Sun Jan 2 23:04:47 2011 +0100 tests: use findmnt(8) for remount test Signed-off-by: Karel Zak tests/ts/mount/remount | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 1f42e1089aadbe537bb59143502ebd1767d3f7ea Author: Karel Zak Date: Sun Jan 2 22:56:31 2011 +0100 tests: use findmnt(8) for mount --move test Signed-off-by: Karel Zak tests/ts/mount/move | 13 +++++-------- 1 files changed, 5 insertions(+), 8 deletions(-) commit 288b75a09aa02617b42f9eec19326bf51d66b506 Author: Karel Zak Date: Sun Jan 2 22:55:37 2011 +0100 mount: improve verbose info Signed-off-by: Karel Zak mount/mount.c | 54 +++++++++++++++++++++++++++++------------------------- 1 files changed, 29 insertions(+), 25 deletions(-) commit 25bca458d144552d8d54bc20e772285de12d4dd4 Author: Karel Zak Date: Sun Jan 2 00:31:16 2011 +0100 libmount: fix tab_update test program Signed-off-by: Karel Zak shlibs/mount/src/tab_update.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit d44910c8a154d1aef90b690b203fbfcae720bd05 Author: Karel Zak Date: Sun Jan 2 00:12:11 2011 +0100 tests: refresh libmount fstab parser tests Signed-off-by: Karel Zak tests/expected/libmount/tabfiles-tags-fstab-dev | 1 - .../libmount/tabfiles-tags-fstab-dev2label | 1 - tests/expected/libmount/tabfiles-tags-fstab-label | 1 - .../libmount/tabfiles-tags-fstab-label2dev | 1 - .../libmount/tabfiles-tags-fstab-label2uuid | 1 - tests/expected/libmount/tabfiles-tags-fstab-uuid | 1 - 6 files changed, 0 insertions(+), 6 deletions(-) commit 013bff51a67fe5907532639d35f9d9f1df2c7570 Author: Karel Zak Date: Sat Jan 1 22:45:29 2011 +0100 tests: fix strtosize() test Signed-off-by: Karel Zak lib/Makefile.am | 3 +- lib/strutils.c | 24 ++++++++++++++ tests/commands.sh.in | 2 +- tests/expected/misc/strtosize | 8 ++-- tests/ts/misc/strtosize | 68 ++++++++++++++++++++-------------------- 5 files changed, 65 insertions(+), 40 deletions(-) commit 462363888283fa14db5ded75728632df237e5196 Author: Karel Zak Date: Mon Dec 27 22:12:55 2010 +0100 findmnt: add MAJ:MIN Signed-off-by: Karel Zak misc-utils/findmnt.c | 24 +++++++++++++++++++++--- 1 files changed, 21 insertions(+), 3 deletions(-) commit 136f38bc2964f53201c0a1b3ee2b6be67937c841 Author: Karel Zak Date: Fri Dec 24 01:10:42 2010 +0100 libblkid: support LIBBLKID_DEBUG= env. Signed-off-by: Karel Zak shlibs/blkid/src/cache.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 035507c84b53bceb143d0923e65916cbf90979c7 Author: Karel Zak Date: Fri Dec 24 01:07:48 2010 +0100 lib: [env] consolidate safe_getenv() usage Signed-off-by: Karel Zak include/env.h | 6 ++++++ lib/env.c | 36 +++++++++++++++++++++++++++++++++++- shlibs/blkid/src/Makefile.am | 3 ++- shlibs/blkid/src/cache.c | 32 ++------------------------------ shlibs/blkid/src/config.c | 4 ++-- shlibs/mount/src/Makefile.am | 3 ++- shlibs/mount/src/init.c | 2 +- shlibs/mount/src/utils.c | 38 ++++---------------------------------- 8 files changed, 54 insertions(+), 70 deletions(-) commit 354815f919b7fcd78fb3f459b4b70109e8bdc5db Author: Karel Zak Date: Thu Dec 23 23:52:45 2010 +0100 libmount: cleanup mount.sym Signed-off-by: Karel Zak shlibs/mount/src/mount.sym | 68 +++++++++++++++++++++++++++++++++++-------- 1 files changed, 55 insertions(+), 13 deletions(-) commit 5e3ec2f13d8bfcff1bed443da1a4578c89aaf581 Author: Karel Zak Date: Thu Dec 23 23:23:36 2010 +0100 libmount: cleanup lock API Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 2540349cced5bf2cd9f4847b0ab2a5e4a86ac7b5 Author: Karel Zak Date: Thu Dec 23 23:15:58 2010 +0100 libmount: cleanup context API Signed-off-by: Karel Zak shlibs/mount/src/context.c | 14 -------------- shlibs/mount/src/mount.h.in | 10 ++++++++-- shlibs/mount/src/mountP.h | 1 - 3 files changed, 8 insertions(+), 17 deletions(-) commit d1ce73191c2166e9ea0152179d533d51a13a5df2 Author: Karel Zak Date: Thu Dec 23 22:59:09 2010 +0100 libmount: don't export some cache.c files Signed-off-by: Karel Zak shlibs/mount/src/cache.c | 21 ++++++--------------- shlibs/mount/src/mount.h.in | 5 +---- shlibs/mount/src/mount.sym | 2 -- 3 files changed, 7 insertions(+), 21 deletions(-) commit f84fa6f7b98dd00ef6f196815b18590ca50c3528 Author: Karel Zak Date: Wed Dec 22 13:15:04 2010 +0100 libmount: better work with mtab options Signed-off-by: Karel Zak shlibs/mount/src/fs.c | 54 +++++++++++++++++++++++++++++++++++++++++ shlibs/mount/src/mount.h.in | 7 ++++- shlibs/mount/src/mount.sym | 2 +- shlibs/mount/src/mountP.h | 4 +- shlibs/mount/src/optmap.c | 2 +- shlibs/mount/src/optstr.c | 54 ++++++++++++++++++++++++++++++++++++++++- shlibs/mount/src/tab_parse.c | 2 +- shlibs/mount/src/tab_update.c | 44 +++++++++++++++++++++++++++------ shlibs/mount/src/utils.c | 8 ++++-- 9 files changed, 159 insertions(+), 18 deletions(-) commit e46119a41173703ad8ff403710ce76b92765dfa6 Author: Karel Zak Date: Wed Dec 22 13:13:45 2010 +0100 tests: check for mtab Signed-off-by: Karel Zak tests/ts/mount/devname | 6 ++++++ tests/ts/mount/mtablock | 2 +- 2 files changed, 7 insertions(+), 1 deletions(-) commit 29be59e9f136f0839032b0a784333ed32ee1009d Author: Karel Zak Date: Wed Dec 22 13:12:57 2010 +0100 umount: add HAVE_LIBMOUNT_MOUNT code Signed-off-by: Karel Zak mount/umount.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) commit 86dcaa0a894781dfc997368a2295147636b3eee6 Author: Karel Zak Date: Wed Dec 22 13:12:42 2010 +0100 mount: rewrite HAVE_LIBMOUNT_MOUNT code Signed-off-by: Karel Zak mount/mount.c | 96 +++++++++++++++++++++++++++++++++++++++++--------------- 1 files changed, 70 insertions(+), 26 deletions(-) commit 803f844a1097d9f5d028bc6f28ea838e1e3f2c50 Author: Karel Zak Date: Tue Dec 21 09:55:25 2010 +0100 mount: add mnt_init_debug() Signed-off-by: Karel Zak mount/fstab.c | 3 ++- mount/mount.c | 4 ++++ mount/umount.c | 3 +++ 3 files changed, 9 insertions(+), 1 deletions(-) commit de511a88b1192f2c2c1db52a2fc232a4db4d4faf Author: Karel Zak Date: Tue Dec 21 09:54:52 2010 +0100 libmount: don't use NULL pointer in mntenv Signed-off-by: Karel Zak shlibs/mount/src/fs.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 7972dd2f20e021f2b5b5b1a2004c3937238f6f84 Author: Karel Zak Date: Tue Dec 21 09:29:13 2010 +0100 losetup: remove unnecessary fstab.h include The file is necessary for mount(8) only and should not be used in the generic sundries.c. utils. Signed-off-by: Karel Zak mount/sundries.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit c9cf41e4f2b263bbf8e0ed0fbc90163988740a3f Author: Karel Zak Date: Sun Dec 19 21:22:51 2010 +0100 mount: use libmount for mtab/utab updates Signed-off-by: Karel Zak mount/fstab.c | 19 +++++++++++++ mount/fstab.h | 7 +++++ mount/mount.c | 59 ++++++++++++++++++++++++++++++++++++++-- shlibs/mount/src/tab_update.c | 1 - 4 files changed, 82 insertions(+), 4 deletions(-) commit b98302b4a52c982ad5fae3ad01f5eb847cc614c6 Author: Karel Zak Date: Sun Dec 19 21:20:44 2010 +0100 libmount: fix mount.h includes Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 2915bdc0db7b6931c35e235879d59b6c61b4b1bc Author: Karel Zak Date: Sat Dec 18 01:08:25 2010 +0100 libmount: clean mnt_update_* target usage Signed-off-by: Karel Zak shlibs/mount/src/context.c | 19 +++++++++++-------- shlibs/mount/src/tab_update.c | 24 +++++++++++++++--------- 2 files changed, 26 insertions(+), 17 deletions(-) commit 36bda5cbd0a18b2ae6aadd36fd54813f29566602 Author: Karel Zak Date: Fri Dec 17 17:46:24 2010 +0100 libmount: cleanup MS_RDONLY usageand mnt_update_* symbols Signed-off-by: Karel Zak shlibs/mount/src/context.c | 15 ++++++ shlibs/mount/src/context_mount.c | 5 ++ shlibs/mount/src/context_umount.c | 4 +- shlibs/mount/src/mount.h.in | 6 ++- shlibs/mount/src/mount.sym | 19 +++---- shlibs/mount/src/tab_update.c | 93 ++++++++++++++++++++++++++++++++----- 6 files changed, 115 insertions(+), 27 deletions(-) commit 2676f3c9492c61ab65a8b490e72142a7ea1e869b Author: Karel Zak Date: Wed Dec 15 16:26:23 2010 +0100 tests: add libmount utab tests Signed-off-by: Karel Zak tests/expected/libmount/context-utab | 9 ++ .../libmount/context-utab-mount-by-devname | 1 + tests/expected/libmount/context-utab-mount-uhelper | 1 + .../libmount/context-utab-mount-uhelper-subvol | 1 + tests/expected/libmount/context-utab-umount | 1 + .../libmount/context-utab-umount-by-devname | 1 + tests/expected/libmount/context-utab-umount-subvol | 1 + tests/ts/libmount/context-utab | 115 ++++++++++++++++++++ 8 files changed, 130 insertions(+), 0 deletions(-) commit 87a07a4cc8592a937006c5cdb93739b185bdbd7c Author: Karel Zak Date: Wed Dec 15 15:06:42 2010 +0100 libmount: minor fixes Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 2 +- shlibs/mount/src/context.c | 3 +++ shlibs/mount/src/context_mount.c | 3 --- shlibs/mount/src/fs.c | 2 +- shlibs/mount/src/tab_update.c | 5 +++++ tests/ts/libmount/context | 1 - 6 files changed, 10 insertions(+), 6 deletions(-) commit 411fe06eed4f96b795c56e94a19919d3c79426cb Author: Karel Zak Date: Wed Dec 15 15:06:25 2010 +0100 findmnt: use new libmount functions Signed-off-by: Karel Zak misc-utils/findmnt.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 76a06ca4cdba29ca54e418a61e8efc811ac608aa Author: Karel Zak Date: Tue Dec 14 23:50:55 2010 +0100 libmount: use separate buffer for userspace options, add mount attributes Signed-off-by: Karel Zak shlibs/mount/src/context.c | 67 ++- shlibs/mount/src/context_mount.c | 59 +-- shlibs/mount/src/context_umount.c | 23 +- shlibs/mount/src/fs.c | 533 +++++++++++++++++--- shlibs/mount/src/mount.h.in | 55 ++- shlibs/mount/src/mount.sym | 58 ++- shlibs/mount/src/mountP.h | 7 +- shlibs/mount/src/optmap.c | 2 +- shlibs/mount/src/optstr.c | 111 ++--- shlibs/mount/src/tab_parse.c | 91 +--- shlibs/mount/src/tab_update.c | 71 ++-- tests/expected/libmount/tabfiles-copy | 4 +- tests/expected/libmount/tabfiles-find-pair | 2 +- tests/expected/libmount/tabfiles-find-source | 2 +- tests/expected/libmount/tabfiles-find-target | 2 +- tests/expected/libmount/tabfiles-parse-fstab | 16 +- .../expected/libmount/tabfiles-parse-fstab-broken | 16 +- tests/expected/libmount/tabfiles-parse-mountinfo | 96 +++-- tests/expected/libmount/tabfiles-parse-mtab | 24 +- tests/expected/libmount/update-mtab-mount | 4 +- tests/expected/libmount/update-mtab-move | 4 +- 21 files changed, 800 insertions(+), 447 deletions(-) commit 62a1000803445e0cf377e0f6f8e9f48b460b8f74 Author: Karel Zak Date: Tue Dec 7 00:16:47 2010 +0100 mount: read mtab by libmount Signed-off-by: Karel Zak mount/fstab.c | 48 +++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 47 insertions(+), 1 deletions(-) commit 37ef0439da961d001a3921cd2939311946fe64a9 Author: Karel Zak Date: Tue Dec 7 00:16:07 2010 +0100 build-sys: add --enable-libmount-mount Signed-off-by: Karel Zak configure.ac | 14 ++++++++++++++ mount/Makefile.am | 17 +++++++++++++++++ tests/ts/mount/mtablock | 4 ++++ 3 files changed, 35 insertions(+), 0 deletions(-) commit 8b95253ff0f99b0d94b32bd663f5a54f732b0034 Author: Karel Zak Date: Tue Dec 7 00:09:40 2010 +0100 libmount: add mntent.h compatible stuff Signed-off-by: Karel Zak shlibs/mount/src/fs.c | 109 +++++++++++++++++++++++++++++++++++++------ shlibs/mount/src/mount.h.in | 4 ++ shlibs/mount/src/mount.sym | 2 + 3 files changed, 100 insertions(+), 15 deletions(-) commit 5ac6a133276d200e1736853e58a05887e7f75e90 Author: Karel Zak Date: Tue Dec 7 00:08:11 2010 +0100 libmount: cleanup mangle() usage Signed-off-by: Karel Zak include/mangle.h | 2 +- lib/mangle.c | 8 ++++---- mount/mount_mntent.c | 7 ------- shlibs/mount/src/tab_parse.c | 14 +++++++++----- 4 files changed, 14 insertions(+), 17 deletions(-) commit 60dafc19adb7b23403db53c511b5a8d080a81d00 Author: Karel Zak Date: Mon Dec 6 11:47:20 2010 +0100 libmount: minor fixes in cache.c Signed-off-by: Karel Zak shlibs/mount/src/cache.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 77417bc00d76086d3cb5876f6fd52d5369c918a4 Author: Karel Zak Date: Fri Dec 3 21:13:52 2010 +0100 libmount: remove utab from API, update tests The utab file is private libmount stuff. Anything about utab should not be exported by library API. Signed-off-by: Karel Zak shlibs/mount/src/context.c | 18 +-- shlibs/mount/src/context_umount.c | 5 +- shlibs/mount/src/fs.c | 20 ++-- shlibs/mount/src/mount.h.in | 7 +- shlibs/mount/src/mountP.h | 5 +- shlibs/mount/src/tab_parse.c | 4 +- shlibs/mount/src/tab_update.c | 171 ++++++++++++---------- shlibs/mount/src/utils.c | 13 +- tests/expected/libmount/tabfiles-parse-mountinfo | 32 ++++ tests/expected/libmount/update-utab-mount | 4 +- tests/expected/libmount/update-utab-move | 4 +- tests/expected/libmount/update-utab-remount | 4 +- tests/expected/libmount/update-utab-umount | 2 +- tests/ts/libmount/update | 2 + 14 files changed, 166 insertions(+), 125 deletions(-) commit 766af80be1c76bbae78bf86ce0ae757082bb92fa Author: Karel Zak Date: Fri Nov 26 14:33:29 2010 +0100 libmount: fix to work with btrfs subvolume user mounts Signed-off-by: Karel Zak shlibs/mount/src/context.c | 6 +++--- shlibs/mount/src/context_mount.c | 4 ++-- shlibs/mount/src/context_umount.c | 18 ++++++++++++------ shlibs/mount/src/optstr.c | 9 ++++++--- shlibs/mount/src/tab_update.c | 15 ++++++++------- 5 files changed, 31 insertions(+), 21 deletions(-) commit dd36965211907fd482db8966938334ede5ece089 Author: Karel Zak Date: Thu Nov 25 23:22:53 2010 +0100 libmount: use better format for utab, improve bind mounts Signed-off-by: Karel Zak include/mangle.h | 2 +- lib/mangle.c | 13 ++- mount/mount_mntent.c | 12 +-- mount/swapon.c | 4 +- shlibs/mount/src/context_mount.c | 2 +- shlibs/mount/src/context_umount.c | 11 +++ shlibs/mount/src/fs.c | 60 +++++++++++-- shlibs/mount/src/mount.h.in | 11 +-- shlibs/mount/src/mountP.h | 20 ++++- shlibs/mount/src/tab_parse.c | 169 ++++++++++++++++++++++++++++--------- shlibs/mount/src/tab_update.c | 103 ++++++++++++---------- shlibs/mount/src/utils.c | 2 +- 12 files changed, 286 insertions(+), 123 deletions(-) commit b0bb8fb6f9c3d54d230b785695a5bceab7e3f320 Author: Karel Zak Date: Tue Nov 23 20:39:55 2010 +0100 libmount: fix utab file and dir modes, add new debug messages Signed-off-by: Karel Zak shlibs/mount/src/context.c | 18 ++++++++++++++---- shlibs/mount/src/context_mount.c | 4 ++++ shlibs/mount/src/tab_parse.c | 7 +++++-- shlibs/mount/src/tab_update.c | 3 ++- shlibs/mount/src/utils.c | 9 +++++++-- 5 files changed, 32 insertions(+), 9 deletions(-) commit 64a2331f6d03fd483820ddacd8c62336b2e7df5c Author: Karel Zak Date: Tue Nov 23 13:06:46 2010 +0100 tests: improve libmount context mount and umount test Signed-off-by: Karel Zak shlibs/mount/src/context.c | 4 + tests/commands.sh.in | 2 + tests/expected/libmount/context | 5 + tests/expected/libmount/context-mount-by-devname | 1 + tests/expected/libmount/context-mount-by-label | 1 + tests/expected/libmount/context-mount-by-uuid | 2 + tests/expected/libmount/context-mount-flags | 3 + tests/expected/libmount/context-umount-by-devname | 1 + .../expected/libmount/context-umount-by-mountpoint | 1 + tests/expected/libmount/mount | 5 - tests/functions.sh | 7 +- tests/ts/libmount/context | 111 ++++++++++++++++++++ tests/ts/libmount/mount | 83 --------------- 13 files changed, 135 insertions(+), 91 deletions(-) commit 21193a4890f29fb8e7b6361aa1e5288f874396b9 Author: Karel Zak Date: Tue Nov 23 12:21:12 2010 +0100 libmount: add new debug messages, fix umount return code Signed-off-by: Karel Zak shlibs/mount/src/context.c | 17 +++++++++++++---- shlibs/mount/src/context_umount.c | 5 +++++ 2 files changed, 18 insertions(+), 4 deletions(-) commit 932d154c8d8adeb1acf23d7a637fc7c18dd29d83 Author: Karel Zak Date: Tue Nov 23 00:26:49 2010 +0100 findmnt: fix exit code ... returns 1 if nothing printed. Signed-off-by: Karel Zak misc-utils/findmnt.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) commit dde0e3dbb7995a5b1ce98407d219a8af6ee478fa Author: Karel Zak Date: Mon Nov 22 23:21:53 2010 +0100 findmnt: use new tab parsing API Signed-off-by: Karel Zak misc-utils/findmnt.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 46cfd4a2656bc0e38f91c9d0cab3f8826d5e4792 Author: Karel Zak Date: Mon Nov 22 23:15:54 2010 +0100 libmount: fix context mount test Signed-off-by: Karel Zak shlibs/mount/src/context.c | 54 +++++++++++-------------------------- shlibs/mount/src/context_mount.c | 2 +- shlibs/mount/src/mount.h.in | 3 ++ 3 files changed, 20 insertions(+), 39 deletions(-) commit 40829d8589aee7805260f345f646512c6596e5a0 Author: Karel Zak Date: Mon Nov 22 23:15:00 2010 +0100 tests: add basic libmount tests for mounting Signed-off-by: Karel Zak tests/commands.sh.in | 1 + tests/expected/libmount/mount | 5 ++ tests/ts/libmount/mount | 83 +++++++++++++++++++++++++++++++++++++++++ tests/ts/libmount/update | 4 +- 4 files changed, 90 insertions(+), 3 deletions(-) commit e548d51d552f2818064e218809a7ac00e89b6f39 Author: Karel Zak Date: Fri Nov 19 13:15:19 2010 +0100 libmount: fix mnt_optstr_remove_option_at() Signed-off-by: Karel Zak shlibs/mount/src/optstr.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 97e23b5e5eae8a8d5e14b263bb150e62073d453f Author: Karel Zak Date: Wed Nov 10 01:25:07 2010 +0100 libmount: support /{proc,etc}/filesystems Signed-off-by: Karel Zak shlibs/mount/src/context.c | 35 +++++++++++- shlibs/mount/src/context_mount.c | 100 +++++++++++++++++++++++++++-------- shlibs/mount/src/context_umount.c | 25 +++++---- shlibs/mount/src/mount.h.in | 4 ++ shlibs/mount/src/mountP.h | 6 ++- shlibs/mount/src/tab_update.c | 7 +++ shlibs/mount/src/utils.c | 103 +++++++++++++++++++++++++++++++++++++ 7 files changed, 241 insertions(+), 39 deletions(-) commit 0e7abd33c71d590a3823d6e8ce6d79beee2abefe Author: Karel Zak Date: Mon Nov 8 12:22:01 2010 +0100 tests: add utab update tests Signed-off-by: Karel Zak tests/expected/libmount/update-utab-mount | 2 + tests/expected/libmount/update-utab-move | 2 + tests/expected/libmount/update-utab-remount | 2 + tests/expected/libmount/update-utab-umount | 1 + tests/ts/libmount/update | 36 +++++++++++++++++++++++++- 5 files changed, 41 insertions(+), 2 deletions(-) commit 7c118af7a1e898a258f6237e3a12faffe5844c0c Author: Karel Zak Date: Mon Nov 8 12:21:41 2010 +0100 libmount: add debug messages and fix typos in tab_update Signed-off-by: Karel Zak shlibs/mount/src/tab_parse.c | 6 +++++- shlibs/mount/src/tab_update.c | 14 +++++++++----- shlibs/mount/src/utils.c | 25 ++++++++++++++++++------- 3 files changed, 32 insertions(+), 13 deletions(-) commit 1d0cd73f3f8929132e731a821ceb07fa6193c00c Author: Karel Zak Date: Mon Nov 8 11:14:44 2010 +0100 libmount: rewrite update Signed-off-by: Karel Zak shlibs/mount/src/context.c | 111 +++-- shlibs/mount/src/context_mount.c | 117 +--- shlibs/mount/src/context_umount.c | 110 +--- shlibs/mount/src/lock.c | 2 +- shlibs/mount/src/mount.h.in | 30 +- shlibs/mount/src/mountP.h | 21 +- shlibs/mount/src/tab_update.c | 1172 ++++++++++++++----------------------- shlibs/mount/src/utils.c | 140 ++++- 8 files changed, 693 insertions(+), 1010 deletions(-) commit d5c04a47af79c687ea81e0c6da14d63939aa2994 Author: Karel Zak Date: Mon Nov 8 11:12:35 2010 +0100 libmount: fix Makefile and tests Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 2 +- tests/ts/libmount/update | 7 ------- 2 files changed, 1 insertions(+), 8 deletions(-) commit 70bf97aed95539feb2496f09316709d06b76b33d Author: Karel Zak Date: Tue Nov 2 13:54:47 2010 +0100 libmount: improve function for work with mtab paths Signed-off-by: Karel Zak shlibs/mount/src/tab_parse.c | 189 +++++++++++++++++++++++------------------- shlibs/mount/src/utils.c | 45 ++++------ 2 files changed, 122 insertions(+), 112 deletions(-) commit a7fd8a36749578b450f7886762c145259d603694 Author: Karel Zak Date: Tue Nov 2 13:52:47 2010 +0100 libmount: fix comment for mnt_unlock_file() Signed-off-by: Karel Zak shlibs/mount/src/lock.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b37dd175208207772c4e511ea7ba01f22f599f52 Author: Karel Zak Date: Sun Oct 31 02:05:51 2010 +0200 libmount: add functions get mtab/utab paths shlibs/mount/src/utils.c | 83 +++++++++++++++++++++++++-------------------- 1 files changed, 46 insertions(+), 37 deletions(-) commit 418187ce9644bcb996ef160444f7d7dc72b5eee0 Author: Karel Zak Date: Thu Oct 21 09:00:50 2010 +0200 tests: add libmount mtab update test Signed-off-by: Karel Zak tests/commands.sh.in | 1 + tests/expected/libmount/optstr-remove-quoted | 1 + tests/expected/libmount/update-fstab-add | 3 + tests/expected/libmount/update-mtab-mount | 4 ++ tests/expected/libmount/update-mtab-move | 4 ++ tests/expected/libmount/update-mtab-remount | 4 ++ tests/expected/libmount/update-mtab-umount | 2 + tests/ts/libmount/update | 64 ++++++++++++++++++++++++++ 8 files changed, 83 insertions(+), 0 deletions(-) commit 3a5b1b1d5d8cae6e7c4ee4f33f2fc20be3ddf6f4 Author: Karel Zak Date: Thu Oct 21 08:57:02 2010 +0200 libmount: allow to overwrite mtab/fstab paths Signed-off-by: Karel Zak shlibs/mount/src/context.c | 4 +- shlibs/mount/src/lock.c | 11 ++++-- shlibs/mount/src/mount.h.in | 6 ++- shlibs/mount/src/mount.sym | 2 + shlibs/mount/src/tab_parse.c | 73 +++++++++++++++++++++++++++-------------- shlibs/mount/src/tab_update.c | 58 +++++++++++++++++++------------- shlibs/mount/src/utils.c | 48 +++++++++++++++++++++++--- 7 files changed, 140 insertions(+), 62 deletions(-) commit 64be83b277b274bb9864ef99398c1907c0d38551 Author: Karel Zak Date: Wed Oct 20 12:40:55 2010 +0200 tests: add quoted optstr Signed-off-by: Karel Zak tests/expected/libmount/optstr-append | 2 +- tests/ts/libmount/optstr | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) commit db17c74bc464eceba62fbf4bb30d75e1e544d8e8 Author: Karel Zak Date: Wed Oct 20 12:40:02 2010 +0200 tests: improve subtests initialization Signed-off-by: Karel Zak tests/functions.sh | 32 +++++++++++++++++++++++--------- 1 files changed, 23 insertions(+), 9 deletions(-) commit 1bd1cd2c6c02269708f4418b0056b49a53a16ed1 Author: Karel Zak Date: Tue Oct 19 15:21:03 2010 +0200 libmount: add LIBMOUNT_{MTAB,FSTAB} Signed-off-by: Karel Zak shlibs/mount/src/tab_parse.c | 23 +++++++++++++---------- shlibs/mount/src/tab_update.c | 5 ++++- 2 files changed, 17 insertions(+), 11 deletions(-) commit 9e10ad3d5035686e4676c208c7d88f55f1c1a05c Author: Karel Zak Date: Tue Oct 19 14:30:07 2010 +0200 tests: add libmount lock test Signed-off-by: Karel Zak shlibs/mount/src/lock.c | 53 ++++++++++++++++++++++++++++++++++------- tests/commands.sh.in | 1 + tests/expected/libmount/lock | 1 + tests/ts/libmount/lock | 37 +++++++++++++++++++++++++++++ 4 files changed, 83 insertions(+), 9 deletions(-) commit f27feed36e589191622c444f7c19a2e4d6cbe51a Author: Karel Zak Date: Tue Oct 19 11:44:30 2010 +0200 tests: add libmount utils.c tests Signed-off-by: Karel Zak tests/commands.sh.in | 5 +- tests/expected/libmount/utils-ends-with | 1 + tests/expected/libmount/utils-fs-root | 1 + tests/expected/libmount/utils-fs-root-subdir | 1 + tests/expected/libmount/utils-fs-root-subdir2 | 1 + tests/expected/libmount/utils-match-fstype | 1 + tests/expected/libmount/utils-match-fstype-neg | 1 + tests/expected/libmount/utils-match-fstype-neg2 | 1 + tests/expected/libmount/utils-match-options | 1 + tests/expected/libmount/utils-match-options-list | 1 + tests/expected/libmount/utils-match-options-neg | 1 + .../expected/libmount/utils-match-options-neg-list | 1 + .../libmount/utils-match-options-neg-list2 | 1 + tests/expected/libmount/utils-mountpoint | 1 + tests/expected/libmount/utils-mountpoint-root | 1 + tests/expected/libmount/utils-mountpoint-subdir | 1 + tests/expected/libmount/utils-starts-with | 1 + tests/ts/libmount/optstr | 2 +- tests/ts/libmount/tabfiles | 2 +- tests/ts/libmount/tabfiles-tags | 3 +- tests/ts/libmount/utils | 77 ++++++++++++++++++++ 21 files changed, 100 insertions(+), 5 deletions(-) commit 9208fc2292cd066582167fed842925df50fed675 Author: Karel Zak Date: Mon Oct 18 16:22:20 2010 +0200 tests: add libmount tags tests Signed-off-by: Karel Zak tests/expected/libmount/tabfiles-tags-fstab-dev | 5 + .../libmount/tabfiles-tags-fstab-dev2label | 5 + tests/expected/libmount/tabfiles-tags-fstab-label | 5 + .../libmount/tabfiles-tags-fstab-label2dev | 5 + .../libmount/tabfiles-tags-fstab-label2uuid | 5 + tests/expected/libmount/tabfiles-tags-fstab-uuid | 5 + tests/ts/libmount/tabfiles-tags | 92 ++++++++++++++++++++ 7 files changed, 122 insertions(+), 0 deletions(-) commit 480962c99476634490d1ef76eed4e13124423c06 Author: Karel Zak Date: Mon Oct 18 15:46:12 2010 +0200 tests: add libmount mtab tests Signed-off-by: Karel Zak tests/expected/libmount/tabfiles-find-pair | 5 ++ tests/expected/libmount/tabfiles-parse-mtab | 55 +++++++++++++++++++++++++++ tests/ts/libmount/files/mtab | 11 +++++ tests/ts/libmount/tabfiles | 10 +++++ 4 files changed, 81 insertions(+), 0 deletions(-) commit 5e31c2c8b652674c5302f066085019beb0e39d69 Author: Karel Zak Date: Mon Oct 18 14:42:42 2010 +0200 tests: add libmount tab_parse.c tests Signed-off-by: Karel Zak shlibs/mount/src/tab.c | 11 +- tests/commands.sh.in | 6 +- tests/expected/libmount/tabfiles-copy | 16 ++ tests/expected/libmount/tabfiles-find-source | 7 + tests/expected/libmount/tabfiles-find-target | 5 + tests/expected/libmount/tabfiles-parse-fstab | 54 ++++ .../expected/libmount/tabfiles-parse-fstab-broken | 57 +++++ tests/expected/libmount/tabfiles-parse-mountinfo | 256 ++++++++++++++++++++ tests/ts/libmount/files/fstab | 12 + tests/ts/libmount/files/fstab.broken | 14 + tests/ts/libmount/files/mountinfo | 32 +++ tests/ts/libmount/tabfiles | 43 ++++ 12 files changed, 501 insertions(+), 12 deletions(-) commit c3b0d5b37b64fb7c259f92e103fd73bdea6807fe Author: Karel Zak Date: Mon Oct 18 14:19:21 2010 +0200 libmount: cleanup fstab parser, improve mnt_tab errcb usage Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 2 +- shlibs/mount/src/mountP.h | 3 +- shlibs/mount/src/tab.c | 6 +++- shlibs/mount/src/tab_parse.c | 60 +++++++++++++++++++++++++++++++---------- 4 files changed, 51 insertions(+), 20 deletions(-) commit af0b9283879b9aa0cfae942663c4fe7f9bf88aee Author: Karel Zak Date: Fri Oct 15 15:53:33 2010 +0200 tests: add libmount optstr.c tests Signed-off-by: Karel Zak tests/commands.sh.in | 2 + tests/expected/libmount/optstr-append | 1 + tests/expected/libmount/optstr-append-value | 1 + tests/expected/libmount/optstr-apply-linux | 2 + tests/expected/libmount/optstr-apply-user | 2 + tests/expected/libmount/optstr-fix | 2 + tests/expected/libmount/optstr-flags | 2 + tests/expected/libmount/optstr-get | 1 + tests/expected/libmount/optstr-get-value | 1 + tests/expected/libmount/optstr-prepend | 1 + tests/expected/libmount/optstr-prepend-value | 1 + tests/expected/libmount/optstr-remove | 1 + tests/expected/libmount/optstr-remove-value | 1 + tests/expected/libmount/optstr-set-large | 1 + tests/expected/libmount/optstr-set-new | 1 + tests/expected/libmount/optstr-set-new-end | 1 + tests/expected/libmount/optstr-set-remove | 1 + tests/expected/libmount/optstr-set-small | 1 + tests/expected/libmount/optstr-split | 3 + tests/ts/libmount/optstr | 85 ++++++++++++++++++++++++++ 20 files changed, 111 insertions(+), 0 deletions(-) commit 6f8ab4de470fa0bc6a2932a20795fb9ff1d8241e Author: Karel Zak Date: Fri Oct 15 15:51:25 2010 +0200 libmount: fix mnt_optstr_apply_flags() to work with optional variables Signed-off-by: Karel Zak shlibs/mount/src/optstr.c | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) commit a42706f4e5ca601e04cbe44638d21e2caedc78da Author: Karel Zak Date: Thu Oct 14 16:09:14 2010 +0200 tests: use {src,build}dir variables for tests Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 2 +- tests/commands.sh.in | 70 +++++++++++++++++++++-------------------- 2 files changed, 37 insertions(+), 35 deletions(-) commit 1b56aae848a7b579b1841b6ec1e47f61f9fa2af7 Author: Karel Zak Date: Tue Oct 12 16:17:16 2010 +0200 libmount: improve assert() and DBG() usage Signed-off-by: Karel Zak shlibs/mount/src/context.c | 53 ++++++++++++++++++++++++++++++++++-- shlibs/mount/src/context_mount.c | 52 ++++++++++++++++++++---------------- shlibs/mount/src/context_umount.c | 17 ++++++++++-- shlibs/mount/src/mountP.h | 3 +- shlibs/mount/src/tab_update.c | 5 +++- 5 files changed, 99 insertions(+), 31 deletions(-) commit ea8f06f97913ebfe62fc971e952a309ae15d6544 Author: Karel Zak Date: Tue Oct 12 15:04:28 2010 +0200 libmount: add umount(2) support Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 2 +- shlibs/mount/src/context.c | 165 ++++++++++++- shlibs/mount/src/context_mount.c | 100 +------- shlibs/mount/src/context_umount.c | 529 +++++++++++++++++++++++++++++++++++++ shlibs/mount/src/mount.h.in | 3 + shlibs/mount/src/mountP.h | 1 + 6 files changed, 709 insertions(+), 91 deletions(-) commit cf94e97f2b67ede7f741131d6ef684925d503594 Author: Karel Zak Date: Wed Oct 6 23:26:01 2010 +0200 libmount: add mnt_context_get_{fstab,mtab}() Signed-off-by: Karel Zak shlibs/mount/src/context.c | 127 ++++++++++++++++++++++++++----------- shlibs/mount/src/context_mount.c | 2 +- shlibs/mount/src/mountP.h | 2 +- 3 files changed, 91 insertions(+), 40 deletions(-) commit 059c696f3e6d2982b30fb70c36ae7d1859a5cb91 Author: Karel Zak Date: Wed Oct 6 23:25:15 2010 +0200 libmount: add mnt_tab_find_pair() Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 2 + shlibs/mount/src/mount.sym | 1 + shlibs/mount/src/tab.c | 98 ++++++++++++++++++++++++++++++++++++------- 3 files changed, 85 insertions(+), 16 deletions(-) commit f63173b2202c9ce3c7a973a14e6b0dfb26c0c564 Author: Karel Zak Date: Mon Oct 4 14:09:55 2010 +0200 libmount: allows to swap source and target Signed-off-by: Karel Zak shlibs/mount/src/context.c | 168 ++++++++++++++++++++++++++++++++------ shlibs/mount/src/context_mount.c | 144 +------------------------------- shlibs/mount/src/mountP.h | 1 - 3 files changed, 149 insertions(+), 164 deletions(-) commit 0efac0fafe2c1ea4143432440b9e66370d84903e Author: Karel Zak Date: Mon Oct 4 14:09:28 2010 +0200 libmount: cleanup mount.h Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 71 ++++++++++++++++++++----------------------- 1 files changed, 33 insertions(+), 38 deletions(-) commit 1bb1d80b3e3512a4664cb9895c95f29a900f8aba Author: Karel Zak Date: Mon Oct 4 13:37:33 2010 +0200 libmount: split context.c Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 3 +- shlibs/mount/src/context.c | 906 +++----------------------------------- shlibs/mount/src/context_mount.c | 716 ++++++++++++++++++++++++++++++ shlibs/mount/src/mount.h.in | 49 ++ shlibs/mount/src/mountP.h | 69 +++ 5 files changed, 909 insertions(+), 834 deletions(-) commit a29e2f4fe3c6456d801ae12500c077ec7998ae20 Author: Karel Zak Date: Mon Oct 4 12:18:41 2010 +0200 libmount: cleanup helpers support Signed-off-by: Karel Zak shlibs/mount/src/context.c | 231 ++++++++++++++++++++++---------------------- 1 files changed, 117 insertions(+), 114 deletions(-) commit 8f3f6383a581e64d5dbe9a13130e078f45babf07 Author: Karel Zak Date: Fri Oct 1 13:05:58 2010 +0200 libmount: rewrite mountinfo/fstab parsers to use sscanf() The old solution (without scanf()) was based on old code from mount(8). It seems that the modern libc is able to provide all necessary functionality by sscanf() and %ms directive. Signed-off-by: Karel Zak include/mangle.h | 5 + lib/mangle.c | 15 ++- shlibs/mount/src/tab_parse.c | 287 +++++++++++------------------------------ 3 files changed, 94 insertions(+), 213 deletions(-) commit 0a98127b8734204ffaa9faf33b59e61fafc685bb Author: Karel Zak Date: Thu Sep 30 22:22:24 2010 +0200 libmount: fix mount helpers call Signed-off-by: Karel Zak shlibs/mount/src/context.c | 139 ++++++++++++++++++++++++++++++++++++-------- 1 files changed, 115 insertions(+), 24 deletions(-) commit 051aacd1885f42e34ec58f76768a5a83114d34b3 Author: Karel Zak Date: Thu Sep 30 12:08:36 2010 +0200 libmount: update mtab after mount(2) Signed-off-by: Karel Zak shlibs/mount/src/context.c | 59 ++++++++++++++++++++++++++++++++++++++----- 1 files changed, 52 insertions(+), 7 deletions(-) commit 04e83b1bda824e420de259e8db344375e1adc7fe Author: Karel Zak Date: Thu Sep 30 12:07:50 2010 +0200 libmount: always store rw/ro flags to mtab Signed-off-by: Karel Zak shlibs/mount/src/optstr.c | 67 +++++++++++++++++++++++++++++++++++---------- 1 files changed, 52 insertions(+), 15 deletions(-) commit 67de0e541b42d738e2477149feaa52f22128ccbc Author: Karel Zak Date: Thu Sep 30 11:02:50 2010 +0200 libmount: update mount.sym Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 2 +- shlibs/mount/src/mount.sym | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) commit d300992de138c4c1f52a41ade64e24fbf8fbf2ce Author: Karel Zak Date: Thu Sep 30 10:42:20 2010 +0200 libmount: extend mnt_update_* API Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 3 ++ shlibs/mount/src/mount.sym | 2 + shlibs/mount/src/tab_update.c | 57 ++++++++++++++++++++++++++++++++++++++++- 3 files changed, 61 insertions(+), 1 deletions(-) commit f58168ffb6facb095ec3c618513ed49d730d7488 Author: Karel Zak Date: Wed Sep 29 23:42:43 2010 +0200 libmount: add mount(2) and /sbin/mount. support Signed-off-by: Karel Zak shlibs/mount/src/cache.c | 12 ++- shlibs/mount/src/context.c | 305 +++++++++++++++++++++++++++++++++++++----- shlibs/mount/src/mount.h.in | 2 +- shlibs/mount/src/mountP.h | 3 + 4 files changed, 281 insertions(+), 41 deletions(-) commit 5944e4e6c693d0d388c3ff9a3f534daa4bdf3767 Author: Karel Zak Date: Wed Sep 29 12:23:59 2010 +0200 libmount: add mtab managment to context API Signed-off-by: Karel Zak shlibs/mount/src/context.c | 79 ++++++++++++++++++++++++++++++++++++++--- shlibs/mount/src/mount.h.in | 2 +- shlibs/mount/src/tab_update.c | 3 +- 3 files changed, 77 insertions(+), 7 deletions(-) commit 0ccfc837ee1e7c8fc48626433fd2fcc8adc872b2 Author: Karel Zak Date: Wed Sep 29 11:19:18 2010 +0200 libmount: use attribute __format__ for debug routines Signed-off-by: Karel Zak shlibs/mount/src/mountP.h | 6 ++++-- shlibs/mount/src/optstr.c | 3 ++- shlibs/mount/src/tab.c | 4 ++-- shlibs/mount/src/tab_parse.c | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) commit 8485e7093bf506e3a4e13ffbe59ba83ef6853a32 Author: Karel Zak Date: Tue Sep 28 01:26:31 2010 +0200 libmount: add FS detection Signed-off-by: Karel Zak shlibs/mount/src/cache.c | 112 ++++++++++++++++++++++++++++++++++++++----- shlibs/mount/src/context.c | 36 +++++++++++++- shlibs/mount/src/fs.c | 30 ++++++------ shlibs/mount/src/mount.h.in | 1 + shlibs/mount/src/mount.sym | 1 + 5 files changed, 151 insertions(+), 29 deletions(-) commit e6a90b9860411ff2a5f2493d5d0e94aa74bd4f5a Author: Karel Zak Date: Mon Sep 27 16:52:54 2010 +0200 libmount: better permissions and optstr evaliation Signed-off-by: Karel Zak shlibs/mount/src/context.c | 222 ++++++++++++++++++++++++++++++------------- 1 files changed, 155 insertions(+), 67 deletions(-) commit 39dd1e5087397c25e0eaeb491346a27cf14c77ac Author: Karel Zak Date: Mon Sep 27 16:25:01 2010 +0200 libmount: add DBG() to optstr.c Signed-off-by: Karel Zak shlibs/mount/src/optstr.c | 28 +++++++++++++++++++++++++--- 1 files changed, 25 insertions(+), 3 deletions(-) commit a5106adb7647b421f9a42e0b972d5a1f5e3a554c Author: Karel Zak Date: Mon Sep 27 12:16:59 2010 +0200 libmount: minor cleanup in optstr.c Signed-off-by: Karel Zak shlibs/mount/src/optstr.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) commit 4796b46d69f30237db0a0788b4df511d3112a0b8 Author: Karel Zak Date: Mon Sep 27 12:14:41 2010 +0200 libmount: add mnt_optstr_fix_user Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 1 + shlibs/mount/src/mount.sym | 1 + shlibs/mount/src/optstr.c | 42 +++++++++++++++++++++++++++++++++++++++++- 3 files changed, 43 insertions(+), 1 deletions(-) commit 66b8b8cd774978f1c885464a51ca1492e6459f2d Author: Karel Zak Date: Sat Sep 25 01:48:38 2010 +0200 libmount: clean up mountflags usage Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 10 ++- shlibs/mount/src/mount.sym | 2 + shlibs/mount/src/optmap.c | 68 ++++++++++---------- shlibs/mount/src/optstr.c | 150 ++++++++++++++++++++++++++++++++++++++----- 4 files changed, 176 insertions(+), 54 deletions(-) commit b2d0b74def8ead6456dc8c796dd9981e2ce2d541 Author: Karel Zak Date: Fri Sep 24 23:23:06 2010 +0200 libmount: improve parsers return codes Signed-off-by: Karel Zak shlibs/mount/src/fs.c | 79 ++++++++++------ shlibs/mount/src/mountP.h | 5 +- shlibs/mount/src/tab_parse.c | 210 ++++++++++++++++++++++------------------- shlibs/mount/src/tab_update.c | 47 ++++++---- 4 files changed, 195 insertions(+), 146 deletions(-) commit 188dc15a639d8b298229dc718361ac9c3adf5e5f Author: Karel Zak Date: Fri Sep 24 13:04:35 2010 +0200 libmount: rewrite optstr translation Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 6 +- shlibs/mount/src/mount.sym | 6 +- shlibs/mount/src/mountP.h | 4 + shlibs/mount/src/optstr.c | 338 ++++++++++++++++++++++++++---------------- shlibs/mount/src/utils.c | 53 ++++++- 5 files changed, 268 insertions(+), 139 deletions(-) commit 7a457a96af320112021dfb9263857336a7732687 Author: Karel Zak Date: Tue Sep 21 21:47:54 2010 +0200 libmount: implement mnt_context_subst_optstr() Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 8 ++++- shlibs/mount/src/context.c | 83 ++++++++++++++++++++++++++++++------------ 2 files changed, 66 insertions(+), 25 deletions(-) commit af903024535eaeddbd0574b75a5d19c9e39eafe2 Author: Karel Zak Date: Tue Sep 21 21:46:49 2010 +0200 libmount: add routines for uid=, git= and context= translation Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 4 + shlibs/mount/src/mount.sym | 3 + shlibs/mount/src/optstr.c | 198 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 205 insertions(+), 0 deletions(-) commit a1e8af753cfe312d22c1b497243ef1f98d97052c Author: Karel Zak Date: Tue Sep 21 21:44:19 2010 +0200 libmount: add utils for work with uid/gid Signed-off-by: Karel Zak shlibs/mount/src/mountP.h | 3 +++ shlibs/mount/src/utils.c | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 0 deletions(-) commit c68408c2fed27f5fd7a69b6ec0d649f67483226f Author: Karel Zak Date: Tue Sep 21 13:11:55 2010 +0200 libmount: add first part of high-level API Signed-off-by: Karel Zak shlibs/mount/src/context.c | 1126 ++++++++++++++++++++++++++++++++++++++++++++ shlibs/mount/src/optmap.c | 2 + 2 files changed, 1128 insertions(+), 0 deletions(-) commit 502b29e294ff8b90e7e6c725eb0cfee7948d3b4f Author: Karel Zak Date: Wed Sep 15 16:57:19 2010 +0200 libmount: cleanup mount.sym Signed-off-by: Karel Zak shlibs/mount/src/mount.sym | 41 +++-------------------------------------- 1 files changed, 3 insertions(+), 38 deletions(-) commit 8fa671576cde9e45411dca5427e7d52d7b6b9be6 Author: Karel Zak Date: Wed Sep 15 16:56:15 2010 +0200 libmount: add mnt_context Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit 2b5cceb5c799794121bfab1a7652ea06b164cb3e Author: Karel Zak Date: Wed Sep 15 16:55:47 2010 +0200 libmount: add mnt_optstr_get_userspace_mountflags() Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 2 +- shlibs/mount/src/mount.h.in | 1 + shlibs/mount/src/mount.sym | 1 + shlibs/mount/src/optstr.c | 108 ++++++++++++++++++++++++++++++++---------- 4 files changed, 86 insertions(+), 26 deletions(-) commit 9dd75aa6f25d88e483616b8df2d534408776532f Author: Karel Zak Date: Wed Sep 15 16:31:38 2010 +0200 libmount: add MNT_FS_SWAP flag Signed-off-by: Karel Zak shlibs/mount/src/fs.c | 21 ++++++++++++++------- shlibs/mount/src/mountP.h | 1 + shlibs/mount/src/tab.c | 7 ++++++- shlibs/mount/src/tab_parse.c | 6 +++--- 4 files changed, 24 insertions(+), 11 deletions(-) commit 4e92d2b018b5e7504bc07c4fe4a1cd1beefd5be6 Author: Karel Zak Date: Wed Sep 15 16:29:06 2010 +0200 libmount: cleanup debug flags Signed-off-by: Karel Zak shlibs/mount/src/mountP.h | 8 +++++--- shlibs/mount/src/tab_update.c | 32 +++++++++++++++++--------------- 2 files changed, 22 insertions(+), 18 deletions(-) commit 33eff02a448a048fc1b90e61a0f1f7a42c0507c7 Author: Karel Zak Date: Wed Sep 15 16:27:06 2010 +0200 libmount: improve debugging, fix optstr prepend Signed-off-by: Karel Zak shlibs/mount/src/cache.c | 4 ++-- shlibs/mount/src/optstr.c | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) commit c5a6f7a92d790669943bcb0e77a99936a9712101 Author: Karel Zak Date: Wed Sep 15 16:23:54 2010 +0200 libmount: add new pseudo filesystems Signed-off-by: Karel Zak shlibs/mount/src/utils.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit c83fd489e6a8b43339e39bbc3528b9771746ae32 Author: Karel Zak Date: Tue Sep 14 10:50:49 2010 +0200 libmount: add mnt_fs_prepend_optstr() Signed-off-by: Karel Zak shlibs/mount/src/fs.c | 34 ++++++++++++++++++++++++++++++---- shlibs/mount/src/mount.h.in | 1 + shlibs/mount/src/mount.sym | 1 + shlibs/mount/src/tab_parse.c | 6 ++++-- shlibs/mount/src/tab_update.c | 4 ++-- 5 files changed, 38 insertions(+), 8 deletions(-) commit e87c03f47ee2f0dac56cd03b08fe601ee97a2466 Author: Karel Zak Date: Tue Sep 14 10:42:44 2010 +0200 libmount: add mnt_optstr_prepend_option() Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 2 + shlibs/mount/src/mount.sym | 1 + shlibs/mount/src/optstr.c | 55 +++++++++++++++++++++++++++++++++++++++++- 3 files changed, 56 insertions(+), 2 deletions(-) commit 496f189e776d726ef264afb793e114bb0a193898 Author: Karel Zak Date: Mon Sep 13 17:17:14 2010 +0200 libmount: fix optstr test Signed-off-by: Karel Zak shlibs/mount/src/optstr.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 3f31a9593b21dd08b5f4469f9ff88dc12dbfb63d Author: Karel Zak Date: Mon Sep 13 17:06:18 2010 +0200 libmount: rewrite DBG() macro Signed-off-by: Karel Zak shlibs/mount/src/cache.c | 17 ++++++++---- shlibs/mount/src/init.c | 5 ++- shlibs/mount/src/lock.c | 19 +++++++------- shlibs/mount/src/mountP.h | 54 +++++++++++++++++++++++++++++++--------- shlibs/mount/src/optstr.c | 9 ++---- shlibs/mount/src/tab.c | 33 ++++++++++--------------- shlibs/mount/src/tab_parse.c | 34 ++++++++++---------------- shlibs/mount/src/tab_update.c | 44 +++++++++++++-------------------- shlibs/mount/src/utils.c | 3 +- 9 files changed, 113 insertions(+), 105 deletions(-) commit 1bbe1bc74be7e50929b7eb4ba85ce69a4582e542 Author: Karel Zak Date: Fri Aug 27 10:14:32 2010 +0200 libmount: add new psetudo filesystems Signed-off-by: Karel Zak shlibs/mount/src/utils.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit d8a307491495a8dc5e53d1a61585aa636bdda0f4 Author: Karel Zak Date: Fri Aug 27 10:11:09 2010 +0200 libmount: cleanup return codes (tab_parse.c) Signed-off-by: Karel Zak shlibs/mount/src/tab_parse.c | 138 ++++++++++++++++++++++++------------------ 1 files changed, 78 insertions(+), 60 deletions(-) commit 59ae0dddc5fde799f45be200da4f0208f026495b Author: Karel Zak Date: Thu Aug 26 14:35:36 2010 +0200 libmount: cleanup return codes (tab.c) Signed-off-by: Karel Zak shlibs/mount/src/tab.c | 42 +++++++++++++++++++++--------------------- 1 files changed, 21 insertions(+), 21 deletions(-) commit a6cdaa9e5d15c0d538bb324e878ee16dcbc2e52b Author: Karel Zak Date: Wed Aug 25 12:14:40 2010 +0200 libmount: cleanup return codes (optstr.c) Signed-off-by: Karel Zak shlibs/mount/src/optstr.c | 87 +++++++++++++++++++++----------------------- 1 files changed, 42 insertions(+), 45 deletions(-) commit e4e669d7e59adfaf5d3438b060d5fc50263c23b1 Author: Karel Zak Date: Wed Aug 25 11:26:57 2010 +0200 libmount: cleanup return codes (optmap.c) Signed-off-by: Karel Zak shlibs/mount/src/optmap.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 03a8029b3a94a3a92838e6f59efb39890e61b6c1 Author: Karel Zak Date: Wed Aug 25 11:20:32 2010 +0200 libmount: cleanup return codes (lock.c) Signed-off-by: Karel Zak shlibs/mount/src/lock.c | 40 ++++++++++++++++++++++++---------------- 1 files changed, 24 insertions(+), 16 deletions(-) commit 5fe6844504a976f0eb430ef8c148a6165074971e Author: Karel Zak Date: Wed Aug 25 10:55:10 2010 +0200 libmount: cleanup return codes (iter.c) Signed-off-by: Karel Zak shlibs/mount/src/iter.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 56be757f35561c2a98b36328f0fb7550f6b57c00 Author: Karel Zak Date: Tue Aug 24 16:30:39 2010 +0200 libmount: cleanup return codes (fs.c) Signed-off-by: Karel Zak shlibs/mount/src/fs.c | 110 ++++++++++++++++++++++-------------------------- 1 files changed, 50 insertions(+), 60 deletions(-) commit abc3d1544b8eac3ec6b28c08f4a1bb34c37ab0f3 Author: Karel Zak Date: Tue Aug 24 16:17:16 2010 +0200 libmount: cleanup return codes (cache.c) Signed-off-by: Karel Zak shlibs/mount/src/cache.c | 25 +++++++++++++------------ shlibs/mount/src/lock.c | 2 +- shlibs/mount/src/mountP.h | 1 + shlibs/mount/src/optstr.c | 4 ++-- shlibs/mount/src/test.c | 2 +- 5 files changed, 18 insertions(+), 16 deletions(-) commit 569f95b7e8d457e11ce1ca114128bdf7f732208f Author: Karel Zak Date: Tue Aug 24 16:03:50 2010 +0200 libmount: clean up mnt_fs_set_optstr() Signed-off-by: Karel Zak shlibs/mount/src/fs.c | 72 +++++++++++++++++++++++++++++++---------- shlibs/mount/src/mount.h.in | 1 + shlibs/mount/src/mount.sym | 1 + shlibs/mount/src/mountP.h | 2 + shlibs/mount/src/tab_parse.c | 4 +- shlibs/mount/src/tab_update.c | 7 ++-- 6 files changed, 65 insertions(+), 22 deletions(-) commit 30493710e4b97c493adb285d2edd7d5a0d5c8e0e Author: Karel Zak Date: Tue Aug 10 15:27:23 2010 +0200 libmount: improve an rename API for mtab management Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 4 +- shlibs/mount/src/mount.h.in | 32 +- shlibs/mount/src/mount.sym | 20 +- shlibs/mount/src/mtab.c | 951 --------------------------------------- shlibs/mount/src/tab_update.c | 995 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 1023 insertions(+), 979 deletions(-) commit d672fb2688bebf952344e263f0fe70653148298d Author: Karel Zak Date: Tue Aug 10 15:26:59 2010 +0200 libmount: update tests Signed-off-by: Karel Zak shlibs/mount/src/optstr.c | 2 +- shlibs/mount/src/utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 8378ede9ecd8447679ea6405d782d09e1591bc82 Author: Karel Zak Date: Fri Aug 6 13:11:52 2010 +0200 libmount: update mount.{h,sym} Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 20 +++++++++++++++++++- shlibs/mount/src/mount.sym | 12 ++++++++++++ 2 files changed, 31 insertions(+), 1 deletions(-) commit 7714c689b9141cc26acdc80311d663992288b1a0 Author: Karel Zak Date: Fri Aug 6 13:03:34 2010 +0200 libmount: use mnt_fs for mtab API Signed-off-by: Karel Zak shlibs/mount/src/fs.c | 4 +- shlibs/mount/src/mtab.c | 152 +++++++++++++++++++++------------------------- 2 files changed, 71 insertions(+), 85 deletions(-) commit 0c188bb238bf5c2a2cd3403b27c91426f60cbe07 Author: Karel Zak Date: Fri Aug 6 11:50:39 2010 +0200 libmount: fix datatype for mountflags Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 2 +- shlibs/mount/src/mtab.c | 6 +++--- shlibs/mount/src/optstr.c | 18 ++++++++++-------- 3 files changed, 14 insertions(+), 12 deletions(-) commit 6f0c256db39247a873c1513275073f9a574c30ce Author: Karel Zak Date: Thu Aug 5 14:28:19 2010 +0200 libmount: remove unnecessary options container It seems that we are able to be happy with option strings only. The mnt_optls stuff was over-engineering. Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 4 +- shlibs/mount/src/mount.h.in | 59 --- shlibs/mount/src/mountP.h | 40 --- shlibs/mount/src/optent.c | 735 -------------------------------------- shlibs/mount/src/optls.c | 794 ------------------------------------------ 5 files changed, 2 insertions(+), 1630 deletions(-) commit 6c40a53d97dbfa52bbdbbe86672322cb7bceb08d Author: Karel Zak Date: Thu Aug 5 13:47:37 2010 +0200 libmount: add support for mtab managment Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 4 +- shlibs/mount/src/mountP.h | 8 - shlibs/mount/src/mtab.c | 965 ++++++++++++++++++++++++++++++++++++++++++ shlibs/mount/src/optstr.c | 2 +- 4 files changed, 968 insertions(+), 11 deletions(-) commit 7a539b29af600e1adb1f48f4772a41c2e5e95e42 Author: Karel Zak Date: Thu Aug 5 13:14:58 2010 +0200 lib: fix mange() and unmangle() to handle NULL Signed-off-by: Karel Zak lib/mangle.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) commit be1a5180596aa3a413e9c8047d0d25f4704756ef Author: Karel Zak Date: Thu Aug 5 12:35:54 2010 +0200 libmount: correctly use "none" values Signed-off-by: Karel Zak shlibs/mount/src/fs.c | 27 +++++++++++++++------------ shlibs/mount/src/tab_parse.c | 5 ++++- shlibs/mount/src/utils.c | 8 ++++++-- 3 files changed, 25 insertions(+), 15 deletions(-) commit b2214e1f3e6e58fce214c8d68c4c7a3660a2d362 Author: Karel Zak Date: Thu Aug 5 12:26:00 2010 +0200 findmnt: add support for fs-root (subvolumes and bind mounts) This patch modifies the default output for SOURCE column. All btrfs subvolume mountpoints and all bind-mount (where source is not root of FS) will be printed as: SOURCE TARGET /dev/sda1[/aaa] /mnt/test where /aaa is subvolume name or fs root for bind mounts, it means: # mount -t btrfs /dev/sda1 /mnt/test -o subvol=aaa or: # mount --bind /aaa /mnt/test The info about fs-root is 4th column in /proc/self/mountinfo. Signed-off-by: Karel Zak misc-utils/findmnt.8 | 2 ++ misc-utils/findmnt.c | 20 ++++++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) commit 922d87965c6371986863dae18e001f8e22731651 Author: Karel Zak Date: Thu Aug 5 12:24:59 2010 +0200 libmount: add mnt_optstr_get_mountflags() Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 23 +++++++++++++++++++ shlibs/mount/src/mount.sym | 1 + shlibs/mount/src/optstr.c | 50 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 74 insertions(+), 0 deletions(-) commit 9758c88ad19c7aa27d2077738729afcbce58bfc3 Author: Karel Zak Date: Wed Jul 28 15:16:49 2010 +0200 libmount: improve mnt_get_fs_root() and mnt_get_mountpoint() Signed-off-by: Karel Zak shlibs/mount/src/mountP.h | 4 +++- shlibs/mount/src/utils.c | 22 ++++++++++++++-------- 2 files changed, 17 insertions(+), 9 deletions(-) commit f309b8a7c90693a73ab45dc548029d1007c7afe4 Author: Karel Zak Date: Wed Jul 28 15:14:41 2010 +0200 libmount: add uhelper=, improve mnt_split_optstr() Signed-off-by: Karel Zak shlibs/mount/src/fs.c | 2 +- shlibs/mount/src/mount.h.in | 5 ++++- shlibs/mount/src/optmap.c | 2 ++ shlibs/mount/src/optstr.c | 29 ++++++++++++++++++++++------- 4 files changed, 29 insertions(+), 9 deletions(-) commit 6d94f2dc2564d869f11de7d3dc637c51f7970a22 Author: Karel Zak Date: Mon Jul 26 16:27:45 2010 +0200 libmount: add unit test for mnt_copy_fs() Signed-off-by: Karel Zak shlibs/mount/src/tab.c | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) commit 0bb44be327c63544b1b6274fdf5507987954c02b Author: Karel Zak Date: Mon Jul 26 16:26:27 2010 +0200 libmount: add utils to get FS root/mountpoint Signed-off-by: Karel Zak shlibs/mount/src/mountP.h | 3 + shlibs/mount/src/utils.c | 91 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+), 0 deletions(-) commit 9ecdf48fc316b057acbaf744bb32a18e281a7924 Author: Karel Zak Date: Mon Jul 26 16:24:29 2010 +0200 libmount: add mnt_copy_fs() and mnt_fs_set_root() Signed-off-by: Karel Zak shlibs/mount/src/fs.c | 87 +++++++++++++++++++++++++++++++++++++++++++ shlibs/mount/src/mount.h.in | 4 +- shlibs/mount/src/mount.sym | 2 + 3 files changed, 92 insertions(+), 1 deletions(-) commit 3c5e4ef8881272a97edb2a01649780c9b5bbcf3b Author: Karel Zak Date: Wed Jul 21 14:18:02 2010 +0200 libmount: add unmangle/mangle() functions to API Signed-off-by: Karel Zak include/mangle.h | 4 ++-- lib/mangle.c | 9 +++++---- shlibs/mount/src/mount.h.in | 2 ++ shlibs/mount/src/mount.sym | 2 ++ shlibs/mount/src/utils.c | 27 +++++++++++++++++++++++++++ 5 files changed, 38 insertions(+), 6 deletions(-) commit 6a493fa3769684971c9c47163d47e9687fb9d0f0 Author: Karel Zak Date: Wed Jul 21 14:01:56 2010 +0200 libmount: remove fs and tab printf functions Signed-off-by: Karel Zak shlibs/mount/src/fs.c | 112 ------------------------------------------ shlibs/mount/src/mount.h.in | 19 ------- shlibs/mount/src/mount.sym | 3 - shlibs/mount/src/tab.c | 84 ------------------------------- shlibs/mount/src/tab_parse.c | 3 +- 5 files changed, 2 insertions(+), 219 deletions(-) commit b49103ed47580ecc94969d00ff4ebd5101fa53fd Author: Karel Zak Date: Thu Jul 15 16:00:42 2010 +0200 libmount: add {start,end}swith() functions Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 3 +- shlibs/mount/src/mountP.h | 3 ++ shlibs/mount/src/utils.c | 52 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+), 1 deletions(-) commit d1be0c3471d6eb7304542e613da676130fda5194 Author: Karel Zak Date: Thu Jul 15 15:24:11 2010 +0200 libmount: add mnt_get_writable_mtab_path() Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 5 ++++- shlibs/mount/src/mount.sym | 1 + shlibs/mount/src/utils.c | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletions(-) commit 66c33aab22d73f374cb081baefe9d72a5bab3de5 Author: Karel Zak Date: Thu Jul 15 15:22:34 2010 +0200 libmount: clean up lock.c Signed-off-by: Karel Zak shlibs/mount/src/lock.c | 114 +++++++++++++++++++++++++--------------------- 1 files changed, 62 insertions(+), 52 deletions(-) commit 0532ba1d8f875d97c3938bc8bd32e7e536f8d08f Author: Karel Zak Date: Wed Jul 14 15:05:14 2010 +0200 libmount: add mnt_tab_parse_mtab() Signed-off-by: Karel Zak misc-utils/findmnt.c | 2 + shlibs/mount/src/fs.c | 1 + shlibs/mount/src/mount.h.in | 1 + shlibs/mount/src/mount.sym | 1 + shlibs/mount/src/mountP.h | 7 ++- shlibs/mount/src/tab.c | 2 + shlibs/mount/src/tab_parse.c | 90 ++++++++++++++++++++++++++++++++++++++++++ shlibs/mount/src/utils.c | 13 ++++++ 8 files changed, 115 insertions(+), 2 deletions(-) commit 3661b841289fb36c5690272441737d5d0b34bf88 Author: Karel Zak Date: Fri Jul 9 16:39:50 2010 +0200 libmount: add mnt_split_optstr() Signed-off-by: Karel Zak shlibs/mount/src/fs.c | 40 +++++++++++--- shlibs/mount/src/mount.h.in | 3 + shlibs/mount/src/mount.sym | 2 + shlibs/mount/src/optmap.c | 7 ++- shlibs/mount/src/optstr.c | 126 ++++++++++++++++++++++++++++++++++++++----- 5 files changed, 152 insertions(+), 26 deletions(-) commit 5283b1ce50b23be633a1fbb228dd6f85a7b34dca Author: Karel Zak Date: Fri Jul 9 13:50:51 2010 +0200 libmount: don't return old data from optls iterator Signed-off-by: Karel Zak shlibs/mount/src/optls.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 97569ecd862eb3ebec795e13c72a9b7d9e16b553 Author: Karel Zak Date: Fri Jul 9 12:15:16 2010 +0200 libmount: clean up mount.sym file The API is not stable yet, so it's possible to increment the current API version rather than create a new version. Signed-off-by: Karel Zak shlibs/mount/src/mount.sym | 16 ++++++---------- 1 files changed, 6 insertions(+), 10 deletions(-) commit 0b3953a33d492336a6d9aa8f7ef200e6dc262281 Author: Karel Zak Date: Fri Jul 9 11:15:08 2010 +0200 libmount: add mnt_fs_get_root() Signed-off-by: Karel Zak shlibs/mount/src/fs.c | 16 ++++++++++++++-- shlibs/mount/src/mount.h.in | 2 +- shlibs/mount/src/mount.sym | 6 ++++++ shlibs/mount/src/mountP.h | 2 +- shlibs/mount/src/tab_parse.c | 4 ++-- 5 files changed, 24 insertions(+), 6 deletions(-) commit 2005515135216801a64926d8e807b7665304d028 Author: Karel Zak Date: Wed Jun 23 10:22:02 2010 +0200 findmnt: add /etc/fstab.d support Signed-off-by: Karel Zak misc-utils/findmnt.8 | 5 ++++- misc-utils/findmnt.c | 21 +++++++++++++++++++-- 2 files changed, 23 insertions(+), 3 deletions(-) commit 9826a63737086a8c28353de878b4bf3e1d5caa2b Author: Karel Zak Date: Wed Jun 23 10:18:43 2010 +0200 libmount: add /etc/fstab.d support Signed-off-by: Karel Zak include/pathnames.h | 2 + shlibs/mount/src/Makefile.am | 1 + shlibs/mount/src/mount.h.in | 1 + shlibs/mount/src/mount.sym | 1 + shlibs/mount/src/mountP.h | 3 + shlibs/mount/src/tab_parse.c | 109 +++++++++++++++++++++++++++++++++++++++++- 6 files changed, 115 insertions(+), 2 deletions(-) commit 5a5eeb1513cfb7e02a352ef0dd987e85697a83eb Author: Karel Zak Date: Tue Jun 22 13:27:59 2010 +0200 lib: add wrappers for "at" functions Signed-off-by: Karel Zak include/Makefile.am | 1 + include/at.h | 23 ++++++++++++ lib/Makefile.am | 3 +- lib/at.c | 100 +++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 126 insertions(+), 1 deletions(-) commit 45d6713e8781e3102fa49c4284637dc5fcf5f656 Author: Karel Zak Date: Tue Jun 22 11:52:36 2010 +0200 libmount: add mnt_tab_parse_stream() Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 1 + shlibs/mount/src/mount.sym | 1 + shlibs/mount/src/tab_parse.c | 84 +++++++++++++++++++++++++----------------- 3 files changed, 52 insertions(+), 34 deletions(-) commit 9ed7507c7b1a358841975c38a86e90e3cea61260 Author: Karel Zak Date: Tue Jun 22 08:53:56 2010 +0200 libmount: don't store filename to mnt_tab Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 6 ++-- shlibs/mount/src/mountP.h | 1 - shlibs/mount/src/tab.c | 63 ++++++++++++------------------------------ shlibs/mount/src/tab_parse.c | 48 ++++++++++++++++++-------------- 4 files changed, 48 insertions(+), 70 deletions(-) commit fbb3eb85d328f0de2dce212e3336ba8655195de4 Author: Karel Zak Date: Mon Jun 21 23:15:54 2010 +0200 libmount: improve parser return codes Signed-off-by: Karel Zak shlibs/mount/src/tab.c | 11 +++++++++++ shlibs/mount/src/tab_parse.c | 25 +++++++++++++++---------- 2 files changed, 26 insertions(+), 10 deletions(-) commit 911238af459a224a24d6a7e11222e0788afd99fa Author: Karel Zak Date: Mon Jun 21 22:47:48 2010 +0200 libmount: remove mnt_tab_strerr() Signed-off-by: Karel Zak misc-utils/findmnt.c | 6 --- shlibs/mount/src/mount.h.in | 1 - shlibs/mount/src/mount.sym | 2 - shlibs/mount/src/mountP.h | 9 +--- shlibs/mount/src/tab.c | 58 +-------------------------- shlibs/mount/src/tab_parse.c | 91 ++++-------------------------------------- 6 files changed, 12 insertions(+), 155 deletions(-) commit 9fd75d76cc383eaa4c01e57293bfecbb76ee3d8a Author: Karel Zak Date: Mon Jun 21 18:08:53 2010 +0200 libmount: add mnt_tab_set_parser_errcb() Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 3 ++- shlibs/mount/src/mount.sym | 1 + shlibs/mount/src/mountP.h | 3 +++ shlibs/mount/src/tab_parse.c | 39 +++++++++++++++++++++++++++++---------- 4 files changed, 35 insertions(+), 11 deletions(-) commit 94decb7c6090e8bfc09f4cd13add863b02ff22c4 Author: Karel Zak Date: Sat Jan 1 23:14:46 2011 +0100 libblkid: use PRId64 in PT parser Signed-off-by: Karel Zak shlibs/blkid/src/partitions/partitions.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) commit 5606df53d3997e3495d78f6ae6b9dd45c46861a2 Author: Peter Tyser Date: Wed Dec 29 16:25:43 2010 -0600 hwclock: allow setting of RTC when it contains invalid data In some cases the date/time stored in an RTC can be corrupted, eg due to loss of power, before its been initially set, etc. When this occurs the RTC_RD_TIME ioctl can fail since the Linux kernel determines that the RTC contains invalid data. Currently, when setting an RTC using hwclock, hwclock performs a number of RTC_RD_TIME ioctls before setting the RTC. When one of these ioctls fails, hwclock bombs out and the corrupted RTC data can't be overwritten. Thus once an RTC is corrupted, it can't be fixed via hwclock*. To work around the above issue we can make hwclock not exit when a RTC_RD_TIME failure occurs during the process of setting the RTC. This allows the RTC to be set even when it contains an invalid value, although it is not synchronized to a clock tick before it is set. * 'hwclock --utc --noadjfile --set --date="11/23/10 17:19:00' currently works to fix a corrupted RTC, but a user couldn't determine this without digging through the source code. Signed-off-by: Peter Tyser hwclock/hwclock.c | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) commit 3d6e5c355d10dcd9d6336331c96935013ffcd3b1 Author: Gerrit Renker Date: Tue Dec 28 10:53:03 2010 +0100 lscpu: avoid len = 0 as a consequence of maxcpus = 0 This problem was observed on an x86_64 Mobile AMD Sempron 3700+ where kernel_max returned "0" as the index of the highest CPU. As a consequence, several variables in lscpu, which relied on maxcpus >= 1 (in particular the 'len' value) were set to 0, resulting in the following errors: host>./lscpu lscpu: failed to read: /sys/devices/system/cpu/online: No such file or directory host> cat /sys/devices/system/cpu/kernel_max 0 The fix used by this patch is to interpret kernel_max as an index and maxcpus as a count >= 1, tested to work. Signed-off-by: Gerrit Renker Signed-off-by: Karel Zak sys-utils/lscpu.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit a5db2fd6892e4c429486a4c6a33acddcf45b3c49 Author: Davidlohr Bueso Date: Thu Dec 23 11:55:23 2010 -0300 partx: fix authors section in man page Signed-off-by: Davidlohr Bueso partx/partx.8 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0d8589c56547098d9026856c85dbf0d72d72e36c Author: Francesco Cosoleto Date: Sat Dec 18 19:24:03 2010 +0100 cfdisk: close the program when terminal isn't present cfdisk was getting characters without checking ERR return code, causing an endless while loop in do_curses_fdisk() or in other functions when the terminal is lost. [kzak@redhat.com: - fix coding style, remove CR macro] Signed-off-by: Francesco Cosoleto Signed-off-by: Karel Zak fdisk/cfdisk.c | 23 +++++++++++++++++------ 1 files changed, 17 insertions(+), 6 deletions(-) commit 6ebe8f630ad8f31cd0aca0636f73eb9b4ffe5aa2 Author: Milan Broz Date: Fri Dec 17 23:36:55 2010 +0100 wipefs: fail if more device arguments specified Currently wipefs process only first device argument and silently ignores remaining. Print error instead because it can be quite confusing. Signed-off-by: Milan Broz Signed-off-by: Karel Zak misc-utils/wipefs.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 604eb2602c9ade859713fc071526da04bef1878f Author: Sami Kerola Date: Sun Dec 12 23:43:57 2010 +0100 hexdump: remove od functionality in favor to GNU coreutils od Signed-off-by: Sami Kerola text-utils/Makefile.am | 2 +- text-utils/conv.c | 12 +-- text-utils/hexdump.c | 9 +- text-utils/hexdump.h | 1 - text-utils/od.1 | 77 -------------- text-utils/odsyntax.c | 265 ------------------------------------------------ 6 files changed, 8 insertions(+), 358 deletions(-) commit e02d2b9328b02cde4f4fcbe2ead1fcc871117eba Author: Karel Zak Date: Thu Dec 30 20:37:22 2010 +0100 libblkid: fix endian conversion bug in NILFS Reported-by: Andrew Nayenko Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/nilfs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 98496774defa83194ba3f5099aa9f97467df9f5c Author: Karel Zak Date: Wed Dec 29 20:58:10 2010 +0100 build-sys: remove unnecessary header Signed-off-by: Karel Zak simpleinit/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7c2ee1d26cc5de6540f5bca89a7d91bcd076ceb4 Author: Karel Zak Date: Wed Dec 29 20:51:58 2010 +0100 build-sys: remove generated po/POTFILES.in Signed-off-by: Karel Zak autogen.sh | 1 + po/.gitignore | 1 + po/POTFILES.in | 259 ---------------------------------------------------- po/update-potfiles | 14 ++- 4 files changed, 11 insertions(+), 264 deletions(-) commit 6c6f2af9e3949197cf7a70255895a2f4451f2319 Author: Karel Zak Date: Mon Dec 27 22:30:24 2010 +0100 fsck: returns proper code on exec() error # fsck -t foo /dev/sda1; echo $? fsck: fsck.foo: not found /sbin/fsck: Error 2 while executing fsck.foo for /dev/sda1 0 new version: # fsck -t foo /dev/sda1; echo $? fsck: fsck.foo: not found fsck: Error 2 while executing fsck.foo for /dev/sda1 8 Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=619139 Signed-off-by: Karel Zak fsck/fsck.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) commit 61cbc01a89739ff7c3f668108b15a5ec86963f9b Author: Karel Zak Date: Sun Dec 26 23:53:21 2010 +0100 lsblk: rename "RA" column to "RE" The RA abbreviation is usually used for readahead, the column in lsblk(8) means removable. Signed-off-by: Karel Zak misc-utils/lsblk.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 6bec87105cb4f2e5baf9cde14174bee8376e3b32 Author: Karel Zak Date: Fri Dec 17 01:28:59 2010 +0100 fdisk: use canonicalized names for -l (and sfdisk -d) .. no more /dev/dm-X in "fdisk -l" and "sfdisk -d" output, always use /dev/mapper/. Signed-off-by: Karel Zak fdisk/Makefile.am | 6 ++++-- fdisk/fdisk.c | 15 +++++++++++---- fdisk/fdisk.h | 1 - fdisk/sfdisk.c | 33 +++++++++++++++++---------------- 4 files changed, 32 insertions(+), 23 deletions(-) commit 57a60bf0effd1539aa78fd19aa13024ce6a9edf6 Author: Karel Zak Date: Fri Dec 17 01:10:36 2010 +0100 swpaon: use canonicalized devnames on -s output Old version Filename Type Size Used Priority /dev/sda3 partition 2353516 76 -1 /dev/dm-1 partition 409596 0 -2 New version: Filename Type Size Used Priority /dev/sda3 partition 2353516 76 -1 /dev/mapper/VUL-lvol0 partition 409596 0 -2 Signed-off-by: Karel Zak mount/swapon.c | 38 ++++++++++++++++++++++++++++---------- 1 files changed, 28 insertions(+), 10 deletions(-) commit b98ff23e879826d0b041a18ca1090428748b9ef3 Author: Alexey Gladkov Date: Wed Dec 15 02:14:18 2010 +0300 swapon: Canonicalize swap device Swapon checks whether a swap device is active by searching for the device name in /proc/swaps. /proc/swaps always specifies the path to real device file, even if the path to real device file, even if symlink was passed to the swapon() system call. This differs from /proc/mounts semantics where each string contains exactly the same device name as it was passed to the mount*() system call. If a swap partition resides on lvm, libblkid returns a name in form /dev/mapper/*, but now there are symlinks pointing to device files /dev/dm-*, resulting to /proc/swaps containing /dev/dm-*, but swapon still looks for /dev/mapper/* and tries to activate the swap partition again. [kzak@redhat.com: - remove unnecessary changes from is_in_proc_swaps()] Signed-off-by: Alexey Gladkov Tested-by: Petr Uzel Signed-off-by: Karel Zak mount/swapon.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) commit f31505fe0396a880dad297d14c29c2415cc94272 Author: Karel Zak Date: Thu Dec 16 12:47:30 2010 +0100 lsblk: add --nodeps Signed-off-by: Karel Zak misc-utils/lsblk.8 | 3 +++ misc-utils/lsblk.c | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletions(-) commit f872ed1f22c50c3cbfb80bc4062ea995c6071964 Author: Karel Zak Date: Thu Dec 16 12:12:43 2010 +0100 lib: [tt] fix alignment of the last tree child Signed-off-by: Karel Zak lib/tt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 5eae5930931742e80df9da51888842ae9be0eb33 Author: Francesco Cosoleto Date: Fri Dec 10 17:40:11 2010 +0100 mesg: change error exit code from 1 to >1 According to POSIX and mesg(1) error exit code should be >1. Signed-off-by: Francesco Cosoleto login-utils/mesg.c | 24 +++++++++++++++--------- 1 files changed, 15 insertions(+), 9 deletions(-) commit 07542740b66b05c2e653c68f08dc02894152f6a9 Author: Karel Zak Date: Fri Dec 10 17:32:57 2010 +0100 docs: update DEPRECATED file Signed-off-by: Karel Zak DEPRECATED | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) commit 5502d92b28e442c8b9294608eaf67df9127d11e9 Author: Karel Zak Date: Fri Dec 10 17:28:32 2010 +0100 simpleinit: move old init stuff to separate directory Signed-off-by: Karel Zak Makefile.am | 4 + configure.ac | 1 + login-utils/.gitignore | 3 - login-utils/Makefile.am | 33 -- login-utils/fastboot.8 | 1 - login-utils/fasthalt.8 | 1 - login-utils/halt.8 | 1 - login-utils/initctl.8 | 110 ---- login-utils/initctl.c | 217 -------- login-utils/reboot.8 | 1 - login-utils/shutdown.8 | 169 ------- login-utils/shutdown.c | 747 --------------------------- login-utils/simpleinit.8 | 180 ------- login-utils/simpleinit.c | 1246 --------------------------------------------- login-utils/simpleinit.h | 28 - simpleinit/.gitignore | 3 + simpleinit/Makefile.am | 27 + simpleinit/fastboot.8 | 1 + simpleinit/fasthalt.8 | 1 + simpleinit/halt.8 | 1 + simpleinit/initctl.8 | 110 ++++ simpleinit/initctl.c | 217 ++++++++ simpleinit/reboot.8 | 1 + simpleinit/shutdown.8 | 169 +++++++ simpleinit/shutdown.c | 747 +++++++++++++++++++++++++++ simpleinit/simpleinit.8 | 180 +++++++ simpleinit/simpleinit.c | 1251 ++++++++++++++++++++++++++++++++++++++++++++++ simpleinit/simpleinit.h | 28 + 28 files changed, 2741 insertions(+), 2737 deletions(-) commit cda8458b4d1e6f2772b77a448b342806057f0a3a Author: Karel Zak Date: Fri Dec 10 17:09:43 2010 +0100 docs: update TODO file Signed-off-by: Karel Zak TODO | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit 18be404b29204db395ccb3c5bf7971b49ccdfa98 Author: Karel Zak Date: Fri Dec 10 17:07:44 2010 +0100 vipw: fix warn_unused_result gcc warning vipw.c:194:6: warning: ignoring return value of ‘link’, declared with attribute warn_unused_result Signed-off-by: Karel Zak login-utils/vipw.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit abafd68667a965c033c5cef0646482433f6994b5 Author: Karel Zak Date: Fri Dec 10 16:47:18 2010 +0100 fix __noreturn__ usage Signed-off-by: Karel Zak login-utils/chsh.c | 2 +- misc-utils/findmnt.c | 4 ++-- misc-utils/lsblk.c | 4 ++-- mount/sundries.c | 4 ++-- partx/partx.c | 4 ++-- sys-utils/renice.c | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) commit 39941b4e38e47fc4ae8f149c60ac2fc4145fb852 Author: Marek Polacek Date: Wed Dec 1 17:18:50 2010 +0100 chfn: Use EXIT_* and err() [kzak@redhat.com: - clean usage() calls and some error messages] Signed-off-by: Marek Polacek login-utils/chfn.c | 127 ++++++++++++++++++--------------------------------- 1 files changed, 45 insertions(+), 82 deletions(-) commit 00f41c7dfd561a34ac9afee10a273dd8c65d4d56 Author: Karel Zak Date: Fri Dec 10 16:22:29 2010 +0100 wall: fix coding style Signed-off-by: Karel Zak login-utils/wall.c | 25 +++++++++++++------------ 1 files changed, 13 insertions(+), 12 deletions(-) commit aa00c136a5aaf413c66561b9b6dc1690a7bcebc6 Author: Karel Zak Date: Fri Dec 10 16:20:00 2010 +0100 wall: remove progname Signed-off-by: Karel Zak login-utils/wall.c | 13 ++++--------- 1 files changed, 4 insertions(+), 9 deletions(-) commit d0acbd38e2dfef68e07d732ca41b89d4f2e800b4 Author: Marek Polacek Date: Wed Dec 1 17:18:44 2010 +0100 wall: Use EXIT_* and err() Signed-off-by: Marek Polacek login-utils/wall.c | 43 ++++++++++++++++++------------------------- 1 files changed, 18 insertions(+), 25 deletions(-) commit 9b59ecf08255144b7e52ee3a944f9702c53f5aed Author: Marek Polacek Date: Wed Dec 1 17:18:38 2010 +0100 vipw: use EXIT_* and err() [kzak@redhat.com: - fix one error message] Signed-off-by: Marek Polacek Signed-off-by: Karel Zak login-utils/vipw.c | 44 ++++++++++++++++++++++---------------------- 1 files changed, 22 insertions(+), 22 deletions(-) commit 84228d125ec569c31bbe9092245c37439aef4aab Author: Marek Polacek Date: Fri Dec 10 15:52:44 2010 +0100 simpleinit: Use EXIT_* [kzak@redhat.com: use the main() part of the patch] Signed-off-by: Karel Zak login-utils/simpleinit.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) commit 713e0eeed4db41066149fa00301f64de2272c59e Author: Marek Polacek Date: Wed Dec 1 17:18:25 2010 +0100 shutdown: Use EXIT_* Signed-off-by: Marek Polacek Signed-off-by: Karel Zak login-utils/shutdown.c | 65 +++++++++++++++++++++-------------------------- 1 files changed, 29 insertions(+), 36 deletions(-) commit ded850dfb884d5cf5810e8b00c93b498ee386728 Author: Davidlohr Bueso Date: Fri Dec 10 08:51:09 2010 -0300 docs: update TODO file Here's a patch to update some the TODO list now that the new partx is merged. Signed-off-by: Davidlohr Bueso AUTHORS | 1 + TODO | 8 -------- 2 files changed, 1 insertions(+), 8 deletions(-) commit 11784a84423ee79c6411163e187f30faea270512 Author: Karel Zak Date: Fri Dec 10 14:05:27 2010 +0100 login: fix "ignoring return value" errors login.c:542:8: warning: ignoring return value of ‘fchown’, declared with attribute warn_unused_result login.c:1013:11: warning: ignoring return value of ‘fchown’, declared with attribute warn_unused_result login.c: In function ‘dolastlog’: login.c:1452:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result login.c: In function ‘motd’: login.c:1391:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result Signed-off-by: Karel Zak login-utils/login.c | 36 ++++++++++++++++++++++++++---------- 1 files changed, 26 insertions(+), 10 deletions(-) commit 66020e56d2888f59aef577a90761014e202383f0 Author: Marek Polacek Date: Wed Dec 1 17:18:17 2010 +0100 login: use EXIT_* and err.h, clean up return codes [kzak@redhat.com: - cleanup return codes - use warn()] Signed-off-by: Marek Polacek Signed-off-by: Karel Zak login-utils/login.c | 90 +++++++++++++++++++++++--------------------------- 1 files changed, 41 insertions(+), 49 deletions(-) commit db797f24f19196d29809ad457d252379b3705fb3 Author: Marek Polacek Date: Wed Dec 1 17:18:11 2010 +0100 last: Use EXIT_* and err() Signed-off-by: Marek Polacek login-utils/last.c | 42 +++++++++++++++++++++++------------------- 1 files changed, 23 insertions(+), 19 deletions(-) commit 3851ebe8f8ab5434c2f745cc462ce1477dd9f556 Author: Karel Zak Date: Fri Dec 10 13:08:33 2010 +0100 login: use EXIT_* in checktty() Signed-off-by: Karel Zak login-utils/checktty.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit d39d4bf6f5210b9c35f9ca2def52b42a7b377a11 Author: Karel Zak Date: Fri Dec 10 13:01:05 2010 +0100 chsh: use EXIT_* and err.h Signed-off-by: Karel Zak login-utils/chsh.c | 154 ++++++++++++++++++++-------------------------------- 1 files changed, 59 insertions(+), 95 deletions(-) commit f30f2bbc81ad37cdd8f50485e41550dbbd82275d Author: Karel Zak Date: Thu Dec 9 23:13:58 2010 +0100 sfdisk: add option to use maximum partition size Based on patch from Alex Bligh , Alex wrote: By default, omitting a size parameter means that the maximum sized partition is used. However, this option is not available in conjunction with the -N flag, as under such circumstances the default is the current size of the partition. This patch allows a size to be specified as "+" in which case the maximum sized partition is used, irrespective of the setting of the -N flag. This allows partitions to be programatically resized to their maximum size, by (for instance): echo ",+," | sfdisk -N1 /dev/sda This is non-trivial to do without the patch, as -N makes the default size the existing size. As there is (without this patch) no way of reading the maximum size, the only option is to delete the partition and recreate it. This is undesirable for a number of reasons (e.g. errors between delete and recreate). Addresses: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/686124 Signed-off-by: Karel Zak fdisk/sfdisk.8 | 4 +++- fdisk/sfdisk.c | 2 ++ 2 files changed, 5 insertions(+), 1 deletions(-) commit 8aa504664794150c2d64923e2a63341a2b56e065 Author: Francesco Cosoleto Date: Thu Dec 9 20:03:19 2010 +0100 renice: improve messages specifying what ID is referring to Hello, On 30/11/2010 13:01, Karel Zak wrote: > Unfortunately, translators don't like this kind of strings where any > translatable substring is inserted to the normal sentence. It would be > better to use something like: > > "%d (%s): failed to set priority", who, idtype > > "%s: %d: failed to set priority", idtype, who > > or so... or "failed to set priority for %d (%s)"? From 536eb11f873f2c887e075a37ffb3c971cac258d5 Mon Sep 17 00:00:00 2001 From: Francesco Cosoleto Date: Mon, 6 Dec 2010 01:23:10 +0100 Subject: [PATCH] renice: improve messages specifying what ID is referring to This version makes more clear the printed message specially when the --user option is used. Old version: $ renice 19 10 -u fra -g 1 renice: 10: setpriority: Operation not permitted renice: 1000: setpriority: Operation not permitted renice: 1: setpriority: Operation not permitted $ renice 19 -u fra 1000: old priority 0, new priority 19 New version: $ renice 19 10 -u fra -g 1 renice: failed to set priority for 10 (process ID): Operation not permitted renice: failed to set priority for 1000 (user ID): Operation not permitted renice: failed to set priority for 1 (process group ID): Operation not permitted $ renice 19 -u fra 1000 (user ID) old priority 0, new priority 19 Signed-off-by: Francesco Cosoleto sys-utils/renice.c | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) commit 0742ce4ae59c27ef931eb80e24d7955ff3ef27e5 Author: Karel Zak Date: Thu Dec 9 23:00:33 2010 +0100 partx: tiny change in usage() Signed-off-by: Karel Zak partx/partx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 5de966b34b86cd0845ea9b17ab1bfe5b8bcb8ae9 Author: Karel Zak Date: Thu Dec 9 22:58:12 2010 +0100 partx: cleanup and add columns Signed-off-by: Karel Zak partx/partx.c | 44 +++++++++++++++++++++++++++++++------------- 1 files changed, 31 insertions(+), 13 deletions(-) commit 9894961bf9f63367a13e4fac5652c87ee75c3782 Author: Davidlohr Bueso Date: Thu Dec 9 22:56:55 2010 +0100 tests: add regression tests Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak tests/commands.sh.in | 1 + tests/expected/partx/partx-bsd | 2 + tests/expected/partx/partx-dos+bsd | 4 +++ tests/expected/partx/partx-gpt | 5 ++++ tests/expected/partx/partx-sgi | 2 + tests/expected/partx/partx-sun | 2 + tests/ts/partx/partx | 45 ++++++++++++++++++++++++++++++++++++ 7 files changed, 61 insertions(+), 0 deletions(-) commit 6e6a182ebdaa6f1bbdb17852cc2f27f5e06477f8 Author: Karel Zak Date: Thu Dec 9 21:56:22 2010 +0100 delpart: code consolidation Signed-off-by: Karel Zak partx/delpart.c | 24 ++++-------------------- 1 files changed, 4 insertions(+), 20 deletions(-) commit 74a782e2a24b307177f9635af77dac56d0769b1a Author: Karel Zak Date: Thu Dec 9 21:56:13 2010 +0100 addpart: code consolidation Signed-off-by: Karel Zak partx/addpart.c | 30 +++++++++--------------------- 1 files changed, 9 insertions(+), 21 deletions(-) commit c4ecaf21d59671ac7ec0bd26bd2c346c98c7771c Author: Davidlohr Bueso Date: Thu Dec 9 21:54:17 2010 +0100 partx: complete rewrite Co-Author: Karel Zak Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak include/strutils.h | 1 + lib/strutils.c | 49 +++ misc-utils/lsblk.c | 46 --- partx/Makefile.am | 20 +- partx/bsd.c | 83 ---- partx/crc32.c | 393 ------------------- partx/crc32.h | 19 - partx/dos.c | 138 ------- partx/dos.h | 13 - partx/efi.h | 57 --- partx/gpt.c | 510 ------------------------- partx/gpt.h | 131 ------- partx/mac.c | 74 ---- partx/partx.8 | 117 +++++-- partx/partx.c | 1082 ++++++++++++++++++++++++++++++++++++---------------- partx/partx.h | 70 ++-- partx/solaris.c | 69 ---- partx/sun.c | 130 ------- partx/unixware.c | 83 ---- 19 files changed, 955 insertions(+), 2130 deletions(-) commit 4bfa39d5d5bd35ec4b42a374f2f72dd8d7d4dd94 Author: Karel Zak Date: Mon Dec 6 11:17:10 2010 +0100 mount: be more explicit about --move in mount.8 Signed-off-by: Karel Zak mount/mount.8 | 21 ++++++++++++++++++--- 1 files changed, 18 insertions(+), 3 deletions(-) commit 728d2faafdebbddfdae09d907d9ae3c5cf95cf2b Author: Karel Zak Date: Fri Dec 3 15:27:30 2010 +0100 libblkid: NTFS volume label not found Reported-by: Hugh Eaves Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/ntfs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7a15536c95fff670d74662893918839457555005 Author: Karel Zak Date: Fri Dec 3 13:02:40 2010 +0100 ipc: remove .info file Signed-off-by: Karel Zak sys-utils/ipc.info | 1107 ---------------------------------------------------- 1 files changed, 0 insertions(+), 1107 deletions(-) commit ea6833c0aa8229091726408166a148690a81bbde Author: Karel Zak Date: Thu Dec 2 18:07:57 2010 +0100 build-sys: add mesg to .gitignore Signed-off-by: Karel Zak login-utils/.gitignore | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 365210fc53bdb5e4ade5e983edcc129deb3aa487 Author: Marek Polacek Date: Wed Dec 1 17:17:25 2010 +0100 agetty: Use EXIT_* and add noreturn attribute Signed-off-by: Marek Polacek login-utils/agetty.c | 22 ++++++++++------------ 1 files changed, 10 insertions(+), 12 deletions(-) commit 1a68fc8aef07e746a9c55f4bc199cee70d5c87be Author: Marek Polacek Date: Wed Dec 1 17:17:16 2010 +0100 mesg: Use EXIT_* and discard K&R style declaration. [kzak@redhat.com: - use return rather than exit() in main() - more verbose error messages] Signed-off-by: Marek Polacek Signed-off-by: Karel Zak login-utils/mesg.c | 46 ++++++++++++++++++++++------------------------ 1 files changed, 22 insertions(+), 24 deletions(-) commit 1fa30199c69ac25bbfb72df661ee17a13c757539 Author: Marek Polacek Date: Tue Nov 30 22:53:31 2010 +0100 newgrp: Use err() and EXIT_* Use err() or errx() where appropriate. Also use EXIT_* macros instead of 0/1. All error messages shall start with lowercase. Signed-off-by: Marek Polacek Signed-off-by: Karel Zak login-utils/newgrp.c | 47 +++++++++++++++++++---------------------------- 1 files changed, 19 insertions(+), 28 deletions(-) commit 1b7cfdb63146e54b1ccb018340d95d5a98b45f73 Author: Davidlohr Bueso Date: Wed Nov 24 10:20:55 2010 -0300 README: fix typo Change feture for feature Signed-off-by: Davidlohr Bueso README | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit db3b5b76a783ddcd247e9cf3299781167e75f9f9 Author: Karel Zak Date: Wed Dec 1 23:02:17 2010 +0100 mount: read /sys for loopdev backing file On systems without /etc/mtab (or everywhere if kernel >= 2.6.37) we use loop autoclear flag and then the backing file name is not stored in /etc/mtab. mount(8) uses sysfs to get the filename (or LOOP_GET_STATU* ioctls on old kernels). Signed-off-by: Karel Zak mount/lomount.c | 27 +++++++++++++++++++++++++++ mount/lomount.h | 7 +++++++ mount/mount.c | 30 +++++++++++++++++++++++++++--- 3 files changed, 61 insertions(+), 3 deletions(-) commit d3b24397dfe517ddd56e4b01801ffce66f5858ca Author: Karel Zak Date: Wed Dec 1 22:06:15 2010 +0100 remove -ng from some files Signed-off-by: Karel Zak README | 2 +- partx/mac.c | 2 +- partx/sun.c | 2 +- tests/run.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) commit b61e939013282d8da2fbc2dc60c2cb4e58b8ab17 Author: Karel Zak Date: Wed Dec 1 14:04:35 2010 +0100 losetup: use /sys/dev/block/.../loop/backing_file The basic loopdev attributes are available in sysfs since kernel 2.6.37. This patch uses the backing_file attribute from sysfs for very long filenames (the LOOP_GET_STATUS ioctl uses only 64 bytes for the filename). old version: # losetup -a /dev/loop0: [0804]:12865322 (/home/images/filesystems/this_is_really_really_long_directory_*) new version: # losetup -a /dev/loop0: [0804]:12865322 (/home/images/filesystems/this_is_really_really_long_directory_name/ext2.img) Signed-off-by: Karel Zak TODO | 20 ++++++++++++++++++++ include/pathnames.h | 1 + mount/lomount.c | 44 +++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 64 insertions(+), 1 deletions(-) commit 80dde62f9c926f013d32adb60938366522290245 Author: Karel Zak Date: Wed Dec 1 11:20:45 2010 +0100 lscpu: use GPLv2+ CAI Qian and I agree that GPLv2+ is better for lscpu.c. This license is more compatible (than v3) with the rest of the util-linux package. We need to link the code with functions from lib/ -- mix GPLv3 and GPLv2 is bad idea. Note that it was only Cai and I who did significant changes to lscpu.c, all others changes from others developers was trivial (fix typos, add _(), ...). Signed-off-by: CAI Qian Signed-off-by: Karel Zak sys-utils/lscpu.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) commit a4f4cc752788a219c0c5e752f29b7866a70ff9f4 Author: Karel Zak Date: Tue Nov 30 13:28:46 2010 +0100 docs: update TODO file Signed-off-by: Karel Zak TODO | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit eecb3c83ce12de156a03e20892e553f660cef1bb Author: Davidlohr Bueso Date: Mon Nov 29 09:27:18 2010 -0300 last: use xalloc lib Signed-off-by: Davidlohr Bueso login-utils/last.c | 16 ++++------------ 1 files changed, 4 insertions(+), 12 deletions(-) commit 3e31a2dfaf5c42ddd3d0c003eda9cf81448bf5f1 Author: Davidlohr Bueso Date: Mon Nov 29 09:27:11 2010 -0300 login: use xalloc lib Signed-off-by: Davidlohr Bueso login-utils/login.c | 9 ++------- 1 files changed, 2 insertions(+), 7 deletions(-) commit 4b5156cbfa365048c2b5e794c41cc201a49bf878 Author: Davidlohr Bueso Date: Mon Nov 29 09:27:04 2010 -0300 wall: use xalloc lib Signed-off-by: Davidlohr Bueso login-utils/wall.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) commit 296351b0f112c821bffbe8ce7aa35d716251051d Author: Karel Zak Date: Tue Nov 30 12:46:06 2010 +0100 renice: rewrite usage() Signed-off-by: Karel Zak sys-utils/renice.c | 35 +++++++++++++++++++++++------------ 1 files changed, 23 insertions(+), 12 deletions(-) commit 5156840aa4cfa4421ae75ade9d041db29a5fa0c6 Author: Francesco Cosoleto Date: Wed Nov 24 23:10:19 2010 +0100 renice: update man page (nice rlimit was added to kernel) Non-root tasks can raise nice priority on systems running Linux 2.6.12 or higher if the nice resource limit is set. Signed-off-by: Francesco Cosoleto sys-utils/renice.1 | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 40cebc2d6f1ef28873c75bc27139b40b1c417805 Author: Francesco Cosoleto Date: Wed Nov 24 23:10:18 2010 +0100 renice: reverse %s position in error messages Signed-off-by: Francesco Cosoleto sys-utils/renice.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 83fa126b932f87213504fe7b96b5e2ee5b9455b0 Author: Francesco Cosoleto Date: Wed Nov 24 23:10:16 2010 +0100 renice: remove hardcoded program name using warn() and warnx() Signed-off-by: Francesco Cosoleto sys-utils/renice.c | 16 ++++++---------- 1 files changed, 6 insertions(+), 10 deletions(-) commit 22e0d3ec975a632f3704d814eec8bad6b923f24f Author: Francesco Cosoleto Date: Wed Nov 24 23:10:14 2010 +0100 renice: make some functions static sys-utils/renice.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 772a37940c73bb9231d1a36b848e8f61d2e88d86 Author: Karel Zak Date: Tue Nov 30 11:56:03 2010 +0100 po: fix note about license Signed-off-by: Karel Zak po/cs.po | 2 +- po/es.po | 2 +- po/eu.po | 2 +- po/fi.po | 2 +- po/fr.po | 2 +- po/hu.po | 2 +- po/id.po | 2 +- po/it.po | 2 +- po/ja.po | 2 +- po/nl.po | 2 +- po/pl.po | 2 +- po/vi.po | 2 +- po/zh_CN.po | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) commit 43bc1a1ba4c05547dd78a000085a569564381329 Author: Karel Zak Date: Tue Nov 30 11:52:10 2010 +0100 build-sys: add missing header Signed-off-by: Karel Zak include/Makefile.am | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 4ded9dfb2ad5ef42d3ed50c27613738c0acd56c2 Author: Karel Zak Date: Tue Nov 30 11:48:14 2010 +0100 po: update after rename Signed-off-by: Karel Zak po/POTFILES.in | 9 +- po/ca.po | 3139 +++++++++++++++++++++++++++++++------------------------ po/cs.po | 3157 ++++++++++++++++++++++++++++++++------------------------ po/da.po | 3128 +++++++++++++++++++++++++++++++------------------------ po/de.po | 3135 +++++++++++++++++++++++++++++++------------------------ po/es.po | 3162 +++++++++++++++++++++++++++++++------------------------ po/et.po | 3096 +++++++++++++++++++++++++++++++------------------------ po/eu.po | 3101 +++++++++++++++++++++++++++++++------------------------ po/fi.po | 3151 +++++++++++++++++++++++++++++++------------------------ po/fr.po | 3173 ++++++++++++++++++++++++++++++++------------------------ po/hu.po | 3141 +++++++++++++++++++++++++++++++------------------------ po/id.po | 3155 ++++++++++++++++++++++++++++++++------------------------ po/it.po | 3123 +++++++++++++++++++++++++++++++------------------------ po/ja.po | 3126 +++++++++++++++++++++++++++++++------------------------ po/nl.po | 3151 +++++++++++++++++++++++++++++++------------------------ po/pl.po | 3162 ++++++++++++++++++++++++++++++++------------------------ po/pt_BR.po | 3112 +++++++++++++++++++++++++++++++------------------------ po/ru.po | 3130 +++++++++++++++++++++++++++++++------------------------ po/sl.po | 3128 +++++++++++++++++++++++++++++++------------------------ po/sv.po | 3145 +++++++++++++++++++++++++++++++------------------------ po/tr.po | 3132 +++++++++++++++++++++++++++++++------------------------ po/uk.po | 3122 +++++++++++++++++++++++++++++++------------------------ po/vi.po | 3158 ++++++++++++++++++++++++++++++++------------------------ po/zh_CN.po | 3027 ++++++++++++++++++++++++++++++------------------------ 24 files changed, 40751 insertions(+), 31312 deletions(-) commit 601d12fb103702276e01ed891fd3a09a6045f209 Author: Karel Zak Date: Tue Nov 30 11:41:59 2010 +0100 rename util-linux-ng back to util-linux Signed-off-by: Karel Zak AUTHORS | 7 +- README | 23 +- README.devel | 6 +- README.licensing | 2 +- autogen.sh | 12 +- config/gtk-doc.make | 2 +- configure.ac | 6 +- disk-utils/blockdev.8 | 4 +- disk-utils/elvtune.8 | 4 +- disk-utils/fdformat.8 | 4 +- disk-utils/fsck.minix.8 | 4 +- disk-utils/mkfs.8 | 4 +- disk-utils/mkfs.bfs.8 | 4 +- disk-utils/mkfs.minix.8 | 4 +- disk-utils/mkswap.8 | 4 +- disk-utils/raw.8 | 4 +- disk-utils/swaplabel.8 | 2 +- fdisk/cfdisk.8 | 4 +- fdisk/fdisk.8 | 6 +- fdisk/sfdisk.8 | 4 +- fsck/fsck.8 | 4 +- getopt/getopt.1 | 4 +- hwclock/hwclock.8 | 4 +- lib/fsprobe.c | 2 +- login-utils/agetty.8 | 4 +- login-utils/chfn.1 | 4 +- login-utils/chsh.1 | 4 +- login-utils/initctl.8 | 4 +- login-utils/last.1 | 4 +- login-utils/login.1 | 4 +- login-utils/mesg.1 | 4 +- login-utils/newgrp.1 | 4 +- login-utils/simpleinit.8 | 4 +- login-utils/vipw.8 | 4 +- login-utils/wall.1 | 4 +- man/ru/ddate.1 | 4 +- misc-utils/blkid.8 | 4 +- misc-utils/cal.1 | 4 +- misc-utils/ddate.1 | 4 +- misc-utils/findfs.8 | 6 +- misc-utils/findmnt.8 | 4 +- misc-utils/kill.1 | 4 +- misc-utils/logger.1 | 4 +- misc-utils/look.1 | 4 +- misc-utils/lsblk.8 | 4 +- misc-utils/mcookie.1 | 4 +- misc-utils/namei.1 | 4 +- misc-utils/namei.c | 2 +- misc-utils/rename.1 | 4 +- misc-utils/reset.1 | 4 +- misc-utils/script.1 | 4 +- misc-utils/scriptreplay.1 | 4 +- misc-utils/setterm.1 | 4 +- misc-utils/uuidd.8 | 4 +- misc-utils/uuidgen.1 | 4 +- misc-utils/whereis.1 | 4 +- misc-utils/wipefs.8 | 4 +- misc-utils/write.1 | 4 +- mount/README.mount | 2 +- mount/fstab.5 | 4 +- mount/losetup.8 | 4 +- mount/mount.8 | 4 +- mount/swapon.8 | 4 +- mount/umount.8 | 4 +- partx/addpart.8 | 4 +- partx/delpart.8 | 4 +- partx/partx.8 | 4 +- po/util-linux-ng.pot |11573 -------------------------------- po/util-linux.pot |11891 +++++++++++++++++++++++++++++++++ schedutils/chrt.1 | 4 +- schedutils/ionice.1 | 4 +- schedutils/taskset.1 | 4 +- shlibs/blkid/docs/libblkid-docs.xml | 4 +- shlibs/blkid/libblkid.3 | 6 +- shlibs/blkid/src/blkid.sym | 6 +- shlibs/mount/docs/libmount-docs.xml | 4 +- shlibs/uuid/man/uuid.3 | 6 +- shlibs/uuid/man/uuid_clear.3 | 6 +- shlibs/uuid/man/uuid_compare.3 | 6 +- shlibs/uuid/man/uuid_copy.3 | 6 +- shlibs/uuid/man/uuid_generate.3 | 6 +- shlibs/uuid/man/uuid_is_null.3 | 6 +- shlibs/uuid/man/uuid_parse.3 | 6 +- shlibs/uuid/man/uuid_time.3 | 6 +- shlibs/uuid/man/uuid_unparse.3 | 6 +- sys-utils/arch.1 | 4 +- sys-utils/ctrlaltdel.8 | 4 +- sys-utils/cytune.8 | 4 +- sys-utils/dmesg.1 | 4 +- sys-utils/fallocate.1 | 4 +- sys-utils/flock.1 | 4 +- sys-utils/fsfreeze.8 | 4 +- sys-utils/fstrim.8 | 4 +- sys-utils/ipcrm.1 | 4 +- sys-utils/ipcs.1 | 4 +- sys-utils/ldattach.8 | 4 +- sys-utils/lscpu.1 | 4 +- sys-utils/pivot_root.8 | 4 +- sys-utils/readprofile.1 | 4 +- sys-utils/renice.1 | 4 +- sys-utils/rtcwake.8 | 4 +- sys-utils/setarch.8 | 4 +- sys-utils/setarch.c | 2 +- sys-utils/setsid.1 | 4 +- sys-utils/switch_root.8 | 4 +- sys-utils/tunelp.8 | 4 +- sys-utils/unshare.1 | 4 +- tests/functions.sh | 8 +- tests/helpers/test_pathnames.c | 2 +- tests/helpers/test_sysinfo.c | 2 +- tests/run.sh | 2 +- tests/ts/bitops/swapbytes | 2 +- tests/ts/blkid/low-probe | 2 +- tests/ts/blkid/lowprobe-pt | 2 +- tests/ts/blkid/md-raid0-whole | 2 +- tests/ts/blkid/md-raid1-part | 2 +- tests/ts/blkid/md-raid1-whole | 2 +- tests/ts/cal/1m | 2 +- tests/ts/cal/3m | 2 +- tests/ts/cal/year | 2 +- tests/ts/col/multibyte | 2 +- tests/ts/cramfs/fsck-endianness | 2 +- tests/ts/cramfs/mkfs | 2 +- tests/ts/cramfs/mkfs-endianness | 2 +- tests/ts/fdisk/align-512-4K | 2 +- tests/ts/fdisk/align-512-4K-63 | 2 +- tests/ts/fdisk/align-512-4K-md | 2 +- tests/ts/fdisk/align-512-512 | 2 +- tests/ts/fdisk/align-512-512-topology | 2 +- tests/ts/fdisk/doslabel | 2 +- tests/ts/fdisk/id | 2 +- tests/ts/fdisk/oddinput | 2 +- tests/ts/fdisk/sunlabel | 2 +- tests/ts/fsck/ismounted | 2 +- tests/ts/hwclock/systohc | 2 +- tests/ts/ipcs/functions.sh | 2 +- tests/ts/ipcs/headers | 2 +- tests/ts/ipcs/limits | 2 +- tests/ts/ipcs/limits2 | 2 +- tests/ts/login/checktty | 2 +- tests/ts/login/islocal | 2 +- tests/ts/look/separator | 2 +- tests/ts/lscpu/lscpu | 2 +- tests/ts/md5/md5 | 2 +- tests/ts/minix/fsck | 2 +- tests/ts/minix/mkfs | 2 +- tests/ts/misc/strtosize | 2 +- tests/ts/mount/devname | 2 +- tests/ts/mount/fstab-devname | 2 +- tests/ts/mount/fstab-devname2label | 2 +- tests/ts/mount/fstab-devname2uuid | 2 +- tests/ts/mount/fstab-label | 2 +- tests/ts/mount/fstab-label2devname | 2 +- tests/ts/mount/fstab-label2uuid | 2 +- tests/ts/mount/fstab-symlink | 2 +- tests/ts/mount/fstab-uuid | 2 +- tests/ts/mount/fstab-uuid2devname | 2 +- tests/ts/mount/fstab-uuid2label | 2 +- tests/ts/mount/label | 2 +- tests/ts/mount/move | 2 +- tests/ts/mount/mtablock | 2 +- tests/ts/mount/noncanonical | 2 +- tests/ts/mount/paths | 2 +- tests/ts/mount/remount | 2 +- tests/ts/mount/special | 4 +- tests/ts/mount/uuid | 2 +- tests/ts/namei/logic | 2 +- tests/ts/paths/built-in | 2 +- tests/ts/schedutils/cpuset | 2 +- tests/ts/script/race | 2 +- tests/ts/swapon/devname | 2 +- tests/ts/swapon/label | 2 +- tests/ts/swapon/uuid | 2 +- text-utils/col.1 | 4 +- text-utils/colcrt.1 | 4 +- text-utils/colrm.1 | 4 +- text-utils/column.1 | 4 +- text-utils/hexdump.1 | 4 +- text-utils/line.1 | 4 +- text-utils/more.1 | 4 +- text-utils/more.c | 2 +- text-utils/od.1 | 4 +- text-utils/pg.1 | 4 +- text-utils/rev.1 | 4 +- text-utils/tailf.1 | 4 +- text-utils/ul.1 | 4 +- 186 files changed, 12220 insertions(+), 11900 deletions(-) commit 5a16af58c5b3625e6e5a1a487bdf5521cb9646c2 Author: Karel Zak Date: Mon Nov 29 10:26:18 2010 +0100 libblkid: add LINHIB0001 signature to swap prober The new swsuspend signature has been added by commit 3624eb04c24861ab296842414f9752a393e68372 to kernel 2.6.37-rc1. Reported-by: "Dr. David Alan Gilbert" Addresses: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/682176 Signed-off-by: Karel Zak mount/swapon.c | 3 ++- shlibs/blkid/src/superblocks/swap.c | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletions(-) commit c59773420cb9adc8af180bf9084115225c28e01d Author: Karel Zak Date: Mon Nov 29 14:02:56 2010 +0100 fdisk: fix freespace boundaries calculation on SGI disklabel Thanks to Aurelien Jarno Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510130 Signed-off-by: Karel Zak fdisk/fdisksgilabel.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit e3d61a457984bfd8aab983bbe02b8b7ee4ad18a7 Author: Karel Zak Date: Mon Nov 29 13:09:16 2010 +0100 fstrim: fix typo Reported-by: Jeroen Oortwijn Signed-off-by: Karel Zak sys-utils/fstrim.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 2a7f8a8b7b8a8c7d13904a496bf46519084ef883 Author: Mike Frysinger Date: Mon Nov 29 13:00:14 2010 +0100 libblkid: remove unnecessary __UCLIBC__ check Signed-off-by: Karel Zak shlibs/blkid/src/llseek.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 07b336c92e82ba7e1a05329c675145953d7f40a8 Author: Karel Zak Date: Fri Nov 26 17:43:54 2010 +0100 rtcwake: use err.h routines Signed-off-by: Karel Zak sys-utils/Makefile.am | 1 + sys-utils/rtcwake.c | 128 ++++++++++++++++++++++--------------------------- 2 files changed, 58 insertions(+), 71 deletions(-) commit fcf67294309030651848d6d58226010ca21177b7 Author: Marek Otahal Date: Fri Nov 26 16:47:38 2010 +0100 rtcwake: add 'show' mode for rtc alarm The 'show' mode prints information on current alarm setting. [kzak@redhat.com: - code clean up - don't setup alarm on 'disable' mode] Signed-off-by: Marek Otahal Signed-off-by: Karel Zak sys-utils/rtcwake.8 | 4 ++ sys-utils/rtcwake.c | 110 +++++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 94 insertions(+), 20 deletions(-) commit d9e2d0dd144c2c06bff590c35400965016e55b7c Author: Lukas Czerner Date: Thu Nov 25 00:05:37 2010 +0100 fstrim: add new command fstrim is used on a mounted filesystem to discard (or "trim") blocks which are not in use by the filesystem. This is useful for solid-state drives (SSDs) and thinly-provisioned storage Signed-off-by: Lukas Czerner Signed-off-by: Karel Zak sys-utils/.gitignore | 1 + sys-utils/Makefile.am | 6 +- sys-utils/fstrim.8 | 84 +++++++++++++++++++++++++++ sys-utils/fstrim.c | 154 +++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 242 insertions(+), 3 deletions(-) commit 6d830ab64173d7228d96290b96f1d71ee8cdd187 Author: Karel Zak Date: Fri Nov 26 13:40:51 2010 +0100 libblkid: 256MiB is min size of btrfs Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/btrfs.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 042154d764e9dcff1e17b06f09ada0e2c2074f95 Author: Karel Zak Date: Wed Nov 24 23:16:01 2010 +0100 fallocate: fix typo Signed-off-by: Karel Zak sys-utils/fallocate.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f77fa578e3e14bbc22cc987640cfb2c8e254477f Author: Karel Zak Date: Wed Nov 24 18:16:44 2010 +0100 build-sys: fix lsblk building Signed-off-by: Karel Zak misc-utils/Makefile.am | 19 ++++++++++++------- misc-utils/lsblk.c | 4 ++-- 2 files changed, 14 insertions(+), 9 deletions(-) commit 2a4c734bee6d52c26b7bfa5312c02f4b22b22645 Author: Milan Broz Date: Wed Nov 24 17:06:39 2010 +0100 lsblk: add new utility Signed-off-by: Milan Broz Signed-off-by: Karel Zak misc-utils/.gitignore | 1 + misc-utils/Makefile.am | 11 +- misc-utils/lsblk.8 | 66 +++ misc-utils/lsblk.c | 1062 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 1138 insertions(+), 2 deletions(-) commit ce877f2d161b80119fd6bf6ccd2c7013252156d7 Author: Karel Zak Date: Wed Nov 24 16:41:20 2010 +0100 lib: [strutils] move strmode() from namei.c to strutils.c Signed-off-by: Karel Zak include/strutils.h | 4 ++++ lib/strutils.c | 40 ++++++++++++++++++++++++++++++++++++++++ misc-utils/Makefile.am | 2 ++ misc-utils/namei.c | 37 +------------------------------------ 4 files changed, 47 insertions(+), 36 deletions(-) commit ecc264bc39537486109c7bb80c937b5931326200 Author: Karel Zak Date: Wed Nov 24 16:39:15 2010 +0100 lib: [xalloc] add xstrdup() Signed-off-by: Karel Zak include/xalloc.h | 9 +++++++++ misc-utils/wipefs.c | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) commit 9ead000613ea527f047597d2978ca605f1314418 Author: Karel Zak Date: Thu Nov 18 21:06:27 2010 +0100 findmnt: apply new changes from tt.c Signed-off-by: Karel Zak misc-utils/findmnt.c | 58 +++++++++++++------------------------------------ 1 files changed, 16 insertions(+), 42 deletions(-) commit 3e451589d5eaecfa8ddff46877f94ad79bc010f0 Author: Karel Zak Date: Thu Nov 18 21:04:13 2010 +0100 lib: [tt] add TT_FL_RIGHT, add columns list parser Signed-off-by: Karel Zak include/tt.h | 8 +++++- lib/tt.c | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 65 insertions(+), 11 deletions(-) commit 8c9e72ce2b3dc8cbc9df446b8915ea936cb702b3 Author: Karel Zak Date: Thu Nov 18 21:03:02 2010 +0100 lib: [ismounted] don't wast time with mtab is /proc/mounts used Signed-off-by: Karel Zak lib/ismounted.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit b79bd89b05ca3472b11394278b5af716f9914772 Author: Karel Zak Date: Tue Nov 23 21:14:48 2010 +0100 libblkid: remove unused variable Signed-off-by: Karel Zak shlibs/blkid/src/probe.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 779d6a1bfbb84a8a458eaac03a254e017c07e7cb Author: Karel Zak Date: Tue Nov 23 21:10:48 2010 +0100 docs: update TODO file Signed-off-by: Karel Zak TODO | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) commit 8abcf2900297c6d53ead867c42f7c1688e8d52ca Author: Davidlohr Bueso Date: Tue Nov 16 10:47:35 2010 -0300 lib: [strutils] general purpose string handling functions This patch replaces a few functions used throughout the source: * Renames getnum (from schedutils) to strtol_or_err * Moves strtosize (from lib/strtosize.c) * Moves xstrncpy (from include/xstrncpy.h) * Adds strnlen, strnchr and strndup if not available (remove it from libmount utils) A few Makefile.am files were modified to compile accordingly along with trivial renaming in schedutils source code. Signed-off-by: Davidlohr Bueso disk-utils/mkswap.c | 2 +- disk-utils/swaplabel.c | 2 +- fdisk/cfdisk.c | 2 +- include/Makefile.am | 5 +- include/strtosize.h | 8 -- include/strutils.h | 26 ++++++ include/xstrncpy.h | 8 -- lib/Makefile.am | 3 +- lib/strtosize.c | 148 ----------------------------------- lib/strutils.c | 186 +++++++++++++++++++++++++++++++++++++++++++++ login-utils/agetty.c | 2 +- login-utils/checktty.c | 2 +- login-utils/chfn.c | 2 +- login-utils/login.c | 2 +- login-utils/shutdown.c | 2 +- login-utils/simpleinit.c | 2 +- login-utils/vipw.c | 2 +- login-utils/wall.c | 2 +- misc-utils/Makefile.am | 4 +- misc-utils/blkid.c | 2 +- misc-utils/wipefs.c | 2 +- mount/Makefile.am | 6 +- mount/lomount.c | 4 +- mount/mount.c | 2 +- mount/umount.c | 2 +- schedutils/Makefile.am | 2 +- schedutils/chrt.c | 6 +- schedutils/ionice.c | 12 ++-- schedutils/schedutils.c | 34 -------- schedutils/schedutils.h | 7 -- schedutils/taskset.c | 4 +- shlibs/mount/src/mountP.h | 9 -- shlibs/mount/src/utils.c | 39 ---------- sys-utils/Makefile.am | 2 +- sys-utils/fallocate.c | 2 +- text-utils/more.c | 2 +- 36 files changed, 252 insertions(+), 295 deletions(-) commit e8fc977aba09ddbd89b25276fd777c3f0eef9299 Author: Karel Zak Date: Tue Nov 23 19:49:58 2010 +0100 libblkid: cache is incorrectly revalidated for example: # echo "password" | cryptsetup luksFormat /dev/loop7 # blkid /dev/loop7 /dev/loop7: UUID="09240a80-1cf1-456d-9a6e-a35b39dc1f2b" TYPE="crypto_LUKS" # pvcreate -ff /dev/loop7 # blkid /dev/loop7 # the second blkid call has to return info about LVM. Reported-by: Milan Broz Signed-off-by: Karel Zak shlibs/blkid/src/blkidP.h | 2 +- shlibs/blkid/src/probe.c | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) commit cf59b09c1e7c520b96295058c10acea1dbeee671 Author: Karel Zak Date: Tue Nov 23 19:42:33 2010 +0100 mount: mark die() as nonreturn Signed-off-by: Karel Zak mount/sundries.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 81a12d11efc8d0db248f3bbdb21acd58a0651262 Author: Karel Zak Date: Fri Nov 19 13:37:25 2010 +0100 mount: ignore *context= options on remount Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=563267 Signed-off-by: Karel Zak mount/mount.c | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 59 insertions(+), 3 deletions(-) commit d50da32777d88d0c1f25e3a131409302bef846ff Author: Karel Zak Date: Tue Nov 16 10:17:02 2010 +0100 mount: update relatime description in mount.8 Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=653705 Signed-off-by: Karel Zak mount/mount.8 | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) commit efcf9a9d1e24789d83976e07c581b0be2f54340a Author: Karel Zak Date: Mon Nov 15 16:48:27 2010 +0100 agetty: use nl_langinfo() Signed-off-by: Karel Zak login-utils/Makefile.am | 4 ++++ login-utils/agetty.c | 12 +++--------- 2 files changed, 7 insertions(+), 9 deletions(-) commit 2a6fd10e02ca8929e70f8dbf95f04630698f9499 Author: Karel Zak Date: Mon Nov 15 16:48:03 2010 +0100 cal: follow HAVE_LANGINFO Signed-off-by: Karel Zak misc-utils/Makefile.am | 3 +++ misc-utils/cal.c | 23 +++-------------------- 2 files changed, 6 insertions(+), 20 deletions(-) commit f7a29259ee46b1065ca3ba36f921fecfcbb6fdc6 Author: Karel Zak Date: Mon Nov 15 16:47:13 2010 +0100 findmnt: follow HAVE_LANGINFO Signed-off-by: Karel Zak lib/tt.c | 5 +---- misc-utils/Makefile.am | 3 +++ misc-utils/findmnt.c | 3 --- 3 files changed, 4 insertions(+), 7 deletions(-) commit dc61d398ba14a38f13aeab3be9e9e09f7f117179 Author: Karel Zak Date: Mon Nov 15 16:42:45 2010 +0100 lib: add fallback for nl_langinfo() The fallback ignores locales and returns hardcoded static strings. It should be enough to include "nls.h" to work with nl_langinfo() on all systems. Signed-off-by: Karel Zak configure.ac | 7 +++- include/nls.h | 73 ++++++++++++++++++++++++++++++++++ lib/langinfo.c | 121 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 200 insertions(+), 1 deletions(-) commit 97be4a37e327108e2d95ca832e71f6eda1e2d908 Author: Davidlohr Bueso Date: Mon Nov 15 08:55:16 2010 -0300 lib/tt: fix langinfo build break When HAVE_LANGINFO_H is not defined we break the compilation in tt.c: CC tt.o tt.c: In function ‘tt_new_table’: tt.c:142: warning: implicit declaration of function ‘nl_langinfo’ tt.c:142: error: ‘CODESET’ undeclared (first use in this function) tt.c:142: error: (Each undeclared identifier is reported only once tt.c:142: error: for each function it appears in.) make: *** [tt.o] Error 1 Signed-off-by: Davidlohr Bueso lib/tt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e8ae49476e5391fc477adb75d891c6b43543ded8 Author: Davidlohr Bueso Date: Thu Nov 11 10:34:52 2010 -0300 libblkid: add blkid_probe_get_sectors() This function allows users to obtain the device's 512-byte sector count. Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak shlibs/blkid/docs/libblkid-sections.txt | 1 + shlibs/blkid/src/blkid.h.in | 1 + shlibs/blkid/src/blkid.sym | 1 + shlibs/blkid/src/probe.c | 11 +++++++++++ 4 files changed, 14 insertions(+), 0 deletions(-) commit a4a27b06e88cadbbd3bc5a14b50a9ff70646b7d7 Author: Thorsten Glaser Date: Sun Nov 7 14:00:04 2010 +0000 hwclock: [m68k] unbreak FTBFS with recent (>= 2.4.18?) kernels The old KDGHWCLK ioctl was removed from the Linux kernel quite some time ago. The kd.c source file of hwclock contains fallback code to handle this, but the fallback code never could have compiled or was not fixed along other code changes. The Linux kernel nowadays igno- res the ioctl entirely so removing it unless provided by the kernel headers, to keep it working on very old kernels, seems the sensible thing to do, as the comments say m68k only and deprecated (which is correct AFAICT). According to pickaxe on gitweb, it was removed in 2002: http://git.kernel.org/?p=linux/kernel/git/torvalds/old-2.6-bkcvs.git;a=commit;h=a915e414af5fc541ff62ef0bfec847457ae650bc Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=578168 Signed-off-by: Thorsten Glaser Signed-off-by: Karel Zak AUTHORS | 1 + hwclock/kd.c | 43 ++++++++++++++++++------------------------- 2 files changed, 19 insertions(+), 25 deletions(-) commit 37f243ed57e5a783c19c4784cf24dfed52b89e32 Author: Karel Zak Date: Wed Nov 10 11:48:30 2010 +0100 swapon: better text for "discard", note about swapon in fstab.5 Suggested by Hugh Dickins. Thanks. Signed-off-by: Karel Zak mount/fstab.5 | 5 ++++- mount/swapon.8 | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) commit 688e75f3f062617cf7d129e331a1472decaa97cd Author: Karel Zak Date: Tue Nov 9 12:40:56 2010 +0100 docs: remove ipc.texi (info with IPC API docs) The IPC API documentation is maintained in the standard man-pages. It does not make sense to maintain this docs in util-linux-ng. Signed-off-by: Karel Zak sys-utils/Makefile.am | 2 - sys-utils/ipc.texi | 1313 ------------------------------------------------- 2 files changed, 0 insertions(+), 1315 deletions(-) commit 24d1e474a2d7db57968d406265460a97f6143854 Author: Jeroen Oortwijn Date: Tue Nov 2 22:13:12 2010 +0100 libblkid: add magic to vfat Add the "FAT " magic to vfat. There are devices that use this magic in their FAT filesystem. Addresses: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/491476 Signed-off-by: Jeroen Oortwijn shlibs/blkid/src/superblocks/vfat.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 3f7fc4d43b61e442b81937aa06e079950a8ebb7c Author: Karel Zak Date: Thu Nov 4 22:22:49 2010 +0100 column: segfault on empty input Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=579955 Signed-off-by: Karel Zak text-utils/column.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 2ab428f6a8966d90ac97ce0ce0c7d73b82fade8f Author: Davidlohr Bueso Date: Wed Oct 27 06:14:46 2010 -0300 sys-utils: make use xalloc wrappers Signed-off-by: Davidlohr Bueso sys-utils/cytune.c | 9 +++------ sys-utils/readprofile.c | 23 +++-------------------- sys-utils/rtcwake.c | 7 ++----- sys-utils/tunelp.c | 34 +++++++++++++--------------------- 4 files changed, 21 insertions(+), 52 deletions(-) commit 01802c2e6df94aa14609d5628b276bad6bb09968 Author: Jeroen Oortwijn Date: Sun Oct 31 21:32:21 2010 +0100 libblkid: add signature to FAT32 fsinfo block Add 0x41645252 to the list of valid signatures of the FAT32 fsinfo block. It isn't a valid signature, but there are devices that use this signature in their FAT32 filesystem. Addresses: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/589369 Signed-off-by: Jeroen Oortwijn shlibs/blkid/src/superblocks/vfat.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit c2301380b4d61921971f89661088d1dab7c70ccd Author: Hugh Dickins Date: Sun Oct 24 17:32:47 2010 -0700 swapon: add "discard" support In kernel 2.6.36 (and in stable kernel 2.6.35.5) I made a tiny change to the swapon(const char *path, int swapflags) system call interface: kernel commit 3399446632739fcd05fd8b272b476a69c6e6d14a swap: discard while swapping only if SWAP_FLAG_DISCARD As things stand at present, we could just remove the swap discard support; but since several filesystems (including ext4 and btrfs and fat) are offering a "discard" mount option, I thought swap should take the same course, and offer a "--discard" or "-d" option to swapon(8). [kzak@redhat.com: - update swapon.8 man page - use for -d the same logic as for -p] Signed-off-by: Hugh Dickins Signed-off-by: Karel Zak mount/swapon.8 | 11 +++++++++++ mount/swapon.c | 40 ++++++++++++++++++++++++++++------------ 2 files changed, 39 insertions(+), 12 deletions(-) commit 3924d0f169525270e20b6183ee67bca5822d0291 Author: Davidlohr Bueso Date: Fri Oct 22 12:26:24 2010 -0300 rev: use xalloc for memory allocation Signed-off-by: Davidlohr Bueso text-utils/rev.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) commit f0961db21f912511ed6ac7fee02e26b40efe0d8c Author: Davidlohr Bueso Date: Fri Oct 22 12:25:46 2010 -0300 ul: use xalloc for memory allocation Signed-off-by: Davidlohr Bueso text-utils/ul.c | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) commit 2ebef8704da887e47be1270e832f9dc7e74bdf28 Author: Karel Zak Date: Mon Nov 1 14:51:08 2010 +0100 col: use err.h and EXIT_* macros Signed-off-by: Karel Zak text-utils/col.c | 50 +++++++++++++++++++++++--------------------------- 1 files changed, 23 insertions(+), 27 deletions(-) commit 04faca4a1325fe21b90b761e5d3ef37c4a267ecc Author: Davidlohr Bueso Date: Fri Oct 22 12:24:37 2010 -0300 col: use xalloc for memory allocation Differentiate between malloc and realloc (not done so far) and get rid of local warn() Signed-off-by: Davidlohr Bueso text-utils/col.c | 38 +++++++++++--------------------------- 1 files changed, 11 insertions(+), 27 deletions(-) commit b7159bd5c901b7f785b0b3370b70a0ec5e4ffcf6 Author: Davidlohr Bueso Date: Fri Oct 22 12:23:31 2010 -0300 tailf: use xalloc for memory allocation Signed-off-by: Davidlohr Bueso text-utils/tailf.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 0d4e5f8e0d64b358ec2e309d9780e7854a0505ad Author: Davidlohr Bueso Date: Fri Oct 22 12:22:56 2010 -0300 more: use xalloc for memory allocation Signed-off-by: Davidlohr Bueso text-utils/more.c | 16 ++++++---------- 1 files changed, 6 insertions(+), 10 deletions(-) commit f3a342a429b0576efeaf875bfb102f5b55f7c9b4 Author: Davidlohr Bueso Date: Fri Oct 22 12:22:09 2010 -0300 pg: use xalloc for memory allocation Signed-off-by: Davidlohr Bueso text-utils/pg.c | 20 +++----------------- 1 files changed, 3 insertions(+), 17 deletions(-) commit a21640baec08b7b20e7d829c3aae87e35d5dbf04 Author: Karel Zak Date: Fri Oct 29 20:04:00 2010 +0200 mount: use utimensat(AT_FDCWD) rather than open()+futimens() Thanks to Kay Sievers. Signed-off-by: Karel Zak mount/mount.c | 13 +++---------- 1 files changed, 3 insertions(+), 10 deletions(-) commit 29e6ed5e8f8222b4d54dc63ab3b1014de3e9acc4 Author: Karel Zak Date: Fri Oct 29 17:51:35 2010 +0200 docs: add note about agetty to TODO Signed-off-by: Karel Zak TODO | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) commit 5d757a9fdeab9bc3be5c9181abe28b3afe0bd199 Author: Karel Zak Date: Fri Oct 29 13:29:28 2010 +0200 remove free() from atexit() callbacks Signed-off-by: Karel Zak disk-utils/mkswap.c | 6 ------ text-utils/ul.c | 7 ------- 2 files changed, 0 insertions(+), 13 deletions(-) commit 98da1298ca82b232bdff0abec81ca325f00031d9 Author: Marek Polacek Date: Fri Oct 29 01:04:30 2010 +0200 chrt: Add noreturn attribute to show_usage() function Signed-off-by: Marek Polacek schedutils/chrt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 50644ff4de8126eb132fa94ae4645fb19871f5b6 Author: Marek Polacek Date: Fri Oct 29 00:55:07 2010 +0200 use _exit() instead of exit() in sighandlers Signed-off-by: Marek Polacek login-utils/last.c | 2 +- login-utils/shutdown.c | 2 +- misc-utils/write.c | 2 +- text-utils/rev.c | 2 +- text-utils/ul.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) commit e98f4af950a64db188e0a9f3eed20fefaa463a99 Author: Karel Zak Date: Fri Oct 22 21:24:50 2010 +0200 agetty: fix -s option (baud rate setup) The problem is pretty visible in strace output: broken version: ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B115200 opost isig icanon echo ...}) = 0 [...] ioctl(0, SNDCTL_TMR_START or TCSETS, {B0 -opost -isig -icanon -echo ...}) = 0 ^^^ fixed version: ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B115200 opost isig icanon echo ...}) = 0 [...] ioctl(0, SNDCTL_TMR_START or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0 Reported-by: Jon Masters Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=645640 Signed-off-by: Karel Zak login-utils/agetty.c | 33 ++++++++++++++++++++++++++------- 1 files changed, 26 insertions(+), 7 deletions(-) commit dd0bd943f94392d165c5903e271c966afb0d7b75 Author: Karel Zak Date: Tue Oct 26 12:58:32 2010 +0200 fsck: add support for whole-disk locking (-l option) This feature allows to call multiple independent fsck instances rather than use only one "fsck -A" process. The lock uses LOCK_EX flock(2). The lock request is ignored if the whole-disk is non-rotating disk. The verbose mode (-V) provides information about disk locking. Note that "fsck -l" does not care if the device is stacked, for example if you want to call "fsck -l /dev/md0" and "fsck -l /dev/md1" then the underlying devices will not be locked. The traditional "fsck -A" does not run in parallel for stacked devices. Requested-by: Lennart Poettering Signed-off-by: Karel Zak fsck/fsck.8 | 13 ++++++- fsck/fsck.c | 119 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---- fsck/fsck.h | 1 + 3 files changed, 123 insertions(+), 10 deletions(-) commit e4d5b4b3b44bcfe01291c0b0d32e8ba2f68efc4e Author: Karel Zak Date: Mon Oct 25 23:23:48 2010 +0200 libmount: optimize blkid_devno_to_devname() The brutal force /dev directory scanning should be used as a fallback solution only. Currently, almost all systems use udev and we can read the name from /sys/block/: symlink. Signed-off-by: Karel Zak shlibs/blkid/src/devno.c | 88 ++++++++++++++++++++++++++++++++++------------ 1 files changed, 65 insertions(+), 23 deletions(-) commit a5fd3d685e6c2d0a7d80e7607ac6ff7bf7d05f67 Author: Karel Zak Date: Mon Oct 25 14:03:16 2010 +0200 swapon: add support for "nofail" fstab mount option This option is already supported by mount(8) and fsck(8), there is no reason to have any exception for swap devices. Note that the --ifexists command line option applies to all swap devices, the "nofail" setting is per device. Signed-off-by: Karel Zak mount/swapon.8 | 6 ++++++ mount/swapon.c | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) commit 973d9cf9c6092d94a3e5b54e5b8e7cd4e2d705d7 Author: Karel Zak Date: Mon Oct 25 12:26:28 2010 +0200 umount: umount -r segfault umount(8) segfaults when update incomplete mtab file after remount to read-only (-r). For example autofs does not store info about mountpoint to /etc/mtab file. # mount /dev/sda1 /mnt/test # sed -i -e 's:/dev/sda1 .*::g' /etc/mtab # cd /mnt/test # umount -r /mnt/test umount: /mnt/test busy - remounted read-only Segmentation fault The command "umount -r" should not care about /etc/mtab if the related mtab entry does not exist. Reported-by: Paul Crawford Addresses: https://bugs.launchpad.net/bugs/579858 Signed-off-by: Karel Zak mount/umount.c | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) commit 6cfa971e1b33f596bb917f1867972424f745879c Author: Karel Zak Date: Fri Oct 22 23:38:07 2010 +0200 lib: add test program to canonicalize.c Signed-off-by: Karel Zak lib/Makefile.am | 3 ++- lib/canonicalize.c | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletions(-) commit 88dd06b87554141185f3dbf31f2f18bf6c821ce3 Author: Karel Zak Date: Thu Oct 21 17:24:41 2010 +0200 mount: remove warning about FS detection from mount.1 The warning is from util-linux 2.7.1 (year 1996)... the filesystems detection is pretty generic now. Signed-off-by: Karel Zak mount/mount.8 | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) commit f331598afc17b3f682eb0e0da123d9607bca2926 Author: Karel Zak Date: Thu Oct 21 15:00:47 2010 +0200 man: add russian translation of ddate.1 Signed-off-by: Karel Zak Makefile.am | 3 + configure.ac | 1 + man/ru/Makefile.am | 5 ++ man/ru/ddate.1 | 123 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 132 insertions(+), 0 deletions(-) commit 0c3e5202406ce5ad9ee5ce018ce383607fd84c8c Author: Marek Polacek Date: Sun Oct 17 11:01:22 2010 +0200 ctrlaltdel: use err() instead of fprintf() and exit() [kzak@redhat.com: - remove unnecessary program name from err(), - use program_invocation_short_name] Signed-off-by: Marek Polacek Signed-off-by: Karel Zak sys-utils/ctrlaltdel.c | 47 ++++++++++++++++++----------------------------- 1 files changed, 18 insertions(+), 29 deletions(-) commit 026ed2cedd6e5d0dbbc32d097d6104107970419f Author: Davidlohr Bueso Date: Fri Oct 15 14:23:16 2010 -0300 look: fix conflict between locally defined err() and glibc's version Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak misc-utils/look.c | 50 ++++++++++---------------------------------------- 1 files changed, 10 insertions(+), 40 deletions(-) commit 87f3feac713c7aa652bb1d7e4e231ed06a960f4c Author: Davidlohr Bueso Date: Fri Oct 15 11:59:18 2010 -0300 misc-utils: use new xmalloc() wrapper Signed-off-by: Davidlohr Bueso misc-utils/namei.c | 6 +++--- misc-utils/rename.c | 8 +++----- misc-utils/setterm.c | 1 + misc-utils/wipefs.c | 10 +--------- 4 files changed, 8 insertions(+), 17 deletions(-) commit d7df7ba2646fae6e9a7e083fb693eb35b702008c Author: Davidlohr Bueso Date: Fri Oct 15 14:03:25 2010 -0300 xalloc: general purpose memory allocation handling wrappers [kzak@redhat.com: - use %zu for size_t] Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak include/xalloc.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 46 insertions(+), 0 deletions(-) commit 784cb716b1aa15e615ee4814574e6ed03377a8d8 Author: Igor Bazhitov Date: Sat Oct 9 22:54:31 2010 +0400 libblkid: fix memory leak search_type and search_handle fields of blkid_dev_iterate iterator are not being freed after usage. Add cleanup code. Signed-off-by: Igor Bazhitov shlibs/blkid/src/dev.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 1ae90932bd46a56f05caee436b14c45e0b042345 Author: Sami Kerola Date: Sat Oct 9 19:59:50 2010 +0200 column: code readability improvements Signed-off-by: Sami Kerola text-utils/column.c | 110 ++++++++++++++++++++++++++------------------------ 1 files changed, 57 insertions(+), 53 deletions(-) commit bf90b8a6affd24b850b196b9424b8364cfd1cf4c Author: Sami Kerola Date: Sat Oct 9 19:59:49 2010 +0200 column: error messaging & exit codes Human understandable error messages along with symbolic exit codes to comply with coding standard. Signed-off-by: Sami Kerola text-utils/column.c | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) commit 80fa094c9016e95c70224d6e9a918a96d5131129 Author: Sami Kerola Date: Sat Oct 9 19:59:48 2010 +0200 column: EOF handling bug For the last line of the file lenght of line should be determined where the EOF is instead of new line. Old output was $ printf "1 2\n3" | column -t column: line too long 1 2 which this commit will change to $ printf "1 2\n3" | column -t 1 2 3 Signed-off-by: Sami Kerola Signed-off-by: Karel Zak text-utils/column.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 973af806428c0f853ac0241ab46faee6ccdaab26 Author: Karel Zak Date: Fri Oct 15 01:33:28 2010 +0200 libblkid: fix MBR detection on iPod and cleanup vfat code - move all FAT code to superblocks/vfat.c only - add a generic function to verify FAT superblock and use it in FAT prober as well as in MBR parser - add a more robust FAT cluster_count check (it seems that iPod contains an "almost valid" FAT superblock before MBR) Reported-by: Davidlohr Bueso Signed-off-by: Karel Zak include/c.h | 6 + shlibs/blkid/src/Makefile.am | 2 +- shlibs/blkid/src/fat.h | 90 ------------ shlibs/blkid/src/partitions/dos.c | 24 ++-- shlibs/blkid/src/superblocks/vfat.c | 266 +++++++++++++++++++++++------------ 5 files changed, 192 insertions(+), 196 deletions(-) commit c76e710bc70bb89971c44e971e62793f34953d71 Author: Karel Zak Date: Fri Oct 15 01:32:13 2010 +0200 libblkid: consolidate magic strings detection code Signed-off-by: Karel Zak shlibs/blkid/src/blkidP.h | 3 ++ shlibs/blkid/src/partitions/partitions.c | 25 +----------------- shlibs/blkid/src/probe.c | 39 ++++++++++++++++++++++++++++ shlibs/blkid/src/superblocks/superblocks.c | 28 ++------------------ 4 files changed, 46 insertions(+), 49 deletions(-) commit 4f1509b96935ee61c618b5b26a0ed5defa74b204 Author: Davidlohr Bueso Date: Thu Oct 7 10:48:28 2010 -0400 partx: integrate support for mac and sun partitions, based on kpartx. [kzak@redhat.com: - remove unnecessary members from struct slice, - fix gcc warnings] Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak partx/Makefile.am | 2 +- partx/mac.c | 2 +- partx/partx.c | 2 ++ partx/partx.h | 1 + partx/sun.c | 6 +----- 5 files changed, 6 insertions(+), 7 deletions(-) commit aadd32ea8e570af2ae4a76926b97b496b8187d57 Author: Davidlohr Bueso Date: Thu Oct 7 10:48:22 2010 -0400 partx: add sun partition table support Signed-off-by: Davidlohr Bueso partx/sun.c | 134 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 134 insertions(+), 0 deletions(-) commit 655945f7bfb1b36532d9ec23070ba6a8b904ae8e Author: Davidlohr Bueso Date: Thu Oct 7 10:48:16 2010 -0400 partx: add mac partition table support Signed-off-by: Davidlohr Bueso partx/mac.c | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 74 insertions(+), 0 deletions(-) commit 28fed5d6ec53114f57d1fb9210e25d4ca13c6017 Author: Karel Zak Date: Thu Oct 7 17:57:35 2010 +0200 docs: update TODO Signed-off-by: Karel Zak TODO | 40 +++++++++++----------------------------- 1 files changed, 11 insertions(+), 29 deletions(-) commit 1cf4c20b198c0c6566198fd00b983d9aaf8321bc Author: Miklos Szeredi Date: Thu Oct 7 16:05:12 2010 +0200 mount: don't canonicalize "spec" with --no-canonicalize option "Spec" was still canonicalized despite --no-canonicalize. This resulted in a hang during login with pam_encfs (Debian Bug#593336). Signed-off-by: Miklos Szeredi mount/devname.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit a2cb313c02b73becfb8bf8c4703877d8753eb668 Author: Karel Zak Date: Thu Oct 7 10:37:03 2010 +0200 tests: update namei regression test Signed-off-by: Karel Zak tests/expected/namei/logic | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit 37d6897f940032617bc020461ae50fc3d3c2dfe6 Author: Karel Zak Date: Thu Oct 7 10:35:32 2010 +0200 cal: use EXIT_* and program_invocation_short_name Signed-off-by: Karel Zak misc-utils/cal.c | 22 +++++++++------------- 1 files changed, 9 insertions(+), 13 deletions(-) commit fe81c7d1b88713c4cf9edeaf6617952fa2be183d Author: Petr Uzel Date: Wed Oct 6 16:03:34 2010 +0200 lscpu: really use 'mode' argument in path_fopen() sys-utils/lscpu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit c348d9346ae60b78a03d6dcd964e23fb40a625df Author: Jakob Unterwurzacher Date: Wed Oct 6 13:32:20 2010 +0200 flock: use more useful example in flock.1 The example in the man page does not prevent concurrent execution, as it obtains a shared lock. More useful is taking an exclusive lock, i.e. remove "-s". Additionally, IMO most people want the script to exit when the lock cannot be acquired, so adding "-n". sys-utils/flock.1 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7bbbf650458f1828564179ade26afe5644692413 Author: Milan Broz Date: Tue Oct 5 17:38:43 2010 +0200 findmnt: fix support for -a option Signed-off-by: Milan Broz misc-utils/findmnt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 628e30197e106f0dea32aa01e9a43c4cab0b07fe Author: Forest Bond Date: Mon Oct 4 21:01:30 2010 -0400 sfdisk: save errno before calling perror errno is saved into a local variable to avoid it getting trampled by perror before it is checked to determine the return value. This issue seems quite rare, but I have seen it when running sfdisk via gksudo and using the --quiet command-line option. From what I can tell, this combination triggers loading of translations in perror, which (at least on my machine) ends up changing the value of errno. Signed-off-by: Forest Bond fdisk/sfdisk.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit 6cebde5c9647f2c9b1dc5cc5c1a230864c0c2570 Author: Sami Kerola Date: Mon Oct 4 20:57:58 2010 +0200 column: update manual page to match column switches Signed-off-by: Sami Kerola Signed-off-by: Karel Zak text-utils/column.1 | 99 ++++++++++++++++++-------------------------------- 1 files changed, 36 insertions(+), 63 deletions(-) commit a4cc8dfe7d603e7c9386a782c1e128c64bcc27e2 Author: Sami Kerola Date: Mon Oct 4 20:57:57 2010 +0200 column: getopt_long and new help output [kzak@redhat.com: - remove __progname, cleanup usage()] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak text-utils/column.c | 50 ++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 36 insertions(+), 14 deletions(-) commit fac8b4bd78cd0f33cf71f4a8525f2f56b5e6b3f2 Author: Mike Frysinger Date: Sun Oct 3 16:00:09 2010 -0400 fallocate: fix build failure with old linux headers If linux/falloc.h does not exist, the build system still enables the fallocate util, but ultimately fails when it tries to include the header and use a define from it. Signed-off-by: Mike Frysinger sys-utils/fallocate.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit 236acf2d27b8f6e1de11f0fb35c78756837a6700 Author: Karel Zak Date: Thu Oct 7 09:26:37 2010 +0200 fsck: inform about nonexistent devices in verbose mode Reported-by: Serafeim Zanikolas Signed-off-by: Karel Zak fsck/fsck.c | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) commit 305342f8c595f4158ce1281d7c05168ca9cd687a Author: Jeroen Oortwijn Date: Wed Sep 22 19:14:21 2010 +0200 libblkid: add searching in attributes dir to BeFS Add searching for the be:volume_id attribute in the attributes directory of the root directory. UUID is now always set when the root directory contains the be:volume_id attribute. Signed-off-by: Jeroen Oortwijn shlibs/blkid/src/superblocks/befs.c | 383 +++++++++++++++++++++++++++++------ 1 files changed, 323 insertions(+), 60 deletions(-) commit 306c1df2f781652b9bab67d42423c5518f17205b Author: Karel Zak Date: Thu Oct 7 09:03:31 2010 +0200 swapon: warn if file owner is not root Reported-by: Bernhard Voelker Signed-off-by: Karel Zak mount/swapon.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit eac8c7dac9441bd9cfb3b9e78519b3ea51caab0e Author: Karel Zak Date: Thu Oct 7 08:58:00 2010 +0200 umount: use strtosize() for offset= Signed-off-by: Karel Zak mount/Makefile.am | 2 +- mount/umount.c | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) commit c49e31f4ee7c35946f91335a8a3179f503bd9cf0 Author: Sami Kerola Date: Fri Oct 1 00:33:44 2010 +0200 namei: parse all path arguments when an optarg path will fail Old implementation of namei listed path all the way to non-existing file or directory, something like: f: /usr/bin/nxdir/file d / d usr d bin ? nxdir - No such file or directory (2) whiles the current implementation prints: namei: failed to stat: /usr/bin/nxdir/file: No such file or directory The new output it's not helpful. I am especially interested see where the path is broken when a path is symlink to other path with symlink, and few more like that, and something somewhere is broken. [kzak@redhat.com: - coding style changes] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak misc-utils/namei.c | 37 ++++++++++++++++++++++++++----------- 1 files changed, 26 insertions(+), 11 deletions(-) commit 24295096586c848a5eb3f8d8b73a73f03c174fc1 Author: Karel Zak Date: Thu Sep 30 23:27:42 2010 +0200 taskset: proper numbers parsing Reported-by: Davidlohr Bueso Signed-off-by: Karel Zak schedutils/Makefile.am | 7 ++++++- schedutils/chrt.c | 10 ++++------ schedutils/ionice.c | 34 +++++++--------------------------- schedutils/schedutils.c | 34 ++++++++++++++++++++++++++++++++++ schedutils/schedutils.h | 7 +++++++ schedutils/taskset.c | 4 +++- 6 files changed, 61 insertions(+), 35 deletions(-) commit 263644840f3376c7d44d7f2bdf0daee902908165 Author: Markus Rinne Date: Wed Sep 22 22:11:54 2010 +0300 fdisk: eliminate redundant call to open() Don't use open() in get_boot() if it's called with an argument try_only, because the file has already been opened by the caller. Signed-off-by: Markus Rinne fdisk/fdisk.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) commit d4ac6657c5ff8b3a29cdf236ab787558aab8fbb1 Author: Sven Eckelmann Date: Sun Sep 26 21:18:15 2010 +0200 mount: Don't call canonicalize_*(SPEC) for 9p When calling "mount -t 9p -o trans=virtio foobar /mnt/bar" and foobar exists in the current path, the 9p virtio transport driver will be called with $CWD/foobar and fail with "9p: no channels available". Similar problems exist with remote file servers "mount -t 9p 23.42.08.15 /mnt/bar" and Plan 9 From User Space applications "mount -t 9p -o trans=unix,uname=$USER `namespace`/acme /mnt/bar" A similar exception like for nfs, cifs and smbfs must be added for 9p. Signed-off-by: Sven Eckelmann mount/mount.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 320e5b73a2f2ae9ad57d0de27d8e82e676d7d027 Author: Chris Frost Date: Mon Sep 20 10:27:19 2010 -0700 mount: avoid starting a man page line with a single quote Signed-off-by: Karel Zak mount/mount.8 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit b25dcfca92a6bc546ead950bf19956d4ec7b86c6 Author: Petr Uzel Date: Mon Sep 20 17:12:42 2010 +0200 mount: fix mount.8, shortname=mixed is now default for vfat Since Linux kernel commit 955234755ce4a2c33cfc558912aa8f2148cc1fc6, the default mode for vfat filesystem is 'shortname=mixed'. Reported-by: Harald Koenig Signed-off-by: Petr Uzel mount/mount.8 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit a8e7dd2a1a10deccbfa58246c02a233b2331b8a9 Author: Karel Zak Date: Thu Sep 30 22:27:42 2010 +0200 ddate: revert man page typo On Sat, Sep 18, 2010 at 03:10:52AM +0300, Anssi Hannula wrote: > According to wikipedia [1] 'Holyday' was the correct spelling, I > guess the first hunk should be reverted. > > [1] http://en.wikipedia.org/wiki/Discordian_calendar Signed-off-by: Karel Zak misc-utils/ddate.1 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 1b85dcd9cabd478859e46bcfc9f7847acec98db6 Author: Karel Zak Date: Mon Sep 20 13:10:36 2010 +0200 mount: rewrite is_readonly() This new implementation is more optimistic and always calls access(2). The fallback solution (modify atime by futimens(2)) should be used very rarely. Signed-off-by: Karel Zak mount/mount.c | 46 +++++++++++++++++++++++++++------------------- 1 files changed, 27 insertions(+), 19 deletions(-) commit 59f8c787e7cdc9714603e2b2e70e702d5071923f Author: Karel Zak Date: Fri Sep 17 10:35:35 2010 +0200 ul: use atexit() to deallocate buffer, print errors by err() Signed-off-by: Karel Zak text-utils/ul.c | 60 ++++++++++++++++++++++-------------------------------- 1 files changed, 25 insertions(+), 35 deletions(-) commit 4727b16944cd67f0c9ba1acaba301ac97648a001 Author: Davidlohr Bueso Date: Sun Aug 29 22:03:32 2010 -0400 ul: fix memory leak. The 'obuf' variable is not being freed after usage and this includes when SIGINTs occur, hence add some basic signal handling. [kzak@redhat.com - remove if-before-free ] Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak text-utils/ul.c | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-) commit ad0ad79ae9b2bf5a340838234c6b9ab2962d0477 Author: Davidlohr Bueso Date: Mon Aug 30 18:06:19 2010 -0400 lscpu: update lscpu.1 to include new additions. Signed-off-by: Davidlohr Bueso sys-utils/lscpu.1 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit e0c2b50ae2836e0edf94d860335bd1261cdd2749 Author: Davidlohr Bueso Date: Thu Sep 2 08:40:23 2010 -0400 ddate: fix typo in ddate.1 Signed-off-by: Davidlohr Bueso misc-utils/ddate.1 | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 4566208f95f5b49a68337744b7e140219400ed17 Author: Karel Zak Date: Fri Sep 17 00:09:38 2010 +0200 mount: add note about context= remount to mount.8 Signed-off-by: Karel Zak mount/mount.8 | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 26eb5a59fc0e7e1f3e6493c647f8b7071af9b31a Author: Karel Zak Date: Wed Sep 15 11:51:09 2010 +0200 libblkid: don't probe directories Signed-off-by: Karel Zak shlibs/blkid/src/probe.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 7c97f7402e77b2d42c4ddfd9516c848a8022f099 Author: Karel Zak Date: Mon Sep 13 11:43:14 2010 +0200 mount: better describe UUIDs usage in man pages Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=632373 Signed-off-by: Karel Zak mount/fstab.5 | 5 +++++ mount/mount.8 | 14 ++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) commit 23489c26252f1c40407804e0cd4964835db18e8c Author: Karel Zak Date: Tue Sep 7 11:30:50 2010 +0200 libblkid: don't ignore zero for SBMAGIC_OFFSET The side effect of this bug is that wipefs(8) does not report LUKS... Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/superblocks.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) commit 74089287cf72acb42523e9eacef319b26ba74a07 Author: Karel Zak Date: Tue Sep 7 11:03:45 2010 +0200 docs: add blkid --list-all to TODO Signed-off-by: Karel Zak TODO | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit 73356e0553bd9ac00f556891a4798064c0ee6849 Author: Karel Zak Date: Mon Sep 6 13:30:48 2010 +0200 cfdisk: don't use size of device based on cylinders This patch is enough to make cfdisk usable on non-DOS disks where partitioning is not based on CHS. cfdisk should not print error messages for such disks. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=630340 Signed-off-by: Karel Zak fdisk/cfdisk.c | 17 +++++------------ 1 files changed, 5 insertions(+), 12 deletions(-) commit 9a30c6ef921245534f93586603cca3ee1c37d7a0 Author: Karel Zak Date: Tue Aug 31 12:24:00 2010 +0200 findmnt: don't swap source and target if the source is a tag Signed-off-by: Karel Zak misc-utils/findmnt.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit abe3d704b6aeb6b82ff32e8599edb56525cdfd72 Author: Karel Zak Date: Mon Aug 30 11:43:41 2010 +0200 mount: clean up fstab.5 Signed-off-by: Karel Zak mount/fstab.5 | 99 ++++++++++++++++++++++++++++++++++++--------------------- 1 files changed, 63 insertions(+), 36 deletions(-) commit e31597d8eda23e17fcfd46959d72765b966bb405 Author: Karel Zak Date: Mon Aug 30 10:48:52 2010 +0200 mount: add note about subtypes to fstab.5 Signed-off-by: Karel Zak mount/fstab.5 | 8 ++++++++ mount/mount.8 | 9 +++++++++ 2 files changed, 17 insertions(+), 0 deletions(-) commit 8f83100949e685ee0be3de39f3e6fd9b3805e683 Author: Karel Zak Date: Sat Aug 28 00:50:24 2010 +0200 blockdev: fix typo in blockdev.8 Reported-by: Marcos Felipe Rasia de Mello Signed-off-by: Karel Zak disk-utils/blockdev.8 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 8eff6643e191b5aebebdc33d091c5f4f1e606e2c Author: Karel Zak Date: Fri Aug 27 20:42:16 2010 +0200 mount: add info about type.subtype to /sbin/mount. API description Signed-off-by: Karel Zak mount/mount.8 | 7 +++++-- mount/umount.8 | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) commit dc0a335554eafa643c7fd123d99e14df72c515c3 Author: Miklos Szeredi Date: Fri Aug 27 16:58:44 2010 +0200 mount: handle filesystems with subtype Linux can handle filesystem types with "MAINTYPE.SUBTYPE" format, where the main type determines the actual filesystem driver while the subtype can be interpreted by the filesystem itself. When searching for mount helpers mount(8) and umount(8) should also interpret such types, falling back to (u)mount.MAINTYPE if (u)mount.MAINTYPE.SUBTYPE doesn't exist. This patch implements this, passing the type with "-t TYPE" to the mount program in this case. Reported-by: Josef Bacik Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=625064 Signed-off-by: Miklos Szeredi mount/mount.c | 19 ++++++++++++++++--- mount/umount.c | 17 +++++++++++++++-- 2 files changed, 31 insertions(+), 5 deletions(-) commit 0828125895f7323e39b87673dbdbef4c70da5fdb Author: Karel Zak Date: Fri Aug 27 12:22:27 2010 +0200 mount: sanity check mount flags for MS_PROPAGATION mount(8) reuses mount flags from fstab/mtab, the problem is that for MS_PROPAGATION operations kernel incorrectly evaluates mount flags if the flags contains any non-propagation stuff (e.g. MS_RDONLY). For example --make-shared on read-only FS: # strace -e mount mount --make-shared /mnt/test mount("/dev/sda1", "/mnt/test", "none", MS_RDONLY|MS_SHARED, NULL) = 0 must be: # strace -e mount mount --make-shared /mnt/test mount("/dev/sda1", "/mnt/test", "none", MS_SHARED, NULL) = 0 Reported-by: Valerie Aurora Signed-off-by: Karel Zak mount/mount.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 5adaf9f120131f030ce15c5a312746059608e762 Author: Davidlohr Bueso Date: Mon Aug 23 10:17:36 2010 -0400 mount: Add more pseudo filesystems. Signed-off-by: Davidlohr Bueso mount/sundries.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 455fdf4af8d0bc4df3f0474770848dfc97a4f51e Author: Karel Zak Date: Tue Aug 24 12:59:41 2010 +0200 blockdev: sync man page with code Signed-off-by: Karel Zak disk-utils/blockdev.8 | 120 +++++++++++++++++++++++-------------------------- disk-utils/blockdev.c | 10 ++-- 2 files changed, 61 insertions(+), 69 deletions(-) commit 9ef30d61783eb738040eefb1bbacdc50b39bf7d5 Author: Karel Zak Date: Tue Aug 24 12:04:24 2010 +0200 include: cleanup blkdev.h Signed-off-by: Karel Zak include/blkdev.h | 79 ++++++++++++++++++++++++++++------------------------- 1 files changed, 42 insertions(+), 37 deletions(-) commit 1519ab5ffca4ec4be5ae36556e2e608c188d8f60 Author: Karel Zak Date: Tue Aug 24 11:43:21 2010 +0200 blockdev: add BLKDISCARDZEROES Signed-off-by: Karel Zak disk-utils/blockdev.c | 6 ++++++ include/blkdev.h | 6 ++++++ 2 files changed, 12 insertions(+), 0 deletions(-) commit 7d22c8e27c4720010d464b7b6c677bc305d74e35 Author: Karel Zak Date: Mon Aug 23 13:13:36 2010 +0200 fdisk: fix alignment check for non-512-byte logical sectors # modprobe scsi_debug dev_size_mb=1024 sector_size=4096 # fdisk /dev/sdb Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4, default 1): Using default value 1 First sector (256-262143, default 256): 257 Last sector, +sectors or +size{K,M,G} (257-262143, default 262143): +100M Command (m for help): p Disk /dev/sdb: 1073 MB, 1073741824 bytes 32 heads, 32 sectors/track, 256 cylinders, total 262144 sectors Units = sectors of 1 * 4096 = 4096 bytes Sector size (logical/physical): 4096 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 262144 bytes Disk identifier: 0x16db2bb0 Device Boot Start End Blocks Id System /dev/sdb1 257 25855 102396 83 Linux Partition 1 does not start on physical sector boundary. ^^^^^^^^ The warning is nonsense. The logical and physical sector size is the same. It means that every LBA is always aligned to physical sector boundary. Note that this bug does not mean that fdisk produces unaligned partitions. The problem is that fdisk forces to use bigger gaps between aligned LBAs, for example: correctly aligned LBA are: 256, 257, 258, ... [N+1] fdisk assumes: 256, 264, 272, ... [N+(sector_size/512)] Reported-by: JOB NELSON Signed-off-by: Karel Zak fdisk/fdisk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 06023c2e97ee6a8cd5dbb419c3aadfaae5b253f2 Author: Karel Zak Date: Mon Aug 23 12:11:26 2010 +0200 fdisk: don't keep internally device size in 512-byte sectors All fdisk code uses sector_size variable, so there should not be an exception where we use 512-byte sectors. Signed-off-by: Karel Zak fdisk/fdisk.c | 29 ++++++++++++++--------------- 1 files changed, 14 insertions(+), 15 deletions(-) commit fab1c0463a7147599e5878e307be10e358a77074 Author: Karel Zak Date: Mon Aug 23 11:06:08 2010 +0200 lib: fix syntax error in blkdev.c Reported-by: Tuco Signed-off-by: Karel Zak lib/blkdev.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 295b8bb906b7c3c14edb24b226331f6ddfd04427 Author: Karel Zak Date: Fri Aug 20 21:29:04 2010 +0200 tests: update lscpu tests Signed-off-by: Karel Zak tests/expected/lscpu/lscpu-i386-amdshanghai | 1 + tests/expected/lscpu/lscpu-i386-dellpe700 | 1 + tests/expected/lscpu/lscpu-i386-intels5000phb | 1 + tests/expected/lscpu/lscpu-x86_64-dellr710 | 1 + tests/expected/lscpu/lscpu-x86_64-hpdl585 | 1 + tests/expected/lscpu/lscpu-x86_64-ibme326m | 1 + tests/expected/lscpu/lscpu-x86_64-necem14 | 1 + tests/ts/lscpu/lscpu | 3 +++ 8 files changed, 10 insertions(+), 0 deletions(-) commit 5d4ba40ddcf8e0edb3e595e398d22af67074cebe Author: Karel Zak Date: Fri Aug 20 21:15:51 2010 +0200 lscpu: support sysfs without cpu/online file Signed-off-by: Karel Zak sys-utils/lscpu.c | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) commit e61332c3715f9f2df2fa3abbd79dee095e2652ca Author: Karel Zak Date: Fri Aug 20 21:02:29 2010 +0200 tests: fix blkid MD test (missing tailing whitespaces) Signed-off-by: Karel Zak tests/expected/blkid/md-raid0-whole | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 2d4f58856ab9cbd328369c9c022f1629b9688a88 Author: Alexander Shishkin Date: Fri Aug 20 11:08:48 2010 +0300 docs: make it easier to find mail list address AUTHORS doesn't really have the mail list info, but README does. Mention it in README.devel. Signed-off-by: Alexander Shishkin README.devel | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 9b8d4d5f1818ede8f38eca74aef30a62e8e70ef3 Author: Davidlohr Bueso Date: Tue Aug 17 10:02:00 2010 -0400 lscpu: add byte order and bogoMIPS information Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak sys-utils/lscpu.c | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) commit 3a788d773b13078ce8c87247e7f5f556646203b3 Author: Dima Kogan Date: Sat Aug 14 02:15:47 2010 -0700 tailf: fixed timing issue that could cause duplicate data output The issue is that in roll_file() we fstat() to find the file size, then read() as much data as we can and then use the previously saved file size to mark our position. The bug occurs if we read past the file size reported by fstat() because more data has arrived while we were reading it. The attached patch uses the current file position as the location marker instead, with some extra logic to handle tailing truncated files. [kzak@redhat.com: - fix coding style] Signed-off-by: Dima Kogan Signed-off-by: Karel Zak text-utils/tailf.c | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) commit 9695a7c653c5e1871f7bb78fa0e6ec8d4e74a83a Author: Tobias Klauser Date: Wed Aug 11 23:12:07 2010 +0200 losetup: do not distinguish between malloc and realloc realloc(NULL, size) behaves the same as malloc(size) so there is no need to distinguish between the two. [kzak@redhat.com: - better handle realloc() errors] Signed-off-by: Tobias Klauser Signed-off-by: Karel Zak mount/lomount.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) commit ec25979447b09387c8152d570581d963df91261e Author: Karel Zak Date: Fri Aug 20 13:03:51 2010 +0200 libmount: remove unused mnt_strconcat3() Signed-off-by: Karel Zak shlibs/mount/src/mountP.h | 2 -- shlibs/mount/src/utils.c | 27 --------------------------- 2 files changed, 0 insertions(+), 29 deletions(-) commit 06eee0d84f41dffe5ad0a894a9ec3123f43caf13 Author: Davidlohr Bueso Date: Sun Aug 8 17:03:56 2010 -0400 rev: coding style, various fixes * Change indentation to 8 characters and coding style, for better reading the code. * Add some memory allocation error handling. * Fix memory leaks. In cases when Ctrl-C is used to exit the program, 'p' cannot be freed, so made it a global var, to share between main() and sig_handler(). Signal handing is necessary to fix some leaks, so added a very basic, non invasive, mechanism. Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak text-utils/rev.c | 195 ++++++++++++++++++++++++++++++----------------------- 1 files changed, 110 insertions(+), 85 deletions(-) commit 1fc0b941d6d14ac2b8a5b0e40ab3c9981c034d41 Author: Karel Zak Date: Fri Aug 20 11:45:00 2010 +0200 flock: properly report exec() errors Reported-by: Barry Davis Signed-off-by: Karel Zak sys-utils/flock.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0c0f93fcc37d02d9ab6d159f964da378d424199e Author: Karel Zak Date: Thu Aug 19 15:33:45 2010 +0200 fsck: improve whole-disk check, detect stacked devices The current heuristic for conversion from partition to whole-disk is based on device names. It's pretty poor. This patch replaces this code with blkid_devno_to_wholedisk(). This solution is based on /sys FS and it works for arbitrary partitioned devices. The another problem is the way how fsck determines stacked devices. The current code checks device name for "md" prefix only. It does not care about DM, dm-ccypt, and so on. This patch uses /sys/block/.../slaves/, but it does not fully resolves dependencies between all devices. The method is simple -- fsck does not check stacked devices in parallel with any other device. Signed-off-by: Karel Zak Makefile.am | 2 + fsck/Makefile.am | 2 +- fsck/base_device.c | 169 ---------------------------------------------------- fsck/fsck.8 | 13 +++- fsck/fsck.c | 89 +++++++++++++++++++-------- fsck/fsck.h | 5 +- 6 files changed, 77 insertions(+), 203 deletions(-) commit 7df072799d25cb6c744909225cd89329e1c4668b Author: Karel Zak Date: Wed Aug 18 09:33:11 2010 +0200 tests: add blkid test for partitioned RAID0 Signed-off-by: Karel Zak tests/expected/blkid/md-raid0-whole | 51 +++++++++++++++++++++ tests/ts/blkid/md-raid0-whole | 86 +++++++++++++++++++++++++++++++++++ 2 files changed, 137 insertions(+), 0 deletions(-) commit bb1eea0ee0971cf5136e346bd3a16a2fa01555da Author: Karel Zak Date: Wed Aug 18 09:29:59 2010 +0200 agetty: add -c to reuse cflags The agetty command resets terminal cflags setting. The -c option disables this behavior and serial setting from kernel is used. Signed-off-by: Karel Zak login-utils/agetty.8 | 6 +++++- login-utils/agetty.c | 9 +++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) commit e143d1f00497f0178a1febec8fb4aa7c842fa35a Author: Karel Zak Date: Mon Jul 12 11:57:55 2010 +0200 aggety: don't wipe CLOCAL flag gettey should not clear the flag. It seems that the flag is automatically enabled for serial consoles tht don't use CD signal. Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=598631 Signed-off-by: Karel Zak login-utils/agetty.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 848e5e6ce3978d921366b799d907a78a12299924 Author: Karel Zak Date: Wed Aug 18 09:02:03 2010 +0200 agetty: add -s to reuse existing baud rate For example: /sbin/agetty -s /dev/ttyS0 9600 will reuse the speed the kernel configured on the port. If the setting from kernel is useless (tty returns BREAK character) then the baud rate from command line (9600) is used. Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=623685 Signed-off-by: Karel Zak login-utils/agetty.8 | 16 +++++----------- login-utils/agetty.c | 22 ++++++++++++++-------- 2 files changed, 19 insertions(+), 19 deletions(-) commit a09f0933bb80c52ec1bc30a1678cef7e999aeff9 Author: Karel Zak Date: Fri Aug 13 09:59:31 2010 +0200 libblkid: wrong PT detection on RAID0 Reported-by: Yulia Kopkova Signed-off-by: Karel Zak shlibs/blkid/src/partitions/partitions.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 4f912c6ac5f62b801fc9078aa0517bb72ce6bd1b Author: Karel Zak Date: Wed Aug 11 15:41:48 2010 +0200 lscpu: add -x and {On,Off}-line CPU(s) mask/list Signed-off-by: Karel Zak sys-utils/lscpu.1 | 4 +++ sys-utils/lscpu.c | 73 ++++++++++++++++++++++++++++++++++++++++------------ 2 files changed, 60 insertions(+), 17 deletions(-) commit aac1e59ebb205d0ae5a0480900bab22ae34729d9 Author: Karel Zak Date: Wed Aug 11 12:43:25 2010 +0200 lscpu: support offline CPUs # echo 0 >/sys/devices/system/cpu/cpu3/online # echo 0 >/sys/devices/system/cpu/cpu2/online # grep processor /proc/cpuinfo processor : 0 processor : 1 # lscpu lscpu: error: cannot open /sys/devices/system/cpu/cpu2/cache/index0/shared_cpu_map: No such file or directory This patch also add a new "On-line CPU(s):" line to the lscpu(1) output. Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=623012 Signed-off-by: Karel Zak sys-utils/lscpu.c | 61 +++++++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 52 insertions(+), 9 deletions(-) commit f2813fcec4a2a8dd98f78b8ee825900c4ba2c282 Author: Karel Zak Date: Tue Aug 10 09:06:29 2010 +0200 docs: add note about sfdisk to TODO Signed-off-by: Karel Zak TODO | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit faab23b9b9c1ae51d5218debf27d1dfb9a138e87 Author: Karel Zak Date: Mon Aug 9 13:33:17 2010 +0200 cfdisk: fix n+1 again Reported-by: J B Signed-off-by: Karel Zak fdisk/cfdisk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f9936f4dc0cd50d1040f7e855ef091db0edd1f64 Author: Karel Zak Date: Mon Aug 9 13:03:02 2010 +0200 fdisk: update MBR after ID change Reported-by: Bernard Pidoux Signed-off-by: Karel Zak fdisk/fdisk.c | 19 +++++++++++++++---- tests/expected/fdisk/id | 5 +++++ tests/ts/fdisk/id | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+), 4 deletions(-) commit 3d9440ee18f27ed3412d3337c042834138c5b523 Author: Karel Zak Date: Mon Aug 9 11:32:46 2010 +0200 cfdisk: fix n+1 bug in error message # cfdisk -Ps correctly uses 1..N range for partition numbers, unfortunately some error messages use 0..N. This is confusing. Reported-by: J B Signed-off-by: Karel Zak fdisk/cfdisk.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 4c50b0b3b3bdddd8ec1871980adad0f95df7b688 Author: Karel Zak Date: Wed Aug 4 12:14:57 2010 +0200 docs: mark line(1) as deprecated Signed-off-by: Karel Zak DEPRECATED | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) commit 108591d2b7860ca0b8d27d114bed1e504a31fa72 Author: Karel Zak Date: Wed Aug 4 11:52:41 2010 +0200 losetup: use stdout and return 0 for --help Reported-by: Kamalesh Babulal Signed-off-by: Karel Zak mount/lomount.c | 34 +++++++++++++++++++--------------- 1 files changed, 19 insertions(+), 15 deletions(-) commit 219da9223d14aa21e4feb4fe850eb4c1691c98d8 Author: Davidlohr Bueso Date: Fri Jul 30 11:43:36 2010 -0400 dmesg: fix memory leak in dmesg(1). Signed-off-by: Davidlohr Bueso sys-utils/dmesg.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 5d79666f8f7563ed9904a7ce2087f430ee2702b6 Author: Valerie Aurora Date: Tue Aug 3 20:09:19 2010 -0400 mount: get most recently mounted fs from /etc/mtab. I spent most of the day tracking down this subtle remount bug. I think this is the correct solution but I'd appreciate some double-checking. I suspect this bug will munge the mount options whenever you remount a file system mounted on the same mountpoint as another file system, using the mountpoint as the handle. -VAL commit c010b3a0783430e2b94f3b3dc0929ae299e383eb Author: Valerie Aurora Date: Tue Aug 3 16:32:52 2010 -0700 mount: get most recently mounted fs from /etc/mtab. In mount, when using /etc/mtab to lookup a mount entry, get the most recently mounted entry instead of the first mounted entry. You want to manipulate the most recent mount, not a covered mount. See comment to umount_one_bw(). This bug has been util-linux-ng since the first git checkin. It finally showed up on my system with the change to stop using SETLOOP_AUTOCLEAR if /etc/mtab is writable (commit af092544). If you do a remount of a file system mounted on the same dir as another file system, it will take the options from the first mount and write them out to /etc/mtab as the options to the second mount - including, in the case of a loop device, loop=/dev/loop0. Then when you umount the second mount, it grabs the line from /etc/mtab and tries to tear down the loop device, which complains because it is still in use by the first mount. Reproducible test case (on a system with writable /etc/mtab): mount -o loop,ro /tmp/ro /mnt mount -t tmpfs tmpfs /mnt mount -o remount,ro /mnt cat /etc/mtab | tail -2 Signed-off-by: Valerie Aurora mount/fstab.c | 18 ++++++++++++++++++ mount/fstab.h | 1 + mount/mount.c | 5 +++-- 3 files changed, 22 insertions(+), 2 deletions(-) commit 60b2bf187e5d30b4cd784ea61d88d3a1126de8fe Author: Valerie Aurora Date: Thu Jul 29 15:55:33 2010 -0400 libblkid: remove dead code section commit 2d12ea54c70c9e6a2b77ca6f7b6a786309a22fa7 Author: Valerie Aurora Date: Thu Jul 29 12:47:35 2010 -0700 libblkid: remove dead code section (duplication of ext* constants) Signed-off-by: Valerie Aurora shlibs/blkid/src/superblocks/ext.c | 47 ------------------------------------ 1 files changed, 0 insertions(+), 47 deletions(-) commit 6c91f5e3e1de32c45ea0b38227ce35eb43eb2ebc Author: Davidlohr Bueso Date: Wed Jul 28 17:17:56 2010 -0400 look: fix memory leak in look(1) Signed-off-by: Davidlohr Bueso misc-utils/look.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit bf13602c24991c34421fb0daa5f0cc2ad68ffbaf Author: Davidlohr Bueso Date: Wed Jul 28 17:20:38 2010 -0400 namei: fix memory leak in namei(1) Signed-off-by: Davidlohr Bueso misc-utils/namei.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 111f32a97f31b086795af7f43e34bab54934d012 Author: Diego Elio 'Flameeyes' Pettenò Date: Wed Jul 28 22:47:55 2010 +0200 build-sys: man aliases don't depend on original man page Avoid rebuilding the man aliases over and over given that they do not copy the content but only alias it. Signed-off-by: Diego Elio 'Flameeyes' Pettenò shlibs/uuid/man/Makefile.am | 2 +- sys-utils/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 533b9dce293e71abe942472956bac8a091d36d35 Author: Diego Elio 'Flameeyes' Pettenò Date: Wed Jul 28 22:47:54 2010 +0200 build-sys: use the silent-rules prefix when generating man pages. This is backward-compatible with automake 1.10 as the AM_V_GEN macro is going to be null anyway. Signed-off-by: Diego Elio 'Flameeyes' Pettenò shlibs/uuid/man/Makefile.am | 2 +- sys-utils/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit ebc83db1a1d123a74da7e8bd07b281ab17e18ed6 Author: Diego Elio 'Flameeyes' Pettenò Date: Wed Jul 28 22:40:04 2010 +0200 build-sys: drop shlibs/Makefile.am that only adds SUBDIRS The same effect is gotten by changing SUBDIRS in the top-level Makefile.am. Makefile.am | 16 +++++++++++++++- configure.ac | 1 - shlibs/Makefile.am | 13 ------------- 3 files changed, 15 insertions(+), 15 deletions(-) commit 4e3eff9b4fa1474115183defbf5421d3c9182c15 Author: Diego Elio 'Flameeyes' Pettenò Date: Wed Jul 28 22:40:03 2010 +0200 build-sys: drop the getsize test out of Makefile.am The #ifdef TEST_PROGRAM block was removed with commit 3069624180bac35f1cd468249ddb9dfc91d1b7b1 so there is no point in keeping the tests declared, as it won't build. Signed-off-by: Diego Elio 'Flameeyes' Pettenò shlibs/blkid/src/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 97ce707bce4de72612ec33bf9533958e06ae3589 Author: Diego Elio 'Flameeyes' Pettenò Date: Wed Jul 28 22:40:02 2010 +0200 build-sys: require automake 1.10 as gtk-doc requires it anyway There's no point into requiring 1.9 if the gtk-doc makefiles only work with 1.10. Signed-off-by: Diego Elio 'Flameeyes' Pettenò configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 26b4e7a5efa16a0af0f154f7a66d4124f708bc9c Author: Paul Menzel Date: Wed Jul 28 18:38:55 2010 +0200 mkfs: add `mkfs.ext4` to section SEE ALSO of `mkfs.8`. Signed-off-by: Paul Menzel disk-utils/mkfs.8 | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit ae7054723b39eb0c5388fb8acfe26c5fd5a98f02 Author: Karel Zak Date: Thu Jul 29 14:54:19 2010 +0200 chsh: don't suggest ypchsh $ chsh chsh: can only change local entries; use ypchsh instead. The 'ypchsh' is an external util that does not have to be installed. Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=497329 Signed-off-by: Karel Zak login-utils/chfn.1 | 4 ++++ login-utils/chfn.c | 3 +-- login-utils/chsh.1 | 4 ++++ login-utils/chsh.c | 3 +-- 4 files changed, 10 insertions(+), 4 deletions(-) commit 4d9f9bdace6e18f1c5dcc242005bf2db9a13d5e6 Author: Karel Zak Date: Thu Jul 29 14:18:46 2010 +0200 mount: fix "mount -a" for auto-clear loopdevs and /proc/mounts The "mount -a" uses /etc/mtab to detect already mounted file systems from /etc/fstab -- this check requires the same FS name (1st field) in fstab and mtab. On systems with enabled auto-clear loop devies or systems without regular mtab (symlink to /proc/mounts) there is /dev/loopN rather than image filename in mtab. For example: fstab: /mnt/store/foo.ISO /mnt/image auto defaults 0 0 mtab: /dev/loop0 /mnt/image iso9960 rw 0 0 We have to scan all available loop devices to check if some of the devices is not associated with the image file from fstab. Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=618957 Signed-off-by: Karel Zak mount/mount.c | 47 +++++++++++++++++++++++++++++++++++++---------- 1 files changed, 37 insertions(+), 10 deletions(-) commit 9779651e2b6c06159a583d5852f1a54c000c6c8e Author: François Revol Date: Mon Jul 26 11:43:51 2010 +0200 portability: fix mntent.h and pty.h usage Signed-off-by: François Revol Signed-off-by: Karel Zak lib/ismounted.c | 6 ++++++ misc-utils/script.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) commit 1bf4407a1d40e5a87f9cfbb44116ce52adce9ef8 Author: François Revol Date: Mon Jul 26 11:41:04 2010 +0200 portability: use standard constants Signed-off-by: François Revol Signed-off-by: Karel Zak sys-utils/flock.c | 2 +- text-utils/more.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletions(-) commit d063af060490747fa492d35cb8f446c7ed8a0ba3 Author: François Revol Date: Mon Jul 26 11:37:19 2010 +0200 fdisk: fix use of non portable type Signed-off-by: François Revol Signed-off-by: Karel Zak fdisk/fdisk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 791a2fd67c118c3f07141e4cc95532fe908015a9 Author: Alexandre Peixoto Ferreira Date: Mon Jul 19 18:04:33 2010 -0500 libblkid: set tolerant flag for HFS An CDROM can contain both HFS and ISO9660 views on the same filesystem. This confuses mount/KDE/Gnome. Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/hfs.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 1326e1dfa5c1d06ff7521b8c8162452799164239 Author: Jiro SEKIBA Date: Thu Jul 15 13:40:27 2010 +0900 libblkid: fix typo filesystem name nilfs to nilfs2 The correct filesystem name is nilfs2, not nilfs. Signed-off-by: Jiro SEKIBA shlibs/blkid/src/superblocks/nilfs.c | 2 +- tests/expected/blkid/low-probe-nilfs2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit af092544d2b3c8809874251bd5fe05ae6d0e3be2 Author: Karel Zak Date: Tue Jul 20 11:37:23 2010 +0200 mount: don't use auto-clear loopdev if mtab is available # mount /home/images/floppy.img /mnt/test2 # mount | grep loop /dev/loop0 on /mnt/test2 type udf (rw) mount(8) with auto-clear loopdev does not store information about the original backing file (the image) to /etc/mtab. (Note that this is our long-term goal, because we want to remove mtab from Linux.) Unfortunately, losetup(8) is not able to provide full path for the backing file, because LOOP_GET_STATUS ioctl uses 64 bytes for the filename... So, without the information about the backing file in mtab the information about mapping between the file and the loopdev is unaccessible from userspace. From my point of view it would be nice to add all necessary information about loopdevs to /sys rather than rely on broken LOOP_GET_STATUS[64] ioctls. with this patch: # mount /home/images/floppy.img /mnt/test2 # mount | grep loop# mount | grep loop /home/images/floppy.img on /mnt/test2 type udf (ro,loop=/dev/loop0) Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=615389 Signed-off-by: Karel Zak mount/mount.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 54a0fe298b4d6d948cffbd6fbbbe7dbabc9a6bb1 Author: Karel Zak Date: Mon Jul 19 22:52:58 2010 +0200 cfdisk: get_string not calculating correct limits Reported-by: James L. Hammons Signed-off-by: Karel Zak fdisk/cfdisk.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) commit 67bb0074eec2b154d15bd3dd77b482c3d6125761 Author: Jiro SEKIBA Date: Tue Jul 13 09:14:08 2010 +0200 tests: add nilfs2 test for libblkid Signed-off-by: Jiro SEKIBA Signed-off-by: Karel Zak tests/expected/blkid/low-probe-nilfs2 | 7 +++++++ tests/ts/blkid/images-fs/nilfs2.img.bz2 | Bin 0 -> 795 bytes 2 files changed, 7 insertions(+), 0 deletions(-) commit b44b8600d4096de8203c1fb0702bbc95ee51017f Author: Jiro SEKIBA Date: Tue Jul 13 09:12:56 2010 +0200 libblkid: add nilfs2 filesystem superblock probe This patch implements nilfs2_idinfo to proble nilfs2 partition. The patch probes uuid, label, version and verify crc check sum of superblock. Signed-off-by: Jiro SEKIBA Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/Makefile.am | 1 + shlibs/blkid/src/superblocks/nilfs.c | 120 ++++++++++++++++++++++++++++ shlibs/blkid/src/superblocks/superblocks.c | 1 + shlibs/blkid/src/superblocks/superblocks.h | 1 + 4 files changed, 123 insertions(+), 0 deletions(-) commit 7c35ecaccb9f7f5c60f1a163bbdaa0eb3b9c223a Author: Karel Zak Date: Mon Jul 12 12:32:12 2010 +0200 docs: add COPYING.lib* files Signed-off-by: Karel Zak shlibs/blkid/Makefile.am | 2 +- shlibs/mount/COPYING.libmount | 508 +++++++++++++++++++++++++++++++++++++++++ shlibs/mount/Makefile.am | 2 +- shlibs/uuid/Makefile.am | 2 +- 4 files changed, 511 insertions(+), 3 deletions(-) commit 2c26d56ff524bdd9b7bbb45d19e47e67bb2b8d30 Author: Patrice Dumas Date: Wed Jul 7 10:09:40 2010 +0200 flock: fix file number in flock.1 man page According to a search on the internet, the 200 file number is not a posix shell feature, since posix shells are only mandated to have 1 through 9. I haven't verified that this claim is right, but, at least dash doesn't like the 200. So here is a patch for the flock man page that replaces 200 with 9. Signed-off-by: Patrice Dumas Signed-off-by: Karel Zak sys-utils/flock.1 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit a93e5691369b0d0878f4434f980c79e94216775d Author: Petr Uzel Date: Sun Jul 4 20:02:57 2010 +0200 libmount: fix merge_optstr (do not truncate 3 trailing characters) I believe this is the correct fix. Signed-off-by: Petr Uzel shlibs/mount/src/tab_parse.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 26907ffae0895b11991d2039b634557404e8130d Author: Jeff Mahoney Date: Wed Jul 7 10:01:17 2010 +0200 swapon: Document btrfs limitation with swapfiles Btrfs, as of 2.6.35, is unable to allow swapfiles to be used on its filesystems. This is due to the swapfile implementation wanting to build an extent map of each block in the file and expecting it to be static for the life of the swapfile. Btrfs can't guarantee this and refuses to return the mapping. The swapfile implementation just makes a comment about there being holes in the file - but that's how btrfs denies the mapping. This patch adds a section to the swapon manpage to document it. Signed-off-by: Jeff Mahoney Signed-off-by: Karel Zak mount/swapon.8 | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) commit 30c97bb8c97e20c502b5b1d588c94059747a40a6 Author: Mike Frysinger Date: Thu Jul 1 13:41:40 2010 -0400 cfdisk: search for ncursesw/ncurses.h Some distros install the wide version of ncurses side by side with the non-wide version and place the wide headers in an ncursesw/ subdir. So detect that behavior and include the right header with cfdisk. Signed-off-by: Mike Frysinger configure.ac | 1 + fdisk/cfdisk.c | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) commit 541e6934e1fe6833b125c1c64f9a1108bc3d09fa Author: Karel Zak Date: Thu Jul 1 10:56:41 2010 +0200 cfdisk: fix --with-slang Signed-off-by: Karel Zak fdisk/Makefile.am | 2 +- fdisk/cfdisk.c | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) commit 965b4900b9d0a0d716273558e52e188820108709 Author: Karel Zak Date: Thu Jul 1 10:43:06 2010 +0200 build-sys: explicitly check for slang.h The slang/slcurses.h contains #includes but we don't use -I/usr/include/slang (and this is also missing in slang.pc), it means that we have manually include the slang.h file in our configure script. Note this is Fedora-12, maybe some others distros have more usable slang headers... Signed-off-by: Karel Zak configure.ac | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) commit 2f89fb42a3fd950d2a35e515c21f016f7dc0e8d7 Author: Karel Zak Date: Thu Jul 1 09:44:08 2010 +0200 tests: truncate BeFS and tuxonice images Signed-off-by: Karel Zak tests/ts/blkid/images-fs/befs.img.bz2 | Bin 899614 -> 36236 bytes tests/ts/blkid/images-fs/tuxonice.img.bz2 | Bin 2765314 -> 36891 bytes 2 files changed, 0 insertions(+), 0 deletions(-)