Annotated edit history of
blockdev(8) version 1, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
BLOCKDEV |
|
|
2 |
!!!BLOCKDEV |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
COMMANDS |
|
|
8 |
---- |
|
|
9 |
!!NAME |
|
|
10 |
|
|
|
11 |
|
|
|
12 |
blockdev - call block device ioctls from the command line |
|
|
13 |
!!SYNOPSIS |
|
|
14 |
|
|
|
15 |
|
|
|
16 |
__blockdev__ [[''options''] ''commands |
|
|
17 |
devices'' |
|
|
18 |
!!DESCRIPTION |
|
|
19 |
|
|
|
20 |
|
|
|
21 |
The utility __blockdev__ allows one to call block device |
|
|
22 |
ioctls from the command line. |
|
|
23 |
!!OPTIONS |
|
|
24 |
|
|
|
25 |
|
|
|
26 |
__-V__ |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
Print version and exit. |
|
|
30 |
|
|
|
31 |
|
|
|
32 |
__-q__ |
|
|
33 |
|
|
|
34 |
|
|
|
35 |
Be quiet. |
|
|
36 |
|
|
|
37 |
|
|
|
38 |
__-v__ |
|
|
39 |
|
|
|
40 |
|
|
|
41 |
Be verbose. |
|
|
42 |
!!COMMANDS |
|
|
43 |
|
|
|
44 |
|
|
|
45 |
__--setro__ |
|
|
46 |
|
|
|
47 |
|
|
|
48 |
Set read-only. |
|
|
49 |
|
|
|
50 |
|
|
|
51 |
__--setrw__ |
|
|
52 |
|
|
|
53 |
|
|
|
54 |
Set read-write. |
|
|
55 |
|
|
|
56 |
|
|
|
57 |
__--getro__ |
|
|
58 |
|
|
|
59 |
|
|
|
60 |
Get read-only. Print 1 if the device is read-only, 0 |
|
|
61 |
otherwise. |
|
|
62 |
|
|
|
63 |
|
|
|
64 |
__--getss__ |
|
|
65 |
|
|
|
66 |
|
|
|
67 |
Print sectorsize in bytes - usually 512. |
|
|
68 |
|
|
|
69 |
|
|
|
70 |
__--getsize__ |
|
|
71 |
|
|
|
72 |
|
|
|
73 |
Print device capacity (in 512-byte sectors). |
|
|
74 |
|
|
|
75 |
|
|
|
76 |
__--setra__ ''N'' |
|
|
77 |
|
|
|
78 |
|
|
|
79 |
Set readahead to ''N'' 512-byte sectors. |
|
|
80 |
|
|
|
81 |
|
|
|
82 |
__--getra__ |
|
|
83 |
|
|
|
84 |
|
|
|
85 |
Print readahead (in 512-byte sectors). |
|
|
86 |
|
|
|
87 |
|
|
|
88 |
__--flushbufs__ |
|
|
89 |
|
|
|
90 |
|
|
|
91 |
Flush buffers. |
|
|
92 |
|
|
|
93 |
|
|
|
94 |
__--rereadpt__ |
|
|
95 |
|
|
|
96 |
|
|
|
97 |
Reread partition table. |
|
|
98 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.