Changes between v2.17 and v2.17.1-rc1 ------------------------------------- commit 0ddda30f82f62ce89e070abfad43fc1e6f9bd451 Author: Karel Zak Date: Tue Feb 16 11:07:47 2010 +0100 build-sys: release++ (v2.17.1-rc1) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) commit 03c7f31d9888088a9399ae0f01f91381fbefd43f Author: Karel Zak Date: Tue Feb 16 10:59:00 2010 +0100 docs: add v2.17.1 ReleaseNotes Signed-off-by: Karel Zak docs/v2.17.1-ReleaseNotes | 100 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 100 insertions(+), 0 deletions(-) commit ebadc21773d9b84e68d1f9a5cd9e4fb4f086f888 Author: Karel Zak Date: Tue Feb 16 10:29:37 2010 +0100 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit 4ed3979fc2d88f27b11a80828e0bccd48c1b1c9b Author: Karel Zak Date: Tue Feb 16 10:27:49 2010 +0100 po: merge changes Signed-off-by: Karel Zak po/ca.po | 1080 +++++++++++++------------ po/cs.po | 1113 +++++++++++++------------ po/da.po | 1079 +++++++++++++------------ po/de.po | 1074 +++++++++++++------------ po/es.po | 1080 +++++++++++++------------ po/et.po | 1083 +++++++++++++------------ po/eu.po | 1000 +++++++++++----------- po/fi.po | 1079 +++++++++++++------------ po/fr.po | 1088 +++++++++++++------------ po/hu.po | 1079 +++++++++++++------------ po/id.po | 2244 ++++++++++++++++++++++++++++++-------------------- po/it.po | 1057 ++++++++++++------------ po/ja.po | 1077 +++++++++++++------------ po/nl.po | 1078 +++++++++++++------------ po/pl.po | 1922 +++++++++++++++++++++++++------------------ po/pt_BR.po | 1085 +++++++++++++------------ po/ru.po | 1079 +++++++++++++------------ po/sl.po | 1081 +++++++++++++------------ po/sv.po | 1082 +++++++++++++------------ po/tr.po | 1082 +++++++++++++------------ po/uk.po | 1077 +++++++++++++------------ po/util-linux-ng.pot | 995 +++++++++++----------- po/vi.po | 2014 ++++++++++++++++++++++++++------------------- po/zh_CN.po | 995 +++++++++++----------- 24 files changed, 15238 insertions(+), 13385 deletions(-) commit 9428f1b6bc12851ef92f2cc4ba9012c81924243a Author: Clytie Siddall Date: Tue Feb 16 10:21:43 2010 +0100 po: update vi.po (from translationproject.org) po/vi.po | 1193 +++++++++++++++++++++++--------------------------------------- 1 files changed, 448 insertions(+), 745 deletions(-) commit cecbd9a23142f8c4cd98a33807f969ecb4da60c5 Author: Jakub Bogusz Date: Tue Feb 16 10:21:43 2010 +0100 po: update pl.po (from translationproject.org) po/pl.po | 1365 ++++++++++++++++++++++++++++---------------------------------- 1 files changed, 612 insertions(+), 753 deletions(-) commit 450bf9a85969786915771ac14e1efb9ba4bff4b6 Author: Arif E. Nugroho Date: Tue Feb 16 10:21:43 2010 +0100 po: update id.po (from translationproject.org) po/id.po | 1400 +++++++++++++++++++++++--------------------------------------- 1 files changed, 514 insertions(+), 886 deletions(-) commit 452107fa90c52acd0e7adf82d91c45f8bc3c5d14 Author: Karel Zak Date: Tue Feb 16 10:12:43 2010 +0100 tests: update fdisk tests (add whitespaces) ... because git has removed whitespaces after rebase to stable/v2.17 branch. Signed-off-by: Karel Zak tests/expected/fdisk/align-512-4K | 12 ++++++------ tests/expected/fdisk/align-512-4K-63 | 12 ++++++------ tests/expected/fdisk/align-512-4K-md | 10 +++++----- tests/expected/fdisk/align-512-512 | 14 +++++++------- tests/expected/fdisk/align-512-512-topology | 12 ++++++------ 5 files changed, 30 insertions(+), 30 deletions(-) commit fd34358a6086b1469ad1e7ecd67ec0f0b87fa874 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 e06f2a7b9a7b331c59aa02f633d3592d12afb3d0 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 0992af4b3865530f732df722c5c6370c53916a44 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 3bceed942a0bd982c7f49cf721a12b123d6de87f 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 293ee0f0231e3a58dbb30aa846eccb161f093717 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 faf27705fe74dc5bbe419efcf109a808b8d1d164 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 a898f14ccca0ec06a866ba4d20c1e26cb73f2356 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 fdc0ce8fdb1beef8225ad01d18d2367ef9d22963 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 27399be551eeb3e5b5dd53eb2f4a0fd9d2b6ed8d 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 45ccee537ab3fc96b6e6125752efce29f13c9cae 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 a3e5ea3047b85b73142df4bd8c76ff14ca61b459 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 3e11397aba1586df10a57ea30b598aca4dddc7b2 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 d11be31b384024e1c73d318c2e406531fcc49f18 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 7405aa1c2ffd5005c914b055fc0bad120210c032 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 868820c8b8e7da51bf7a0bfb2308ffbe06301438 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 7620e79cad4db56d970a1badb551053de74472b6 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 c3e3134eb7a252706f1efe53f6f8b5e4309a79e2 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 ad83f970362c96cdcaa237780212480e6925f919 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 7fdb96ed05b1e1c428392b5bea367ab53f6a241e 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 2d8d88b539b5e5bbca013aabb84a2667c61000d7 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 ef53439815c7ff18e5d916d81f357ce2de9d2089 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 441ea22b3704615ac72172649767091ac7e58555 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 342ed1399f5c4a8257e41726e1a2600a9496aeb6 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 1a2416c6ed10fcbfb48283cae7e68ee7c7f1c43d 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 907eb3b7adf16c0a4f11a567d440852dd504e5cd 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 f8798c848125a412593d600a48854bee04d65a8e 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 8c9cd53708c0aca63d9a8f507cb2eddb0478bcc7 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 b97560acd498a40eb6914132155a50d78f002d94 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 5658f51fcc1609db869582e3ac3c690dd4e06104 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 643c03cb564d36cbd3bd8bd7366555e30710422e 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 73e347ec0ed1b2d6aec08dcf9c3841796171cea7 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 4fc8d6fbb7a2319a76119089ad5878f89d699b29 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 261671a59af7111a3725a7774b24b77fbf647128 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 c863bb77d563fad7f66d341dc208cd272329615f 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 2e9bd0f301fa022ca1f584d8672ddcae6100d1ed 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 864d161e6310bfa9779e318777fdf19c3b500586 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 43b9d5cfcbd0daa539f65b8ceb5e0bb8a4027a97 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 b73eee844b742bbac0fd48b7ad256e3ec4f1762f 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 74f2e46df718c7a3ef9e65b785d4022968218bb8 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 d3480fb01800abbaef7f3e8308a5d393c24c10cc 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 4bf4bdb2c2b22c6839e49197fa7d83fda0afdf7e 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 fdbabea57a1fce77febfb2ac6bcbfed83e0427f8 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 9c6c44983f508d241313115cdeb071b8d7e33d2a 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 eac11385eba87ee63bbac609969edc9a2bab9f34 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 befe1bd694bf958602fd0c4babb3ece8c24f635d 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 a0eec724b1989e22e23fc001f8f1ba146235f71e 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 66a0fbdc4ced024757027410fa4e9d52e94b32d0 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 07684fc3b1802e092ea60786418c9b75d99cb435 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 2f9e93973a3d8f90950c605a936ac362be78ed4c 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 22c08d2b73750edb6a01258682b95023e762bf41 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 a9eec4da16cc053c10594a7d3c554d7fb78fcd3c 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 490340188b929188d1d877bd1ae3f25aa06cd026 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 a3e8c8782a6211d843e86fea10cdb678a2ee6fd0 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(-)