Skip to contentSkip to conversation

btrfs-progs: Doc: Add extra warning for -i option of snapshot creation

PATCH New Qu Wenruo 1 participant 1 message May 8, 2020

Subsystems (2)
lore
Share & tools
lore

Qu Wenruo

author
#0 lore raw

PATCH 1/1 btrfs-progs: Doc: Add extra warning for -i option of snapshot creation

That -i option of snapshot creation can easily make qgroup inconsistent. And unlike 'btrfs qgroup assign', the ioctl involved doesn't have way to inform user space that qgroup is inconsistent.

So add extra warning in the man page.

---
 Documentation/btrfs-subvolume.asciidoc | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/btrfs-subvolume.asciidoc +6 -0
index 1de6a6febbee..70ecc641e85e 100644
@@ -222,6 +222,12 @@ Make the new snapshot read only.
 -i <qgroupid>::::
 Add the newly created subvolume to a qgroup. This option can be given multiple
 times.
++
+WARNING: This parameter can make qgroup inconsistent, and due to the 
+limitation of snapshot creation ioctl, there is no way to inform user space
+that qgroup is inconsistent due to this operation.
+Please use 'btrfs qgroup assign' instead.
+
 
 *sync* <path> [subvolid...]::
 Wait until given subvolume(s) are completely removed from the filesystem after
Signature · 1 line
2.26.2