cdown / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone

Blame SOURCES/2.24-blockdev-setbsz-hint.patch

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