1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
|
btrfs-quota(8)
==============
SYNOPSIS
--------
**btrfs quota** <subcommand> <args>
DESCRIPTION
-----------
The commands under :command:`btrfs quota` are used to affect the global status of quotas
of a btrfs filesystem. The quota groups (qgroups) are managed by the subcommand
:doc:`btrfs-qgroup`.
.. note::
Qgroups are different than the traditional user quotas and designed
to track shared and exclusive data per-subvolume. Please refer to the section
:ref:`HIERARCHICAL QUOTA GROUP CONCEPTS<man-quota-hierarchical-quota-group-concepts>`
for a detailed description.
STABILITY AND PERFORMANCE IMPLICATIONS
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The qgroup implementation is considered reasonably stable for daily use and has
been enabled in various distributions.
When quotas are activated, they affect all extent processing, which takes a
performance hit. Activation of qgroups is not recommended unless the user
intends to actually use them.
.. _man-quota-hierarchical-quota-group-concepts:
HIERARCHICAL QUOTA GROUP CONCEPTS
---------------------------------
.. include:: ch-quota-intro.rst
SUBCOMMAND
----------
disable <path>
Disable subvolume quota support for a filesystem.
enable [options] <path>
Enable subvolume quota support for a filesystem. At this point it's
possible the two modes of accounting. The *full* means that extent
ownership by subvolumes will be tracked all the time, *simple* will
account everything to the first owner. See the section for more details.
``Options``
-s|--simple
use simple quotas (squotas) instead of full qgroup accounting
rescan [options] <path>
Trash all qgroup numbers and scan the metadata again with the current config.
``Options``
-s|--status
show status of a running rescan operation.
-w|--wait
start rescan and wait for it to finish (can be already in progress)
-W|--wait-norescan
wait for rescan to finish without starting it
status [options] <path>
Print status information about quotas if enabled on *path*. The information
is read from :file:`/sys/fs/btrfs/FSID/qgroups` and root privileges are
not needed.
Example output for quotas enabled by :command:`btrfs quota enable /mnt`:
.. code-block:: none
Quotas on /mnt:
Enabled: yes
Mode: qgroup (full accounting)
Inconsistent: no
Override limits: no
Drop subtree threshold: 3
Total count: 1
Level 0: 1
``Options``
--is-enabled
only check if quotas are enabled, not not print anything
EXIT STATUS
-----------
**btrfs quota** returns a zero exit status if it succeeds. Non zero is
returned in case of failure.
AVAILABILITY
------------
**btrfs** is part of btrfs-progs. Please refer to the documentation at
`https://btrfs.readthedocs.io <https://btrfs.readthedocs.io>`_.
SEE ALSO
--------
:doc:`btrfs-qgroup`,
:doc:`btrfs-subvolume`,
:doc:`mkfs.btrfs`
|