Skip to content

Commit 3944310

Browse files
committed
docs: blockdev: convert to ReST
Rename the blockdev documentation files to ReST, add an index for them and adjust in order to produce a nice html output via the Sphinx build system. The drbd sub-directory contains some graphs and data flows. Add those too to the documentation. At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
1 parent e0ae154 commit 3944310

15 files changed

Lines changed: 399 additions & 246 deletions

File tree

‎Documentation/admin-guide/kernel-parameters.txt‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@
12491249
See also Documentation/fault-injection/.
12501250

12511251
floppy= [HW]
1252-
See Documentation/blockdev/floppy.txt.
1252+
See Documentation/blockdev/floppy.rst.
12531253

12541254
force_pal_cache_flush
12551255
[IA-64] Avoid check_sal_cache_flush which may hang on
@@ -2234,7 +2234,7 @@
22342234
memblock=debug [KNL] Enable memblock debug messages.
22352235

22362236
load_ramdisk= [RAM] List of ramdisks to load from floppy
2237-
See Documentation/blockdev/ramdisk.txt.
2237+
See Documentation/blockdev/ramdisk.rst.
22382238

22392239
lockd.nlm_grace_period=P [NFS] Assign grace period.
22402240
Format: <integer>
@@ -3268,7 +3268,7 @@
32683268

32693269
pcd. [PARIDE]
32703270
See header of drivers/block/paride/pcd.c.
3271-
See also Documentation/blockdev/paride.txt.
3271+
See also Documentation/blockdev/paride.rst.
32723272

32733273
pci=option[,option...] [PCI] various PCI subsystem options.
32743274

@@ -3512,7 +3512,7 @@
35123512
needed on a platform with proper driver support.
35133513

35143514
pd. [PARIDE]
3515-
See Documentation/blockdev/paride.txt.
3515+
See Documentation/blockdev/paride.rst.
35163516

35173517
pdcchassis= [PARISC,HW] Disable/Enable PDC Chassis Status codes at
35183518
boot time.
@@ -3527,10 +3527,10 @@
35273527
and performance comparison.
35283528

35293529
pf. [PARIDE]
3530-
See Documentation/blockdev/paride.txt.
3530+
See Documentation/blockdev/paride.rst.
35313531

35323532
pg. [PARIDE]
3533-
See Documentation/blockdev/paride.txt.
3533+
See Documentation/blockdev/paride.rst.
35343534

35353535
pirq= [SMP,APIC] Manual mp-table setup
35363536
See Documentation/x86/i386/IO-APIC.rst.
@@ -3642,7 +3642,7 @@
36423642

36433643
prompt_ramdisk= [RAM] List of RAM disks to prompt for floppy disk
36443644
before loading.
3645-
See Documentation/blockdev/ramdisk.txt.
3645+
See Documentation/blockdev/ramdisk.rst.
36463646

36473647
psi= [KNL] Enable or disable pressure stall information
36483648
tracking.
@@ -3664,7 +3664,7 @@
36643664
pstore.backend= Specify the name of the pstore backend to use
36653665

36663666
pt. [PARIDE]
3667-
See Documentation/blockdev/paride.txt.
3667+
See Documentation/blockdev/paride.rst.
36683668

36693669
pti= [X86_64] Control Page Table Isolation of user and
36703670
kernel address spaces. Disabling this feature
@@ -3693,7 +3693,7 @@
36933693
See Documentation/admin-guide/md.rst.
36943694

36953695
ramdisk_size= [RAM] Sizes of RAM disks in kilobytes
3696-
See Documentation/blockdev/ramdisk.txt.
3696+
See Documentation/blockdev/ramdisk.rst.
36973697

36983698
random.trust_cpu={on,off}
36993699
[KNL] Enable or disable trusting the use of the

Documentation/blockdev/drbd/data-structure-v9.txt renamed to Documentation/blockdev/drbd/data-structure-v9.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
================================
2+
kernel data structure for DRBD-9
3+
================================
4+
15
This describes the in kernel data structure for DRBD-9. Starting with
26
Linux v3.14 we are reorganizing DRBD to use this data structure.
37

@@ -10,7 +14,7 @@ device is represented by a block device locally.
1014

1115
The DRBD objects are interconnected to form a matrix as depicted below; a
1216
drbd_peer_device object sits at each intersection between a drbd_device and a
13-
drbd_connection:
17+
drbd_connection::
1418

