From a424171cd15ca39da64e8b3ba0c38ca814f981f1 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 29 Jun 2007 12:06:58 +0200 Subject: blockdev: cleanup usage() and update man page Signed-off-by: Karel Zak --- disk-utils/blockdev.8 | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'disk-utils/blockdev.8') diff --git a/disk-utils/blockdev.8 b/disk-utils/blockdev.8 index 86c29dd2f..db7096eb9 100644 --- a/disk-utils/blockdev.8 +++ b/disk-utils/blockdev.8 @@ -1,8 +1,9 @@ .\" -*- nroff -*- .\" Copyright 1998 Andries E. Brouwer (aeb@cwi.nl) +.\" Copyright 2007 Karel Zak .\" .\" May be distributed under the GNU General Public License -.TH BLOCKDEV 8 "May 2000" "" +.TH BLOCKDEV 8 "Jun 2007" "" .SH NAME blockdev \- call block device ioctls from the command line .SH SYNOPSIS @@ -37,8 +38,19 @@ Get read-only. Print 1 if the device is read-only, 0 otherwise. .B \--getss Print sectorsize in bytes - usually 512. .TP +.B \--getbsz +Print blocksize in bytes. +.TP +.BI \--setbsz " N" +Set blocksize to +.I N +bytes. +.TP .B \--getsize -Print device capacity (in 512-byte sectors). +Print device size in sectors. +.TP +.B \--getsize64 +Print device size in bytes. .TP .BI \--setra " N" Set readahead to @@ -59,3 +71,9 @@ Flush buffers. .TP .B \--rereadpt Reread partition table. +.SH AUTHOR +blockdev was written by Andries E. Brouwer. +.SH AVAILABILITY +blockdev is part of the util-linux-ng package and is available from +ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/. + -- cgit v1.2.3-55-g7522