dcavalca / rpms / util-linux

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