]> git.ipfire.org Git - thirdparty/util-linux.git/commit
blockdev: Remove the --setbsz (set blocksize) option which has never worked.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 8 Oct 2013 08:54:10 +0000 (09:54 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 8 Oct 2013 13:48:00 +0000 (15:48 +0200)
commitb1555acc2f709ac4f3b1e6c686a11cadb7b04f72
tree1c12f289edbea1f89822456628cae1c5244327c4
parent5d324c6b94876e067876b2c924796e543a0f654e
blockdev: Remove the --setbsz (set blocksize) option which has never worked.

This option has never worked.  If you try setting the block size on a
block device, and then read it using --getbsz, you will see that the
block size never changes.

The reason for this is because the block size is specific to the
current file descriptor opening the block device, so the change of
block size only persists for as long as blockdev has the device open,
and is lost once blockdev exits.

Also the block size is not really used anywhere.  Filesystems, for
example, have their own idea of block size and ignore this setting
completely.

(Thanks Masayoshi Mizuma for diagnosing the problem)

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
bash-completion/blockdev
disk-utils/blockdev.8
disk-utils/blockdev.c