Changes between v2.17 and v2.18-rc1 ----------------------------------- commit eae4075f0f6da66ff85c05eb9c708dbb67bd7315 Author: Karel Zak Date: Tue Jun 8 11:52:42 2010 +0200 build-sys: release++ (v2.18-rc1) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) commit 0201cef1c29c640be88cf2d24dea3061e7c243cb Author: Karel Zak Date: Tue Jun 8 11:28:26 2010 +0200 libmount: don't build tests by default Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 37 +++++++------------------------------ 1 files changed, 7 insertions(+), 30 deletions(-) commit 8e36876187eaf4afd61a55c276d53f9a7be5016c Author: Karel Zak Date: Tue Jun 8 10:55:24 2010 +0200 build-sys: cleanup lib{mount,blkid} building Signed-off-by: Karel Zak configure.ac | 6 ++++++ misc-utils/Makefile.am | 14 +++++++++----- shlibs/blkid/libblkid.3 | 2 +- shlibs/mount/src/fs.c | 2 +- shlibs/mount/src/tab.c | 2 +- 5 files changed, 18 insertions(+), 8 deletions(-) commit ce3c344046df3ccd3cf759b6bcea4ca1eba38d02 Author: Karel Zak Date: Mon Jun 7 17:06:07 2010 +0200 docs: update ReleaseNotes Signed-off-by: Karel Zak docs/v2.18-ReleaseNotes | 413 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 413 insertions(+), 0 deletions(-) commit 2c8c70f2546d519140679064bf75e243b6679d0c Author: Karel Zak Date: Mon Jun 7 14:19:41 2010 +0200 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) commit f265b1da2cebeb02a5c4707ba7efe090142e8c2f Author: Karel Zak Date: Mon Jun 7 14:15:04 2010 +0200 libmount: another Makefile.am fix shlibs/mount/src/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 55c8e79736b1bffe09483eb3be33fc4a5f7ef091 Author: Karel Zak Date: Mon Jun 7 14:10:01 2010 +0200 po: merge changes Signed-off-by: Karel Zak po/ca.po | 3115 +++++++++++++++++++++++++------------------ po/cs.po | 3332 ++++++++++++++++++++++++++++------------------ po/da.po | 3108 +++++++++++++++++++++++++------------------ po/de.po | 3116 +++++++++++++++++++++++++------------------ po/es.po | 3576 ++++++++++++++++++++++++++++++------------------- po/et.po | 2987 ++++++++++++++++++++++++------------------ po/eu.po | 2874 ++++++++++++++++++++++++---------------- po/fi.po | 3108 +++++++++++++++++++++++++------------------ po/fr.po | 3170 ++++++++++++++++++++++++++------------------ po/hu.po | 3135 +++++++++++++++++++++++++------------------ po/id.po | 3633 +++++++++++++++++++++++++++++++------------------- po/it.po | 3091 +++++++++++++++++++++++++------------------ po/ja.po | 3262 +++++++++++++++++++++++++++----------------- po/nl.po | 3125 +++++++++++++++++++++++++------------------ po/pl.po | 3413 +++++++++++++++++++++++++++++------------------ po/pt_BR.po | 3128 +++++++++++++++++++++++++------------------ po/ru.po | 3113 +++++++++++++++++++++++++------------------ po/sl.po | 3112 +++++++++++++++++++++++++------------------ po/sv.po | 3123 +++++++++++++++++++++++++------------------ po/tr.po | 3103 +++++++++++++++++++++++++------------------ po/uk.po | 3109 +++++++++++++++++++++++++------------------ po/util-linux-ng.pot | 2802 ++++++++++++++++++++++----------------- po/vi.po | 3370 +++++++++++++++++++++++++++++------------------ po/zh_CN.po | 2819 ++++++++++++++++++++++----------------- 24 files changed, 44987 insertions(+), 30737 deletions(-) commit 7043ced3d98e19e9e9daa832368d5a68e931524c Author: Karel Zak Date: Mon Jun 7 12:57:03 2010 +0200 libmount: use mangle function from lib/ Signed-off-by: Karel Zak shlibs/mount/src/tab_parse.c | 26 ++------------------------ 1 files changed, 2 insertions(+), 24 deletions(-) commit 343aaba8b36e0fb1cd406a665986ab65ad2729ae Author: Karel Zak Date: Mon Jun 7 12:56:28 2010 +0200 libmount: fix Makefile.am Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) commit 42cb90dcaa558bd9b6440be649cf58cf0e418e38 Author: Karel Zak Date: Mon Jun 7 12:48:51 2010 +0200 build-sys: update include/Makefile.am Signed-off-by: Karel Zak include/Makefile.am | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) commit a8954ee0055322ae0ed72a4a16ea82d3f17a7331 Author: Karel Zak Date: Mon Jun 7 12:31:28 2010 +0200 build-sys: use include/list.h Signed-off-by: Karel Zak shlibs/blkid/src/Makefile.am | 5 +++-- shlibs/mount/src/Makefile.am | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) commit bb9dd1b9d174b5f1b30c53145498134350f63ee9 Author: Clytie Siddall Date: Mon Jun 7 12:27:05 2010 +0200 po: update vi.po (from translationproject.org) po/vi.po | 1953 +++++++++++++++++++++++++++----------------------------------- 1 files changed, 834 insertions(+), 1119 deletions(-) commit 438911198677658966c2374ce4a5c3abb1751551 Author: Jakub Bogusz Date: Mon Jun 7 12:27:05 2010 +0200 po: update pl.po (from translationproject.org) po/pl.po | 3966 ++++++++++++++++++++++++++++++++------------------------------ 1 files changed, 2076 insertions(+), 1890 deletions(-) commit 5176e5928df19ee1cf261ebc1cd16ba8271d7c09 Author: Makoto Kato Date: Mon Jun 7 12:27:05 2010 +0200 po: update ja.po (from translationproject.org) po/ja.po | 1907 ++++++++++++++++++++++++++++---------------------------------- 1 files changed, 859 insertions(+), 1048 deletions(-) commit 6f34df780bcddacc740a7fc16f36e6b88b6da989 Author: Arif E. Nugroho Date: Mon Jun 7 12:27:04 2010 +0200 po: update id.po (from translationproject.org) po/id.po | 2223 +++++++++++++++++++++++++++----------------------------------- 1 files changed, 967 insertions(+), 1256 deletions(-) commit 234bef3f5ece0ba77b2e8bcf32616061947f8cab Author: Mikel Olasagasti Uranga Date: Mon Jun 7 12:27:04 2010 +0200 po: update eu.po (from translationproject.org) po/eu.po | 1534 +++++++++++++++++++++++++++++--------------------------------- 1 files changed, 705 insertions(+), 829 deletions(-) commit 50ab03a8393785ee34047d8187fba67adfc8946c Author: Santiago Vila Doncel Date: Mon Jun 7 12:27:04 2010 +0200 po: update es.po (from translationproject.org) po/es.po | 2341 ++++++++++++++++++++++++++------------------------------------ 1 files changed, 977 insertions(+), 1364 deletions(-) commit 0c21600004dcd3f0be20b6ee24d32dab4cc0b218 Author: Petr Pisar Date: Mon Jun 7 12:27:04 2010 +0200 po: update cs.po (from translationproject.org) po/cs.po | 1773 ++++++++++++++++++++++++++++---------------------------------- 1 files changed, 805 insertions(+), 968 deletions(-) commit 98214cc9895bdc3881b2ffd72bf1ff4812ba1e6e Author: Karel Zak Date: Mon Jun 7 12:22:25 2010 +0200 po: update list of files Signed-off-by: Karel Zak po/POTFILES.in | 27 ++++++++++++++++++++++++++- 1 files changed, 26 insertions(+), 1 deletions(-) commit 5601d158545fc382be031a0330e512784baeee6d Author: Karel Zak Date: Fri Jun 4 23:33:49 2010 +0200 tests: update blkid test for raid1 ID_PART_ENTRY_TYPE_ENC does not exists anymore. Signed-off-by: Karel Zak tests/expected/blkid/md-raid1-part | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit 88827f2623f24bda1e44cdacdee992732a722f90 Author: Karel Zak Date: Fri Jun 4 23:31:43 2010 +0200 tests: mount cramfs read-only Signed-off-by: Karel Zak tests/ts/cramfs/mkfs | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b3f7edcf48126358612f521ddffbdd77506c14ab Author: Karel Zak Date: Fri Jun 4 23:29:26 2010 +0200 tests: update lscpu test Signed-off-by: Karel Zak tests/expected/lscpu/lscpu-ia64-hpmatterhorn | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit cd95853bbc2e41cb7b15cfff528fbd7065d15e83 Author: Karel Zak Date: Fri Jun 4 11:41:23 2010 +0200 libblkid: optimize UDF label reading Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/udf.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit cc492b3d0467d5c272730459e1b13a35d27d7843 Author: Karel Zak Date: Fri Jun 4 09:43:21 2010 +0200 libmount: add #warning libmount API is not stable yet! Signed-off-by: Karel Zak misc-utils/findmnt.c | 1 + shlibs/mount/src/mount.h.in | 4 ++++ shlibs/mount/src/mountP.h | 3 ++- 3 files changed, 7 insertions(+), 1 deletions(-) commit d6fead1e31aa1b76fc8fd701681a29a8bac58f96 Author: Karel Zak Date: Thu Jun 3 16:59:20 2010 +0200 libmount: fix some gtkdoc warnings Signed-off-by: Karel Zak shlibs/mount/docs/Makefile.am | 2 +- shlibs/mount/docs/libmount-sections.txt | 4 ++-- shlibs/mount/src/fs.c | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) commit 54423a2569c564b10986e1d4eedfa8161f7cf721 Author: Karel Zak Date: Thu Jun 3 16:37:21 2010 +0200 libmount: remove mnt_open_device() Signed-off-by: Karel Zak shlibs/mount/docs/libmount-sections.txt | 1 - shlibs/mount/src/cache.c | 11 ++--------- shlibs/mount/src/mount.h.in | 1 - shlibs/mount/src/mount.sym | 1 - shlibs/mount/src/utils.c | 28 ---------------------------- 5 files changed, 2 insertions(+), 40 deletions(-) commit 4edd03fd93fb2bbe820523d429b12ee7a2e99287 Author: Karel Zak Date: Thu Jun 3 16:29:20 2010 +0200 findmnt: move from /sbin to /bin Signed-off-by: Karel Zak misc-utils/Makefile.am | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 00b4bcdf0f02dd170376ca97542403f700c2be00 Author: Karel Zak Date: Tue Jun 1 15:06:08 2010 +0200 findmnt: minor coding style fixes Signed-off-by: Karel Zak misc-utils/findmnt.c | 25 +++++++++++++------------ 1 files changed, 13 insertions(+), 12 deletions(-) commit cbec3cbfd5f0a307697ed1a36fd6eeb27ccbe3bb Author: Karel Zak Date: Tue May 18 16:19:09 2010 +0200 findmnt: small change in usage() Signed-off-by: Karel Zak misc-utils/findmnt.c | 4 ++-- shlibs/mount/src/lock.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) commit e7baa9710507aab9440e3a7bc61830897f465dd7 Author: Karel Zak Date: Fri Apr 16 14:59:10 2010 +0200 lib: remove unwanted debug messages Signed-off-by: Karel Zak lib/tt.c | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-) commit 631280e05be9372de17ec5aa27b54ed1706d0b53 Author: Karel Zak Date: Fri Apr 16 14:41:21 2010 +0200 findmnt: add {fs,vfs}-options columns Signed-off-by: Karel Zak misc-utils/findmnt.8 | 2 ++ misc-utils/findmnt.c | 10 ++++++++++ 2 files changed, 12 insertions(+), 0 deletions(-) commit 498d79d4a70bacfd3df349f9aa611354dacb9678 Author: Karel Zak Date: Fri Apr 16 14:40:22 2010 +0200 libmount: fix name of mnt_fs_get_*_optstr() Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 4 ++-- shlibs/mount/src/mount.sym | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) commit ac3d410c46b12f0c7a166fe322f5bf66f69f3141 Author: Karel Zak Date: Fri Apr 16 14:39:16 2010 +0200 lib: tt.c - fix minimal width of column Signed-off-by: Karel Zak include/tt.h | 1 + lib/tt.c | 21 +++++++++++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) commit 6b5f7bd16386cce8ba59df8991d5e3cbee9acdc0 Author: Karel Zak Date: Fri Apr 16 14:05:42 2010 +0200 libmount: merge vfs and fs options more carefully Signed-off-by: Karel Zak shlibs/mount/src/tab_parse.c | 54 ++++++++++++++++++++++++------------------ 1 files changed, 31 insertions(+), 23 deletions(-) commit 3d73558960025f6bd18fd8b05986e021e5159df2 Author: Karel Zak Date: Thu Apr 15 13:27:47 2010 +0200 libmount: add docs Signed-off-by: Karel Zak configure.ac | 2 + shlibs/mount/Makefile.am | 4 + shlibs/mount/docs/.gitignore | 17 +++ shlibs/mount/docs/Makefile.am | 101 +++++++++++++++++ shlibs/mount/docs/libmount-docs.xml | 60 ++++++++++ shlibs/mount/docs/libmount-sections.txt | 182 +++++++++++++++++++++++++++++++ shlibs/mount/docs/version.xml.in | 1 + shlibs/mount/src/fs.c | 5 +- shlibs/mount/src/lock.c | 52 +++++----- shlibs/mount/src/mount.h.in | 5 +- shlibs/mount/src/optent.c | 9 +- shlibs/mount/src/optls.c | 6 +- shlibs/mount/src/optmap.c | 43 ++++++-- shlibs/mount/src/optstr.c | 2 +- shlibs/mount/src/tab.c | 43 +++++--- shlibs/mount/src/utils.c | 14 ++- 16 files changed, 474 insertions(+), 72 deletions(-) commit 192c6aad9c8e6ae5c4a480f41b9359180a468150 Author: Karel Zak Date: Wed Apr 14 14:01:24 2010 +0200 libmount: cleanup docs Signed-off-by: Karel Zak shlibs/mount/src/cache.c | 32 ++++++++---- shlibs/mount/src/fs.c | 107 +++++++++++++++++++++++++---------------- shlibs/mount/src/init.c | 16 ++++++ shlibs/mount/src/iter.c | 11 ++++- shlibs/mount/src/lock.c | 34 ++++++++++--- shlibs/mount/src/mount.h.in | 2 +- shlibs/mount/src/optent.c | 76 +++++++++++++++-------------- shlibs/mount/src/optls.c | 56 +++++++++++++++------- shlibs/mount/src/optmap.c | 12 ++++- shlibs/mount/src/optstr.c | 12 ++++- shlibs/mount/src/tab.c | 68 ++++++++++++++------------ shlibs/mount/src/tab_parse.c | 20 ++++---- shlibs/mount/src/utils.c | 5 ++ shlibs/mount/src/version.c | 6 ++ 14 files changed, 296 insertions(+), 161 deletions(-) commit 62b4550fdeb059052096c97ec3ed7b166aa4ba0d Author: Karel Zak Date: Thu Apr 8 15:41:37 2010 +0200 findmnt: add man page Signed-off-by: Karel Zak misc-utils/Makefile.am | 1 + misc-utils/findmnt.8 | 148 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 149 insertions(+), 0 deletions(-) commit ac808156cb45a6ae6696563991eb7e8811982f3c Author: Karel Zak Date: Thu Apr 8 15:02:32 2010 +0200 findmnt: don't swap source and target for tags Signed-off-by: Karel Zak misc-utils/findmnt.c | 23 ++++++++++++++++++----- 1 files changed, 18 insertions(+), 5 deletions(-) commit 3ef87248bf6567651af96bf49a77f177a4a29621 Author: Karel Zak Date: Thu Apr 8 15:01:28 2010 +0200 libmount: fix mnt_fs_match_source() Signed-off-by: Karel Zak shlibs/mount/src/fs.c | 30 ++++++++++++++---------------- 1 files changed, 14 insertions(+), 16 deletions(-) commit 20aae9d352cb15b82625e88b4ad5cdea3f683f72 Author: Karel Zak Date: Thu Apr 8 15:01:12 2010 +0200 libmount: add new debug messages Signed-off-by: Karel Zak shlibs/mount/src/tab.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) commit 2e67aee904c288d5270f70fd43438462d7c166e3 Author: Karel Zak Date: Thu Apr 8 14:59:57 2010 +0200 libmount: cleanup cache flags and debug messages Signed-off-by: Karel Zak shlibs/mount/src/cache.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) commit afa03b9d9ba3e4fa658b01598a0146a0215e7920 Author: Karel Zak Date: Thu Apr 8 14:59:03 2010 +0200 libmount: export mnt_init_debug() Signed-off-by: Karel Zak shlibs/mount/src/init.c | 2 -- shlibs/mount/src/mount.h.in | 2 ++ shlibs/mount/src/mount.sym | 1 + shlibs/mount/src/mountP.h | 2 -- 4 files changed, 3 insertions(+), 4 deletions(-) commit 46e9ff0aebe0a58e62e5f964f9e8a021148175df Author: Karel Zak Date: Thu Apr 8 14:56:49 2010 +0200 lib: tt.c: don't print header for empty table Signed-off-by: Karel Zak lib/tt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit fdedb45e3105a2d1cb6baf41b792d955ccd7a0bb Author: Karel Zak Date: Tue Apr 6 16:16:27 2010 +0200 findmnt: rewrite to use lib/tt.c Signed-off-by: Karel Zak misc-utils/Makefile.am | 1 + misc-utils/findmnt.c | 713 +++++++++++------------------------------------- 2 files changed, 167 insertions(+), 547 deletions(-) commit c15b21e4e33853fcfdbc9553597243d4dd8eb310 Author: Karel Zak Date: Tue Apr 6 16:15:15 2010 +0200 lib: add tt.c (Tree and Table output) Signed-off-by: Karel Zak include/Makefile.am | 1 + include/tt.h | 70 +++++ lib/Makefile.am | 3 +- lib/tt.c | 722 +++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 795 insertions(+), 1 deletions(-) commit c391642d0f4e554fbc3e256dff90fa771612e517 Author: Karel Zak Date: Tue Apr 6 14:50:47 2010 +0200 include: move shlibs/.../list.h to the include/ directory Signed-off-by: Karel Zak include/Makefile.am | 1 + include/list.h | 197 +++++++++++++++++++++++++++++++++++++++++++++++ shlibs/blkid/src/list.h | 179 ------------------------------------------ shlibs/mount/src/list.h | 179 ------------------------------------------ 4 files changed, 198 insertions(+), 358 deletions(-) commit 9d67679b051aa920a75521a0edd06b1cdcc06b5b Author: Karel Zak Date: Fri Mar 12 23:45:45 2010 +0100 findmnt: add tree support Signed-off-by: Karel Zak misc-utils/findmnt.c | 953 ++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 809 insertions(+), 144 deletions(-) commit ba7232a1fe1398e7947d1af39fadc8d02b21bf69 Author: Karel Zak Date: Fri Mar 12 23:42:56 2010 +0100 libmount: add mnt_cache_find_tag_value() Signed-off-by: Karel Zak shlibs/mount/src/cache.c | 35 +++++++++++++++++++++++++++++++++-- shlibs/mount/src/fs.c | 2 +- shlibs/mount/src/mount.h.in | 4 ++++ shlibs/mount/src/mount.sym | 1 + shlibs/mount/src/tab.c | 6 ++++-- 5 files changed, 43 insertions(+), 5 deletions(-) commit 26b4f9e4551ca97334dd06114bf0f97a75c4ce81 Author: Karel Zak Date: Tue Mar 9 15:48:11 2010 +0100 libmount: add support for userdata and work with VFS tree Signed-off-by: Karel Zak shlibs/mount/src/fs.c | 27 +++++++++++++ shlibs/mount/src/mount.h.in | 5 ++ shlibs/mount/src/mount.sym | 4 ++ shlibs/mount/src/mountP.h | 2 + shlibs/mount/src/tab.c | 92 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 130 insertions(+), 0 deletions(-) commit e7462a881930a41ec84bf0661ff19f8fd1dfe7be Author: Karel Zak Date: Fri Mar 5 10:52:59 2010 +0100 libblkid: add mnt_iter_get_direction() Signed-off-by: Karel Zak shlibs/mount/src/iter.c | 17 ++++++++++++++++- shlibs/mount/src/mount.h.in | 1 + shlibs/mount/src/mount.sym | 1 + 3 files changed, 18 insertions(+), 1 deletions(-) commit efe73c3ef120997c14ad95bf1857a044e99872b6 Author: Karel Zak Date: Tue Mar 2 22:34:56 2010 +0100 libmount: read devno, ID and parent ID from /proc/self/mountinfo The patch also removes obsolete test program from tab_parse.c. Signed-off-by: Karel Zak shlibs/mount/src/fs.c | 54 +++++++++++++++++++++++++++++---- shlibs/mount/src/mount.h.in | 3 ++ shlibs/mount/src/mount.sym | 3 ++ shlibs/mount/src/mountP.h | 1 + shlibs/mount/src/tab.c | 10 +++++- shlibs/mount/src/tab_parse.c | 68 ++++------------------------------------- 6 files changed, 70 insertions(+), 69 deletions(-) commit 04fd7a9febad79917fbf98a618ef23dcb5a14fb1 Author: Karel Zak Date: Mon Mar 1 22:44:53 2010 +0100 findmnt: add new command Signed-off-by: Karel Zak include/pathnames.h | 1 + misc-utils/.gitignore | 1 + misc-utils/Makefile.am | 4 +- misc-utils/findmnt.c | 431 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 436 insertions(+), 1 deletions(-) commit b6bd3efde170ab25712f462c9863bfdad90afd0c Author: Karel Zak Date: Mon Mar 1 22:31:51 2010 +0100 libmount: update symbols table Signed-off-by: Karel Zak shlibs/mount/src/mount.sym | 114 +++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 112 insertions(+), 2 deletions(-) commit 3fca8422b154e047055ed938e81005ea6129d86a Author: Karel Zak Date: Mon Mar 1 22:29:38 2010 +0100 libmount: add fstab/mtab/mountinfo lookup routines Signed-off-by: Karel Zak shlibs/mount/src/cache.c | 3 +- shlibs/mount/src/fs.c | 149 +++++++++++++++++++++++++++++++++++++++++ shlibs/mount/src/mount.h.in | 12 +++- shlibs/mount/src/mountP.h | 2 +- shlibs/mount/src/tab.c | 153 ++++++++++++++++++------------------------- 5 files changed, 226 insertions(+), 93 deletions(-) commit abc9c0f79059fd017a2220975f105b17be26aab7 Author: Karel Zak Date: Tue Feb 23 15:04:52 2010 +0100 libmount: add mnt_match_{fstype,options} functions Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 6 ++- shlibs/mount/src/mount.h.in | 2 + shlibs/mount/src/utils.c | 162 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 169 insertions(+), 1 deletions(-) commit 6bd8b7a79dffb532ae8639e563f75005a10bc41d Author: Karel Zak Date: Wed Jan 13 22:08:16 2010 +0100 libmount: add fstab/mtab/mountinfo parsing routines Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 9 +- shlibs/mount/src/cache.c | 10 +- shlibs/mount/src/mount.h.in | 36 ++ shlibs/mount/src/mountP.h | 28 ++ shlibs/mount/src/tab.c | 820 ++++++++++++++++++++++++++++++++++++++++++ shlibs/mount/src/tab_parse.c | 593 ++++++++++++++++++++++++++++++ 6 files changed, 1490 insertions(+), 6 deletions(-) commit 5714fc0db8fd8f2206ffce27bb14405740e560b7 Author: Karel Zak Date: Wed Jan 13 16:52:14 2010 +0100 libmount: rename mnt_optls_iterate_options() Signed-off-by: Karel Zak shlibs/mount/src/mount.h.in | 2 +- shlibs/mount/src/optls.c | 25 +++++++++++++------------ 2 files changed, 14 insertions(+), 13 deletions(-) commit d115ee9bd183412c41f2a8cc7b3485c1e286e34f Author: Karel Zak Date: Tue Jan 12 13:43:07 2010 +0100 libmount: add mnt_entry Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 1 + shlibs/mount/src/fs.c | 545 ++++++++++++++++++++++++++++++++++++++++++ shlibs/mount/src/mount.h.in | 45 ++++ shlibs/mount/src/mountP.h | 39 +++ 4 files changed, 630 insertions(+), 0 deletions(-) commit 27c6d41518e139529feaac442716509bd8e31f43 Author: Karel Zak Date: Mon Jan 11 15:12:02 2010 +0100 libmount: add mtab locking code Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 8 +- shlibs/mount/src/lock.c | 510 ++++++++++++++++++++++++++++++++++++++++++ shlibs/mount/src/mount.h.in | 15 ++ shlibs/mount/src/mountP.h | 1 + 4 files changed, 532 insertions(+), 2 deletions(-) commit 6e2c394852e5d0d40beeffe0fd7949e3660417f6 Author: Karel Zak Date: Mon Jan 11 13:42:45 2010 +0100 libmount: proper tests definition in Makefile.am Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 28 +++++++++++++++++++++------- 1 files changed, 21 insertions(+), 7 deletions(-) commit 078edb2d6e4188963938b7be076db5382f6f802b Author: Karel Zak Date: Mon Jan 11 13:33:06 2010 +0100 libmount: add optls (options container) Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 4 +- shlibs/mount/src/mount.h.in | 200 +++++++++++- shlibs/mount/src/mountP.h | 53 +++- shlibs/mount/src/optent.c | 734 ++++++++++++++++++++++++++++++++++++++++ shlibs/mount/src/optls.c | 768 ++++++++++++++++++++++++++++++++++++++++++ shlibs/mount/src/optmap.c | 289 ++++++++++++++++ 6 files changed, 2042 insertions(+), 6 deletions(-) commit efab4b61572516f4c7579e345165e0094c1a2450 Author: Karel Zak Date: Tue Jan 5 14:58:16 2010 +0100 libmount: add list routines and generic iterator Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 2 +- shlibs/mount/src/iter.c | 54 +++++++++++++ shlibs/mount/src/list.h | 179 ++++++++++++++++++++++++++++++++++++++++++ shlibs/mount/src/mount.h.in | 18 ++++ shlibs/mount/src/mountP.h | 29 +++++++ 5 files changed, 281 insertions(+), 1 deletions(-) commit 9e272c68f51fa4e1fd0f6832bea9f82d6bceb007 Author: Karel Zak Date: Mon Jan 4 23:03:47 2010 +0100 libmount: add mnt_optstr_* functions This set of functions allows to set/get/remove/append option in unparsed options string. Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 3 +- shlibs/mount/src/mount.h.in | 11 + shlibs/mount/src/mountP.h | 1 + shlibs/mount/src/optstr.c | 416 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 430 insertions(+), 1 deletions(-) commit 7755ca95c943e8690a351c0580c2ad06950c057b Author: Karel Zak Date: Fri Nov 27 14:35:03 2009 +0100 libblkid: add paths and tags cache Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 5 +- shlibs/mount/src/cache.c | 533 ++++++++++++++++++++++++++++++++++++++++++ shlibs/mount/src/mount.h.in | 20 ++ shlibs/mount/src/mountP.h | 3 +- 4 files changed, 558 insertions(+), 3 deletions(-) commit 055927931ca5a6acc106366f1e097ac18401fc69 Author: Karel Zak Date: Fri Nov 27 01:13:01 2009 +0100 libmount: add test_version Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 2 +- shlibs/mount/src/version.c | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletions(-) commit c12cec75b09a9dc8711d4323fda017a0b77f1105 Author: Karel Zak Date: Fri Nov 27 00:33:37 2009 +0100 libmount: add debug support Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 4 +-- shlibs/mount/src/init.c | 31 ++++++++++++++++++++++ shlibs/mount/src/mountP.h | 32 ++++++++++++++++++++++ shlibs/mount/src/test.c | 59 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 123 insertions(+), 3 deletions(-) commit 69b7e41e999bbe8ac7402cd958bb3d4ba1d2e6fb Author: Karel Zak Date: Thu Nov 26 17:45:01 2009 +0100 libmount: add basic utils Signed-off-by: Karel Zak configure.ac | 3 + shlibs/mount/src/Makefile.am | 3 +- shlibs/mount/src/mount.h.in | 5 + shlibs/mount/src/mount.sym | 3 + shlibs/mount/src/mountP.h | 19 ++++- shlibs/mount/src/utils.c | 208 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 239 insertions(+), 2 deletions(-) commit f4ab4ae8eb49b99e61f9f8ba59de7195342a8a02 Author: Karel Zak Date: Thu Nov 26 17:27:13 2009 +0100 libmount: add version.c Signed-off-by: Karel Zak configure.ac | 1 + shlibs/mount/src/Makefile.am | 3 +- shlibs/mount/src/mount.h.in | 4 +++ shlibs/mount/src/mount.sym | 3 +- shlibs/mount/src/mountP.h | 21 +++++++++++++++++ shlibs/mount/src/version.c | 52 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 82 insertions(+), 2 deletions(-) commit f1cde479a3aa2659ffdee27e22d4a49a5cd9b0a5 Author: Karel Zak Date: Thu Nov 26 17:11:12 2009 +0100 libmount: add basic dirs Signed-off-by: Karel Zak config/include-Makefile.am | 12 +++++++++++ configure.ac | 21 +++++++++++++++++++ shlibs/Makefile.am | 4 +++ shlibs/mount/.gitignore | 2 + shlibs/mount/Makefile.am | 9 ++++++++ shlibs/mount/mount.pc.in | 11 ++++++++++ shlibs/mount/src/Makefile.am | 46 ++++++++++++++++++++++++++++++++++++++++++ shlibs/mount/src/mount.h.in | 34 +++++++++++++++++++++++++++++++ shlibs/mount/src/mount.sym | 11 ++++++++++ 9 files changed, 150 insertions(+), 0 deletions(-) commit 0159857e0d2a2fc4b1fec78b9b8dcd9982c00105 Author: Karel Zak Date: Wed Jun 2 16:11:52 2010 +0200 blkid: remove _ENC from ID_PART_ENTRY_{NAME,TYPE} variables The *_ENC variables are deprecated. All stuff for udev should be encoded. Reported-by: Kay Sievers Signed-off-by: Karel Zak misc-utils/blkid.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) commit 8604c25570baaaf814b95199fd0592147d8616c1 Author: Andrew Nayenko Date: Fri May 28 23:22:00 2010 +0400 libblkid: add exFAT file system detection support Add exFAT file system detection support. Signed-off-by: Andrew Nayenko shlibs/blkid/src/superblocks/Makefile.am | 3 +- shlibs/blkid/src/superblocks/exfat.c | 146 ++++++++++++++++++++++++++++ shlibs/blkid/src/superblocks/superblocks.c | 3 +- shlibs/blkid/src/superblocks/superblocks.h | 1 + tests/expected/blkid/low-probe-exfat | 7 ++ tests/ts/blkid/images-fs/exfat.img.bz2 | Bin 0 -> 6301 bytes 6 files changed, 158 insertions(+), 2 deletions(-) commit 89074c16595d26c5ceaf112ed5385db97f88bbfe Author: Francesco Cosoleto Date: Tue May 18 01:07:50 2010 +0200 ipcs: reorganize help and usage texts Help text old version: ipcs provides information on ipc facilities for which you have read access. Resource Specification: -m : shared_mem -q : messages -s : semaphores -a : all (default) Output Format: -t : time -p : pid -c : creator -l : limits -u : summary -i id [-s -q -m] : details on resource identified by id usage : ipcs -asmq -tclup ipcs [-s -m -q] -i id ipcs -h for help. New version: Usage: ipcs [resource]... [output-format] ipcs [resource] -i id Provide information on IPC facilities for which you have read access. -h display this help -i id print details on resource identified by id Resource options: -m shared memory segments -q message queues -s semaphores -a all (default) Output format: -t time -p pid -c creator -l limits -u summary Usage text old version: usage : ipcs -asmq -tclup ipcs [-s -m -q] -i id ipcs -h for help. New version: Usage: ipcs [-asmq] [-t|-c|-l|-u|-p] ipcs [-s|-m|-q] -i id ipcs -h for help [kzak@redhat.com: - use program_invocation_short_name - minor cleanups] Signed-off-by: Francesco Cosoleto Signed-off-by: Karel Zak sys-utils/ipcs.c | 42 ++++++++++++++++++++++++++++-------------- 1 files changed, 28 insertions(+), 14 deletions(-) commit 75f037082038a4f9857d00e45254fcd4bce4cec2 Author: Francesco Cosoleto Date: Tue May 18 01:07:49 2010 +0200 tests: update ipcs/headers test Signed-off-by: Francesco Cosoleto tests/expected/ipcs/headers | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) commit 3c462efefe8b2ca9786fbaa667b2e275ccb24e59 Author: Francesco Cosoleto Date: Tue May 18 01:07:48 2010 +0200 ipcs: add missing "PIDs" to related shared memory header text Signed-off-by: Francesco Cosoleto sys-utils/ipcs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f29922a5bc6f64e2876694bdc77ef6b59639fbb2 Author: Francesco Cosoleto Date: Tue May 18 01:07:46 2010 +0200 ipcs: get rid of colons from header strings for consistency This changes output of -u, -l, and -c. Example of non consistent output: $ ipcs -u | grep ^--- ------ Shared Memory Status -------- ------ Semaphore Status -------- ------ Messages: Status -------- Signed-off-by: Francesco Cosoleto sys-utils/ipcs.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 3d9c5ba7b850255a14fad0fd8e41a9c896432c71 Author: Karel Zak Date: Tue Jun 1 10:55:37 2010 +0200 tests: add lscpu dump from Dell R710, 8-core Nehalem w/HT (RHEL 5.5) Signed-off-by: Karel Zak tests/expected/lscpu/lscpu-x86_64-dellr710 | 39 +++++++++++++++++++++++++++ tests/ts/lscpu/dumps/x86_64-dellr710.tar.gz | Bin 0 -> 14300 bytes 2 files changed, 39 insertions(+), 0 deletions(-) commit 68975d7eb182e3b08668d79cbcb68c365f101475 Author: Karel Zak Date: Tue Jun 1 10:44:41 2010 +0200 tests: update lscpu Signed-off-by: Karel Zak tests/expected/lscpu/lscpu-ia64-hpmatterhorn | 19 ++++++++------ tests/expected/lscpu/lscpu-ia64-hprx1620 | 1 + tests/expected/lscpu/lscpu-ia64-pg0 | 34 +++++++++++++------------ tests/expected/lscpu/lscpu-x86_64-hpdl585 | 28 ++++++++++++--------- tests/expected/lscpu/lscpu-x86_64-ibme326m | 1 + tests/expected/lscpu/lscpu-x86_64-necem14 | 1 + 6 files changed, 48 insertions(+), 36 deletions(-) commit 7e03f3831230f420f56b6d501f3af8ba2dea1b7b Author: Karel Zak Date: Fri May 28 14:23:15 2010 +0200 lscpu: use cpuset masks, read data for all CPUs Signed-off-by: Karel Zak sys-utils/Makefile.am | 12 +- sys-utils/lscpu.1 | 7 +- sys-utils/lscpu.c | 467 ++++++++++++++++++++++++++++--------------------- 3 files changed, 285 insertions(+), 201 deletions(-) commit bae91ecf07384f09fcf94903b7c3d7e565f4f66d Author: Karel Zak Date: Fri May 28 11:08:39 2010 +0200 taskset: move NR_CPUS determination to lib/cpuset.c Signed-off-by: Karel Zak include/cpuset.h | 2 ++ lib/cpuset.c | 41 ++++++++++++++++++++++++++++++++++++++++- schedutils/taskset.c | 39 +++------------------------------------ 3 files changed, 45 insertions(+), 37 deletions(-) commit d50363cd62f089c790bbbf37dfa641f584b2fb0b Author: Karel Zak Date: Fri May 28 10:45:41 2010 +0200 lscpu: improve --sysroot code Signed-off-by: Karel Zak sys-utils/lscpu.c | 108 +++++++++++++++++++++++++++++++++++----------------- 1 files changed, 73 insertions(+), 35 deletions(-) commit e8aa16eedd16a86877e6df5a042eb39768406b9f Author: Karel Zak Date: Thu May 27 23:39:41 2010 +0200 lscpu: cleanup used names Signed-off-by: Karel Zak sys-utils/lscpu.c | 229 +++++++++++++++++++++++++++-------------------------- 1 files changed, 115 insertions(+), 114 deletions(-) commit ef173bde3fda2db510e0b3b72c9654c9dcffa9b7 Author: Karel Zak Date: Thu May 27 17:24:28 2010 +0200 lscpu: cleanup path_scanstr() Signed-off-by: Karel Zak sys-utils/lscpu.c | 41 +++++++++++++++++++++++++++++++++-------- 1 files changed, 33 insertions(+), 8 deletions(-) commit de878776623b120fc1e96568f4cd69c349ec2677 Author: Karel Zak Date: Thu May 27 16:29:56 2010 +0200 taskset: add NLS support, use err.h, cleanup Signed-off-by: Karel Zak schedutils/taskset.c | 179 ++++++++++++++++++++++---------------------------- 1 files changed, 78 insertions(+), 101 deletions(-) commit ee32c514b5d61765a3ca6305d247b91fc8d15d0e Author: Karel Zak Date: Thu May 27 13:32:12 2010 +0200 lib: add fallback for libc (uClibc) without CPU_ALLOC Signed-off-by: Karel Zak configure.ac | 11 +++++++++++ include/cpuset.h | 45 +++++++++++++++++++++++++++++++++++++++++++++ lib/Makefile.am | 5 ++++- lib/cpuset.c | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 93 insertions(+), 1 deletions(-) commit ff5a6d206752f305b0552be13a4cb9f4b68e717b Author: Karel Zak Date: Thu May 27 11:32:50 2010 +0200 taskset: use libc based cpu_set_t The glibc already supports dynamically allocated CPU sets. We don't have to maintains our private non-compatible implementation. Signed-off-by: Karel Zak include/cpuset.h | 23 ++--- lib/cpuset.c | 215 +++++++++++++++++++++++++------------------------- schedutils/taskset.c | 82 +++++++++++-------- 3 files changed, 162 insertions(+), 158 deletions(-) commit 125b6a9191a1b09dbeaa1a068e7b0a966fca03fa Author: Karel Zak Date: Mon May 24 14:13:33 2010 +0200 tests: add cpuset regression test Signed-off-by: Karel Zak lib/Makefile.am | 3 +- lib/cpuset.c | 70 ++++++++++++++++++++++++++++++++++++++ tests/commands.sh.in | 1 + tests/expected/schedutils/cpuset | 24 +++++++++++++ tests/ts/schedutils/cpuset | 57 +++++++++++++++++++++++++++++++ 5 files changed, 154 insertions(+), 1 deletions(-) commit efcb71f8ff36a5d9f56f04cc8b7cef82ecd98831 Author: Karel Zak Date: Mon May 24 12:44:39 2010 +0200 taskset: move bitmap routines to lib/cpuset.c Signed-off-by: Karel Zak include/cpuset.h | 23 +++++ lib/cpuset.c | 241 ++++++++++++++++++++++++++++++++++++++++++++++++ schedutils/Makefile.am | 1 + schedutils/taskset.c | 238 +----------------------------------------------- 4 files changed, 266 insertions(+), 237 deletions(-) commit 87c9548fe513db6d4da2d7f0197ef1b9bb009bad Author: Karel Zak Date: Fri May 28 14:58:22 2010 +0200 mount: fix coding style Signed-off-by: Karel Zak mount/mount.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 81694f8c60dffb7851f941e69a1b79bc573ace53 Author: Petr Uzel Date: Fri May 21 15:19:31 2010 +0200 mount: detect when kernel silently adds MS_RDONLY flag Linux kernel can silently add MS_RDONLY flag when mounting file system that does not have write support. Check this to avoid 'ro' in /proc/mounts and 'rw' in mtab. [kzak@redhat.com: - don't check for 'ro' for MS_MOVE and MS_PROPAGATION] Reported-by: James Foris Signed-off-by: Petr Uzel Signed-off-by: Karel Zak mount/mount.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) commit 1bb08542618958f554a740bf72d423d5029f1ab0 Author: Petr Uzel Date: Fri May 21 15:23:35 2010 +0200 git: ignore index files generated by ctags and cscope Signed-off-by: Petr Uzel .gitignore | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit ff14168beedfc05598b77fe490bbbe347c4bf3cb Author: Petr Uzel Date: Fri May 21 14:18:31 2010 +0200 umount: do not sync() as the kernel does it by itself On Fri, May 21, 2010 at 08:00:09AM -0400, Christoph Hellwig wrote: > On Fri, May 21, 2010 at 01:55:17PM +0200, Petr Uzel wrote: > > SUSE-based distributions have the following patch for some time. More > > info here: https://bugzilla.novell.com/show_bug.cgi?id=447036 > > > > From the Novell bugzilla: > > > > > I cannot see any justification for that sync call at all so I'd > > > probably just remove it. Your > > > patch is possibly safer so maybe it should be used as is. > > > > > > So, does anybody know why/if the sync() is actually needed? > > It's not needed. The kernel performs a sync by itself. Thanks, Christoph. Signed-off-by: Petr Uzel mount/umount.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 10852b82e292e8b1dafdd7ca10ffd6fa13437e94 Author: Petr Uzel Date: Thu May 20 16:58:16 2010 +0200 mount: fix typo in comment Signed-off-by: Petr Uzel mount/mount.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7ccfa4dd66c59b01b81e30e7789b06cf574d631a Author: Christoph Hellwig Date: Wed May 19 14:27:22 2010 -0400 mount: fix information about XFS log buffers in mount.8 Signed-off-by: Christoph Hellwig mount/mount.8 | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-) commit 5dfc518c2e2a02b9011295dbfc3015f239acde00 Author: Karel Zak Date: Mon May 24 12:37:12 2010 +0200 build-sys: replace ../ with $top_srcdir Signed-off-by: Karel Zak disk-utils/Makefile.am | 10 +++++----- fdisk/Makefile.am | 7 ++++--- fsck/Makefile.am | 4 ++-- login-utils/Makefile.am | 4 ++-- misc-utils/Makefile.am | 7 ++++--- mount/Makefile.am | 19 +++++++++++-------- partx/Makefile.am | 4 ++-- sys-utils/Makefile.am | 2 +- 8 files changed, 31 insertions(+), 26 deletions(-) commit 76f47165b0077e1fba8e32b503c03cdbd4bb58fb Author: Karel Zak Date: Fri May 21 15:56:44 2010 +0200 blkid: remove duplicate option from man page Signed-off-by: Karel Zak misc-utils/blkid.8 | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) commit 208525a7f45014e19a54d411c35cd8ef6a2e5dc5 Author: Karel Zak Date: Fri May 21 12:35:37 2010 +0200 libblkid: improve MD 0.90.0 detection (use sb->size) Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/linux_raid.c | 25 ++++++++++++++++++++++--- 1 files changed, 22 insertions(+), 3 deletions(-) commit b541b8ec56b5783ee7f9aec505a916a98e99f61f Author: Karel Zak Date: Wed May 19 11:16:50 2010 +0200 tests: update fdisk tests Signed-off-by: Karel Zak tests/expected/fdisk/align-512-4K | 6 +++--- tests/expected/fdisk/align-512-4K-63 | 6 +++--- tests/expected/fdisk/align-512-4K-md | 8 ++++---- tests/expected/fdisk/align-512-512 | 6 +++--- tests/expected/fdisk/align-512-512-topology | 6 +++--- 5 files changed, 16 insertions(+), 16 deletions(-) commit a3e40c14651fccf18e7954f081e601389baefe3f Author: Karel Zak Date: Thu May 13 13:58:16 2010 +0200 rdev: remove this deprecated command Signed-off-by: Karel Zak DEPRECATED | 5 - configure.ac | 7 -- sys-utils/.gitignore | 4 - sys-utils/Makefile.am | 14 --- sys-utils/rdev.8 | 207 ------------------------------------ sys-utils/rdev.c | 279 ------------------------------------------------- 6 files changed, 0 insertions(+), 516 deletions(-) commit 577cbb4df0f4d21d4ae0990832b467f1023f71b4 Author: Karel Zak Date: Tue May 18 16:09:58 2010 +0200 libblkid: improbe DDF detection Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/ddf_raid.c | 71 ++++++++++++++++++++++++++--- tests/expected/blkid/low-probe-ddf-raid | 6 +- tests/ts/blkid/images-fs/ddf-raid.img.bz2 | Bin 535 -> 599 bytes 3 files changed, 68 insertions(+), 9 deletions(-) commit 508e438b5604206108c9ba03f5323df49805f89c Author: Karel Zak Date: Tue May 18 14:31:28 2010 +0200 libblkid: probe for (non-linux) RAIDs on whole devices only Signed-off-by: Karel Zak shlibs/blkid/src/probe.c | 10 +++++++--- shlibs/blkid/src/superblocks/adaptec_raid.c | 3 +++ shlibs/blkid/src/superblocks/highpoint_raid.c | 11 +++++++++++ shlibs/blkid/src/superblocks/isw_raid.c | 2 ++ shlibs/blkid/src/superblocks/jmicron_raid.c | 2 ++ shlibs/blkid/src/superblocks/lsi_raid.c | 2 ++ shlibs/blkid/src/superblocks/nvidia_raid.c | 2 ++ shlibs/blkid/src/superblocks/promise_raid.c | 2 ++ shlibs/blkid/src/superblocks/silicon_raid.c | 2 ++ shlibs/blkid/src/superblocks/via_raid.c | 2 ++ 10 files changed, 35 insertions(+), 3 deletions(-) commit 90a2086e51cb7427ce5aff68da63afc289f81bec Author: Karel Zak Date: Tue May 18 12:51:48 2010 +0200 libblkid: cleanup superblocks_safeprobe() Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/superblocks.c | 104 +++++----------------------- 1 files changed, 18 insertions(+), 86 deletions(-) commit 66d8e050ca3c243094545ce8b0e4c53d54a11715 Author: Karel Zak Date: Tue May 18 12:13:48 2010 +0200 libblkid: improve MD 0.90 detection We don't have to check for collision between partition table and RAID on all RAIDs. This problem is specific to MD, where underlying device could be a partition. The RAIDs like via, intel, ... always use whole-disks only. Signed-off-by: Karel Zak shlibs/blkid/src/partitions/partitions.c | 13 +++++++++++ shlibs/blkid/src/superblocks/linux_raid.c | 31 ++++++++++++++++++---------- shlibs/blkid/src/superblocks/superblocks.c | 16 -------------- 3 files changed, 33 insertions(+), 27 deletions(-) commit c42063316f9e568593f9c915b12c1166b933c947 Author: Karel Zak Date: Mon May 17 23:45:13 2010 +0200 libblkid: tiny change in debug output Use uint64_t rather than ssize_t for number of read bytes. Signed-off-by: Karel Zak shlibs/blkid/src/probe.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 192f1e15793d1f0f161970fdec8ec2f802c84e9f Author: Karel Zak Date: Mon May 17 23:34:50 2010 +0200 libblkid: improve MD 1.0 detection, add UUID_SUB Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=592958 Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/linux_raid.c | 70 ++++++++++++++++++++++++++--- 1 files changed, 64 insertions(+), 6 deletions(-) commit fd1ee3b92e08b17a67099371e647da54632b2f8a Author: Karel Zak Date: Fri May 14 13:04:50 2010 +0200 fallocate: check for number of arguments Signed-off-by: Karel Zak sys-utils/fallocate.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit f0bef3ca0fed141eff28f972c03c3a10ae01fcaf Author: Hajime Taira Date: Thu May 13 13:23:49 2010 +0200 fsfreeze: new command [kzak@redhat.com: - cleanup - add long options - add note about DM to the man page - use err.h and nls.h] Signed-off-by: Hajime Taira Signed-off-by: Karel Zak include/blkdev.h | 5 ++ sys-utils/.gitignore | 1 + sys-utils/Makefile.am | 4 +- sys-utils/fsfreeze.8 | 75 ++++++++++++++++++++++++++++ sys-utils/fsfreeze.c | 132 +++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 215 insertions(+), 2 deletions(-) commit ab978962b15489b62f41a2ec0de4c44c9e25df6e Author: Karel Zak Date: Fri May 14 12:02:57 2010 +0200 blkid: add 'export' output format This output format is similar to 'udev' but without udev specific prefixed (e.g. ID_FS_*). The 'export' format is automatically enabled for I/O Limits (-i). Signed-off-by: Karel Zak misc-utils/blkid.8 | 10 +++++++--- misc-utils/blkid.c | 50 ++++++++++++++++++++++++++++++++++++++------------ 2 files changed, 45 insertions(+), 15 deletions(-) commit 0979291016877f5e85e1e8341279e4aea53dbe67 Author: Karel Zak Date: Thu May 13 22:26:27 2010 +0200 blkid: add -i option to print I/O limits blkid -i /dev/sdb /dev/sda /dev/sdb: MINIMUM_IO_SIZE="512" OPTIMAL_IO_SIZE="32768" PHYSICAL_SECTOR_SIZE="512" LOGICAL_SECTOR_SIZE="512" /dev/sda: MINIMUM_IO_SIZE="512" PHYSICAL_SECTOR_SIZE="512" LOGICAL_SECTOR_SIZE="512" Signed-off-by: Karel Zak misc-utils/blkid.8 | 23 ++++++++++- misc-utils/blkid.c | 108 +++++++++++++++++++++++++++++++++++----------------- 2 files changed, 93 insertions(+), 38 deletions(-) commit 25636f826314440cdc44ec687738e9cd2ce58e7f Author: Karel Zak Date: Thu May 13 20:42:28 2010 +0200 blkid: update man page/usage() The "-s " options is usable for low-level probing more too. This feature should be documented. Signed-off-by: Karel Zak misc-utils/blkid.8 | 2 ++ misc-utils/blkid.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletions(-) commit b425b18b73a8af205ee5aa25057005df05862ae4 Author: Thomas Fehr Date: Tue May 11 17:09:46 2010 +0200 addpart: use atoll() for parsing command line arguments Addresses: http://bugzilla.novell.com/show_bug.cgi?id=603328 Signed-off-by: Petr Uzel Signed-off-by: Karel Zak partx/addpart.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 5f94ca33cf7772e0c36b5b3e5b1cf1ab01f60180 Author: Karel Zak Date: Fri May 7 14:12:26 2010 +0200 cfdisk: support non-ascii characters in input On Sat, Apr 03, 2010 at 12:58:48PM +0000, Jorge wrote: > When you want to write changes to disk you're asked for a > confirmation, like this one: > > Are you sure you want to write the partition table to disk? (yes > or no) > > There is no problem on the English version, but when you launch the > program in Spanish you get this: > > ¿Está seguro de que desea escribir la tabla de particiones en el > disco? > (sí o no): > > You can't type the "í" character. Trying to do so will end in no > input at all. That is, typing in my keyboard "´" then "i" leads to > nothing. So you can't write changes to disk, and you must launch the > program in English for it to operate. Reported-by: Jorge Addresses: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/205327 Signed-off-by: Karel Zak fdisk/Makefile.am | 2 +- fdisk/cfdisk.c | 55 ++++++++++++++++++++++++++++++++++++++++++++------- include/mbsalign.h | 8 ++++-- lib/mbsalign.c | 34 ++++++++++++++++++++++++++++++++ 4 files changed, 87 insertions(+), 12 deletions(-) commit 8fda88ed832158741abc9e8fb8215856b9c4ec16 Author: Karel Zak Date: Thu May 6 15:30:18 2010 +0200 tests: update blkid/md-raid1-* tests Signed-off-by: Karel Zak tests/expected/blkid/md-raid1-part | 12 ++++++++++-- tests/expected/blkid/md-raid1-whole | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) commit e9d8b438af3272b4b92b5414e6835b44ee255f0f Author: Karel Zak Date: Thu May 6 15:29:20 2010 +0200 libblkid: fix readline usage Signed-off-by: Karel Zak shlibs/blkid/src/devno.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b4d50ba3b1de84c8be950c9e78c7e337ea51fd3e Author: Karel Zak Date: Thu May 6 13:11:40 2010 +0200 tests: add blkid test for TuxOnIce Signed-off-by: Karel Zak tests/expected/blkid/low-probe-tuxonice | 5 +++++ tests/ts/blkid/images-fs/tuxonice.img.bz2 | Bin 0 -> 2765314 bytes 2 files changed, 5 insertions(+), 0 deletions(-) commit 8b871c05df74a4604f438b24aeabffe7ce204502 Author: Chow Loong Jin Date: Sat May 1 07:55:41 2010 +0800 libblkid: set correct offsets for TuxOnIce signature TuxOnIce stores its signature at the beginning of the swap, rather than at the end of the first page like swsusp does. [kzak@redhat.com: - use macro for TOI magic string, - check for TOI in swap probing function to avoid collision between swap and TOI] Signed-off-by: Chow Loong Jin Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/swap.c | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) commit 3f1be691da4da51d3709ae26d4ad32edf163a195 Author: Karel Zak Date: Thu May 6 09:59:16 2010 +0200 unshare: drop potential euid privileges before exec This patch drops potential euid privileges before executing the target program. This allows to setuid unshare. The unshare(1) is still distributed as non-setuid program. Based on patch from Martin Pohlack . Signed-off-by: Karel Zak sys-utils/unshare.1 | 3 +++ sys-utils/unshare.c | 7 +++++++ 2 files changed, 10 insertions(+), 0 deletions(-) commit 048b81c9ffd2554900523ff55718ab8914176f77 Author: Ævar Arnfjörð Bjarmason Date: Mon May 3 18:24:26 2010 +0000 ionice: non-cryptic error message when ionice can't execvp Previously ionice would reply like this when it couldn't find the command to execute: $ ionice -c 3 does-not-exist ionice: execvp failed: No such file or directory Getting that message from cron because you haven't set the right $PATH makes it hard to track down the problem. Now it says: $ ionice -c 3 does-not-exist ionice: executing does-not-exist failed: No such file or directory Signed-off-by: Ævar Arnfjörð Bjarmason schedutils/ionice.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e2f092d334d53fb4538d93fdab60cb538d043547 Author: Karel Zak Date: Mon May 3 11:20:52 2010 +0200 tests: add blkid tests for RAID1 Signed-off-by: Karel Zak tests/expected/blkid/md-raid1-part | 58 ++++++++++++++++++++++ tests/expected/blkid/md-raid1-whole | 58 ++++++++++++++++++++++ tests/functions.sh | 2 +- tests/ts/blkid/md-raid1-part | 92 +++++++++++++++++++++++++++++++++++ tests/ts/blkid/md-raid1-whole | 88 +++++++++++++++++++++++++++++++++ 5 files changed, 297 insertions(+), 1 deletions(-) commit f0bc3fa0cf45f484ea696ef063a10b65d1a45e13 Author: Karel Zak Date: Thu Apr 29 12:25:06 2010 +0200 script: optionally compile with libutempter to update utmp Use --with-utempter to enable utempter support. The libutempter calls /usr/libexec/utempter/utempter suid helper to update utmp and wtmp files. Old version: $ script Script started, file is typescript $ who i am $ exit Script done, file is typescript New version: $ script Script started, file is typescript $ who i am kzak pts/6 2010-04-29 12:30 $ exit Script done, file is typescript Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=477753 Signed-off-by: Karel Zak configure.ac | 15 +++++++++++++++ misc-utils/Makefile.am | 7 ++++++- misc-utils/script.c | 20 ++++++++++++++++++-- 3 files changed, 39 insertions(+), 3 deletions(-) commit 6a2de3f13134dfd49eb93c7b15552de81b868c8a Author: Karel Zak Date: Wed Apr 28 14:40:46 2010 +0200 fdisk: improve 'move begin of partition' command The 'b' command ("move beginning of data in a partition") implementation is too restricted. For example: Device Boot Start End Blocks Id System /dev/sdb1 2048 22527 10240 83 Linux .... Partition number (1-4): 1 New beginning of data (2048-22527, default 2048): ^^^^^^^^^^ the range is defined by the current partition size. New version: Partition number (1-4): 1 New beginning of data (1-22527, default 2048): ^^^^^^^ allows to move the begin to arbitrary place if the place is not allocated by any other partition. This is useful for people who don't want to use the default partitioning (1MiB offset, 1MiB grain). The 'b' command is expert command and does not force users to use an aligned LBA (fdisk(8) still prints warning (in 'p' command) if any partition is not aligned to the physical sector boundary). Signed-off-by: Karel Zak fdisk/fdisk.c | 35 ++++++++++++++++++++++++++++++----- 1 files changed, 30 insertions(+), 5 deletions(-) commit 147e1e73c9af693b025b386f68f14f08dc30a4a9 Author: Karel Zak Date: Wed Apr 28 10:10:39 2010 +0200 fdisk: improve add partition dialog old version: Partition number (1-4): new version: Partition number (1-4, default 1): where the default value is the first non-used primary partition. Signed-off-by: Karel Zak fdisk/fdisk.c | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) commit c90bdfede677808186b0921330d05a02b45c4963 Author: Karel Zak Date: Wed Apr 28 09:10:27 2010 +0200 libblkid: fix LUKS version Reported-by: Milan Broz Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/luks.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit df8b7eef172208719859980f7f8a19be6cecdfdb Author: Karel Zak Date: Tue Apr 27 17:12:50 2010 +0200 tests: explicitly use --chunk and --metadata in MD test The newer mdadm version uses a different chunk size and superblock format, so the final MD device has a different I/O limits (optimal I/O size is 1MiB for 1.20 metadata). We have to explicitly use the same format which is expected in our tests. Reported-by: Yulia Kopkova Signed-off-by: Karel Zak tests/ts/fdisk/align-512-4K-md | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit ca55a451cdfa48f7640cd2f122aa25dedbd4edf5 Author: Karel Zak Date: Tue Apr 27 15:15:11 2010 +0200 mount: revert ugly ENOMEDIUM support Signed-off-by: Karel Zak include/blkdev.h | 3 --- lib/fsprobe.c | 25 +------------------------ mount/mount.c | 10 ---------- 3 files changed, 1 insertions(+), 37 deletions(-) commit f1014a4f33b67ccd15baff4d07fbb09f5660028b Author: Karel Zak Date: Tue Apr 27 12:11:31 2010 +0200 script: preserve child exit status The patch also removes unnecessary detection of child process existence (by kill()). This code was replaces with SIGCHLD hold/release around fork(). Based on the patch from therealneworld@gmail.com. Signed-off-by: Karel Zak misc-utils/script.1 | 4 ++++ misc-utils/script.c | 48 ++++++++++++++++++++++++++++++------------------ 2 files changed, 34 insertions(+), 18 deletions(-) commit 9f1d967639fb298fcb4cc0958da3fc9edf8abdad Author: Karel Zak Date: Tue Apr 27 08:31:03 2010 +0200 logger: add note about 'kern' to the man page Signed-off-by: Karel Zak misc-utils/logger.1 | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit bb8b11f1f3f98c3167bb57169ec8dae8cb2f7f75 Author: Marek Otahal Date: Fri Apr 23 14:20:54 2010 +0200 rtcwake: add disable action to rtcwake man page Signed-off-by: Karel Zak sys-utils/rtcwake.8 | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit c15dd93b17561e7768d076d7dbcda5e8398dd15b Author: Marek Otahal Date: Fri Apr 23 14:16:59 2010 +0200 rtcwake : add disable action for rtc alarm Signed-off-by: Karel Zak sys-utils/rtcwake.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) commit 0e753e3edf4db6a273fc4e8429ee13ea4741e0e6 Author: Karel Zak Date: Fri Apr 23 14:03:44 2010 +0200 libblkid: reset superblocks result after error Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/superblocks.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit e9c2d185619fbcfd91998c312bc29f5eca2047eb Author: Karel Zak Date: Fri Apr 23 13:56:58 2010 +0200 libblkid: cleanup some docs Signed-off-by: Karel Zak shlibs/blkid/src/partitions/partitions.c | 5 +++-- shlibs/blkid/src/probe.c | 16 +++++++++++++++- 2 files changed, 18 insertions(+), 3 deletions(-) commit 19f87d1d366694d0ad8b504f7fd88476e3cdc018 Author: Karel Zak Date: Fri Apr 23 13:35:20 2010 +0200 libblkid: add blkid_partlist_get_table() Signed-off-by: Karel Zak shlibs/blkid/samples/partitions.c | 35 ++++++++++++++++++------------ shlibs/blkid/src/blkid.h.in | 1 + shlibs/blkid/src/blkid.sym | 1 + shlibs/blkid/src/partitions/partitions.c | 33 ++++++++++++++++++--------- 4 files changed, 45 insertions(+), 25 deletions(-) commit 781aa7b364b2c479bd1f01284dee57229e51fc4c Author: Karel Zak Date: Fri Apr 23 11:20:08 2010 +0200 libblkid: don't gather PART_ENTRY_* values for binary interface Signed-off-by: Karel Zak shlibs/blkid/src/partitions/partitions.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 70601bb696502fd5d597c4dcaaeb5897a4d36961 Author: Karel Zak Date: Thu Apr 22 21:53:11 2010 +0200 wipefs: print warning is PT detected Signed-off-by: Karel Zak misc-utils/wipefs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit cba1f9757ae2c9a94633abb5f7f47311378cc3ff Author: Karel Zak Date: Thu Apr 22 21:52:31 2010 +0200 blkid: improve RAIDs and tiny devices probing Signed-off-by: Karel Zak misc-utils/blkid.c | 67 +++++++++++++++------------------------------------ 1 files changed, 20 insertions(+), 47 deletions(-) commit c81e70087cfebc299bdfbbd0675958483fc8a768 Author: Karel Zak Date: Thu Apr 22 21:30:04 2010 +0200 libblkid: fix collision between RAID and PT probing The RAID signature is usually at end of the block device. We have to differentiate between: - RAID signature at the end of disk, and - RAID signature at the end of the last partition The position of the signature is same in both cases... It means we have to the parse partition table and check if the area where is RAID signature is covered by any partition. If yes, then the RAID signature belongs to the partition and has to be ignored during whole-disk probing. The second problem are RAID1 underlaying disks (=raid members). The RAID device could be partitioned, in such a case the partition table is visible from underlaying devices. These partition tables has to be ignored. The libblkid ignores partition tables on raid members now. Note that all these changes are implemented for blkid_do_safeprobe() only. The others functions allow to access all detected superblocks or partition tables. Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=543749 Signed-off-by: Karel Zak shlibs/blkid/src/blkidP.h | 8 +++- shlibs/blkid/src/partitions/partitions.c | 80 ++++++++++++++++++++++++++++ shlibs/blkid/src/probe.c | 53 ++++++++++++++++--- shlibs/blkid/src/superblocks/superblocks.c | 36 +++++++++++- 4 files changed, 165 insertions(+), 12 deletions(-) commit abc67e06783aa1326b99f9ddee820cc495466e6c Author: Karel Zak Date: Wed Apr 21 14:24:52 2010 +0200 liblkid: export magic strings from raids The library provides detected magic strings by SBMAGIC= and offsets of the magic strings by SBMAGIC_OFFSET= variables. This patch allows to support this feature for RAIDs and filesystems where the magic string is not on fixed position. Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/adaptec_raid.c | 4 +++- shlibs/blkid/src/superblocks/ddf_raid.c | 7 ++++++- shlibs/blkid/src/superblocks/drbd.c | 13 ++++++++++--- shlibs/blkid/src/superblocks/highpoint_raid.c | 3 +++ shlibs/blkid/src/superblocks/isw_raid.c | 4 +++- shlibs/blkid/src/superblocks/jmicron_raid.c | 4 +++- shlibs/blkid/src/superblocks/linux_raid.c | 8 ++++++-- shlibs/blkid/src/superblocks/lsi_raid.c | 4 +++- shlibs/blkid/src/superblocks/nvidia_raid.c | 5 +++-- shlibs/blkid/src/superblocks/promise_raid.c | 7 ++++++- shlibs/blkid/src/superblocks/silicon_raid.c | 7 ++++++- shlibs/blkid/src/superblocks/sysv.c | 14 +++++++++++++- shlibs/blkid/src/superblocks/ufs.c | 8 ++++++++ shlibs/blkid/src/superblocks/via_raid.c | 4 ++++ shlibs/blkid/src/superblocks/zfs.c | 5 +++++ 15 files changed, 82 insertions(+), 15 deletions(-) commit 861902b5c925a16db9846fb810c86efd3c33a93f Author: Karel Zak Date: Mon Apr 19 23:03:30 2010 +0200 libblkid: add partial support for superblock binary API The API is used only internally. Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/superblocks.c | 101 +++++++++++++++++++++++++--- shlibs/blkid/src/superblocks/superblocks.h | 2 + 2 files changed, 94 insertions(+), 9 deletions(-) commit 90ec8d9cbf4ee44668e93de8278a5cad881131d7 Author: Karel Zak Date: Mon Apr 19 11:01:59 2010 +0200 libblkid: cleanup fstat() usage Signed-off-by: Karel Zak shlibs/blkid/src/probe.c | 49 +++++++++++++++------------------------------- 1 files changed, 16 insertions(+), 33 deletions(-) commit 601fb1c11e8b93c3b0e7488a73b4e97df12c676d Author: Karel Zak Date: Mon Apr 19 10:51:37 2010 +0200 libblkid: export functions to get whole-disk devno Signed-off-by: Karel Zak shlibs/blkid/src/blkid.h.in | 3 ++ shlibs/blkid/src/blkid.sym | 2 + shlibs/blkid/src/blkidP.h | 1 + shlibs/blkid/src/partitions/partitions.c | 3 +- shlibs/blkid/src/probe.c | 42 ++++++++++++++++++++++++++++++ 5 files changed, 50 insertions(+), 1 deletions(-) commit 9eb44c28f8b847ffe149fd5725e49d4d22c5a390 Author: Karel Zak Date: Thu Apr 15 13:15:35 2010 +0200 blkid: add \n to the "-o udev" output when probe more devices Old output: # blkid -p -o udev /dev/sda{1,3} ID_FS_LABEL=/boot ID_FS_LABEL_ENC=\x2fboot ID_FS_UUID=f1cd38fa-c887-4ab8-834b-c8ee659b97fe ID_FS_UUID_ENC=f1cd38fa-c887-4ab8-834b-c8ee659b97fe ID_FS_VERSION=1.0 ID_FS_TYPE=ext3 ID_FS_USAGE=filesystem ID_FS_LABEL=BAR ID_FS_LABEL_ENC=BAR ID_FS_UUID=1f2aa318-9c34-462e-8d29-260819ffd657 ID_FS_UUID_ENC=1f2aa318-9c34-462e-8d29-260819ffd657 ID_FS_VERSION=2 ID_FS_TYPE=swap ID_FS_USAGE=other new output: # blkid -p -o udev /dev/sda{1,3} ID_FS_LABEL=/boot ID_FS_LABEL_ENC=\x2fboot ID_FS_UUID=f1cd38fa-c887-4ab8-834b-c8ee659b97fe ID_FS_UUID_ENC=f1cd38fa-c887-4ab8-834b-c8ee659b97fe ID_FS_VERSION=1.0 ID_FS_TYPE=ext3 ID_FS_USAGE=filesystem ID_FS_LABEL=BAR ID_FS_LABEL_ENC=BAR ID_FS_UUID=1f2aa318-9c34-462e-8d29-260819ffd657 ID_FS_UUID_ENC=1f2aa318-9c34-462e-8d29-260819ffd657 ID_FS_VERSION=2 ID_FS_TYPE=swap ID_FS_USAGE=other Reported-by: Milan Broz Signed-off-by: Karel Zak misc-utils/blkid.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit 114d4b2ad7e79ef0c724309f0e043738be93c61c Author: Milan Broz Date: Thu Apr 8 21:15:25 2010 +0200 libblkid: fix some typos Signed-off-by: Milan Broz shlibs/blkid/src/topology/dm.c | 2 +- shlibs/blkid/src/topology/evms.c | 4 ++-- shlibs/blkid/src/topology/ioctl.c | 2 +- shlibs/blkid/src/topology/lvm.c | 2 +- shlibs/blkid/src/topology/md.c | 4 ++-- shlibs/blkid/src/topology/topology.c | 18 +++++++++--------- 6 files changed, 16 insertions(+), 16 deletions(-) commit 556c9641f01eb9c6d1c5b4ae3c6cdd4f9395d34d Author: Karel Zak Date: Thu Apr 8 16:38:23 2010 +0200 mount: use auto-loopdev for all known filesystems The commit e580266914734898999f652025f9c7141023df66 introduced "automatically detect and loop-mount regular files". This should be used only for filesystems that require block devices. All known filesystems in libblkid depend block devices, so we can use blkid_known_fstype() as a filter for this feature. Signed-off-by: Karel Zak mount/mount.8 | 5 +++-- mount/mount.c | 9 ++++----- 2 files changed, 7 insertions(+), 7 deletions(-) commit 569f3ca2785b0020349fb98b4f9ff050902e3df9 Author: Karel Zak Date: Thu Apr 8 09:20:21 2010 +0200 rtcwake: add --dry-run option Signed-off-by: Karel Zak sys-utils/rtcwake.8 | 8 ++++++-- sys-utils/rtcwake.c | 48 +++++++++++++++++++++++++++++++----------------- 2 files changed, 37 insertions(+), 19 deletions(-) commit ecd55f9647d139784857df994d0f5b965d164547 Author: Karel Zak Date: Thu Apr 8 08:51:00 2010 +0200 rtcwake: does miss the "off" option Reported-by: Piergiorgio Sartor Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=580296 Signed-off-by: Karel Zak sys-utils/rtcwake.c | 24 +++++++++++++++++++----- 1 files changed, 19 insertions(+), 5 deletions(-) commit 86af3b700a6a42f6451a8e849c2fee53c075b5b6 Author: Karel Zak Date: Wed Apr 7 16:37:59 2010 +0200 swaplabel: fix typo in man page Reported-by: Marcos Felipe Rasia de Mello Signed-off-by: Karel Zak disk-utils/swaplabel.8 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit dad504d97c69793a1012dd83897ca530d2160973 Author: Karel Zak Date: Wed Apr 7 11:31:37 2010 +0200 libblkid: add ultrix PT support Signed-off-by: Karel Zak shlibs/blkid/src/partitions/Makefile.am | 1 + shlibs/blkid/src/partitions/partitions.c | 1 + shlibs/blkid/src/partitions/partitions.h | 1 + shlibs/blkid/src/partitions/ultrix.c | 88 ++++++++++++++++++++++++++++++ 4 files changed, 91 insertions(+), 0 deletions(-) commit 9f4664ee40618b3d393161d82d000f2bca4ec45a Author: Karel Zak Date: Wed Apr 7 09:39:05 2010 +0200 libblkid: fix 'partno' usage Linux kernel ignores empty partitions, but partition number is always allocated for the partition. (This rule is used for primary partitions only.) For example: part 1. size=12345 part 2. size=0 part 3. size=24567 the final list of partitions: sda1 sda3 'sda2' is not defined and partno=2 is not used for any other partitions. The libblkid library has to be compatible with this rule. Signed-off-by: Karel Zak shlibs/blkid/src/partitions/dos.c | 7 +++++-- shlibs/blkid/src/partitions/gpt.c | 6 ++++-- shlibs/blkid/src/partitions/partitions.c | 11 +++++++++-- shlibs/blkid/src/partitions/partitions.h | 2 ++ shlibs/blkid/src/partitions/sgi.c | 5 +++-- shlibs/blkid/src/partitions/sun.c | 5 +++-- 6 files changed, 26 insertions(+), 10 deletions(-) commit 4720bb19c15752e5e5c2fc0dbba5b3b748afaf12 Author: Karel Zak Date: Tue Apr 6 17:57:49 2010 +0200 libblkid: fix blkid_partlist_devno_to_partition() for extended partitions Signed-off-by: Karel Zak shlibs/blkid/src/partitions/partitions.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit 4dddc2d4aa37367432f719b7c84cb8084bd7a109 Author: Jason Borden Date: Fri Apr 2 15:52:45 2010 +0200 swaplabel: new command Print or change the label / UUID of a swap area. [kzak@redhat.com: - code refactoring - add long options - clean up Makefile.am] Signed-off-by: Jason Borden Signed-off-by: Karel Zak AUTHORS | 2 + disk-utils/.gitignore | 1 + disk-utils/Makefile.am | 36 +++++--- disk-utils/swaplabel.8 | 66 ++++++++++++++ disk-utils/swaplabel.c | 226 ++++++++++++++++++++++++++++++++++++++++++++++++ include/swapheader.h | 8 ++- 6 files changed, 325 insertions(+), 14 deletions(-) commit 1f7a33f1352f823654851bcfd0a2622396489824 Author: Karel Zak Date: Fri Apr 2 12:49:07 2010 +0200 mkswap: zap bootbits on regular files Signed-off-by: Karel Zak disk-utils/mkswap.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 865deca2242a8b9f40d351e3eb2f5c0f9433bd02 Author: Karel Zak Date: Fri Apr 2 11:43:36 2010 +0200 swapon: move DELETED_SUFFIX to include/pathnames.h Signed-off-by: Karel Zak include/pathnames.h | 4 ++++ mount/swapon.c | 9 +++------ 2 files changed, 7 insertions(+), 6 deletions(-) commit 7771431278f32e7c89c4f42c5aaa9b4137f467ed Author: Karel Zak Date: Thu Apr 1 16:17:17 2010 +0200 mkswap: move write_all() to include/writeall.h Signed-off-by: Karel Zak disk-utils/mkswap.c | 19 +------------------ include/Makefile.am | 3 ++- include/writeall.h | 25 +++++++++++++++++++++++++ 3 files changed, 28 insertions(+), 19 deletions(-) commit 55113b15afe5f61fc917c22a9d8d47f89b37c757 Author: M.S.Colclough Date: Wed Mar 31 18:11:00 2010 +0200 libblkid: avoid probing CDs for RAID RAID probing of CD/DVD can yield errors because of well-known problem in reading the end of the disk with some disk/drive combinations. Borrow CD detection method from udev and skip the RAID tests for these devices. [kzak@redhat.com: - check for linux/cdrom.h in ./configure - add #ifdef around the ioctl call - call the ioctl for block devices only] Signed-off-by: Mark Colclough Signed-off-by: Karel Zak configure.ac | 1 + shlibs/blkid/src/blkidP.h | 2 ++ shlibs/blkid/src/probe.c | 16 ++++++++++++++++ shlibs/blkid/src/superblocks/superblocks.c | 5 +++++ 4 files changed, 24 insertions(+), 0 deletions(-) commit eaa7716fae98be329db877bf137ad98b4335760f Author: Francesco Cosoleto Date: Fri Mar 26 01:13:29 2010 +0100 blockdev: reduce usage text width Use spaces in usage text instead of tabs and reduce the distance between option names and descriptions. This helps to minimize problems due to limited number of columns and translated texts which take up more space than English. Signed-off-by: Francesco Cosoleto disk-utils/blockdev.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 56054a79fa3c37894a9f1ab4d7b50d8b5ff82fc4 Author: Jon Ringle Date: Thu Mar 25 22:42:52 2010 -0400 fdisk: replace bzero with memset Work on this was done in commit c0f19ccff73aa0ec5e9f3b61b932ea4a8bf4e6ed, however a couple of bzero call sites were missed Signed-off-by: Jon Ringle fdisk/fdiskbsdlabel.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit e349c4f84cdccfc955124e7eb346ee929a6bcd79 Author: Karel Zak Date: Wed Mar 31 17:18:23 2010 +0200 docs: update tests/README Signed-off-by: Karel Zak tests/README | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) commit a609340ed20f08d7afa8f1b52125130f3363b12c Author: Yann Droneaud Date: Wed Mar 31 16:51:52 2010 +0200 tests: added tests against strtosize - test empty string, white spaces - test hexadecimal Signed-off-by: Yann Droneaud tests/expected/misc/strtosize | 7 +++++++ tests/ts/misc/strtosize | 9 +++++++++ 2 files changed, 16 insertions(+), 0 deletions(-) commit b832c2fe345c9576432af0db6f1c3a9010fdbf24 Author: Yann Droneaud Date: Wed Mar 31 16:14:04 2010 +0200 build-sys: improved check for fallocate() With glibc 2.10 on a 32bits system, fallocate64() function is not exported. This a problem, since _FILE_OFFSET_BITS is set to 64 and fallocate() is redirected to fallocate64(). Sadly, AC_CHECK_FUNC() doesn't catch such problem, since it's overriding the function prototype. See this for references: http://sources.redhat.com/ml/libc-hacker/2009-05/msg00003.html Signed-off-by: Yann Droneaud configure.ac | 37 ++++++++++++++++++++++++++++++++++++- 1 files changed, 36 insertions(+), 1 deletions(-) commit 08b825dbea0b6e918ef9ba7db8d7d56b02022772 Author: Yann Droneaud Date: Wed Mar 31 16:48:39 2010 +0200 tests: use POSIX locale Since not everyone have en_US.UTF-8 locale, default to POSIX locale. This changes default sort order, so some expected results were updated. Signed-off-by: Yann Droneaud tests/expected/blkid/low-probe-cramfs | 2 +- tests/expected/blkid/low-probe-ext2 | 2 +- tests/expected/blkid/low-probe-ext3 | 2 +- tests/expected/blkid/low-probe-fat | 2 +- tests/expected/blkid/low-probe-gfs2 | 2 +- tests/expected/blkid/low-probe-hpfs | 2 +- tests/expected/blkid/low-probe-iso | 2 +- tests/expected/blkid/low-probe-iso-joliet | 2 +- tests/expected/blkid/low-probe-iso-rr-joliet | 2 +- tests/expected/blkid/low-probe-jfs | 2 +- tests/expected/blkid/low-probe-lvm2 | 2 +- tests/expected/blkid/low-probe-ntfs | 2 +- tests/expected/blkid/low-probe-ocfs2 | 2 +- tests/expected/blkid/low-probe-reiser3 | 2 +- tests/expected/blkid/low-probe-reiser4 | 2 +- tests/expected/blkid/low-probe-romfs | 2 +- tests/expected/blkid/low-probe-small-fat32 | 2 +- tests/expected/blkid/low-probe-swap1 | 2 +- tests/expected/blkid/low-probe-udf | 2 +- tests/expected/blkid/low-probe-vmfs | 2 +- tests/expected/blkid/low-probe-xfs | 2 +- tests/expected/blkid/low-probe-zfs | 2 +- tests/functions.sh | 7 ++++++- 23 files changed, 28 insertions(+), 23 deletions(-) commit c86dda7b36e3a6cfc63b9c03f7d275d715d35fd0 Author: Karel Zak Date: Wed Mar 31 16:38:51 2010 +0200 partx: fix infinite loop On Wed, Mar 24, 2010 at 04:39:35PM -0400, Phillip Susi wrote: > I noticed that running partx -d /dev/sda hangs so I looked into it > and it seems that it keeps trying to delete partitions forever. Reported-By: Phillip Susi Signed-off-by: Karel Zak partx/partx.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit d6d9cc6ea158ef3b2525742ee3f80c4a3be8b049 Author: Phillip Susi Date: Wed Mar 31 15:52:08 2010 +0200 partx: do not add nonexistent partitions This simple patch fixes partx -a to not add nonexistent zero length partitions for unused primary partition slots to to the kernel. This makes partx conform to the usual kernel behavior. Signed-off-by: Phillip Susi Signed-off-by: Karel Zak partx/partx.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 11ba4182e6b48e088189729d68b4d0bc7a5e4619 Author: Yann Droneaud Date: Tue Mar 30 17:17:56 2010 +0200 mkswap: fixed strtoll() usage - catch empty string - check against LLONG_MAX and LLONG_MIN instead of ULLONG_MAX and 0 Signed-off-by: Yann Droneaud disk-utils/mkswap.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 588c2685f4d87b9a620c77bc7bc27fdaf8a915f9 Author: Karel Zak Date: Tue Mar 30 16:15:44 2010 +0200 mount: support suffixes for offset= and sizelimit= Note that the offset= and sizelimit= values in /etc/mtab are always in the final format -- it means without suffix). Signed-off-by: Karel Zak mount/Makefile.am | 2 +- mount/mount.c | 46 +++++++++++++++++++++++----------------------- 2 files changed, 24 insertions(+), 24 deletions(-) commit 5d6c8028da9171235bc3685c472586d0e203482a Author: Karel Zak Date: Tue Mar 30 15:08:21 2010 +0200 mount: more robust offset= and sizelimit= parsing Signed-off-by: Karel Zak mount/mount.c | 28 +++++++++++++++++++++++++--- 1 files changed, 25 insertions(+), 3 deletions(-) commit ca1e1363e773202b5739e264e83703da8600ab0b Author: Karel Zak Date: Tue Mar 30 14:40:33 2010 +0200 losetup: support suffixes and hex numbers for --offset and --sizelimit Reported-By: Liu Aleaxander Signed-off-by: Karel Zak mount/Makefile.am | 2 +- mount/lomount.c | 16 ++++++++++------ mount/losetup.8 | 10 +++++++--- 3 files changed, 18 insertions(+), 10 deletions(-) commit 3b6b039ae899945895839b29359313cf4ef561c9 Author: Karel Zak Date: Tue Mar 30 14:28:13 2010 +0200 fallocate: support suffixes for --offset and --lenght Signed-off-by: Karel Zak sys-utils/Makefile.am | 1 + sys-utils/fallocate.1 | 9 +++++---- sys-utils/fallocate.c | 40 ++++------------------------------------ 3 files changed, 10 insertions(+), 40 deletions(-) commit 20543e618a9d403259b4efb56145e94789814ea4 Author: Karel Zak Date: Tue Mar 30 14:10:08 2010 +0200 mkswap: more robust strtoull() usage Signed-off-by: Karel Zak disk-utils/mkswap.c | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) commit 69cc2ec06158d7849e6ae8c95f944f044e7b380d Author: Karel Zak Date: Tue Mar 30 14:05:58 2010 +0200 wipefs: support suffixes for --offset Signed-off-by: Karel Zak misc-utils/Makefile.am | 1 + misc-utils/wipefs.8 | 4 ++++ misc-utils/wipefs.c | 17 +++++------------ 3 files changed, 10 insertions(+), 12 deletions(-) commit 8ab912cfa68bb5b3680516a230b694cf0305a955 Author: Karel Zak Date: Tue Mar 30 13:58:16 2010 +0200 blkid: support suffixes for -O and -S for example: blkid -p -O 17816085KiB /dev/sda Signed-off-by: Karel Zak misc-utils/Makefile.am | 2 +- misc-utils/blkid.8 | 7 +++++-- misc-utils/blkid.c | 21 +++++++++++++++------ 3 files changed, 21 insertions(+), 9 deletions(-) commit cf8de26afe0db5c330f4c913d736dc1f840add88 Author: Karel Zak Date: Tue Mar 30 13:47:33 2010 +0200 lib: add strtosize() function This function int strtosize(const char *str, uintmax_t *res) supports {K,M,G,T,E,P}iB and {K,M,G,T,E,P}B suffixes. Signed-off-by: Karel Zak include/Makefile.am | 1 + include/strtosize.h | 8 ++ lib/Makefile.am | 4 +- lib/strtosize.c | 148 +++++++++++++++++++++++++++++++++++++++++ tests/commands.sh.in | 1 + tests/expected/misc/strtosize | 23 ++++++ tests/ts/misc/strtosize | 51 ++++++++++++++ 7 files changed, 235 insertions(+), 1 deletions(-) commit 2e5627fa032967512a5f55c933af4216c5b672e0 Author: Timo Juhani Lindfors Date: Sat Mar 13 12:28:50 2010 +0200 hwclock: add --predict for predicting RTC reading at a given time Implement new option --predict that predicts what the RTC will read at a time given by the --date option. This is useful for example if you need to setup an RTC wakeup time to distant future and want to account for the RTC drift. Signed-off-by: Timo Juhani Lindfors Signed-off-by: Karel Zak hwclock/hwclock.8 | 7 +++++++ hwclock/hwclock.c | 41 ++++++++++++++++++++++++++++++----------- 2 files changed, 37 insertions(+), 11 deletions(-) commit 8ab43e6a67760f6ccb30141f8419c1b0dbfa2605 Author: Karel Zak Date: Tue Mar 23 14:24:02 2010 +0100 blkid: cleanup man page Signed-off-by: Karel Zak misc-utils/blkid.8 | 35 +++++++++++++++++------------------ 1 files changed, 17 insertions(+), 18 deletions(-) commit c9744f0b2f77d8126afd22ba1fb284967b26e921 Author: Karel Zak Date: Tue Mar 23 14:12:35 2010 +0100 docs: update TODO file Signed-off-by: Karel Zak TODO | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) commit 4f946f530c3f9991c6fd71739696dd2bcc1a4a1f Author: Karel Zak Date: Tue Mar 23 14:06:54 2010 +0100 blkid: add -n option This option allows to restrict low-level probing to the defined list of superbocks (filesystems or RAIDs). For example: blkid -p -n ext3,ext4,vfat /dev/sda1 or blkid -p -n novfat /dev/sda1 Signed-off-by: Karel Zak misc-utils/blkid.8 | 17 +++++++++++ misc-utils/blkid.c | 77 +++++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 88 insertions(+), 6 deletions(-) commit 962496d401dea4a9dd18c3cc5e0fda8b902ff097 Author: Karel Zak Date: Mon Mar 22 15:16:01 2010 +0100 blkid: cleanup -u parsing Signed-off-by: Karel Zak misc-utils/blkid.c | 45 +++++++++++++++++++++++++++------------------ 1 files changed, 27 insertions(+), 18 deletions(-) commit 7f152745c33567f49807019fd4f5f72eadfd4fd4 Author: Karel Zak Date: Fri Mar 19 15:56:27 2010 +0100 fdisk: fix -b The old fdisk (<2.17) does not differentiate between logical and physical sector size, it uses the for everything. Now, we have logical and physical sectors size, but the -b option changes the logical size only. The second bug is that "fdisk -b " does not read topology information (it means that all I/O limits and physical sector size are 512 (default). The backwardly compatible bug fix is to override both sizes, logical and physical if "-b" is used. In future we can add a special option for physical size only. Signed-off-by: Karel Zak fdisk/fdisk.8 | 4 +++- fdisk/fdisk.c | 18 ++++++++++++------ 2 files changed, 15 insertions(+), 7 deletions(-) commit e981b2887fa3d6718467e4e26d4eff36dab73a39 Author: Karel Zak Date: Fri Mar 19 15:18:42 2010 +0100 docs: update TODO file Signed-off-by: Karel Zak TODO | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 6c2f2b9d62b196296e827f8bb7336a39e80695a9 Author: Karel Zak Date: Wed Mar 17 14:49:14 2010 +0100 libblkid: add microsecond resolution for cache entries The libblkid library uses stat.st_mtine to detect changes on the device. The last update time of of the device in the cache is stored as TIME= tag in the /etc/blkid.tab file. Linux since 2.5.48 supports nanosecond resolution and more precise time is available in the stat.st_mtim timespec struct. This patch add microsecond precision to TIME= tag in the cache file, old format: TIME="" the new format: TIME="." This change is backwardly compatible. Now, the blkid_verify() function checks stat.st_mtime and stat.st_mtim.tv_nsec/1000. Test: # e2label /dev/sdb1 AAAA old version: # blkid -s LABEL /dev/sdb1; e2label /dev/sdb1 BBBB; blkid -s LABEL /dev/sdb1 /dev/sdb1: LABEL="AAAA" /dev/sdb1: LABEL="AAAA" new version: # blkid -s LABEL /dev/sdb1; e2label /dev/sdb1 BBBB; blkid -s LABEL /dev/sdb1 /dev/sdb1: LABEL="AAAA" /dev/sdb1: LABEL="BBBB" Signed-off-by: Karel Zak configure.ac | 3 +++ shlibs/blkid/src/blkidP.h | 2 ++ shlibs/blkid/src/dev.c | 2 +- shlibs/blkid/src/read.c | 14 +++++++++----- shlibs/blkid/src/save.c | 8 +++++--- shlibs/blkid/src/verify.c | 38 +++++++++++++++++++++++++++++++------- 6 files changed, 51 insertions(+), 16 deletions(-) commit abbd79ac35ca4ad65f2bba55288652db907a514e Author: Karel Zak Date: Tue Mar 16 17:31:39 2010 +0100 lib: fix blkdev_find_size() echo l | fdisk/fdisk /dev/zero FYI that however now spins forever doing: offset=3074457345618258603) at ../lib/blkdev.c:31 at ../lib/blkdev.c:151 at ../lib/blkdev.c:161 Reported-by: Pádraig Brady Signed-off-by: Karel Zak lib/blkdev.c | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) commit b8d22034f1b393a48ce7af9e15d910bf0e29df0b Author: Pádraig Brady Date: Tue Mar 9 08:21:35 2010 +0000 fdisk: correctly truncate and align translated partition names * fdisk/Makefile.am: Depend on the mbsalign module. * fdisk/fdisk.c: Align using mbsalign rather than printf. [kzak@redhat.com: - use size_t for width to fix gcc warning] Reported-by: Makoto Kato Signed-off-by: Pádraig Brady Signed-off-by: Karel Zak fdisk/Makefile.am | 2 +- fdisk/fdisk.c | 17 ++++++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) commit 70502c5246815c35dba4d062ef4152d71b827ef8 Author: Karel Zak Date: Tue Mar 16 15:24:04 2010 +0100 lib: add #ifndef around min() max() macros Signed-off-by: Karel Zak include/c.h | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) commit 104b92f84802e4043e6a8db034985fa726b9a6ab Author: Pádraig Brady Date: Mon Mar 8 18:29:01 2010 +0000 cal: factor out and update multibyte alignment code * include/mbsalign.h: New module interface * lib/mbsalign.c: Updated implementation synced from coreutils * include/Makefile.am: Add mbsalign.h * misc-utils/Makefile.am: Make cal dependent on mbsalign module * misc-utils/cal.c: Call mbsalign() [kzak@redhat.com: - use min() macro from c.h] Signed-off-by: Pádraig Brady Signed-off-by: Karel Zak include/Makefile.am | 1 + include/mbsalign.h | 43 ++++++++ lib/mbsalign.c | 254 ++++++++++++++++++++++++++++++++++++++++++++++++ misc-utils/Makefile.am | 1 + misc-utils/cal.c | 86 ++--------------- 5 files changed, 306 insertions(+), 79 deletions(-) commit 03e062e5930bf89ce2ccae5ed76f445e87525921 Author: Karel Zak Date: Tue Mar 16 14:52:10 2010 +0100 docs: update TODO file Signed-off-by: Karel Zak TODO | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit 1675ed7819df8f36cb721428ed9aab3a6812c487 Author: Jim Meyering Date: Tue Mar 16 13:46:58 2010 +0100 lib: avoid compilation failure on rawhide * lib/blkdev.c: Include , for use of S_ISREG. lib/blkdev.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit e580266914734898999f652025f9c7141023df66 Author: Karel Zak Date: Mon Mar 15 17:10:35 2010 +0100 mount: automatically detect and loop-mount regular files This patch allows to automatically create a loop device from a regular file if a filesystem type is not specified, for example: mount /path/disk.img /mnt If the filesystem type is specified than "-o loop" is required. Note that there is not a restriction (on kernel side) that prevents regular file as a mount(2) source argument. A filesystem that is able to mount regular files could be implemented. Based on a patch from Adam Jackson . Signed-off-by: Karel Zak mount/mount.8 | 36 +++++++++++++++++++++++++----------- mount/mount.c | 16 ++++++++++++++++ 2 files changed, 41 insertions(+), 11 deletions(-) commit c47381d1b37af477c15711d9a1a559b577bf7f4d Author: Karel Zak Date: Mon Mar 15 14:36:22 2010 +0100 mount: more explicitly explain fstab usage in mount.8 Signed-off-by: Karel Zak mount/mount.8 | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) commit c6c98f93f5e4b3fb9a8b51ed2ef9967793df7b1c Author: Karel Zak Date: Mon Mar 15 13:46:43 2010 +0100 mount: report ambivalent FS detection, improve brute force detection The ambivalent probing result should be properly reported and user should be informed that the problem is possible to bypass by "-t " or resolved by wipefs(8). The mount(8) command uses a brute force stage (calls mount(2) for all /{proc,etc}/fylesystems) if there is not any other way how to detect the filesystem type. The brute force stage should not be restricted by libblkid. It's possible that libblkid is not able to detect slightly corrupted filesystem, but kernel is able to mount such filesystem. Note that the brute force stage should not be used if libblkid returns ambivalent probing result. In this case user's intervention is required (e.g. mount -t ). Reported-by: Mike Frysinger Signed-off-by: Karel Zak include/fsprobe.h | 1 + lib/fsprobe.c | 33 ++++++++++++++++++++++++--------- mount/mount.c | 14 +++++++++----- 3 files changed, 34 insertions(+), 14 deletions(-) commit f5b1bab190e86bd6a52942047d2c767ec82508d1 Author: Karel Zak Date: Mon Mar 15 13:45:03 2010 +0100 wipefs: cleanup usage() and man page Signed-off-by: Karel Zak misc-utils/wipefs.8 | 2 +- misc-utils/wipefs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit af6b2e6574997161c81d4fa5abff45070840baea Author: Karel Zak Date: Sun Mar 14 23:18:17 2010 +0100 tests: fix whitespaces Signed-off-by: Karel Zak tests/expected/fdisk/align-512-4K | 10 +++++----- tests/expected/fdisk/align-512-4K-63 | 4 ++-- tests/expected/fdisk/align-512-4K-md | 6 +++--- tests/expected/fdisk/align-512-512-topology | 10 +++++----- 4 files changed, 15 insertions(+), 15 deletions(-) commit 4880a6f1edf21597555a11c04ee5ada8add11dc3 Author: Pierre Hauweele Date: Sun Mar 14 00:50:36 2010 +0100 ionice: fix typo Signed-off-by: Pierre Hauweele schedutils/ionice.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 046959cca19be0b1e489bae66314fcf6047fe4c5 Author: Colin Watson Date: Sat Mar 13 00:46:35 2010 +0000 libblkid: fix infinite loop when probe chain bails out early The superblocks probe bails out early with no results in some cases. If this happens, blkid_do_probe needs to go to the next chain, rather than entering an infinite loop calling superblocks_probe over and over again. [kzak@redhat.com: - print debug message always when leaving superblocks_probe()] Addresses: https://bugs.launchpad.net/bugs/528073 Signed-off-by: Colin Watson Signed-off-by: Karel Zak shlibs/blkid/src/probe.c | 6 ++++-- shlibs/blkid/src/superblocks/superblocks.c | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) commit 594c3d1ba45cee79fffde3a42d7c8b84d5b7292f Author: Karel Zak Date: Thu Mar 11 15:52:54 2010 +0100 libblkid: remove "0x" prefix from DRBD UUID Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/drbd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit a1fbeb3df35d1441c4ef64ea7e04c2b1fda38ba2 Author: Andreas Dilger Date: Thu Mar 11 15:16:46 2010 +0100 libblkid: improve ZFS detection and add LABEL and UUID extraction Improve ZFS uberblock detection to loop over multiple uberblocks, and detect at least 4 magic values, to avoid random collisions. It doesn't yet probe the VDEV LABEL at the end of the device, though it wouldn't be too hard to add it at this point if needed. Add extraction of the pool name (as LABEL), the VDEV (block device) guid as UUID_SUB, and pool_guid (volume) as UUID from the nvlist in the VDEV LABEL. Do simple sanity checking on the nvlist data values to avoid overflowing the buffer if they are corrupt in any way. [kzak@redhat.com: - use %PRIu64 instead %llu] Signed-off-by: Andreas Dilger Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/zfs.c | 210 ++++++++++++++++++++++++++++++------ tests/expected/blkid/low-probe-zfs | 10 ++- 2 files changed, 183 insertions(+), 37 deletions(-) commit af109b063aa15866a0570920586d79417d7a7a67 Author: Jeroen Oortwijn Date: Tue Mar 9 23:15:30 2010 +0100 libblkid: prevent overflow in BeFS Prevent overflow by casting values to blkid_loff_t before applying block shift. Signed-off-by: Jeroen Oortwijn shlibs/blkid/src/superblocks/befs.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) commit 97a3cef4f1f18c30d662eda5cf072cc27825a55c Author: Miklos Szeredi Date: Mon Mar 8 19:01:13 2010 +0100 umount: add --fake option to umount(8) Add --fake option to umount(8), which omits calling the actual umount syscall (and the loop device deletion) but modifies /etc/mtab. This is similar to the -f or --fake option to mount(8). This would allow some simplifications in fuse by allowing it to call the umount syscall and letting umount(8) just update mtab. [kzak@redhat.com: - initialize 'res' variable in umount_one() ] Signed-off-by: Miklos Szeredi Signed-off-by: Karel Zak mount/umount.8 | 6 ++++++ mount/umount.c | 15 +++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) commit 96aad067caf63b06e3d4f83b945916501da19bcb Author: Mike Frysinger Date: Sun Mar 7 00:16:41 2010 -0500 mount: properly ignore comments in /etc/filesystems The POSIX spec for sscanf() says that whitespace may be matched against 0 bytes which means doing sscanf(" %s") against "#foo" will result in a match. You can see this behavior by using the verbose options on a garbage file: ... mount: you didn't specify a filesystem type for /dev/null I will try all types mentioned in /etc/filesystems or /proc/filesystems Trying # mount: mount(2) syscall: source: "/dev/null", target: "/", filesystemtype: "#", mountflags: -1058209792, data: (null) Trying #vfat mount: mount(2) syscall: source: "/dev/null", target: "/", filesystemtype: "#vfat", mountflags: -1058209792, data: (null) ... Reported-by: Dave Barton Signed-off-by: Mike Frysinger mount/mount.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit c686bd6c554a4a9a79b8bc9e065b69f7345166b5 Author: Karel Zak Date: Thu Mar 11 01:06:45 2010 +0100 tests: update fdisk tests Signed-off-by: Karel Zak tests/expected/fdisk/oddinput | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 6f3c7f5cfd83681c6c2522c4b33fa61b395c2e69 Author: Karel Zak Date: Thu Mar 11 01:04:50 2010 +0100 mkswap: don't call blkdev_find_size() .. it's already called by blkdev_get_size(). Signed-off-by: Karel Zak disk-utils/mkswap.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit abe3923fd93c3ecc1ea236e9f646d70b69d21340 Author: Karel Zak Date: Thu Mar 11 00:59:47 2010 +0100 libblkid: don't use fstat() in blkid_get_dev_size() We already use fstat() in blkdev_get_size(). Signed-off-by: Karel Zak shlibs/blkid/src/getsize.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) commit 530381d2d506d75c4dd1607bb6f556d17537f911 Author: Karel Zak Date: Thu Mar 11 00:59:04 2010 +0100 lib: use fstat() as fallback in blkdev_get_size() Signed-off-by: Karel Zak lib/blkdev.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) commit d0f2bb89f01a26310f1b0a51690c2acb4a72446e Author: Karel Zak Date: Thu Mar 11 00:27:35 2010 +0100 mount: use unmangle/mangle() from lib Signed-off-by: Karel Zak mount/Makefile.am | 2 +- mount/mount_mntent.c | 55 +------------------------------------------------ 2 files changed, 3 insertions(+), 54 deletions(-) commit bf71ef0797c42f4b1754ec8756819c633a0d0d73 Author: Karel Zak Date: Wed Mar 10 23:59:33 2010 +0100 swapon: use unmangle() for filenames from /proc/swaps linux kernel encodes all garbage in filenames by mangle() function. We need to unmagle() to get the real filenames. Signed-off-by: Karel Zak mount/Makefile.am | 3 ++- mount/swapon.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) commit 21169393e3aec30f0c67037b9a0afb292b7f99ae Author: Karel Zak Date: Wed Mar 10 23:54:11 2010 +0100 lib: add mangle.c for mtab (fstab or swaps) encoding Signed-off-by: Karel Zak include/Makefile.am | 1 + include/mangle.h | 14 ++++++ lib/Makefile.am | 3 +- lib/mangle.c | 116 +++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 133 insertions(+), 1 deletions(-) commit dac4cc1dd6b855d781d2ff9689931786ece0acbf Author: Karel Zak Date: Wed Mar 10 23:08:26 2010 +0100 swapon: remove " (deleted)" from filenames from /proc/swaps The filenames in /proc/swaps are generated by seq_path() and this function uses __d_path() from fs/dcache.c. The filename could generated with " (deleted)" suffix. We need real filenames without the suffix. Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=562403 Signed-off-by: Karel Zak mount/swapon.c | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) commit 56e961e270fd4b34015a688781dcc6b970c0e318 Author: Karel Zak Date: Wed Mar 10 15:50:45 2010 +0100 libblkid: add blkid_probe_get_{offset,fd} functions Signed-off-by: Karel Zak shlibs/blkid/src/blkid.h.in | 3 +++ shlibs/blkid/src/blkid.sym | 6 ++++-- shlibs/blkid/src/probe.c | 24 ++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) commit 3069624180bac35f1cd468249ddb9dfc91d1b7b1 Author: Karel Zak Date: Wed Mar 10 15:41:40 2010 +0100 liblkid: move getsize.c code to lib/ .. and cleanup blkdev_get_size() usage in libblkid. Signed-off-by: Karel Zak include/blkdev.h | 6 +- lib/blkdev.c | 87 ++++++++++++++++++-- shlibs/blkid/src/getsize.c | 198 ++++---------------------------------------- shlibs/blkid/src/probe.c | 16 +++- 4 files changed, 111 insertions(+), 196 deletions(-) commit 2b923637a42397ee4b09cbfd2fdbeec6dc9be102 Author: Pascal Terjan Date: Wed Mar 10 11:08:02 2010 +0100 libblkid: reset BLKID_TINY_DEV flag in blkid_probe_set_device Signed-off-by: Pascal Terjan shlibs/blkid/src/probe.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit eb84ba7c054d824f6b5b6da19c69ae25048129b0 Author: Karel Zak Date: Wed Mar 10 11:08:01 2010 +0100 libblkid: fix display of device size blkid_loff_t is int64 so use %jd not %zd in debug Reported-by: Pascal Terjan Signed-off-by: Karel Zak shlibs/blkid/src/probe.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 74b1659ddaac4aa409b56d1eaa07d87b5b11b98e Author: Karel Zak Date: Mon Mar 8 13:05:09 2010 +0100 libblkid: more robust minix probing Unfortunately, it's still possible to interpret some parts of ext3 filesystem as minix superblock ;-( So, the most robust is to check for the extN magic string in minix probing function. Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=570606 Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/minix.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) commit eeaeb7540b16a43a3c4b0923737c4b573f7d7c01 Author: Karel Zak Date: Wed Mar 3 15:01:44 2010 +0100 libblkid: cleanup usage of empty topology values Signed-off-by: Karel Zak shlibs/blkid/src/topology/ioctl.c | 5 +---- shlibs/blkid/src/topology/sysfs.c | 4 ---- shlibs/blkid/src/topology/topology.c | 6 ++++++ 3 files changed, 7 insertions(+), 8 deletions(-) commit 25d1e630f6e32f05454ba38e5c4fdd03b66de589 Author: Karel Zak Date: Wed Mar 3 13:12:02 2010 +0100 libblkid: support alignment_offset=-1 Unfortunately, Linux kernel uses "signed int" for alignment_offset and the offset could be -1 for devices with undefined alignment (if no compatible sizes and alignments exist for stacked devices). There is no way how libblkid caller can respond to the value -1, so we are going to hide this corner case... TODO: maybe we can export an extra boolean value 'misaligned' rather then complete hide this problem. We will see... Signed-off-by: Karel Zak shlibs/blkid/src/blkidP.h | 4 +- shlibs/blkid/src/devno.c | 20 +++++++- shlibs/blkid/src/partitions/partitions.c | 4 +- shlibs/blkid/src/topology/ioctl.c | 15 ++++-- shlibs/blkid/src/topology/sysfs.c | 86 +++++++++++++----------------- shlibs/blkid/src/topology/topology.c | 18 ++++++- shlibs/blkid/src/topology/topology.h | 2 +- 7 files changed, 89 insertions(+), 60 deletions(-) commit 376306795fc38ca024763cf299d855fb7e79d5d8 Author: Yoshihiro Takahashi Date: Mon Mar 1 11:43:02 2010 +0100 mount: posix option of vfat is obsolete Summary of changes from v2.5.42 to v2.5.43 [PATCH] removes posix option of fat (3/5) This removes the posix option of vfat. The current posix options works only as an alias of name_check=s. Signed-off-by: Yoshihiro Takahashi mount/mount.8 | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit bc54770d9e25aa8732f571d97dd950982114dc08 Author: Henne Vogelsang Date: Mon Mar 1 11:35:54 2010 +0100 lscpu: fix cpuid opcode detection Fixes commit c9239f23acdc8b50f8bcbfadf967c6a490fd4693. The author didn't care for matching constraints when resorting the register constraints. The eax register (with the cpuid opcode) is now in operand 1, not zero anymore. Signed-off-by: Henne Vogelsang sys-utils/lscpu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b5b28b435ede727c24233aa4d0ba8507e8a169b9 Author: Karel Zak Date: Mon Mar 1 10:51:12 2010 +0100 ldattach: prints help to stdout Signed-off-by: Karel Zak sys-utils/ldattach.c | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) commit b091b880f963b5181ac09a202bff4e41a38dfbe0 Author: Tilman Schmidt Date: Mon Mar 1 10:45:47 2010 +0100 ldattach: add --iflag command line option Add a command line option '-i' / '--iflag' for setting or clearing input flags on the serial device before attaching the line discipline. [kzak@redhat.com: - use generic functions for work with iflags table - add list of iflags to usage/help output - move iflags parsing to separate function] Impact: added functionality Signed-off-by: Tilman Schmidt Signed-off-by: Karel Zak sys-utils/ldattach.8 | 11 ++++++++- sys-utils/ldattach.c | 61 +++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 68 insertions(+), 4 deletions(-) commit 7b549aff71c0e3f9591f743df4f680a16bb537d7 Author: Karel Zak Date: Mon Mar 1 10:25:55 2010 +0100 ldattach: create a generic functions for name=value tables Signed-off-by: Karel Zak sys-utils/ldattach.c | 43 +++++++++++++++++++++++++++++-------------- 1 files changed, 29 insertions(+), 14 deletions(-) commit 4d6cb488084388c90f3f45a0eaf3db83c764e0fb Author: Karel Zak Date: Fri Feb 26 16:06:18 2010 +0100 fdisk: fix 'p' output for sun label Signed-off-by: Karel Zak TODO | 5 +++++ fdisk/fdisksunlabel.c | 18 +++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) commit bfbe29339da6ecc0257a23244d0771c6aa91b965 Author: Karel Zak Date: Tue Feb 23 14:13:28 2010 +0100 wipefs: fix license (GPL -> GPLv2+) Signed-off-by: Karel Zak misc-utils/wipefs.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) commit aae63de9efd5e7643edf1180f7055bef22f1ebc3 Author: Karel Zak Date: Fri Feb 19 16:11:49 2010 +0100 fdisk: swap VTOC values for warning messages Signed-off-by: Karel Zak fdisk/fdisksunlabel.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit df82f6f305af908419791945e1eec6d6ffd86312 Author: Karel Zak Date: Fri Feb 19 14:54:25 2010 +0100 libblkid: improve Sun VTOC It seems that for example GNU Parted is able to generate Sun VTOC with empty sanity, version and nparts fields. But there is still useful info about partition flags in such VTOC. This change makes libblkid Sun PT parser compatible with Sun PT parser in Linux kernel. Signed-off-by: Karel Zak shlibs/blkid/src/partitions/sun.c | 48 +++++++++++++++++++++++-------------- 1 files changed, 30 insertions(+), 18 deletions(-) commit aaf8fffb353fc49d6cb48f62880bf67159f03062 Author: Karel Zak Date: Fri Feb 19 10:15:11 2010 +0100 blkid: fix blkid_probe_lookup_value() usage Signed-off-by: Karel Zak misc-utils/blkid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit dcc58f62c48b2a059a2068b247d3886bb21ca148 Author: Karel Zak Date: Thu Feb 18 23:04:22 2010 +0100 blkid: encode PART_ENTRY_TYPE Signed-off-by: Karel Zak misc-utils/blkid.c | 3 ++- shlibs/blkid/src/partitions/partitions.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) commit fbe66f6bcf68eeba8cb7f02c5b78ac07bee64626 Author: Karel Zak Date: Thu Feb 18 23:01:38 2010 +0100 libblkid: add PART_ENTRY_{SCHEME,NUMBER} Signed-off-by: Karel Zak shlibs/blkid/src/blkidP.h | 2 +- shlibs/blkid/src/partitions/partitions.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletions(-) commit 75838802d7108081d95ef3ab342f0cb0c08dec63 Author: Karel Zak Date: Thu Feb 18 22:53:44 2010 +0100 libblkid: add support for partition flags/attributes Signed-off-by: Karel Zak shlibs/blkid/src/blkid.h.in | 1 + shlibs/blkid/src/blkid.sym | 1 + shlibs/blkid/src/partitions/dos.c | 2 + shlibs/blkid/src/partitions/gpt.c | 2 + shlibs/blkid/src/partitions/minix.c | 1 + shlibs/blkid/src/partitions/partitions.c | 30 ++++++++++++++++++++++++++++- shlibs/blkid/src/partitions/partitions.h | 2 + shlibs/blkid/src/partitions/solaris_x86.c | 1 + shlibs/blkid/src/partitions/sun.c | 2 + shlibs/blkid/src/partitions/unixware.c | 1 + 10 files changed, 42 insertions(+), 1 deletions(-) commit c2dacc61aa7de47f97606713de1724a96aab9d2c Author: Karel Zak Date: Thu Feb 18 22:28:41 2010 +0100 libblkid: add blkid_partition_set_type() Signed-off-by: Karel Zak shlibs/blkid/src/partitions/bsd.c | 6 +++++- shlibs/blkid/src/partitions/dos.c | 16 ++++++++++++---- shlibs/blkid/src/partitions/gpt.c | 4 ++-- shlibs/blkid/src/partitions/mac.c | 2 +- shlibs/blkid/src/partitions/minix.c | 7 +++++-- shlibs/blkid/src/partitions/partitions.c | 20 ++++++++++++-------- shlibs/blkid/src/partitions/partitions.h | 4 +++- shlibs/blkid/src/partitions/sgi.c | 6 +++++- shlibs/blkid/src/partitions/solaris_x86.c | 7 +++++-- shlibs/blkid/src/partitions/sun.c | 6 +++++- shlibs/blkid/src/partitions/unixware.c | 6 +++++- 11 files changed, 60 insertions(+), 24 deletions(-) commit 5ac78ead3c02660a894ca7e7a4887ce80ebe2b50 Author: Bryn M. Reeves Date: Thu Feb 18 21:39:22 2010 +0100 sfdisk: make sure writes make it to disk in write_partitions() Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=565946 Signed-off-by: Bryn M. Reeves Signed-off-by: Karel Zak fdisk/sfdisk.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 4f74ffdbfe1f8d967cec0bc060a0a45c38aeb244 Author: Karel Zak Date: Thu Feb 18 16:46:56 2010 +0100 blkid: export ID_PART_ENTRY_* variables for udev Signed-off-by: Karel Zak misc-utils/blkid.c | 48 +++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 43 insertions(+), 5 deletions(-) commit 0c6dc61532d0e38a141f7fb5dbce1295a0afbfeb Author: Karel Zak Date: Thu Feb 18 16:38:59 2010 +0100 libblkid: add support for PART_ENTRY_* values blkid(8) will be replacement for devkit-disks-part-id, so we have to be able to found entry in partition table for requested partition. This functionality is enabled by BLKID_PARTS_ENTRY_DETAILS flag (see blkid_probe_set_partitions_flags() for more details). This patch also add a new public function blkid_partlist_devno_to_partition(). Signed-off-by: Karel Zak shlibs/blkid/src/blkid.h.in | 4 +- shlibs/blkid/src/blkid.sym | 1 + shlibs/blkid/src/partitions/partitions.c | 133 ++++++++++++++++++++++++++++-- 3 files changed, 131 insertions(+), 7 deletions(-) commit 5689113d8807820a7f4279a07157f5a3b4c7ad9a Author: Karel Zak Date: Thu Feb 18 16:19:31 2010 +0100 libblkid: don't probe for nested PT on tiny disks (<=1.44MiB) Signed-off-by: Karel Zak shlibs/blkid/src/partitions/dos.c | 29 +++++++++++++++-------------- 1 files changed, 15 insertions(+), 14 deletions(-) commit 220c60151dad64bb79fef28552f02003cf735a36 Author: Karel Zak Date: Thu Feb 18 11:09:46 2010 +0100 libblkid: add generic functions for sysfs attributes Signed-off-by: Karel Zak shlibs/blkid/src/blkidP.h | 4 +++ shlibs/blkid/src/devno.c | 45 +++++++++++++++++++++++++++++++++++++ shlibs/blkid/src/topology/sysfs.c | 39 +++++--------------------------- 3 files changed, 55 insertions(+), 33 deletions(-) commit e54a76ca076625b1883ddf0595162eb8de81d5d1 Author: Andreas Dilger Date: Wed Feb 17 10:21:27 2010 +0100 libblkid: fix ZSF detection Fix the ZFS device detection by looking at multiple uberblocks to see if any are present, rather than looking for the ZFS boot block which is not always present. There may be up to 128 uberblocks, but the first 4 are not written to disk on a newly-formatted filesystem so check several of them at different offsets within the uberblock array. [kzak@redhat.com: - port e2fsprogs patch to util-linux-ng] Signed-off-by: Andreas Dilger Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/zfs.c | 26 ++++++++++++++++++-------- tests/expected/blkid/low-probe-zfs | 2 +- 2 files changed, 19 insertions(+), 9 deletions(-) commit 98e9ff610ed0a3a80a7478336acff99133199375 Author: Karel Zak Date: Tue Feb 16 13:48:09 2010 +0100 swapon: fix swapsize calculation Reported-by: Peter Breitenlohner Signed-off-by: Karel Zak mount/swapon.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 4fc5d65bf26e805f3afed2bfd7fbb95f30779144 Author: Karel Zak Date: Tue Feb 16 09:43:26 2010 +0100 blkid: report open() errors in low-level probing Signed-off-by: Karel Zak misc-utils/blkid.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit a47e839cd7b5e3c032c3a6b8a96343d3ab8e1906 Author: Karel Zak Date: Mon Feb 15 16:46:05 2010 +0100 fdisk: don't use 1MiB grain on small devices Signed-off-by: Karel Zak fdisk/fdisk.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) commit c89d620e03cf38d639d6430856b0aae4513ca7de Author: Karel Zak Date: Mon Feb 15 16:07:44 2010 +0100 tests: update fdisk tests Signed-off-by: Karel Zak tests/expected/fdisk/align-512-4K | 42 +++++++++++++------------- tests/expected/fdisk/align-512-4K-63 | 18 ++++++------ tests/expected/fdisk/align-512-4K-md | 28 +++++++++--------- tests/expected/fdisk/align-512-512-topology | 42 +++++++++++++------------- 4 files changed, 65 insertions(+), 65 deletions(-) commit 9b15ea8048110dcfea8fff5e1acf5321fb737f51 Author: Karel Zak Date: Mon Feb 15 15:55:22 2010 +0100 fdisk: use 1MiB offset and grain always when possible It would be nice to minimize dependence between the disk layout and disk topology. We have to follow disk topology for alignment_offset and huge (> 1MiB) I/O sizes only. For all others disks we can use 1MiB grain and 1MiB offset. Reported-by: "H. Peter Anvin" Signed-off-by: Karel Zak fdisk/fdisk.c | 19 ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-) commit 78498b7b90cfae7d45912a3c3f80cfca57df95ec Author: Karel Zak Date: Mon Feb 15 14:39:30 2010 +0100 fdisk: add -c option (switch off DOS mode) * add -c to allows to switch off DOS mode from command line * recommend sectors (command 'u' or option -u) Signed-off-by: Karel Zak fdisk/fdisk.8 | 5 ++++- fdisk/fdisk.c | 13 +++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) commit d42ef322d04dbd7618455364b6c38c0150e40804 Author: Karel Zak Date: Mon Feb 15 14:06:56 2010 +0100 fdisk: fix ALIGN_UP Signed-off-by: Karel Zak fdisk/fdisk.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit e57fb0dec057be41530dc51436f470a5310ea9c9 Author: Karel Zak Date: Mon Feb 15 13:29:04 2010 +0100 fdisk: fallback for topology values Signed-off-by: Karel Zak fdisk/fdisk.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit 3b19e88dab4d4e5b969eb63fdf26f642dbb4bdcf Author: Karel Zak Date: Mon Feb 15 10:08:03 2010 +0100 fdisk: cleanup help, add -h option Signed-off-by: Karel Zak fdisk/fdisk.8 | 5 +++++ fdisk/fdisk.c | 55 ++++++++++++++++++++++--------------------------------- fdisk/fdisk.h | 2 +- 3 files changed, 28 insertions(+), 34 deletions(-) commit 1c5530fb749701be6f2daef3acbd306a94a83b41 Author: Karel Zak Date: Fri Feb 12 22:10:52 2010 +0100 tests: update fdisk tests Signed-off-by: Karel Zak tests/expected/fdisk/align-512-4K-63 | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) commit 99bdcd5fbded1d41c714223b608e6f1953561f39 Author: Karel Zak Date: Fri Feb 12 21:43:03 2010 +0100 fdisk: use more elegant way to count and check alignment Signed-off-by: Karel Zak fdisk/fdisk.c | 67 +++++++++++++++++++++++++++++---------------------------- 1 files changed, 34 insertions(+), 33 deletions(-) commit 1cb1641dde2a15c58cfd144158b93d84be0137b9 Author: Karel Zak Date: Fri Feb 12 21:42:46 2010 +0100 include: add min/max macros Signed-off-by: Karel Zak include/c.h | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) commit 4bc7b0e24d9560c7d58727f1d4d184df2c2ea884 Author: Karel Zak Date: Fri Feb 12 19:58:45 2010 +0100 mount: advise users to use "modprobe", not "insmod" Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=562394 Signed-off-by: Karel Zak mount/mount.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7929b548cc8ea8d4ec1ba8668954b79708195ad9 Author: Francesco Cosoleto Date: Fri Feb 12 18:51:29 2010 +0100 cfdisk: set '[New]' as default item on menu for non allocated space instead of '[Help]'. Signed-off-by: Francesco Cosoleto fdisk/cfdisk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 2a7c1f70a66e8e165d0fa2da21c781c970d0f5ee Author: Karel Zak Date: Fri Feb 12 12:43:07 2010 +0100 build-sys: add missing tests for libuuid and libblkid $ make checkconfig misc-utils/blkid.c : HAVE_TERMIO_H misc-utils/blkid.c : HAVE_TERMIOS_H shlibs/blkid/src/getsize.c : HAVE_FSTAT64 shlibs/blkid/src/llseek.c : HAVE_LLSEEK_PROTOTYPE shlibs/blkid/src/llseek.c : HAVE_LSEEK64_PROTOTYPE shlibs/uuid/src/gen_uuid.c : HAVE_SA_LEN*/ shlibs/uuid/src/gen_uuid.c : HAVE_SYS_SOCKET_H shlibs/uuid/src/gen_uuid.c : HAVE_SYS_SYSCALL_H Signed-off-by: Karel Zak configure.ac | 17 +++++++++++++++++ shlibs/uuid/src/gen_uuid.c | 2 +- 2 files changed, 18 insertions(+), 1 deletions(-) commit 06b1e27aaf053a43167f8bcf3b6943eff09f6ffb Author: Karel Zak Date: Fri Feb 12 10:32:34 2010 +0100 blkid: fix #ifdef HAVE_TERMIO[S]_H Signed-off-by: Karel Zak misc-utils/blkid.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) commit a4a1da09cd7b9468e516bceb7bd615c782b284f0 Author: Karel Zak Date: Fri Feb 12 10:21:05 2010 +0100 build-sys: remove duplicate #includes $ make checkincludes fsck/fsck.c: errno.h is included more than once. lib/canonicalize.c: string.h is included more than once. shlibs/blkid/src/blkidP.h: stdio.h is included more than once. shlibs/blkid/src/devname.c: string.h is included more than once. shlibs/blkid/src/devno.c: string.h is included more than once. Signed-off-by: Karel Zak fsck/fsck.c | 1 - lib/canonicalize.c | 1 - shlibs/blkid/src/blkidP.h | 1 - shlibs/blkid/src/devname.c | 1 - shlibs/blkid/src/devno.c | 1 - 5 files changed, 0 insertions(+), 5 deletions(-) commit ce7ca2aac313228fb89d44cd725512dd3c4efde0 Author: Karel Zak Date: Thu Feb 11 17:25:06 2010 +0100 docs: update TODO file Signed-off-by: Karel Zak TODO | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit aebb9522b78ded9cc00475b2dfc98813a0cbf202 Author: Karel Zak Date: Thu Feb 11 16:29:05 2010 +0100 cal: fix first day of the week calculation on BE systems This reverts commit dcb54fafb128ab41772ae217afc6a7612e2cc446, "cal: remove gcc-ism from nl_langinfo() call". The code: int wfd = (int)(intptr_t) nl_langinfo(_NL_TIME_WEEK_1STDAY); does not work on big-endian machines. The original solution based on union is better. Note that the "type punning" is not gcc-ism any more, it's allowed by C99 (6.5.2.3). Reported-by: Joseph Jezak Signed-off-by: Karel Zak misc-utils/cal.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit f4bf2458f608b639cfa5ff6f0bfe836bcdf81a9c Author: Francesco Cosoleto Date: Wed Feb 10 12:42:26 2010 +0100 cfdisk: set '[Quit]' as default menu item on first run instead of '[Bootable]'. Signed-off-by: Francesco Cosoleto fdisk/cfdisk.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 978ba3889c8ff3955daf13dd2874bb8f159b450c Author: Karel Zak Date: Thu Feb 11 13:54:06 2010 +0100 mount: warn users that mtab is read-only In repair mode the root filesystem is read-only and mtab file is not up to date. Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=427183 Signed-off-by: Karel Zak mount/fstab.c | 2 +- mount/fstab.h | 1 + mount/mount.c | 9 +++++++++ 3 files changed, 11 insertions(+), 1 deletions(-) commit a5445cd2e5e1f942384d4fbb4aa66eb7a46df311 Author: Karel Zak Date: Tue Feb 9 16:24:51 2010 +0100 tests: fix and update old fdisk tests Signed-off-by: Karel Zak tests/expected/fdisk/oddinput | 1 + tests/ts/fdisk/doslabel | 24 ++++++++++++------------ tests/ts/fdisk/oddinput | 2 +- tests/ts/fdisk/sunlabel | 16 ++++++++-------- 4 files changed, 22 insertions(+), 21 deletions(-) commit 5792255b542fe97c1fed77bbd1f8c0bfa7aea1db Author: Karel Zak Date: Tue Feb 9 15:47:32 2010 +0100 tests: add fdisk alignment tests Signed-off-by: Karel Zak tests/expected/fdisk/align-512-4K | 78 ++++++++++++++++++++ tests/expected/fdisk/align-512-4K-63 | 79 ++++++++++++++++++++ tests/expected/fdisk/align-512-4K-md | 99 +++++++++++++++++++++++++ tests/expected/fdisk/align-512-4K-topology | 78 ++++++++++++++++++++ tests/expected/fdisk/align-512-512 | 63 ++++++++++++++++ tests/expected/fdisk/align-512-512-topology | 74 +++++++++++++++++++ tests/functions.sh | 2 +- tests/ts/fdisk/align-512-4K | 91 +++++++++++++++++++++++ tests/ts/fdisk/align-512-4K-63 | 91 +++++++++++++++++++++++ tests/ts/fdisk/align-512-4K-md | 104 +++++++++++++++++++++++++++ tests/ts/fdisk/align-512-512 | 74 +++++++++++++++++++ tests/ts/fdisk/align-512-512-topology | 91 +++++++++++++++++++++++ 12 files changed, 923 insertions(+), 1 deletions(-) commit a8a86a1c5e13d64a668c6b4347addc61be24b54b Author: Karel Zak Date: Thu Feb 4 15:02:16 2010 +0100 fdisk: cleanup warnings * don't print: The number of cylinders for this disk is set to 12161. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) we really don't care about MS-DOS or extremely old LILO. * inform users that DOS-compatible mode is bad and deprecated thing (It's difficult to use 2048 sectors grain or 4KiB sectors or alignment_offset in DOS mode where all is based on cylinders...) * don't check for cylinders boundary in non-DOS mode * inform about sector and I/O sizes Signed-off-by: Karel Zak fdisk/fdisk.c | 60 +++++++++++++++++++++----------------------------------- 1 files changed, 23 insertions(+), 37 deletions(-) commit 7ded5afc571b39ba15cf9f649506a986b00c1af1 Author: Karel Zak Date: Tue Feb 9 11:06:42 2010 +0100 fdisk: fix default first sector The previous release 2.17 introduces aligned defaults for the first and last sectors on the partition. Unfortunately, there is endless loop when the code looks for first unused aligned sector. Signed-off-by: Karel Zak fdisk/fdisk.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) commit 40c7aaf3958c28b38772f38ee245b20afe3c1373 Author: Karel Zak Date: Thu Feb 4 13:43:37 2010 +0100 fdisk: cleanup alignment, default to 1MiB offset * add heuristic to detect that the device does not provide topology information. We can use topology if: - alignment_offset is not 0 - or optimal_io_size is not 0 - or minimal_io_size is not power of 2 * default to 1MiB offset for the start of the first partition if topology is unknown. This (2048 512-byte sectors) is Windows Vista default. * use optimal_io_size, minimal_io_size or 1MiB as a grain for partitions alignment Note that this all is used when DOS-compatible mode is disabled. Signed-off-by: Karel Zak fdisk/fdisk.c | 87 +++++++++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 66 insertions(+), 21 deletions(-) commit 1d07e336cadc6963f3d46f1db9105cda0f210321 Author: Karel Zak Date: Tue Feb 9 10:32:29 2010 +0100 fdisk: fix check_alignment() The old version of check_alignment() does not work with extended partitions. Signed-off-by: Karel Zak fdisk/fdisk.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 2b9e638a0f2bd869e33ecdadab442c0a1591ecb0 Author: Karel Zak Date: Mon Feb 8 17:45:42 2010 +0100 fdisk: don't check alignment_offset against geometry The alignment_offset is compensation for DOS compatible partitioning. It usually matches with disk geometry (e.g. 63 sectors), but the offset is also exported from phy.disks to RAIDs there the geometry don't match with the offset. So.. don't print unnecessary warning. Signed-off-by: Karel Zak fdisk/fdisk.c | 15 +++------------ 1 files changed, 3 insertions(+), 12 deletions(-) commit 88923b088948446286290651abaca31464f884a8 Author: Karel Zak Date: Thu Feb 4 22:19:38 2010 +0100 libblkid: don't return error on empty files Currently, the library does not allow to initialize blkid_probe if the file (or block device) is empty. The empty file is reported as an error. That's wrong. The empty file should be interpreted as a file without any FS or PT. It means that blkid_do_{probe,safeprobe,fullprobe}() have to return 1 ("nothing"). Reported-by: Christoph Hellwig Signed-off-by: Karel Zak shlibs/blkid/src/partitions/partitions.c | 2 +- shlibs/blkid/src/probe.c | 11 ++++++++--- shlibs/blkid/src/superblocks/superblocks.c | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) commit 435c73ec71b6f66269f71dac94c05e1c362a7cd8 Author: Karel Zak Date: Thu Feb 4 21:47:47 2010 +0100 docs: update TODO file Signed-off-by: Karel Zak TODO | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit 269c1a2a6407a20e52aea4f4814d12655ff06e09 Author: Karel Zak Date: Thu Feb 4 21:18:34 2010 +0100 wipefs: ignore devices with partition table Signed-off-by: Karel Zak misc-utils/wipefs.c | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) commit cdfb1e88228c10c28f8bfe0f4b0ff1b3b06d1ed4 Author: Karel Zak Date: Tue Feb 2 21:24:52 2010 +0100 chrt: add --reset-on-fork This new option allows to set SCHED_RESET_ON_FORK flag for FIFO and RR policies. Example: $ chrt --fifo --reset-on-fork 1 /bin/bash $ schedutils/chrt --pid $$ pid 31579's current scheduling policy: SCHED_FIFO|SCHED_RESET_ON_FORK pid 31579's current scheduling priority: 1 Signed-off-by: Karel Zak schedutils/chrt.1 | 14 ++++++++++++++ schedutils/chrt.c | 18 ++++++++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) commit 0fefbedc72f5b8399be50ae0aad8eb9cb3b630a3 Author: Adrian Knoth Date: Tue Feb 2 17:18:29 2010 +0100 chrt: add support for SCHED_RESET_ON_FORK From 9262c9832134f8a33ac2ea2854dc6d20acc712d1 Mon Sep 17 00:00:00 2001 From: Adrian Knoth Date: Tue, 2 Feb 2010 16:57:23 +0100 Subject: [PATCH] Add support for SCHED_RESET_ON_FORK to chrt SCHED_RESET_ON_FORK has been added in 2.6.31. If a thread has this flag set, chrt reports "unknown" policy, which is confusing. The patch adds support for this new flag. It will (can) only be applied to SCHED_FIFO or SCHED_RR, so there's no need to catch the other scheduling policies. Signed-off-by: Adrian Knoth schedutils/chrt.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) commit a39ff47a185f23b370f8f5b535dfa69b263e22e3 Author: Karel Zak Date: Tue Feb 2 16:01:28 2010 +0100 libblkid: minor fixes in befs.c The library does not reset the probing result (e.g. LABEL, VERSION) when the probing function failed (return value != 0). We have to be absolutely sure that the FS has been properly detected before we set LABEL or VERSION or so. Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/befs.c | 24 ++++++++++++++++-------- 1 files changed, 16 insertions(+), 8 deletions(-) commit 2a986d6a5372710f6f6f287e00809e915359d545 Author: Karel Zak Date: Tue Feb 2 15:49:35 2010 +0100 tests: add BeFS test image Signed-off-by: Karel Zak tests/expected/blkid/low-probe-befs | 7 +++++++ tests/ts/blkid/images-fs/befs.img.bz2 | Bin 0 -> 899614 bytes 2 files changed, 7 insertions(+), 0 deletions(-) commit b39ee04ed85a94b5540a99471421a0703b847f7a Author: Jeroen Oortwijn Date: Fri Jan 29 23:20:49 2010 +0100 libblkid: Add probing function for BeFS Add probing function for the Be File System to libblkid. It sets LABEL, VERSION and UUID. But UUID is only set if the be:volume_id attribute is found in the small_data area of the i-node of the root directory. [kzak@redhat.com: - add .minsz = 1024*1440 to avoid BeFS probing on very small devices] Signed-off-by: Jeroen Oortwijn Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/befs.c | 183 ++++++++++++++++++++++++++++++++++- 1 files changed, 182 insertions(+), 1 deletions(-) commit 5f9fb168f3b710e4ff17139182112e2594fdb583 Author: Jeroen Oortwijn Date: Thu Jan 14 19:01:36 2010 +0100 libblkid: Add initial support for BeFS detection Add initial support for detection of the Be File System to libblkid. Signed-off-by: Jeroen Oortwijn shlibs/blkid/src/superblocks/Makefile.am | 3 ++- shlibs/blkid/src/superblocks/befs.c | 18 ++++++++++++++++++ shlibs/blkid/src/superblocks/superblocks.c | 3 ++- shlibs/blkid/src/superblocks/superblocks.h | 1 + 4 files changed, 23 insertions(+), 2 deletions(-) commit bb4cb69df2a7fba3098f073aa4b758a8011d826f Author: Mike Frysinger Date: Sun Jan 24 22:36:55 2010 -0500 fsck/mkfs/mount: unify default search paths for helpers Rather than each fs util having its own search policy, unify the paths in configure and allow them to be tweaked by downstream. In the process, drop the /etc paths as no one has ever really used these. [kzak@redhat.com: - backport to autoconf < 2.64 (remove AS_{SET,IF,CASE,APPEND} macros)] Signed-off-by: Mike Frysinger Signed-off-by: Karel Zak configure.ac | 28 ++++++++++ disk-utils/mkfs.c | 2 +- fsck/fsck.c | 2 +- mount/mount.c | 149 +++++++++++++++++++++++++++++------------------------ 4 files changed, 112 insertions(+), 69 deletions(-) commit 49361dc4dca0a9079ee57a2a0d8833aabd93277b Author: Karel Zak Date: Mon Feb 1 14:23:55 2010 +0100 libblkid: add blkid_probe_all_removable() The libblkid probing is based on devices from /proc/partitions by default. This file usually does not contain removable devices (e.g. CDROMs) and this kind of devices are invisible for libblkid. The blkid_probe_all_removable() function adds removable block devices to blkid cache. The probing is based on information from the /sys directory. The devices which were detected by this function won't be written to blkid.tab cache file. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=533874 Signed-off-by: Karel Zak include/pathnames.h | 2 + shlibs/blkid/src/blkid.h.in | 1 + shlibs/blkid/src/blkid.sym | 8 +++ shlibs/blkid/src/blkidP.h | 1 + shlibs/blkid/src/devname.c | 110 ++++++++++++++++++++++++++++++++++++++++--- shlibs/blkid/src/save.c | 2 +- 6 files changed, 116 insertions(+), 8 deletions(-) commit d96648b822a69e88e9597315a03ccb28bf55267a Author: Karel Zak Date: Mon Feb 1 13:07:17 2010 +0100 libblkid: add blkid_openat(), cleanup blkid_fstatat() Signed-off-by: Karel Zak shlibs/blkid/src/blkidP.h | 2 ++ shlibs/blkid/src/devno.c | 24 ++++++++++++++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) commit f80915d220c4beae54c5001c348d44b34f3cc541 Author: Karel Zak Date: Thu Jan 28 23:34:05 2010 +0100 fdisk: use "optimal I/O size" in warnings Signed-off-by: Karel Zak fdisk/fdisk.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 69a6d78a0ef569ecc75e74c17b216580c46846e4 Author: Karel Zak Date: Thu Jan 28 19:42:04 2010 +0100 fdisk: use optimal_io_size * rename the minimum_io_size variable to io_size * use blkid_topology_get_optimal_io_size() for io_size initialization * use blkid_topology_get_minimum_io_size() as a fallback solution for io_size initialization Signed-off-by: Karel Zak fdisk/fdisk.c | 24 +++++++++++++----------- 1 files changed, 13 insertions(+), 11 deletions(-) commit 8bee984a93cdf62b3cc84bb9fbfe023b6f554818 Author: Karel Zak Date: Thu Jan 28 16:25:52 2010 +0100 login: check that after tty reopen we still work with a terminal * the login code assumes that stdin is a terminal, it's better to check (by isatty()) that after tty reopen we still have a terminal * this patch also removes very old obscure fallback for situations where ttyname() returns nothing (then ttyn = "/dev/tty??"). I guess that the fake string was originally for utmp records or so. Currently (in last 10 years...) code requires that the tty name is a real open-able file. It means the fake tty name is completely useless. Reported-by: Yann Droneaud Signed-off-by: Karel Zak login-utils/login.c | 22 +++++++++++++--------- 1 files changed, 13 insertions(+), 9 deletions(-) commit 453b36147bcd58962fade1cac76ddebecfa2caf6 Author: Yann Droneaud Date: Mon Jan 25 23:12:09 2010 +0100 login: use fd instead of pathname for update tty's owner and permissions To avoid some nasty races, use the only true tty: the one already opened, don't use the path. Signed-off-by: Yann Droneaud login-utils/login.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit f00aae6d7b6690e030a6596a6fcf9be6f260b8c5 Author: Karel Zak Date: Wed Jan 27 18:16:06 2010 +0100 blkid: add newline when only one value is printed Signed-off-by: Karel Zak misc-utils/blkid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 75cb940e23a852c81044117753222d163bb3355f Author: Karel Zak Date: Wed Jan 27 15:01:13 2010 +0100 libblkid: more robust minix probing Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/minix.c | 70 ++++++++++++++++++++++++++++++++- 1 files changed, 67 insertions(+), 3 deletions(-) commit a43c6fc90de687d0539c6bde74fca4222e58ca4e Author: Karel Zak Date: Wed Jan 27 13:31:16 2010 +0100 login: don't link PAMed version with libcrypt The login, chsh and chfn utils don't need to be linked against libcrypt. The libcrypt library is necessary only when login utils are not liked with PAM. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=559196 Signed-off-by: Karel Zak login-utils/Makefile.am | 32 ++++++++++++++++---------------- 1 files changed, 16 insertions(+), 16 deletions(-) commit f609e92e497a513ed759dc4166a372fb22d3f995 Author: Matthias König Date: Tue Jan 12 13:58:38 2010 +0100 cfdisk: use libblkid Let cfdisk use the internal libblkid if available to get the filesystem type and label. [kzak@redhat.com: - remove old FS probing code from cfdisk - remove "Linux" prefix for filesystem names - enlarge fstype field in partition_info - restrict probing area by partition size] Signed-off-by: Matthias König Signed-off-by: Karel Zak fdisk/Makefile.am | 23 +++--- fdisk/cfdisk.c | 232 +++++++++-------------------------------------------- 2 files changed, 49 insertions(+), 206 deletions(-) commit 701094844451477c68d9503a5d4926f6493d9ddd Author: Jan Kara Date: Wed Jan 13 18:07:33 2010 +0100 mount: update documentation about barrier mount options Signed-off-by: Jan Kara mount/mount.8 | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) commit ed5de10ed786c6887c4b6ecb138ded4be7149af6 Author: Vladimir Brednikov Date: Mon Jan 11 00:01:26 2010 +0300 namei: fix man page formatting misc-utils/namei.1 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 10f494e1a0ac09e144a42fcaeb72663674eb30fc Author: Matthias König Date: Tue Jan 12 13:58:28 2010 +0100 libblkid: fix segfault in drdb Check if blkid_probe_get_buffer() returns NULL to avoid dereferencing a zero pointer resulting in a segfault. Signed-off-by: Matthias König shlibs/blkid/src/superblocks/drbd.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit cc62a975a21629d66557ee18ea9f4354b73e9e7f Author: Karel Zak Date: Wed Jan 20 23:51:13 2010 +0100 libblkid: don't probe for GPT and Unixware PT on floppies Signed-off-by: Karel Zak shlibs/blkid/src/partitions/gpt.c | 1 + shlibs/blkid/src/partitions/partitions.c | 3 +++ shlibs/blkid/src/partitions/unixware.c | 1 + 3 files changed, 5 insertions(+), 0 deletions(-) commit 2b09166ddac2cd671ca28111a25e342304d6223f Author: Karel Zak Date: Wed Jan 20 23:30:20 2010 +0100 libblkid: add sanity checks for FAT to DOS PT parser Signed-off-by: Karel Zak shlibs/blkid/src/Makefile.am | 2 +- shlibs/blkid/src/fat.h | 90 +++++++++++++++++++++++++++++++++++ shlibs/blkid/src/partitions/dos.c | 25 +++++++-- shlibs/blkid/src/superblocks/vfat.c | 67 ++------------------------ 4 files changed, 114 insertions(+), 70 deletions(-) commit e3d8933aaa1786ed78f06e5c9792d2167801d48e Author: Karel Zak Date: Wed Jan 20 21:18:15 2010 +0100 blkid: probe for PT, don't probe for FS on small whole-disks * blkid(8) in low-level mode probes for PT now (blkid is replacement for devkit-disks-part-id) * add ID_PART_TABLE_TYPE= to blkid(8) udev output * don't probe for FS/RAIDs on small devices when PT is detected Signed-off-by: Karel Zak misc-utils/blkid.c | 40 +++++++++++++++++++++++++++++++++++----- 1 files changed, 35 insertions(+), 5 deletions(-) commit 15a8fb429ce7d07d19a7f0044a85f0919fe57b27 Author: Karel Zak Date: Wed Jan 20 20:01:59 2010 +0100 libblkid: rewrite blkid_probe_get_buffer() The library does not use any buffer with fixed size any more. The new version calls read() for necessary data only. Signed-off-by: Karel Zak shlibs/blkid/src/blkidP.h | 21 ++--- shlibs/blkid/src/probe.c | 189 +++++++++++------------------------ shlibs/blkid/src/superblocks/vfat.c | 6 +- 3 files changed, 69 insertions(+), 147 deletions(-) commit 4ccbf1388ecbff83f578c3052b437d0aab74cb90 Author: Karel Zak Date: Tue Jan 19 16:46:08 2010 +0100 tests: update FS test images Signed-off-by: Karel Zak tests/ts/blkid/images-fs/gfs2.img.bz2 | Bin 121 -> 130 bytes tests/ts/blkid/images-fs/jbd.img.bz2 | Bin 205 -> 214 bytes tests/ts/blkid/images-fs/ocfs2.img.bz2 | Bin 1002 -> 1070 bytes tests/ts/blkid/images-fs/reiser4.img.bz2 | Bin 366 -> 372 bytes tests/ts/blkid/images-fs/swap0.img.bz2 | Bin 72 -> 75 bytes tests/ts/blkid/images-fs/swap1.img.bz2 | Bin 120 -> 121 bytes tests/ts/blkid/images-fs/zfs.img.bz2 | Bin 10869 -> 10912 bytes 7 files changed, 0 insertions(+), 0 deletions(-) commit 5c5cc18b8439fee874dd54603b0ca70f4616f2ba Author: Karel Zak Date: Tue Jan 19 16:23:14 2010 +0100 libblkid: add minimal sizes for OCFS and GFS Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/gfs.c | 2 ++ shlibs/blkid/src/superblocks/ocfs.c | 3 +++ 2 files changed, 5 insertions(+), 0 deletions(-) commit a47b2ddd0ab6600b53f30b0eaeb67a0d8b3e8668 Author: Karel Zak Date: Tue Jan 19 13:45:51 2010 +0100 libblkid: don't call read() per FAT dir-entry on large disks Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/vfat.c | 45 ++++++++++++++++++++++++++++------- 1 files changed, 36 insertions(+), 9 deletions(-) commit d0465c3c00f75d7247cbbf02c1b3ff879c3f7bd3 Author: Karel Zak Date: Tue Jan 19 13:43:39 2010 +0100 libblkid: read whole SB buffer (69kB) on large disks - on large disks read whole SB buffer - new blkid_probe_is_tiny() version based on flags Signed-off-by: Karel Zak shlibs/blkid/src/blkidP.h | 3 +++ shlibs/blkid/src/probe.c | 26 ++++++++++++++++++-------- 2 files changed, 21 insertions(+), 8 deletions(-) commit 8c2b156e5a0893a0a82af82c50205b0a78352151 Author: Karel Zak Date: Tue Jan 19 01:12:06 2010 +0100 libblkid: set minimal size for jfs, reiser, swap and zfs .. and don't probe for swap or ext. journal on tiny disks. Signed-off-by: Karel Zak shlibs/blkid/src/blkidP.h | 1 + shlibs/blkid/src/superblocks/jfs.c | 1 + shlibs/blkid/src/superblocks/reiserfs.c | 2 ++ shlibs/blkid/src/superblocks/superblocks.c | 9 +++++++-- shlibs/blkid/src/superblocks/swap.c | 2 ++ shlibs/blkid/src/superblocks/zfs.c | 1 + 6 files changed, 14 insertions(+), 2 deletions(-) commit a67bb3bff5dc51400294fdfb4c77c0827afd5d14 Author: Linus Torvalds Date: Tue Jan 19 00:09:21 2010 +0100 libblkid: disable read-ahead when probing device files Read-ahead doesn't work very well on device probing, and can hurt a lot when we do essentially random accesses on very slow devices. So disable it if possible. [kzak@redhat.com: - add posix_fadvise() configure test] Signed-off-by: Linus Torvalds Signed-off-by: Karel Zak configure.ac | 1 + shlibs/blkid/src/probe.c | 4 ++++ 2 files changed, 5 insertions(+), 0 deletions(-) commit 45835b734574264fcd45d9e6c1736061f6f7c200 Author: Karel Zak Date: Mon Jan 18 23:58:46 2010 +0100 libblkid: call read() per FAT root dir entry Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/vfat.c | 50 +++++++++++++++++++---------------- 1 files changed, 27 insertions(+), 23 deletions(-) commit 49b1508ee28577deea76654de5c27401f99c36f8 Author: Karel Zak Date: Mon Jan 18 16:49:38 2010 +0100 tests: fix RAIDs tests - test images was too small (limit is 1474560 bytes) Signed-off-by: Karel Zak tests/ts/blkid/images-fs/adaptec-raid.img.bz2 | Bin 250 -> 256 bytes tests/ts/blkid/images-fs/ddf-raid.img.bz2 | Bin 534 -> 535 bytes tests/ts/blkid/images-fs/hpt37x-raid.img.bz2 | Bin 116 -> 123 bytes tests/ts/blkid/images-fs/isw-raid.img.bz2 | Bin 252 -> 251 bytes tests/ts/blkid/images-fs/jmicron-raid.img.bz2 | Bin 158 -> 159 bytes tests/ts/blkid/images-fs/lvm2.img.bz2 | Bin 173 -> 177 bytes tests/ts/blkid/images-fs/nvidia-raid.img.bz2 | Bin 170 -> 175 bytes tests/ts/blkid/images-fs/promise-raid.img.bz2 | Bin 781 -> 784 bytes tests/ts/blkid/images-fs/romfs.img.bz2 | Bin 105 -> 115 bytes tests/ts/blkid/images-fs/silicon-raid.img.bz2 | Bin 321 -> 328 bytes tests/ts/blkid/images-fs/via-raid.img.bz2 | Bin 97 -> 99 bytes tests/ts/blkid/images-fs/vmfs_volume.img.bz2 | Bin 276 -> 287 bytes 12 files changed, 0 insertions(+), 0 deletions(-) commit 1ca17f911a4a039941185077b285378129eafb09 Author: Karel Zak Date: Mon Jan 18 15:43:25 2010 +0100 libblkid: read() optimization for small devices - don't read the begin (69kB) of the device by one large read() - fill in the SB buffer dynamically - use extra buffer for FATs root dir entries (FAT FS label) on small devices to avoid large reads Detect FAT12 on 1.4MB device (number of bytes): Old version: $ strace -e read blkid -p floppy.img 2>&1 | \ awk -F ' = ' 'BEGIN {x=0} /read/ && !/.*ELF/ {x += $2} END { print x }' 73292 New version: $ strace -e read blkid -p floppy.img 2>&1 | \ awk -F ' = ' 'BEGIN {x=0} /read/ && !/.*ELF/ {x += $2} END { print x }' 8192 Reported-by: Linus Torvalds Signed-off-by: Karel Zak shlibs/blkid/src/blkidP.h | 3 +- shlibs/blkid/src/probe.c | 149 +++++++++++++++++++++++------------ shlibs/blkid/src/superblocks/vfat.c | 9 +- 3 files changed, 106 insertions(+), 55 deletions(-) commit 108013b4178a6ad992d4c86fffb0d9351b8c02c5 Author: Karel Zak Date: Mon Jan 18 12:50:36 2010 +0100 libblkid: restrict RAID/FS proving for small devices (1.4MiB) - don't ignore @size in blkid_probe_set_device() - ignore extremely small devices (<= 1024 bytes, e.g. extended partitions) - don't use safe probing for small devices - don't probe for RAIDs on small devices Signed-off-by: Karel Zak shlibs/blkid/src/blkidP.h | 4 ++- shlibs/blkid/src/probe.c | 37 ++++++++++++++++++++++++---- shlibs/blkid/src/superblocks/superblocks.c | 27 +++++++++++++++++--- 3 files changed, 58 insertions(+), 10 deletions(-) commit 2c4b9254e911d18196c7bec8b4c84c2e65b552ea Author: Karel Zak Date: Wed Jan 13 10:51:57 2010 +0100 fdisk: don't include scsi.h The fdisksunlabel.c header file is unnecessary for fdisk/fdisksunlabel.h. Reported-by: Thomas Stalder Signed-off-by: Karel Zak configure.ac | 1 - fdisk/fdisksunlabel.c | 5 ----- 2 files changed, 0 insertions(+), 6 deletions(-) commit a830e5b390f9f7de41b5a646baac87fe7d388904 Author: Karel Zak Date: Fri Jan 8 14:15:13 2010 +0100 update TODO file Signed-off-by: Karel Zak TODO | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-)