1519
/--------------+---------------+.....+---------------\
1620
| resource | device | | device |
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.. The here included files are intended to help understand the implementation
2+
3+
Data flows that Relate some functions, and write packets
4+
========================================================
5+
6+
.. kernel-figure:: DRBD-8.3-data-packets.svg
7+
:alt: DRBD-8.3-data-packets.svg
8+
:align: center
9+
10+
.. kernel-figure:: DRBD-data-packets.svg
11+
:alt: DRBD-data-packets.svg
12+
:align: center
13+
14+
15+
Sub graphs of DRBD's state transitions
16+
======================================
17+
18+
.. kernel-figure:: conn-states-8.dot
19+
:alt: conn-states-8.dot
20+
:align: center
21+
22+
.. kernel-figure:: disk-states-8.dot
23+
:alt: disk-states-8.dot
24+
:align: center
25+
26+
.. kernel-figure:: node-states-8.dot
27+
:alt: node-states-8.dot
28+
:align: center
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
==========================================
2+
Distributed Replicated Block Device - DRBD
3+
==========================================
4+
15
Description
6+
===========
27

38
DRBD is a shared-nothing, synchronously replicated block device. It
49
is designed to serve as a building block for high availability
@@ -7,10 +12,8 @@ Description
712

813
Please visit http://www.drbd.org to find out more.
914

10-
The here included files are intended to help understand the implementation
11-
12-
DRBD-8.3-data-packets.svg, DRBD-data-packets.svg
13-
relates some functions, and write packets.
15+
.. toctree::
16+
:maxdepth: 1
1417

15-
conn-states-8.dot, disk-states-8.dot, node-states-8.dot
16-
The sub graphs of DRBD's state transitions
18+
data-structure-v9
19+
figures
Lines changed: 49 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,37 @@
1-
This file describes the floppy driver.
1+
=============
2+
Floppy Driver
3+
=============
24

35
FAQ list:
46
=========
57

6-
A FAQ list may be found in the fdutils package (see below), and also
8+
A FAQ list may be found in the fdutils package (see below), and also
79
at <http://fdutils.linux.lu/faq.html>.
810

911

1012
LILO configuration options (Thinkpad users, read this)
1113
======================================================
1214

13-
The floppy driver is configured using the 'floppy=' option in
15+
The floppy driver is configured using the 'floppy=' option in
1416
lilo. This option can be typed at the boot prompt, or entered in the
1517
lilo configuration file.
1618

17-
Example: If your kernel is called linux-2.6.9, type the following line
18-
at the lilo boot prompt (if you have a thinkpad):
19+
Example: If your kernel is called linux-2.6.9, type the following line
20+
at the lilo boot prompt (if you have a thinkpad)::
1921

2022
linux-2.6.9 floppy=thinkpad
2123

2224
You may also enter the following line in /etc/lilo.conf, in the description
23-
of linux-2.6.9:
25+
of linux-2.6.9::
2426

2527
append = "floppy=thinkpad"
2628

27-
Several floppy related options may be given, example:
29+
Several floppy related options may be given, example::
2830

2931
linux-2.6.9 floppy=daring floppy=two_fdc
3032
append = "floppy=daring floppy=two_fdc"
3133

32-
If you give options both in the lilo config file and on the boot
34+
If you give options both in the lilo config file and on the boot
3335
prompt, the option strings of both places are concatenated, the boot
3436
prompt options coming last. That's why there are also options to
3537
restore the default behavior.
@@ -38,21 +40,23 @@ restore the default behavior.
3840
Module configuration options
3941
============================
4042

41-
If you use the floppy driver as a module, use the following syntax:
42-
modprobe floppy floppy="<options>"
43+
If you use the floppy driver as a module, use the following syntax::
4344

44-
Example:
45-
modprobe floppy floppy="omnibook messages"
45+
modprobe floppy floppy="<options>"
4646

47-
If you need certain options enabled every time you load the floppy driver,
48-
you can put:
47+
Example::
4948

50-
options floppy floppy="omnibook messages"
49+
modprobe floppy floppy="omnibook messages"
50+
51+
If you need certain options enabled every time you load the floppy driver,
52+
you can put::
53+
54+
options floppy floppy="omnibook messages"
5155

5256
in a configuration file in /etc/modprobe.d/.
5357

5458

55-
The floppy driver related options are:
59+
The floppy driver related options are:
5660

5761
floppy=asus_pci
5862
Sets the bit mask to allow only units 0 and 1. (default)
@@ -70,8 +74,7 @@ in a configuration file in /etc/modprobe.d/.
7074
Tells the floppy driver that you have only one floppy controller.
7175
(default)
7276

73-
floppy=two_fdc
74-
floppy=<address>,two_fdc
77+
floppy=two_fdc / floppy=<address>,two_fdc
7578
Tells the floppy driver that you have two floppy controllers.
7679
The second floppy controller is assumed to be at <address>.
7780
This option is not needed if the second controller is at address
@@ -84,8 +87,7 @@ in a configuration file in /etc/modprobe.d/.
8487
floppy=0,thinkpad
8588
Tells the floppy driver that you don't have a Thinkpad.
8689

