Commit Graph

14 Commits

Author SHA1 Message Date
Richard W.M. Jones b1555acc2f 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>
2013-10-08 15:48:00 +02:00
Benno Schulenberg 232dc924c4 docs: uniformize the header and footer lines in man pages
Use dates without the day, use the full month name, put "util-linux" in
the lower left corner, and "User Commands" or "System Administration"
at the top center.

Also improve here and there the one-line program description.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-08-22 10:39:21 +02:00
Davidlohr Bueso 16493c3e0f disk-utils: fix manpage typos
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2011-01-17 15:27:29 +01:00
Karel Zak 601d12fb10 rename util-linux-ng back to util-linux
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-30 11:41:59 +01:00
Karel Zak 8f83100949 blockdev: fix typo in blockdev.8
Reported-by: Marcos Felipe Rasia de Mello <marcosfrm@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-08-28 00:50:24 +02:00
Karel Zak 455fdf4af8 blockdev: sync man page with code
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-08-24 12:59:41 +02:00
Peter Breitenlohner feae57c9e5 blockdev.8: formatting
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
2009-08-17 12:11:09 +02:00
Karel Zak 010d0a4cca blockdev: add note that the StartSec is in 512-byte sectors
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-26 15:58:28 +01:00
Karel Zak 7dcca505f8 blockdev: add --getsz to blockdev.8
This patch also marks --getsize as deprecated option.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-11-28 20:55:45 +01:00
Li Zefan 45be3f7d8d blockdev: add missing description about option --report in manpage
The manpage does not mention the option --report.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
2007-09-19 23:14:09 +02:00
Karel Zak 86d62711a9 man pages: add "AVAILABILITY" section
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-03 01:17:04 +02:00
Karel Zak a424171cd1 blockdev: cleanup usage() and update man page
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-06-29 12:06:58 +02:00
Karel Zak c2a1e78808 blockdev: add BLKFRAGET/BLKFRASET ioctls
In Linux 2.6 the BLKRASET ioctl has the desired effect for mounted
file-systems.  In Linux 2.4 it appears to set the number of blocks to
read-ahead on the *device* as opposed to within a *file*, and the
maximum value of this number is 255.  As a result the invocation of
blockdev will fail on Linux 2.4 for any usefully large value of
READAHEAD, and will not in any case have the desired affect for
fragmented files.

(Based on the blockdev-getfra-setfra.patch Debian patch.)

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-06-29 11:38:54 +02:00
Karel Zak 66ee8158b6 Imported from util-linux-2.10s tarball. 2006-12-07 00:25:44 +01:00