Skip to content

Commit

Permalink
docs: blockdev: convert to ReST
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mchehab committed Jul 15, 2019
1 parent e0ae154 commit 3944310
Show file tree
Hide file tree
Showing 15 changed files with 399 additions and 246 deletions.
18 changes: 9 additions & 9 deletions Documentation/admin-guide/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@
See also Documentation/fault-injection/.

floppy= [HW]
See Documentation/blockdev/floppy.txt.
See Documentation/blockdev/floppy.rst.

force_pal_cache_flush
[IA-64] Avoid check_sal_cache_flush which may hang on
Expand Down Expand Up @@ -2234,7 +2234,7 @@
memblock=debug [KNL] Enable memblock debug messages.

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

lockd.nlm_grace_period=P [NFS] Assign grace period.
Format: <integer>
Expand Down Expand Up @@ -3268,7 +3268,7 @@

pcd. [PARIDE]
See header of drivers/block/paride/pcd.c.
See also Documentation/blockdev/paride.txt.
See also Documentation/blockdev/paride.rst.

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

Expand Down Expand Up @@ -3512,7 +3512,7 @@
needed on a platform with proper driver support.

pd. [PARIDE]
See Documentation/blockdev/paride.txt.
See Documentation/blockdev/paride.rst.

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

pf. [PARIDE]
See Documentation/blockdev/paride.txt.
See Documentation/blockdev/paride.rst.

pg. [PARIDE]
See Documentation/blockdev/paride.txt.
See Documentation/blockdev/paride.rst.

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

prompt_ramdisk= [RAM] List of RAM disks to prompt for floppy disk
before loading.
See Documentation/blockdev/ramdisk.txt.
See Documentation/blockdev/ramdisk.rst.

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

pt. [PARIDE]
See Documentation/blockdev/paride.txt.
See Documentation/blockdev/paride.rst.

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

ramdisk_size= [RAM] Sizes of RAM disks in kilobytes
See Documentation/blockdev/ramdisk.txt.
See Documentation/blockdev/ramdisk.rst.

random.trust_cpu={on,off}
[KNL] Enable or disable trusting the use of the
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
================================
kernel data structure for DRBD-9
================================

This describes the in kernel data structure for DRBD-9. Starting with
Linux v3.14 we are reorganizing DRBD to use this data structure.

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

The DRBD objects are interconnected to form a matrix as depicted below; a
drbd_peer_device object sits at each intersection between a drbd_device and a
drbd_connection:
drbd_connection::

/--------------+---------------+.....+---------------\
| resource | device | | device |
Expand Down
28 changes: 28 additions & 0 deletions Documentation/blockdev/drbd/figures.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.. The here included files are intended to help understand the implementation
Data flows that Relate some functions, and write packets
========================================================

.. kernel-figure:: DRBD-8.3-data-packets.svg
:alt: DRBD-8.3-data-packets.svg
:align: center

.. kernel-figure:: DRBD-data-packets.svg
:alt: DRBD-data-packets.svg
:align: center


Sub graphs of DRBD's state transitions
======================================

.. kernel-figure:: conn-states-8.dot
:alt: conn-states-8.dot
:align: center

.. kernel-figure:: disk-states-8.dot
:alt: disk-states-8.dot
:align: center

.. kernel-figure:: node-states-8.dot
:alt: node-states-8.dot
:align: center
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
==========================================
Distributed Replicated Block Device - DRBD
==========================================

Description
===========

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

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

The here included files are intended to help understand the implementation

DRBD-8.3-data-packets.svg, DRBD-data-packets.svg
relates some functions, and write packets.
.. toctree::
:maxdepth: 1

conn-states-8.dot, disk-states-8.dot, node-states-8.dot
The sub graphs of DRBD's state transitions
data-structure-v9
figures
Original file line number Diff line number Diff line change
@@ -1,35 +1,37 @@
This file describes the floppy driver.
=============
Floppy Driver
=============

FAQ list:
=========

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


LILO configuration options (Thinkpad users, read this)
======================================================

The floppy driver is configured using the 'floppy=' option in
The floppy driver is configured using the 'floppy=' option in
lilo. This option can be typed at the boot prompt, or entered in the
lilo configuration file.

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

linux-2.6.9 floppy=thinkpad

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

append = "floppy=thinkpad"

Several floppy related options may be given, example:
Several floppy related options may be given, example::

linux-2.6.9 floppy=daring floppy=two_fdc
append = "floppy=daring floppy=two_fdc"

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

If you use the floppy driver as a module, use the following syntax:
modprobe floppy floppy="<options>"
If you use the floppy driver as a module, use the following syntax::

Example:
modprobe floppy floppy="omnibook messages"
modprobe floppy floppy="<options>"

If you need certain options enabled every time you load the floppy driver,
you can put:
Example::

options floppy floppy="omnibook messages"
modprobe floppy floppy="omnibook messages"

If you need certain options enabled every time you load the floppy driver,
you can put::

options floppy floppy="omnibook messages"

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


The floppy driver related options are:
The floppy driver related options are:

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

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

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

0 - Use the value of the physical CMOS
1 - 5 1/4 DD
2 - 5 1/4 HD
3 - 3 1/2 DD
4 - 3 1/2 HD
5 - 3 1/2 ED
6 - 3 1/2 ED
16 - unknown or not installed
== ==================================
0 Use the value of the physical CMOS
1 5 1/4 DD
2 5 1/4 HD
3 3 1/2 DD
4 3 1/2 HD
5 3 1/2 ED
6 3 1/2 ED
16 unknown or not installed
== ==================================

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

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

floppy=slow
Use PS/2 stepping rate:
" PS/2 floppies have much slower step rates than regular floppies.
Use PS/2 stepping rate::

PS/2 floppies have much slower step rates than regular floppies.
It's been recommended that take about 1/4 of the default speed
in some more extreme cases."
in some more extreme cases.


Supporting utilities and additional documentation:
==================================================

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

The latest version can be found at fdutils homepage:

http://fdutils.linux.lu

The fdutils releases can be found at:

http://fdutils.linux.lu/download.html

http://www.tux.org/pub/knaff/fdutils/

ftp://metalab.unc.edu/pub/Linux/utils/disk-management/

Reporting problems about the floppy driver
==========================================

If you have a question or a bug report about the floppy driver, mail
If you have a question or a bug report about the floppy driver, mail
me at [email protected] . If you post to Usenet, preferably use
comp.os.linux.hardware. As the volume in these groups is rather high,
be sure to include the word "floppy" (or "FLOPPY") in the subject
line. If the reported problem happens when mounting floppy disks, be
sure to mention also the type of the filesystem in the subject line.

Be sure to read the FAQ before mailing/posting any bug reports!
Be sure to read the FAQ before mailing/posting any bug reports!

Alain
Alain

Changelog
=========

10-30-2004 : Cleanup, updating, add reference to module configuration.
10-30-2004 :
Cleanup, updating, add reference to module configuration.
James Nelson <[email protected]>

6-3-2000 : Original Document
6-3-2000 :
Original Document
16 changes: 16 additions & 0 deletions Documentation/blockdev/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
:orphan:

===========================
The Linux RapidIO Subsystem
===========================

.. toctree::
:maxdepth: 1

floppy
nbd
paride
ramdisk
zram

drbd/index
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
==================================
Network Block Device (TCP version)
==================================

Expand Down Expand Up @@ -28,4 +29,3 @@ max_part

nbds_max
Number of block devices that should be initialized (default: 16).

Loading

0 comments on commit 3944310

Please sign in to comment.