btrfs-progs: docs: add figure 1 to btrfs quota doc
authorMisono, Tomohiro <misono.tomohiro@jp.fujitsu.com>
Thu, 24 Aug 2017 17:45:55 +0000 (19:45 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 24 Aug 2017 17:45:55 +0000 (19:45 +0200)
The document of btrfs quota is missing figure 1.

I notice the body is copy of http://sensille.com/qgroups.pdf (which is
linked from https://btrfs.wiki.kernel.org/index.php/Quota_support), and
insert the figure.

Signed-off-by: David Sterba <dsterba@suse.com>
Documentation/btrfs-quota.asciidoc

index ef2e5d3..f882647 100644 (file)
@@ -96,7 +96,23 @@ instead of '0/ID'.  For all higher levels, the ID can be chosen freely.
 Each qgroup can contain a set of lower level qgroups, thus creating a hierarchy
 of qgroups. Figure 1 shows an example qgroup tree.
 
-// TODO: insert Figure 1
+                          +---+
+                          |2/1|
+                          +---+
+                         /     \
+                   +---+/       \+---+
+                   |1/1|         |1/2|
+                   +---+         +---+
+                  /     \       /     \
+            +---+/       \+---+/       \+---+
+qgroups     |0/1|         |0/2|         |0/3|
+            +-+-+         +---+         +---+
+              |          /     \       /     \
+              |         /       \     /       \
+              |        /         \   /         \
+extents       1       2            3            4
+
+Figure1: Sample qgroup hierarchy
 
 At the bottom, some extents are depicted showing which qgroups reference which
 extents.  It is important to understand the notion of 'referenced' vs