Skip to content

Commit

Permalink
docs: cdrom: convert docs to ReST and rename to *.rst
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jonathan Corbet <[email protected]>
  • Loading branch information
mchehab authored and Jonathan Corbet committed Jun 14, 2019
1 parent e327cfc commit 8ea6188
Show file tree
Hide file tree
Showing 8 changed files with 134 additions and 104 deletions.
File renamed without changes.
184 changes: 94 additions & 90 deletions Documentation/cdrom/ide-cd → Documentation/cdrom/ide-cd.rst

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions Documentation/cdrom/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
:orphan:

=====
cdrom
=====

.. toctree::
:maxdepth: 1

cdrom-standard
ide-cd
packet-writing

.. only:: subproject and html

Indices
=======

* :ref:`genindex`
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
==============
Packet writing
==============

Getting started quick
---------------------

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

- Grab a new CD-RW disc and format it (assuming CD-RW is hdc, substitute
as appropriate):
as appropriate)::

# cdrwtool -d /dev/hdc -q

- Setup your writer
- Setup your writer::

# pktsetup dev_name /dev/hdc

- Now you can mount /dev/pktcdvd/dev_name and copy files to it. Enjoy!
- Now you can mount /dev/pktcdvd/dev_name and copy files to it. Enjoy::

# mount /dev/pktcdvd/dev_name /cdrom -t udf -o rw,noatime


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

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

# dvd+rw-format /dev/hdc

You can then use the disc the same way you would use a CD-RW disc:
You can then use the disc the same way you would use a CD-RW disc::

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

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

Both problems can be solved by using the pktcdvd driver, which always
generates aligned writes.
generates aligned writes::

# dvd+rw-format /dev/hdc
# pktsetup dev_name /dev/hdc
Expand Down Expand Up @@ -83,7 +90,7 @@ Notes

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

# /sbin/mke2fs /dev/pktcdvd/dev_name

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

"pktcdvd" works similar to "pktsetup", e.g.:
"pktcdvd" works similar to "pktsetup", e.g.::

# pktcdvd -a dev_name /dev/hdc
# mkudffs /dev/pktcdvd/dev_name
Expand All @@ -115,7 +122,7 @@ For a description of the sysfs interface look into the file:
Using the pktcdvd debugfs interface
-----------------------------------

To read pktcdvd device infos in human readable form, do:
To read pktcdvd device infos in human readable form, do::

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

Expand Down
2 changes: 1 addition & 1 deletion MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -7610,7 +7610,7 @@ IDE/ATAPI DRIVERS
M: Borislav Petkov <[email protected]>
L: [email protected]
S: Maintained
F: Documentation/cdrom/ide-cd
F: Documentation/cdrom/ide-cd.rst
F: drivers/ide/ide-cd*

IDEAPAD LAPTOP EXTRAS DRIVER
Expand Down
2 changes: 1 addition & 1 deletion drivers/block/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ config CDROM_PKTCDVD
is possible.
DVD-RW disks must be in restricted overwrite mode.

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

To compile this driver as a module, choose M here: the
Expand Down
2 changes: 1 addition & 1 deletion drivers/cdrom/cdrom.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
License. See linux/COPYING for more information.
Uniform CD-ROM driver for Linux.
See Documentation/cdrom/cdrom-standard.txt for usage information.
See Documentation/cdrom/cdrom-standard.rst for usage information.
The routines in the file provide a uniform interface between the
software that uses CD-ROMs and the various low-level drivers that
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* May be copied or modified under the terms of the GNU General Public
* License. See linux/COPYING for more information.
*
* See Documentation/cdrom/ide-cd for usage information.
* See Documentation/cdrom/ide-cd.rst for usage information.
*
* Suggestions are welcome. Patches that work are more welcome though. ;-)
*
Expand Down

0 comments on commit 8ea6188

Please sign in to comment.