On Tue, Jan 19, 2010 at 10:14:09AM -0800, Linus Torvalds wrote: > (Btw, you could just remove the whole BLKID_SB_BUFSIZ logic in the first Done. Now the code calls read() for necessary data only. Results: whole-disk: $ LD_LIBRARY_PATH=shlibs/blkid/src/.libs \ strace -s -T8 -e read ./misc-utils/.libs/blkid -p -o udev fat12-linus.img read(3, ""..., 832) = 832 read(3, ""..., 832) = 832 read(3, ""..., 832) = 832 read(3, ""..., 1024) = 1024 ID_PART_TABLE_TYPE=dos ... 1024 bytes partition: $ LD_LIBRARY_PATH=shlibs/blkid/src/.libs \ strace -s -T8 -e read ./misc-utils/.libs/blkid -p -o udev -O 16384 fat12-linus.img read(3, ""..., 832) = 832 read(3, ""..., 832) = 832 read(3, ""..., 832) = 832 read(3, ""..., 1024) = 1024 read(3, ""..., 32) = 32 ID_FS_SEC_TYPE=msdos ID_FS_VERSION=FAT12 ID_FS_TYPE=vfat ID_FS_USAGE=filesystem ... 1056 bytes For normal large disks where we probe for RAIDs and all filesystems it's ~ 30kB. Karel -- Karel Zak <kzak@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html