87-
floppy=omnibook
88-
floppy=nodma
90+
floppy=omnibook / floppy=nodma
8991
Tells the floppy driver not to use Dma for data transfers.
9092
This is needed on HP Omnibooks, which don't have a workable
9193
DMA channel for the floppy driver. This option is also useful
@@ -144,14 +146,16 @@ in a configuration file in /etc/modprobe.d/.
144146
described in the physical CMOS), or if your BIOS uses
145147
non-standard CMOS types. The CMOS types are:
146148

147-
0 - Use the value of the physical CMOS
148-
1 - 5 1/4 DD
149-
2 - 5 1/4 HD
150-
3 - 3 1/2 DD
151-
4 - 3 1/2 HD
152-
5 - 3 1/2 ED
153-
6 - 3 1/2 ED
154-
16 - unknown or not installed
149+
== ==================================
150+
0 Use the value of the physical CMOS
151+
1 5 1/4 DD
152+
2 5 1/4 HD
153+
3 3 1/2 DD
154+
4 3 1/2 HD
155+
5 3 1/2 ED
156+
6 3 1/2 ED
157+
16 unknown or not installed
158+
== ==================================
155159

156160
(Note: there are two valid types for ED drives. This is because 5 was
157161
initially chosen to represent floppy *tapes*, and 6 for ED drives.
@@ -162,8 +166,7 @@ in a configuration file in /etc/modprobe.d/.
162166
Print a warning message when an unexpected interrupt is received.
163167
(default)
164168

165-
floppy=no_unexpected_interrupts
166-
floppy=L40SX
169+
floppy=no_unexpected_interrupts / floppy=L40SX
167170
Don't print a message when an unexpected interrupt is received. This
168171
is needed on IBM L40SX laptops in certain video modes. (There seems
169172
to be an interaction between video and floppy. The unexpected
@@ -199,47 +202,54 @@ in a configuration file in /etc/modprobe.d/.
199202
Sets the floppy DMA channel to <nr> instead of 2.
200203

201204
floppy=slow
202-
Use PS/2 stepping rate:
203-
" PS/2 floppies have much slower step rates than regular floppies.
205+
Use PS/2 stepping rate::
206+
207+
PS/2 floppies have much slower step rates than regular floppies.
204208
It's been recommended that take about 1/4 of the default speed
205-
in some more extreme cases."
209+
in some more extreme cases.
206210

207211

208212
Supporting utilities and additional documentation:
209213
==================================================
210214

211-
Additional parameters of the floppy driver can be configured at
215+
Additional parameters of the floppy driver can be configured at
212216
runtime. Utilities which do this can be found in the fdutils package.
213217
This package also contains a new version of mtools which allows to
214218
access high capacity disks (up to 1992K on a high density 3 1/2 disk!).
215219
It also contains additional documentation about the floppy driver.
216220

217221
The latest version can be found at fdutils homepage:
222+
218223
http://fdutils.linux.lu
219224

220225
The fdutils releases can be found at:
226+
221227
http://fdutils.linux.lu/download.html
228+
222229
http://www.tux.org/pub/knaff/fdutils/
230+
223231
ftp://metalab.unc.edu/pub/Linux/utils/disk-management/
224232

225233
Reporting problems about the floppy driver
226234
==========================================
227235

228-
If you have a question or a bug report about the floppy driver, mail
236+
If you have a question or a bug report about the floppy driver, mail
229237
me at Alain.Knaff@poboxes.com . If you post to Usenet, preferably use
230238
comp.os.linux.hardware. As the volume in these groups is rather high,
231239
be sure to include the word "floppy" (or "FLOPPY") in the subject
232240
line. If the reported problem happens when mounting floppy disks, be
233241
sure to mention also the type of the filesystem in the subject line.
234242

235-
Be sure to read the FAQ before mailing/posting any bug reports!
243+
Be sure to read the FAQ before mailing/posting any bug reports!
236244

237-
Alain
245+
Alain
238246

239247
Changelog
240248
=========
241249

242-
10-30-2004 : Cleanup, updating, add reference to module configuration.
250+
10-30-2004 :
251+
Cleanup, updating, add reference to module configuration.
243252
James Nelson <james4765@gmail.com>
244253

245-
6-3-2000 : Original Document
254+
6-3-2000 :
255+
Original Document

‎Documentation/blockdev/index.rst‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
:orphan:
2+
3+
===========================
4+
The Linux RapidIO Subsystem
5+
===========================
6+
7+
.. toctree::
8+
:maxdepth: 1
9+
10+
floppy
11+
nbd
12+
paride
13+
ramdisk
14+
zram
15+
16+
drbd/index
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
==================================
12
Network Block Device (TCP version)
23
==================================
34

@@ -28,4 +29,3 @@ max_part
2829

2930
nbds_max
3031
Number of block devices that should be initialized (default: 16).
31-

0 commit comments

Comments
 (0)