Commit 305a99eb authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Jonathan Corbet

docs: aoe: convert docs to ReST and rename to *.rst

There are only two files within Documentation/aoe dir that are
documentation. The remaining ones are examples and shell
scripts.

Convert the two AoE files to ReST format, and add the others
as literal, as they're part of 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: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 8afecfb0
Introduction
============
ATA over Ethernet is a network protocol that provides simple access to ATA over Ethernet is a network protocol that provides simple access to
block storage on the LAN. block storage on the LAN.
...@@ -22,7 +25,8 @@ document the use of the driver and are not necessary if you install ...@@ -22,7 +25,8 @@ document the use of the driver and are not necessary if you install
the aoetools. the aoetools.
CREATING DEVICE NODES Creating Device Nodes
=====================
Users of udev should find the block device nodes created Users of udev should find the block device nodes created
automatically, but to create all the necessary device nodes, use the automatically, but to create all the necessary device nodes, use the
...@@ -38,7 +42,8 @@ CREATING DEVICE NODES ...@@ -38,7 +42,8 @@ CREATING DEVICE NODES
confusing when an AoE device is not present the first time the a confusing when an AoE device is not present the first time the a
command is run but appears a second later. command is run but appears a second later.
USING DEVICE NODES Using Device Nodes
==================
"cat /dev/etherd/err" blocks, waiting for error diagnostic output, "cat /dev/etherd/err" blocks, waiting for error diagnostic output,
like any retransmitted packets. like any retransmitted packets.
...@@ -55,7 +60,7 @@ USING DEVICE NODES ...@@ -55,7 +60,7 @@ USING DEVICE NODES
by sysfs counterparts. Using the commands in aoetools insulates by sysfs counterparts. Using the commands in aoetools insulates
users from these implementation details. users from these implementation details.
The block devices are named like this: The block devices are named like this::
e{shelf}.{slot} e{shelf}.{slot}
e{shelf}.{slot}p{part} e{shelf}.{slot}p{part}
...@@ -64,7 +69,8 @@ USING DEVICE NODES ...@@ -64,7 +69,8 @@ USING DEVICE NODES
first shelf (shelf address zero). That's the whole disk. The first first shelf (shelf address zero). That's the whole disk. The first
partition on that disk would be "e0.2p1". partition on that disk would be "e0.2p1".
USING SYSFS Using sysfs
===========
Each aoe block device in /sys/block has the extra attributes of Each aoe block device in /sys/block has the extra attributes of
state, mac, and netif. The state attribute is "up" when the device state, mac, and netif. The state attribute is "up" when the device
...@@ -78,29 +84,29 @@ USING SYSFS ...@@ -78,29 +84,29 @@ USING SYSFS
There is a script in this directory that formats this information in There is a script in this directory that formats this information in
a convenient way. Users with aoetools should use the aoe-stat a convenient way. Users with aoetools should use the aoe-stat
command. command::
root@makki root# sh Documentation/aoe/status.sh root@makki root# sh Documentation/aoe/status.sh
e10.0 eth3 up e10.0 eth3 up
e10.1 eth3 up e10.1 eth3 up
e10.2 eth3 up e10.2 eth3 up
e10.3 eth3 up e10.3 eth3 up
e10.4 eth3 up e10.4 eth3 up
e10.5 eth3 up e10.5 eth3 up
e10.6 eth3 up e10.6 eth3 up
e10.7 eth3 up e10.7 eth3 up
e10.8 eth3 up e10.8 eth3 up
e10.9 eth3 up e10.9 eth3 up
e4.0 eth1 up e4.0 eth1 up
e4.1 eth1 up e4.1 eth1 up
e4.2 eth1 up e4.2 eth1 up
e4.3 eth1 up e4.3 eth1 up
e4.4 eth1 up e4.4 eth1 up
e4.5 eth1 up e4.5 eth1 up
e4.6 eth1 up e4.6 eth1 up
e4.7 eth1 up e4.7 eth1 up
e4.8 eth1 up e4.8 eth1 up
e4.9 eth1 up e4.9 eth1 up
Use /sys/module/aoe/parameters/aoe_iflist (or better, the driver Use /sys/module/aoe/parameters/aoe_iflist (or better, the driver
option discussed below) instead of /dev/etherd/interfaces to limit option discussed below) instead of /dev/etherd/interfaces to limit
...@@ -113,12 +119,13 @@ USING SYSFS ...@@ -113,12 +119,13 @@ USING SYSFS
for this purpose. You can also directly use the for this purpose. You can also directly use the
/dev/etherd/discover special file described above. /dev/etherd/discover special file described above.
DRIVER OPTIONS Driver Options
==============
There is a boot option for the built-in aoe driver and a There is a boot option for the built-in aoe driver and a
corresponding module parameter, aoe_iflist. Without this option, corresponding module parameter, aoe_iflist. Without this option,
all network interfaces may be used for ATA over Ethernet. Here is a all network interfaces may be used for ATA over Ethernet. Here is a
usage example for the module parameter. usage example for the module parameter::
modprobe aoe_iflist="eth1 eth3" modprobe aoe_iflist="eth1 eth3"
......
Example of udev rules
---------------------
.. include:: udev.txt
:literal:
Example of udev install rules script
------------------------------------
.. literalinclude:: udev-install.sh
:language: shell
Example script to get status
----------------------------
.. literalinclude:: status.sh
:language: shell
Example of AoE autoload script
------------------------------
.. literalinclude:: autoload.sh
:language: shell
:orphan:
=======================
ATA over Ethernet (AoE)
=======================
.. toctree::
:maxdepth: 1
aoe
todo
examples
.. only:: subproject and html
Indices
=======
* :ref:`genindex`
TODO
====
There is a potential for deadlock when allocating a struct sk_buff for There is a potential for deadlock when allocating a struct sk_buff for
data that needs to be written out to aoe storage. If the data is data that needs to be written out to aoe storage. If the data is
being written from a dirty page in order to free that page, and if being written from a dirty page in order to free that page, and if
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# udev_rules="/etc/udev/rules.d/" # udev_rules="/etc/udev/rules.d/"
# bash# ls /etc/udev/rules.d/ # bash# ls /etc/udev/rules.d/
# 10-wacom.rules 50-udev.rules # 10-wacom.rules 50-udev.rules
# bash# cp /path/to/linux-2.6.xx/Documentation/aoe/udev.txt \ # bash# cp /path/to/linux/Documentation/aoe/udev.txt \
# /etc/udev/rules.d/60-aoe.rules # /etc/udev/rules.d/60-aoe.rules
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment