aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorSidong Yang <realwakka@gmail.com>2022-08-08 07:28:56 +0000
committerDavid Sterba <dsterba@suse.com>2022-10-11 09:08:08 +0200
commit2d039cc815cb9158b2d2eed11402aa9a81d65ee6 (patch)
tree6e7a8849912b1ddb8917a9f1dd0e5d7582a186a5 /Documentation
parente6fdeb81a98470b2dc2de573e4d60824ea175279 (diff)
downloadbtrfs-progs-2d039cc815cb9158b2d2eed11402aa9a81d65ee6.tar.gz
btrfs-progs: docs: add cross reference for manualpages
RST format provides cross reference function that users can navigate manual pages click. This patch is written by macro that replaces old references to doc role in RST format. Issue: #495 Signed-off-by: Sidong Yang <realwakka@gmail.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/Administration.rst4
-rw-r--r--Documentation/Trim.rst4
-rw-r--r--Documentation/btrfs-balance.rst6
-rw-r--r--Documentation/btrfs-check.rst6
-rw-r--r--Documentation/btrfs-convert.rst6
-rw-r--r--Documentation/btrfs-device.rst10
-rw-r--r--Documentation/btrfs-filesystem.rst6
-rw-r--r--Documentation/btrfs-find-root.rst2
-rw-r--r--Documentation/btrfs-image.rst2
-rw-r--r--Documentation/btrfs-inspect-internal.rst2
-rw-r--r--Documentation/btrfs-man5.rst16
-rw-r--r--Documentation/btrfs-map-logical.rst2
-rw-r--r--Documentation/btrfs-property.rst4
-rw-r--r--Documentation/btrfs-qgroup.rst6
-rw-r--r--Documentation/btrfs-quota.rst8
-rw-r--r--Documentation/btrfs-receive.rst6
-rw-r--r--Documentation/btrfs-replace.rst10
-rw-r--r--Documentation/btrfs-rescue.rst6
-rw-r--r--Documentation/btrfs-restore.rst8
-rw-r--r--Documentation/btrfs-scrub.rst2
-rw-r--r--Documentation/btrfs-select-super.rst2
-rw-r--r--Documentation/btrfs-send.rst8
-rw-r--r--Documentation/btrfs-subvolume.rst10
-rw-r--r--Documentation/btrfs.rst70
-rw-r--r--Documentation/btrfstune.rst14
-rw-r--r--Documentation/ch-balance-filters.rst2
-rw-r--r--Documentation/ch-balance-intro.rst2
-rw-r--r--Documentation/ch-compression.rst2
-rw-r--r--Documentation/ch-convert-intro.rst2
-rw-r--r--Documentation/ch-file-attributes.rst1
-rw-r--r--Documentation/ch-mount-options.rst2
-rw-r--r--Documentation/ch-subvolume-intro.rst2
-rw-r--r--Documentation/ch-volume-management-intro.rst2
-rw-r--r--Documentation/fsck.btrfs.rst4
-rw-r--r--Documentation/mkfs.btrfs.rst18
35 files changed, 128 insertions, 129 deletions
diff --git a/Documentation/Administration.rst b/Documentation/Administration.rst
index 6317cf29..e5346f12 100644
--- a/Documentation/Administration.rst
+++ b/Documentation/Administration.rst
@@ -1,8 +1,8 @@
Administration
==============
-The main administration tool for BTRFS filesystems is ``btrfs``. Please refer
-to the manual pages of the subcommands for further documentation.
+The main administration tool for BTRFS filesystems is :doc:`btrfs(8)<btrfs>`.
+Please refer to the manual pages of the subcommands for further documentation.
Mount options
-------------
diff --git a/Documentation/Trim.rst b/Documentation/Trim.rst
index a9e52f1c..d5f9f2ac 100644
--- a/Documentation/Trim.rst
+++ b/Documentation/Trim.rst
@@ -37,5 +37,5 @@ other factors affecting the memory cells. The device itself could internally
relocate the data, however this leads to unexpected performance drop. Running
trim periodically could prevent that too.
-When a filesystem is created by ``mkfs.btrfs`` and is capable of trim, then it's
-by default performed on all devices.
+When a filesystem is created by :doc:`mkfs.btrfs(8)<mkfs.btrfs>` and is capable
+of trim, then it's by default performed on all devices.
diff --git a/Documentation/btrfs-balance.rst b/Documentation/btrfs-balance.rst
index 352965bf..5ee4f292 100644
--- a/Documentation/btrfs-balance.rst
+++ b/Documentation/btrfs-balance.rst
@@ -127,7 +127,7 @@ EXAMPLES
--------
A more comprehensive example when going from one to multiple devices, and back,
-can be found in section *TYPICAL USECASES* of ``btrfs-device(8)``.
+can be found in section *TYPICAL USECASES* of :doc:`btrfs-device(8)<btrfs-device>`.
MAKING BLOCK GROUP LAYOUT MORE COMPACT
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -269,5 +269,5 @@ further details.
SEE ALSO
--------
-``mkfs.btrfs(8)``,
-``btrfs-device(8)``
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`,
+:doc:`btrfs-device(8)<btrfs-device>`
diff --git a/Documentation/btrfs-check.rst b/Documentation/btrfs-check.rst
index 6bf67918..0096bccc 100644
--- a/Documentation/btrfs-check.rst
+++ b/Documentation/btrfs-check.rst
@@ -161,6 +161,6 @@ further details.
SEE ALSO
--------
-``mkfs.btrfs(8)``,
-``btrfs-scrub(8)``,
-``btrfs-rescue(8)``
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`,
+:doc:`btrfs-scrub(8)<btrfs-scrub>`,
+:doc:`btrfs-rescue(8)<btrfs-rescue>`
diff --git a/Documentation/btrfs-convert.rst b/Documentation/btrfs-convert.rst
index 4c7da323..01187c4d 100644
--- a/Documentation/btrfs-convert.rst
+++ b/Documentation/btrfs-convert.rst
@@ -31,7 +31,7 @@ OPTIONS
set filesystem nodesize, the tree block size in which btrfs stores its metadata.
The default value is 16KiB (16384) or the page size, whichever is bigger.
Must be a multiple of the sectorsize, but not larger than 65536. See
- ``mkfs.btrfs(8)`` for more details.
+ :doc:`mkfs.btrfs(8)<mkfs.btrfs>` for more details.
-r|--rollback
rollback to the original ext2/3/4 filesystem if possible
-l|--label <LABEL>
@@ -42,7 +42,7 @@ OPTIONS
A list of filesystem features enabled the at time of conversion. Not all features
are supported by old kernels. To disable a feature, prefix it with *^*.
Description of the features is in section *FILESYSTEM FEATURES* of
- ``mkfs.btrfs(8)``.
+ :doc:`mkfs.btrfs(8)<mkfs.btrfs>`.
To see all available features that btrfs-convert supports run:
@@ -72,4 +72,4 @@ If any problems happened, 1 will be returned.
SEE ALSO
--------
-``mkfs.btrfs(8)``
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`
diff --git a/Documentation/btrfs-device.rst b/Documentation/btrfs-device.rst
index f9a1b33b..eafd307a 100644
--- a/Documentation/btrfs-device.rst
+++ b/Documentation/btrfs-device.rst
@@ -75,7 +75,8 @@ delete <device>|<devid> [<device>|<devid>...] <path>
Alias of remove kept for backward compatibility
replace <command> [options] <path>
- Alias of whole command group *btrfs replace* for convenience. See ``btrfs-replace(8)``.
+ Alias of whole command group *btrfs replace* for convenience. See
+ :doc:`btrfs-replace(8)<btrfs-replace>`.
ready <device>
Wait until all devices of a multiple-device filesystem are scanned and
@@ -248,6 +249,7 @@ further details.
SEE ALSO
--------
-``mkfs.btrfs(8)``,
-``btrfs-replace(8)``,
-``btrfs-balance(8)``
+:doc:`btrfs-balance(8)<btrfs-balance>`
+:doc:`btrfs-device(8)<btrfs-device>`,
+:doc:`btrfs-replace(8)<btrfs-replace>`,
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`,
diff --git a/Documentation/btrfs-filesystem.rst b/Documentation/btrfs-filesystem.rst
index 11a59437..8587d85c 100644
--- a/Documentation/btrfs-filesystem.rst
+++ b/Documentation/btrfs-filesystem.rst
@@ -323,7 +323,7 @@ usage [options] <path> [<path>...]
block reserve, used for emergency purposes (like deletion on a full
filesystem)
* *Multiple profiles* -- what block group types (data, metadata) have
- more than one profile (single, raid1, ...), see ``btrfs(5)`` section
+ more than one profile (single, raid1, ...), see :doc:`btrfs(5)<btrfs-man5>` section
*FILESYSTEMS WITH MULTIPLE BLOCK GROUP PROFILES*.
And on a zoned filesystem there are two more lines in the *Device* section:
@@ -453,5 +453,5 @@ further details.
SEE ALSO
--------
-``btrfs-subvolume(8)``,
-``mkfs.btrfs(8)``
+:doc:`btrfs-subvolume(8)<btrfs-subvolume>`,
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`
diff --git a/Documentation/btrfs-find-root.rst b/Documentation/btrfs-find-root.rst
index b9281021..fe85c50d 100644
--- a/Documentation/btrfs-find-root.rst
+++ b/Documentation/btrfs-find-root.rst
@@ -33,4 +33,4 @@ If any problems happened, 1 will be returned.
SEE ALSO
--------
-``mkfs.btrfs(8)``
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`
diff --git a/Documentation/btrfs-image.rst b/Documentation/btrfs-image.rst
index a7b200c1..edc252a3 100644
--- a/Documentation/btrfs-image.rst
+++ b/Documentation/btrfs-image.rst
@@ -62,4 +62,4 @@ If any problems happened, 1 will be returned.
SEE ALSO
--------
-``mkfs.btrfs(8)``
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`
diff --git a/Documentation/btrfs-inspect-internal.rst b/Documentation/btrfs-inspect-internal.rst
index 710a34fb..886eac37 100644
--- a/Documentation/btrfs-inspect-internal.rst
+++ b/Documentation/btrfs-inspect-internal.rst
@@ -219,4 +219,4 @@ further details.
SEE ALSO
--------
-``mkfs.btrfs(8)``
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`
diff --git a/Documentation/btrfs-man5.rst b/Documentation/btrfs-man5.rst
index 78cff65c..d5d23991 100644
--- a/Documentation/btrfs-man5.rst
+++ b/Documentation/btrfs-man5.rst
@@ -39,11 +39,11 @@ There are several classes and the respective tools to manage the features:
at mkfs time only
This is namely for core structures, like the b-tree nodesize or checksum
- algorithm, see ``mkfs.btrfs(8)`` for more details.
+ algorithm, see :doc:`mkfs.btrfs(8)<mkfs.btrfs>` for more details.
after mkfs, on an unmounted filesystem::
Features that may optimize internal structures or add new structures to support
- new functionality, see ``btrfstune(8)``. The command **btrfs inspect-internal
+ new functionality, see :doc:`btrfstune(8)<btrfstune>`. The command **btrfs inspect-internal
dump-super /dev/sdx** will dump a superblock, you can map the value of
*incompat_flags* to the features listed below
@@ -57,7 +57,7 @@ after mkfs, on a mounted filesystem
in the directory */sys/fs/btrfs/features/*, one file per feature. The value *1*
means the feature can be enabled.
-List of features (see also ``mkfs.btrfs(8)`` section *FILESYSTEM FEATURES*):
+List of features (see also :doc:`mkfs.btrfs(8)<mkfs.btrfs>` section *FILESYSTEM FEATURES*):
big_metadata
(since: 3.4)
@@ -99,7 +99,7 @@ metadata_uuid
the main filesystem UUID is the metadata_uuid, which stores the new UUID only
in the superblock while all metadata blocks still have the UUID set at mkfs
- time, see ``btrfstune(8)`` for more
+ time, see :doc:`btrfstune(8)<btrfstune>` for more
mixed_backref
(since: 2.6.31)
@@ -167,7 +167,7 @@ supported_rescue_options
(since: 5.11)
list of values for the mount option *rescue* that are supported by the running
- kernel, see ``btrfs(5)``
+ kernel, see :doc:`btrfs(5)<btrfs-man5>`
zoned
(since: 5.12)
@@ -287,7 +287,7 @@ FILESYSTEM WITH MULTIPLE PROFILES
It is possible that a btrfs filesystem contains multiple block group profiles
of the same type. This could happen when a profile conversion using balance
-filters is interrupted (see ``btrfs-balance(8)``). Some **btrfs** commands perform
+filters is interrupted (see :doc:`btrfs-balance(8)<btrfs-balance>`). Some **btrfs** commands perform
a test to detect this kind of condition and print a warning like this:
.. code-block:: none
@@ -415,10 +415,10 @@ SEE ALSO
--------
``acl(5)``,
-``btrfs(8)``,
+:doc:`btrfs(8)<btrfs>`,
``chattr(1)``,
``fstrim(8)``,
``ioctl(2)``,
-``mkfs.btrfs(8)``,
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`,
``mount(8)``,
``swapon(8)``
diff --git a/Documentation/btrfs-map-logical.rst b/Documentation/btrfs-map-logical.rst
index c638f247..16504976 100644
--- a/Documentation/btrfs-map-logical.rst
+++ b/Documentation/btrfs-map-logical.rst
@@ -35,4 +35,4 @@ If any problems happened, 1 will be returned.
SEE ALSO
--------
-``mkfs.btrfs(8)``
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`
diff --git a/Documentation/btrfs-property.rst b/Documentation/btrfs-property.rst
index 03c2cc94..964748ab 100644
--- a/Documentation/btrfs-property.rst
+++ b/Documentation/btrfs-property.rst
@@ -55,7 +55,7 @@ Subvolume properties
ro
read-only flag of subvolume: true or false. Please also see section *SUBVOLUME FLAGS*
- in ``btrfs-subvolume(8)`` for possible implications regarding incremental send.
+ in :doc:`btrfs-subvolume(8)<btrfs-subvolume>` for possible implications regarding incremental send.
Filesystem properties
^^^^^^^^^^^^^^^^^^^^^
@@ -124,6 +124,6 @@ further details.
SEE ALSO
--------
-``mkfs.btrfs(8)``,
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`,
``lsattr(1)``,
``chattr(1)``
diff --git a/Documentation/btrfs-qgroup.rst b/Documentation/btrfs-qgroup.rst
index 24e5dfaa..2420fbd3 100644
--- a/Documentation/btrfs-qgroup.rst
+++ b/Documentation/btrfs-qgroup.rst
@@ -230,6 +230,6 @@ further details.
SEE ALSO
--------
-``mkfs.btrfs(8)``,
-``btrfs-subvolume(8)``,
-``btrfs-quota(8)``,
+:doc:`btrfs-quota(8)<btrfs-quota>`,
+:doc:`btrfs-subvolume(8)<btrfs-subvolume>`,
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`,
diff --git a/Documentation/btrfs-quota.rst b/Documentation/btrfs-quota.rst
index da26e754..3e925ed3 100644
--- a/Documentation/btrfs-quota.rst
+++ b/Documentation/btrfs-quota.rst
@@ -11,7 +11,7 @@ DESCRIPTION
The commands under **btrfs quota** are used to affect the global status of quotas
of a btrfs filesystem. The quota groups (qgroups) are managed by the subcommand
-``btrfs-qgroup(8)``.
+:doc:`btrfs-qgroup(8)<btrfs-qgroup>`.
.. note::
Qgroups are different than the traditional user quotas and designed
@@ -73,6 +73,6 @@ further details.
SEE ALSO
--------
-``mkfs.btrfs(8)``,
-``btrfs-subvolume(8)``,
-``btrfs-qgroup(8)``
+:doc:`btrfs-qgroup(8)<btrfs-qgroup>`,
+:doc:`btrfs-subvolume(8)<btrfs-subvolume>`,
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`
diff --git a/Documentation/btrfs-receive.rst b/Documentation/btrfs-receive.rst
index b9a3cad6..90f19ee9 100644
--- a/Documentation/btrfs-receive.rst
+++ b/Documentation/btrfs-receive.rst
@@ -59,7 +59,7 @@ A subvolume is made read-only after the receiving process finishes successfully
--force-decompress
if the stream contains compressed data (see *--compressed-data* in
- ``btrfs-send(8)``), always decompress it instead of writing it with
+ :doc:`btrfs-send(8)<btrfs-send>`), always decompress it instead of writing it with
encoded I/O
--dump
@@ -118,5 +118,5 @@ further details.
SEE ALSO
--------
-``mkfs.btrfs(8)``,
-``btrfs-send(8)``
+:doc:`btrfs-send(8)<btrfs-send>`,
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`
diff --git a/Documentation/btrfs-replace.rst b/Documentation/btrfs-replace.rst
index 1846a6c6..8fd30ac1 100644
--- a/Documentation/btrfs-replace.rst
+++ b/Documentation/btrfs-replace.rst
@@ -58,7 +58,7 @@ start [options] <srcdev>|<devid> <targetdev> <path>
-K|--nodiscard
Do not perform whole device TRIM operation on devices that are capable of that.
This does not affect discard/trim operation when the filesystem is mounted.
- Please see the mount option *discard* for that in ``btrfs(5)``.
+ Please see the mount option *discard* for that in :doc:`btrfs(5)<btrfs-man5>`.
status [-1] <mount_point>
Print status and progress information of a running device replace operation.
@@ -99,7 +99,7 @@ You can monitor progress via:
btrfs replace status /mnt/my-vault/
-After the replacement is complete, as per the docs at ``btrfs-filesystem(8)`` in
+After the replacement is complete, as per the docs at :doc:`btrfs-filesystem(8)<btrfs-filesystem>` in
order to use the entire storage space of the new drive you need to run:
.. code-block:: bash
@@ -122,6 +122,6 @@ further details.
SEE ALSO
--------
-``mkfs.btrfs(8)``,
-``btrfs-device(8)``,
-``btrfs-filesystem(8)``,
+:doc:`btrfs-device(8)<btrfs-device>`,
+:doc:`btrfs-filesystem(8)<btrfs-filesystem>`,
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`
diff --git a/Documentation/btrfs-rescue.rst b/Documentation/btrfs-rescue.rst
index 57feff6d..0caba9f2 100644
--- a/Documentation/btrfs-rescue.rst
+++ b/Documentation/btrfs-rescue.rst
@@ -120,6 +120,6 @@ further details.
SEE ALSO
--------
-``mkfs.btrfs(8)``,
-``btrfs-scrub(8)``,
-``btrfs-check(8)``
+:doc:`btrfs-check(8)<btrfs-check>`,
+:doc:`btrfs-scrub(8)<btrfs-scrub>`,
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`
diff --git a/Documentation/btrfs-restore.rst b/Documentation/btrfs-restore.rst
index a1f03dfd..35c8265b 100644
--- a/Documentation/btrfs-restore.rst
+++ b/Documentation/btrfs-restore.rst
@@ -14,7 +14,7 @@ restore them into *path* or just list the subvolume tree roots. The filesystem
image is not modified.
If the filesystem is damaged and cannot be repaired by the other tools
-(``btrfs-check(8)`` or ``btrfs-rescue(8)``), **btrfs restore** could be used to
+(:doc:`btrfs-check(8)<btrfs-check>` or :doc:`btrfs-rescue(8)<btrfs-rescue>`), **btrfs restore** could be used to
retrieve file data, as far as the metadata are readable. The checks done by
restore are less strict and the process is usually able to get far enough to
retrieve data from the whole filesystem. This comes at a cost that some data
@@ -112,6 +112,6 @@ further details.
SEE ALSO
--------
-``mkfs.btrfs(8)``,
-``btrfs-rescue(8)``,
-``btrfs-check(8)``
+:doc:`btrfs-check(8)<btrfs-check>`,
+:doc:`btrfs-rescue(8)<btrfs-rescue>`,
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`
diff --git a/Documentation/btrfs-scrub.rst b/Documentation/btrfs-scrub.rst
index 75079eec..9d500c07 100644
--- a/Documentation/btrfs-scrub.rst
+++ b/Documentation/btrfs-scrub.rst
@@ -127,5 +127,5 @@ further details.
SEE ALSO
--------
-``mkfs.btrfs(8)``,
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`,
``ionice(1)``
diff --git a/Documentation/btrfs-select-super.rst b/Documentation/btrfs-select-super.rst
index a61a0234..ff3ae3ad 100644
--- a/Documentation/btrfs-select-super.rst
+++ b/Documentation/btrfs-select-super.rst
@@ -43,4 +43,4 @@ OPTIONS
SEE ALSO
--------
-btrfs(8)
+:doc:`btrfs(8)<btrfs>`
diff --git a/Documentation/btrfs-send.rst b/Documentation/btrfs-send.rst
index 4d9c62ec..f58b9231 100644
--- a/Documentation/btrfs-send.rst
+++ b/Documentation/btrfs-send.rst
@@ -35,7 +35,7 @@ the clone sources.
You must not specify clone sources unless you guarantee that these snapshots
are exactly in the same state on both sides--both for the sender and the
receiver. For implications of changed read-write status of a received snapshot
-please see section *SUBVOLUME FLAGS* in ``btrfs-subvolume(8)``.
+please see section *SUBVOLUME FLAGS* in :doc:`btrfs-subvolume(8)<btrfs-subvolume>`.
``Options``
@@ -114,6 +114,6 @@ further details.
SEE ALSO
--------
-``mkfs.btrfs(8)``,
-``btrfs-receive(8)``,
-``btrfs-subvolume(8)``
+:doc:`btrfs-receive(8)<btrfs-receive>`,
+:doc:`btrfs-subvolume(8)<btrfs-subvolume>`,
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`
diff --git a/Documentation/btrfs-subvolume.rst b/Documentation/btrfs-subvolume.rst
index 9cb7faf0..8e4196b7 100644
--- a/Documentation/btrfs-subvolume.rst
+++ b/Documentation/btrfs-subvolume.rst
@@ -272,8 +272,8 @@ further details.
SEE ALSO
--------
-``mkfs.btrfs(8)``,
-``mount(8)``,
-``btrfs-quota(8)``,
-``btrfs-qgroup(8)``,
-``btrfs-send(8)``
+:doc:`btrfs-qgroup(8)<btrfs-qgroup>`,
+:doc:`btrfs-quota(8)<btrfs-quota>`,
+:doc:`btrfs-send(8)<btrfs-send>`,
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`,
+``mount(8)``
diff --git a/Documentation/btrfs.rst b/Documentation/btrfs.rst
index fe4349d4..5f38fabb 100644
--- a/Documentation/btrfs.rst
+++ b/Documentation/btrfs.rst
@@ -18,7 +18,7 @@ There are also standalone tools for some tasks like **btrfs-convert** or
main utility. See section *STANDALONE TOOLS* for more details.
For other topics (mount options, etc) please refer to the separate manual
-page ``btrfs(5)``.
+page :doc:`btrfs(5)<btrfs-man5>`.
COMMAND SYNTAX
--------------
@@ -43,63 +43,63 @@ COMMANDS
balance
Balance btrfs filesystem chunks across single or several devices.
- See ``btrfs-balance(8)`` for details.
+ See :doc:`btrfs-balance(8)<btrfs-balance>` for details.
check
Do off-line check on a btrfs filesystem.
- See ``btrfs-check(8)`` for details.
+ See :doc:`btrfs-check(8)<btrfs-check>` for details.
device
Manage devices managed by btrfs, including add/delete/scan and so
- on. See ``btrfs-device(8)`` for details.
+ on. See :doc:`btrfs-device(8)<btrfs-device>` for details.
filesystem
Manage a btrfs filesystem, including label setting/sync and so on.
- See ``btrfs-filesystem(8)`` for details.
+ See :doc:`btrfs-filesystem(8)<btrfs-filesystem>` for details.
inspect-internal
Debug tools for developers/hackers.
- See ``btrfs-inspect-internal(8)`` for details.
+ See :doc:`btrfs-inspect-internal(8)<btrfs-inspect-internal>` for details.
property
Get/set a property from/to a btrfs object.
- See ``btrfs-property(8)`` for details.
+ See :doc:`btrfs-property(8)<btrfs-property>` for details.
qgroup
Manage quota group(qgroup) for btrfs filesystem.
- See ``btrfs-qgroup(8)`` for details.
+ See :doc:`btrfs-qgroup(8)<btrfs-qgroup>` for details.
quota
Manage quota on btrfs filesystem like enabling/rescan and etc.
- See ``btrfs-quota(8)`` and ``btrfs-qgroup(8)`` for details.
+ See :doc:`btrfs-quota(8)<btrfs-quota>` and :doc:`btrfs-qgroup(8)<btrfs-qgroup>` for details.
receive
Receive subvolume data from stdin/file for restore and etc.
- See ``btrfs-receive(8)`` for details.
+ See :doc:`btrfs-receive(8)<btrfs-receive>` for details.
replace
Replace btrfs devices.
- See ``btrfs-replace(8)`` for details.
+ See :doc:`btrfs-replace(8)<btrfs-replace>` for details.
rescue
Try to rescue damaged btrfs filesystem.
- See ``btrfs-rescue(8)`` for details.
+ See :doc:`btrfs-rescue(8)<btrfs-rescue>` for details.
restore
Try to restore files from a damaged btrfs filesystem.
- See ``btrfs-restore(8)`` for details.
+ See :doc:`btrfs-restore(8)<btrfs-restore>` for details.
scrub
Scrub a btrfs filesystem.
- See ``btrfs-scrub(8)`` for details.
+ See :doc:`btrfs-scrub(8)<btrfs-scrub>` for details.
send
Send subvolume data to stdout/file for backup and etc.
- See ``btrfs-send(8)`` for details.
+ See :doc:`btrfs-send(8)<btrfs-send>` for details.
subvolume
Create/delete/list/manage btrfs subvolume.
- See ``btrfs-subvolume(8)`` for details.
+ See :doc:`btrfs-subvolume(8)<btrfs-subvolume>` for details.
STANDALONE TOOLS
----------------
@@ -152,22 +152,22 @@ further details.
SEE ALSO
--------
-``btrfs(5)``,
-``btrfs-balance(8)``,
-``btrfs-check(8)``,
-``btrfs-convert(8)``,
-``btrfs-device(8)``,
-``btrfs-filesystem(8)``,
-``btrfs-inspect-internal(8)``,
-``btrfs-property(8)``,
-``btrfs-qgroup(8)``,
-``btrfs-quota(8)``,
-``btrfs-receive(8)``,
-``btrfs-replace(8)``,
-``btrfs-rescue(8)``,
-``btrfs-restore(8)``,
-``btrfs-scrub(8)``,
-``btrfs-send(8)``,
-``btrfs-subvolume(8)``,
-``btrfstune(8)``,
-``mkfs.btrfs(8)``
+:doc:`btrfs(5)<btrfs-man5>`,
+:doc:`btrfs-balance(8)<btrfs-balance>`,
+:doc:`btrfs-check(8)<btrfs-check>`,
+:doc:`btrfs-convert(8)<btrfs-convert>`,
+:doc:`btrfs-device(8)<btrfs-device>`,
+:doc:`btrfs-filesystem(8)<btrfs-filesystem>`,
+:doc:`btrfs-inspect-internal(8)<btrfs-inspect-internal>`,
+:doc:`btrfs-property(8)<btrfs-property>`,
+:doc:`btrfs-qgroup(8)<btrfs-qgroup>`,
+:doc:`btrfs-quota(8)<btrfs-quota>`,
+:doc:`btrfs-receive(8)<btrfs-receive>`,
+:doc:`btrfs-replace(8)<btrfs-replace>`,
+:doc:`btrfs-rescue(8)<btrfs-rescue>`,
+:doc:`btrfs-restore(8)<btrfs-restore>`,
+:doc:`btrfs-scrub(8)<btrfs-scrub>`,
+:doc:`btrfs-send(8)<btrfs-send>`,
+:doc:`btrfs-subvolume(8)<btrfs-subvolume>`,
+:doc:`btrfstune(8)<btrfstune>`,
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`
diff --git a/Documentation/btrfstune.rst b/Documentation/btrfstune.rst
index 01c59d6d..92185c79 100644
--- a/Documentation/btrfstune.rst
+++ b/Documentation/btrfstune.rst
@@ -16,10 +16,10 @@ The common usecase is to enable features that were not enabled at mkfs time.
Please make sure that you have kernel support for the features. You can find a
complete list of features and kernel version of their introduction at
https://btrfs.wiki.kernel.org/index.php/Changelog#By_feature . Also, the
-manual page ``mkfs.btrfs(8)`` contains more details about the features.
+manual page :doc:`mkfs.btrfs(8)<mkfs.btrfs>` contains more details about the features.
Some of the features could be also enabled on a mounted filesystem by other
-means. Please refer to the *FILESYSTEM FEATURES* in ``btrfs(5)``.
+means. Please refer to the *FILESYSTEM FEATURES* in :doc:`btrfs(5)<btrfs-man5>`.
OPTIONS
-------
@@ -69,7 +69,7 @@ OPTIONS
disable it. A seeding filesystem is forced to be mounted read-only. A
new device can be added to the filesystem and will capture all writes
keeping the seeding device intact. See also section *SEEDING DEVICE*
- in ``btrfs(5)``.
+ in :doc:`btrfs(5)<btrfs-man5>`.
.. warning::
Clearing the seeding flag on a device may be dangerous. If a
@@ -110,7 +110,7 @@ OPTIONS
All newly created extents will use the new representation. To
completely switch the entire filesystem, run a full balance of the
- metadata. Please refer to ``btrfs-balance(8)``.
+ metadata. Please refer to :doc:`btrfs-balance(8)<btrfs-balance>`.
EXIT STATUS
@@ -128,6 +128,6 @@ will be declared obsolete and scheduled for removal.
SEE ALSO
--------
-``btrfs(5)``,
-``btrfs-balance(8)``,
-``mkfs.btrfs(8)``
+:doc:`btrfs(5)<btrfs-man5>`,
+:doc:`btrfs-balance(8)<btrfs-balance>`,
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>`
diff --git a/Documentation/ch-balance-filters.rst b/Documentation/ch-balance-filters.rst
index 2ca141fb..5754a262 100644
--- a/Documentation/ch-balance-filters.rst
+++ b/Documentation/ch-balance-filters.rst
@@ -80,4 +80,4 @@ Profile names, used in *profiles* and *convert* are one of: *raid0*, *raid1*,
*raid1c3*, *raid1c4*, *raid10*, *raid5*, *raid6*, *dup*, *single*. The mixed
data/metadata profiles can be converted in the same way, but it's conversion
between mixed and non-mixed is not implemented. For the constraints of the
-profiles please refer to ``mkfs.btrfs(8)``, section *PROFILES*.
+profiles please refer to :doc:`mkfs.btrfs(8)<mkfs.btrfs>`, section *PROFILES*.
diff --git a/Documentation/ch-balance-intro.rst b/Documentation/ch-balance-intro.rst
index f885903a..783d3680 100644
--- a/Documentation/ch-balance-intro.rst
+++ b/Documentation/ch-balance-intro.rst
@@ -1,6 +1,6 @@
The primary purpose of the balance feature is to spread block groups across
all devices so they match constraints defined by the respective profiles. See
-``mkfs.btrfs(8)`` section *PROFILES* for more details.
+:doc:`mkfs.btrfs(8)<mkfs.btrfs>` section *PROFILES* for more details.
The scope of the balancing process can be further tuned by use of filters that
can select the block groups to process. Balance works only on a mounted
filesystem. Extent sharing is preserved and reflinks are not broken.
diff --git a/Documentation/ch-compression.rst b/Documentation/ch-compression.rst
index 1e537184..ada63976 100644
--- a/Documentation/ch-compression.rst
+++ b/Documentation/ch-compression.rst
@@ -151,5 +151,3 @@ work together.
The compression algorithms have been added over time so the version
compatibility should be also considered, together with other tools that may
access the compressed data like bootloaders.
-
-
diff --git a/Documentation/ch-convert-intro.rst b/Documentation/ch-convert-intro.rst
index 56d1c7a6..7439bf6a 100644
--- a/Documentation/ch-convert-intro.rst
+++ b/Documentation/ch-convert-intro.rst
@@ -89,7 +89,7 @@ lack of enough work space. This is a soft error leaving the filesystem usable
but the block group layout may remain unchanged.
Note that balance operation takes a lot of time, please see also
-``btrfs-balance(8)``.
+:doc:`btrfs-balance(8)<btrfs-balance>`.
.. code-block:: bash
diff --git a/Documentation/ch-file-attributes.rst b/Documentation/ch-file-attributes.rst
index 25132031..54bd236b 100644
--- a/Documentation/ch-file-attributes.rst
+++ b/Documentation/ch-file-attributes.rst
@@ -86,4 +86,3 @@ A
d
*no dump*, same as the attribute
-
diff --git a/Documentation/ch-mount-options.rst b/Documentation/ch-mount-options.rst
index f4ff0084..cbe5058c 100644
--- a/Documentation/ch-mount-options.rst
+++ b/Documentation/ch-mount-options.rst
@@ -351,7 +351,7 @@ space_cache, space_cache=<version>, nospace_cache
*clear_cache,nospace_cache* to do so. If *v2* is enabled, kernels without *v2*
support will only be able to mount the filesystem in read-only mode.
- The ``btrfs-check(8)`` and ```mkfs.btrfs(8)`` commands have full *v2* free space
+ The :doc:`btrfs-check(8)<btrfs-check>` and `:doc:`mkfs.btrfs(8)<mkfs.btrfs>` commands have full *v2* free space
cache support since v4.19.
If a version is not explicitly specified, the default implementation will be
diff --git a/Documentation/ch-subvolume-intro.rst b/Documentation/ch-subvolume-intro.rst
index ef6b7228..97269c64 100644
--- a/Documentation/ch-subvolume-intro.rst
+++ b/Documentation/ch-subvolume-intro.rst
@@ -54,7 +54,7 @@ In addition to that, a plain snapshot will also have last change generation and
creation generation equal.
Read-only snapshots are building blocks of incremental send (see
-``btrfs-send(8)``) and the whole use case relies on unmodified snapshots where
+:doc:`btrfs-send(8)<btrfs-send>`) and the whole use case relies on unmodified snapshots where
the relative changes are generated from. Thus, changing the subvolume flags
from read-only to read-write will break the assumptions and may lead to
unexpected changes in the resulting incremental stream.
diff --git a/Documentation/ch-volume-management-intro.rst b/Documentation/ch-volume-management-intro.rst
index 814878b5..e0e16445 100644
--- a/Documentation/ch-volume-management-intro.rst
+++ b/Documentation/ch-volume-management-intro.rst
@@ -3,7 +3,7 @@ Devices can be then added, removed or replaced on demand. Data and metadata are
organized in allocation profiles with various redundancy policies. There's some
similarity with traditional RAID levels, but this could be confusing to users
familiar with the traditional meaning. Due to the similarity, the RAID
-terminology is widely used in the documentation. See ``mkfs.btrfs(8)`` for more
+terminology is widely used in the documentation. See :doc:`mkfs.btrfs(8)<mkfs.btrfs>` for more
details and the exact profile capabilities and constraints.
The device management works on a mounted filesystem. Devices can be added,
diff --git a/Documentation/fsck.btrfs.rst b/Documentation/fsck.btrfs.rst
index f7c2cfeb..6d7c6efc 100644
--- a/Documentation/fsck.btrfs.rst
+++ b/Documentation/fsck.btrfs.rst
@@ -18,7 +18,7 @@ filesystem was not unmounted cleanly and the log needs to be replayed before
mount. This is not needed for BTRFS. You should set fs_passno to 0.
If you wish to check the consistency of a BTRFS filesystem or repair a damaged
-filesystem, see ``btrfs-check(8)``. By default filesystem consistency is checked,
+filesystem, see :doc:`btrfs-check(8)<btrfs-check>`. By default filesystem consistency is checked,
the repair mode is enabled via the *--repair* option (use with care!).
OPTIONS
@@ -47,6 +47,6 @@ FILES
SEE ALSO
--------
-``btrfs(8)``,
+:doc:`btrfs(8)<btrfs>`,
``fsck(8)``,
``fstab(5)``
diff --git a/Documentation/mkfs.btrfs.rst b/Documentation/mkfs.btrfs.rst
index 6112be07..2063262a 100644
--- a/Documentation/mkfs.btrfs.rst
+++ b/Documentation/mkfs.btrfs.rst
@@ -20,7 +20,7 @@ mount option. See section *MULTIPLE DEVICES* for more details.
The default block group profiles for data and metadata depend on number of
devices and possibly other factors. It's recommended to use specific profiles
but the defaults should be OK and allowing future conversions to other profiles.
-Please see options *-d* and *-m* for further details and ``btrfs-balance(8)`` for
+Please see options *-d* and *-m* for further details and :doc:`btrfs-balance(8)<btrfs-balance>` for
the profile conversion post mkfs.
OPTIONS
@@ -33,7 +33,7 @@ OPTIONS
--csum <type>, --checksum <type>
Specify the checksum algorithm. Default is *crc32c*. Valid values are *crc32c*,
*xxhash*, *sha256* or *blake2*. To mount such filesystem kernel must support the
- checksums as well. See *CHECKSUM ALGORITHMS* in ``btrfs(5)``.
+ checksums as well. See *CHECKSUM ALGORITHMS* in :doc:`btrfs(5)<btrfs-man5>`.
-d|--data <profile>
Specify the profile for the data block groups. Valid values are *raid0*,
@@ -129,7 +129,7 @@ OPTIONS
-K|--nodiscard
Do not perform whole device TRIM operation on devices that are capable of that.
This does not affect discard/trim operation when the filesystem is mounted.
- Please see the mount option *discard* for that in ``btrfs(5)``.
+ Please see the mount option *discard* for that in :doc:`btrfs(5)<btrfs-man5>`.
-r|--rootdir <rootdir>
Populate the toplevel subvolume with files from *rootdir*. This does not
@@ -238,7 +238,7 @@ devices to scan at the time of mount.
FILESYSTEM FEATURES
-------------------
-Features that can be enabled during creation time. See also ``btrfs(5)`` section
+Features that can be enabled during creation time. See also :doc:`btrfs(5)<btrfs-man5>` section
*FILESYSTEM FEATURES*.
mixed-bg
@@ -274,7 +274,7 @@ zoned
(kernel support since 5.12)
zoned mode, data allocation and write friendly to zoned/SMR/ZBC/ZNS devices,
- see *ZONED MODE* in ``btrfs(5)``, the mode is automatically selected when
+ see *ZONED MODE* in :doc:`btrfs(5)<btrfs-man5>`, the mode is automatically selected when
a zoned device is detected
@@ -290,7 +290,7 @@ quota
(kernel support since 3.4)
Enable quota support (qgroups). The qgroup accounting will be consistent,
- can be used together with *--rootdir*. See also ``btrfs-quota(8)``.
+ can be used together with *--rootdir*. See also :doc:`btrfs-quota(8)<btrfs-quota>`.
free-space-tree
(default since btrfs-progs 5.15, kernel support since 4.5)
@@ -544,7 +544,7 @@ further details.
SEE ALSO
--------
-``btrfs(5)``,
-``btrfs(8)``,
-``btrfs-balance(8)``,
+:doc:`btrfs(5)<btrfs-man5>`,
+:doc:`btrfs(8)<btrfs>`,
+:doc:`btrfs-balance(8)<btrfs-balance>`,
``wipefs(8)``