0b5e55
From 7ab32ae64d05f018c171ba1525bc337805d84391 Mon Sep 17 00:00:00 2001
0b5e55
From: Karel Zak <kzak@redhat.com>
0b5e55
Date: Fri, 11 Oct 2013 11:16:23 +0200
0b5e55
Subject: [PATCH] blockdev: add note about --setbsz usability
0b5e55
0b5e55
Signed-off-by: Karel Zak <kzak@redhat.com>
0b5e55
---
0b5e55
 disk-utils/blockdev.8 | 4 +++-
0b5e55
 disk-utils/blockdev.c | 2 +-
0b5e55
 2 files changed, 4 insertions(+), 2 deletions(-)
0b5e55
0b5e55
diff --git a/disk-utils/blockdev.8 b/disk-utils/blockdev.8
0b5e55
index 2b3d64c..f4282da 100644
0b5e55
--- a/disk-utils/blockdev.8
0b5e55
+++ b/disk-utils/blockdev.8
0b5e55
@@ -68,7 +68,9 @@ Get size in 512-byte sectors.
0b5e55
 .IP "\fB\-\-rereadpt\fP"
0b5e55
 Reread partition table
0b5e55
 .IP "\fB\-\-setbsz\fP \fIbytes\fP"
0b5e55
-Set blocksize.
0b5e55
+Set blocksize. Note that the block size is specific to the current file
0b5e55
+descriptor opening the block device, so the change of block size only persists
0b5e55
+for as long as blockdev has the device open, and is lost once blockdev exits.
0b5e55
 .IP "\fB\-\-setfra\fP \fIsectors\fP"
0b5e55
 Set filesystem readahead (same like --setra on 2.6 kernels).
0b5e55
 .IP "\fB\-\-setra\fP \fIsectors\fP"
0b5e55
diff --git a/disk-utils/blockdev.c b/disk-utils/blockdev.c
0b5e55
index 4543818..d030217 100644
0b5e55
--- a/disk-utils/blockdev.c
0b5e55
+++ b/disk-utils/blockdev.c
0b5e55
@@ -127,7 +127,7 @@ static const struct bdc bdcms[] =
0b5e55
 		.argname = "<bytes>",
0b5e55
 		.argtype = ARG_INT,
0b5e55
 		.flags = FL_NORESULT,
0b5e55
-	        .help = N_("set blocksize")
0b5e55
+	        .help = N_("set blocksize on file descriptor opening the block device")
0b5e55
 	},{
0b5e55
 		IOCTL_ENTRY(BLKGETSIZE),
0b5e55
 		.name = "--getsize",
0b5e55
-- 
0b5e55
1.8.3.1
0b5e55