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