]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- added documentation
authorArvin Schnell <aschnell@suse.de>
Tue, 22 Sep 2015 10:22:36 +0000 (12:22 +0200)
committerArvin Schnell <aschnell@suse.de>
Tue, 22 Sep 2015 10:22:36 +0000 (12:22 +0200)
client/mksubvolume.cc

index 16e41d253bf7c1e223ddae482cffb28c4bc44ab2..51274123eed19fafa250c106ef24fc812c94bddb 100644 (file)
@@ -258,6 +258,23 @@ find_filesystem(MntTable& mnt_table)
 }
 
 
+/*
+ * The used algorithm is as follow:
+ *
+ * 1. Search upwards from target for a filesystem (not mounted with subvol
+ *    option). The filesystem must of course be btrfs.
+ *
+ * 2. Determine the name for new subvolume: It is the target name without the
+ *    leading filesystem target (mountpoint).
+ *
+ * 3. Temporarily mount the filesystem and create new subvolume. Reasons for
+ *    the mount are documented in bsc #910602.
+ *
+ * 4. Create new subvolume.
+ *
+ * 5. Add new subvolume mount to fstab and mount new subvolume.
+ */
+
 void
 doit()
 {