summaryrefslogtreecommitdiffstats
path: root/disk-utils/blockdev.8
diff options
context:
space:
mode:
authorRichard W.M. Jones2013-10-08 10:54:10 +0200
committerKarel Zak2013-10-08 15:48:00 +0200
commitb1555acc2f709ac4f3b1e6c686a11cadb7b04f72 (patch)
tree1c12f289edbea1f89822456628cae1c5244327c4 /disk-utils/blockdev.8
parentvarious: fix mixing declarations and code compiler warnings [smatch] (diff)
downloadkernel-qcow2-util-linux-b1555acc2f709ac4f3b1e6c686a11cadb7b04f72.tar.gz
kernel-qcow2-util-linux-b1555acc2f709ac4f3b1e6c686a11cadb7b04f72.tar.xz
kernel-qcow2-util-linux-b1555acc2f709ac4f3b1e6c686a11cadb7b04f72.zip
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>
Diffstat (limited to 'disk-utils/blockdev.8')
-rw-r--r--disk-utils/blockdev.82
1 files changed, 0 insertions, 2 deletions
diff --git a/disk-utils/blockdev.8 b/disk-utils/blockdev.8
index 2b3d64c88..6ab43249f 100644
--- a/disk-utils/blockdev.8
+++ b/disk-utils/blockdev.8
@@ -67,8 +67,6 @@ Print sectorsize in bytes - usually 512.
Get size in 512-byte sectors.
.IP "\fB\-\-rereadpt\fP"
Reread partition table
-.IP "\fB\-\-setbsz\fP \fIbytes\fP"
-Set blocksize.
.IP "\fB\-\-setfra\fP \fIsectors\fP"
Set filesystem readahead (same like --setra on 2.6 kernels).
.IP "\fB\-\-setra\fP \fIsectors\fP"