X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=Documentation%2Fbtrfs-subvolume.asciidoc;h=a8c4af4bce11a777512eb6669dcfffe84661c28b;hb=43dea2af140fe21111e7ce8491cad2724d73b2d4;hp=3419b138b0bb24ee4b8c87607f5eb2906062cecd;hpb=e135ee70b8cfaff4496effe9a58ecf5f5de33292;p=platform%2Fupstream%2Fbtrfs-progs.git diff --git a/Documentation/btrfs-subvolume.asciidoc b/Documentation/btrfs-subvolume.asciidoc index 3419b13..a8c4af4 100644 --- a/Documentation/btrfs-subvolume.asciidoc +++ b/Documentation/btrfs-subvolume.asciidoc @@ -17,7 +17,7 @@ snapshots. SUBVOLUME AND SNAPSHOT ---------------------- -A subvolume is a part of filesystem with its own and independent +A subvolume is a part of filesystem with its own independent file/directory hierarchy. Subvolumes can share file extents. A snapshot is also subvolume, but with a given initial content of the original subvolume. @@ -66,10 +66,13 @@ If is not a subvolume, btrfs returns an error but continues if there are more arguments to process. + The corresponding directory is removed instantly but the data blocks are -removed later. The deletion does not involve full commit by default due to -performance reasons (as a consequence, the subvolume may appear again after a -crash). Use one of the '--commit' options to wait until the operation is safely -stored on the media. +removed later in the background. The command returns immediately. See `btrfs +subvolume sync` how to wait until the subvolume gets completely removed. ++ +The deletion does not involve full transaction commit by default due to +performance reasons. As a consequence, the subvolume may appear again after a +crash. Use one of the '--commit' options to wait until the operation is +safely stored on the device. + `Options` + @@ -139,29 +142,37 @@ you can add \'\+' or \'-' in front of each items, \'+' means ascending, for --sort you can combine some items together by \',', just like --sort=+ogen,-gen,path,rootid. -*set-default* :: -Set the subvolume of the filesystem which is mounted as -default. +*set-default* [| ]:: +Set the default subvolume for the (mounted) filesystem. + +Set the default subvolume for the (mounted) filesystem at . This will hide +the top-level subvolume (ie. the one mounted with 'subvol=/' or 'subvolid=5'). +Takes action on next mount. + -The subvolume is identified by , which is returned by the *subvolume list* -command. +There are two ways how to specify the subvolume, by or by the +path. +The id can be obtained from *btrfs subvolume list*, *btrfs subvolume show* or +*btrfs inspect-internal rootid*. *show* :: Show information of a given subvolume in the . *snapshot* [-r] |[/]:: -Create a writable/readonly snapshot of the subvolume with the +Create a snapshot of the subvolume with the name in the directory. + If only is given, the subvolume will be named the basename of . If is not a subvolume, btrfs returns an error. -If '-r' is given, the snapshot will be readonly. ++ +`Options` ++ +-r:::: +Make the new snapshot read only. *sync* [subvolid...]:: -Wait until given subvolume(s) are completely removed from the filesystem -after deletion. If no subvolume id is given, wait until all current deletion -requests are completed, but do not wait for subvolumes deleted meanwhile. -The status of subvolume ids is checked periodically. +Wait until given subvolume(s) are completely removed from the filesystem after +deletion. If no subvolume id is given, wait until all current deletion requests +are completed, but do not wait for subvolumes deleted in the meantime. + `Options` +