Skip to content

Commit 8ea6188

Browse files
mchehabJonathan Corbet
authored andcommitted
docs: cdrom: convert docs to ReST and rename to *.rst
The stuff there is almost already at ReST format. A conversion for them is trivial: just add a missing titles and fix some scape codes for them to match ReST syntax. While here, rename the cdrom-standard.txt, with was converted from LaTeX to ReST on the previous patch, and add it to the index file. 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> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent e327cfc commit 8ea6188

8 files changed

Lines changed: 134 additions & 104 deletions

File tree

Lines changed: 94 additions & 90 deletions
Large diffs are not rendered by default.

‎Documentation/cdrom/index.rst‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
:orphan:
2+
3+
=====
4+
cdrom
5+
=====
6+
7+
.. toctree::
8+
:maxdepth: 1
9+
10+
cdrom-standard
11+
ide-cd
12+
packet-writing
13+
14+
.. only:: subproject and html
15+
16+
Indices
17+
=======
18+
19+
* :ref:`genindex`
Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
==============
2+
Packet writing
3+
==============
4+
15
Getting started quick
26
---------------------
37

@@ -10,13 +14,16 @@ Getting started quick
1014
Download from http://sourceforge.net/projects/linux-udf/
1115

1216
- Grab a new CD-RW disc and format it (assuming CD-RW is hdc, substitute
13-
as appropriate):
17+
as appropriate)::
18+
1419
# cdrwtool -d /dev/hdc -q
1520

16-
- Setup your writer
21+
- Setup your writer::
22+
1723
# pktsetup dev_name /dev/hdc
1824

19-
- Now you can mount /dev/pktcdvd/dev_name and copy files to it. Enjoy!
25+
- Now you can mount /dev/pktcdvd/dev_name and copy files to it. Enjoy::
26+
2027
# mount /dev/pktcdvd/dev_name /cdrom -t udf -o rw,noatime
2128

2229

@@ -25,11 +32,11 @@ Packet writing for DVD-RW media
2532

2633
DVD-RW discs can be written to much like CD-RW discs if they are in
2734
the so called "restricted overwrite" mode. To put a disc in restricted
28-
overwrite mode, run:
35+
overwrite mode, run::
2936

3037
# dvd+rw-format /dev/hdc
3138

32-
You can then use the disc the same way you would use a CD-RW disc:
39+
You can then use the disc the same way you would use a CD-RW disc::
3340

3441
# pktsetup dev_name /dev/hdc
3542
# mount /dev/pktcdvd/dev_name /cdrom -t udf -o rw,noatime
@@ -41,7 +48,7 @@ Packet writing for DVD+RW media
4148
According to the DVD+RW specification, a drive supporting DVD+RW discs
4249
shall implement "true random writes with 2KB granularity", which means
4350
that it should be possible to put any filesystem with a block size >=
44-
2KB on such a disc. For example, it should be possible to do:
51+
2KB on such a disc. For example, it should be possible to do::
4552

4653
# dvd+rw-format /dev/hdc (only needed if the disc has never
4754
been formatted)
@@ -54,7 +61,7 @@ follow the specification, but suffer bad performance problems if the
5461
writes are not 32KB aligned.
5562

5663
Both problems can be solved by using the pktcdvd driver, which always
57-
generates aligned writes.
64+
generates aligned writes::
5865

5966
# dvd+rw-format /dev/hdc
6067
# pktsetup dev_name /dev/hdc
@@ -83,7 +90,7 @@ Notes
8390

8491
- Since the pktcdvd driver makes the disc appear as a regular block
8592
device with a 2KB block size, you can put any filesystem you like on
86-
the disc. For example, run:
93+
the disc. For example, run::
8794

8895
# /sbin/mke2fs /dev/pktcdvd/dev_name
8996

@@ -97,7 +104,7 @@ Since Linux 2.6.20, the pktcdvd module has a sysfs interface
97104
and can be controlled by it. For example the "pktcdvd" tool uses
98105
this interface. (see http://tom.ist-im-web.de/download/pktcdvd )
99106

100-
"pktcdvd" works similar to "pktsetup", e.g.:
107+
"pktcdvd" works similar to "pktsetup", e.g.::
101108

102109
# pktcdvd -a dev_name /dev/hdc
103110
# mkudffs /dev/pktcdvd/dev_name
@@ -115,7 +122,7 @@ For a description of the sysfs interface look into the file:
115122
Using the pktcdvd debugfs interface
116123
-----------------------------------
117124

118-
To read pktcdvd device infos in human readable form, do:
125+
To read pktcdvd device infos in human readable form, do::
119126

120127
# cat /sys/kernel/debug/pktcdvd/pktcdvd[0-7]/info
121128

‎MAINTAINERS‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7610,7 +7610,7 @@ IDE/ATAPI DRIVERS
76107610
M: Borislav Petkov <bp@alien8.de>
76117611
L: linux-ide@vger.kernel.org
76127612
S: Maintained
7613-
F: Documentation/cdrom/ide-cd
7613+
F: Documentation/cdrom/ide-cd.rst
76147614
F: drivers/ide/ide-cd*
76157615

76167616
IDEAPAD LAPTOP EXTRAS DRIVER

‎drivers/block/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ config CDROM_PKTCDVD
347347
is possible.
348348
DVD-RW disks must be in restricted overwrite mode.
349349

350-
See the file <file:Documentation/cdrom/packet-writing.txt>
350+
See the file <file:Documentation/cdrom/packet-writing.rst>
351351
for further information on the use of this driver.
352352

353353
To compile this driver as a module, choose M here: the

‎drivers/cdrom/cdrom.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
License. See linux/COPYING for more information.
88
99
Uniform CD-ROM driver for Linux.
10-
See Documentation/cdrom/cdrom-standard.txt for usage information.
10+
See Documentation/cdrom/cdrom-standard.rst for usage information.
1111
1212
The routines in the file provide a uniform interface between the
1313
software that uses CD-ROMs and the various low-level drivers that

‎drivers/ide/ide-cd.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* May be copied or modified under the terms of the GNU General Public
1010
* License. See linux/COPYING for more information.
1111
*
12-
* See Documentation/cdrom/ide-cd for usage information.
12+
* See Documentation/cdrom/ide-cd.rst for usage information.
1313
*
1414
* Suggestions are welcome. Patches that work are more welcome though. ;-)
1515
*

0 commit comments

Comments
 (0)