Go to file
Chris Mason 6c771595af Modify the subvol and snapshot creation ioctls to work anywhere in the tree
This changes the snapshot and subvol ioctl API and command lines so
that new snapshots and subvols can be created anywhere.

Subvolume creation hasn't changed much:

btrfsctl -S subvol_name directory

This creates a new subvolume under 'directory'

Snapshot creation looks the same, but is actually different:

btrfsctl -s full_path_to_new_snapshot file_or_dir

For example: btrfsctl -s /mnt/new_snap /mnt/subvol

Will create a new snapshot named new_snap under /mnt of the root
found in /mnt/subvol.  It always snapshots the entire root regardless of
which file or directory inside the root you give it.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
2008-11-18 11:26:35 -05:00
.hgignore Add .hgignore file to ignore verison.h 2008-07-23 11:36:13 -04:00
.hgtags Added tag v0.16 for changeset 2b26e4f8c71e 2008-08-04 15:46:36 -04:00
COPYING fix COPYING 2007-06-12 15:41:08 -04:00
INSTALL Documentation update 2007-06-28 16:02:01 -04:00
Makefile update btrfs-progs for seed device support 2008-11-18 10:40:06 -05:00
bcp bcp updates for single file copies 2008-05-02 16:12:02 -04:00
bit-radix.c Make btrfs-progs compile with -fstrict-aliasing (included in -O2) again. 2007-09-14 10:31:06 -04:00
bit-radix.h add GPLv2 2007-06-12 09:07:11 -04:00
btrfs-show.c Print the version string in a few programs 2008-07-24 12:13:30 -04:00
btrfs-vol.c Verify parent generation number on btree reads 2008-05-13 13:48:58 -04:00
btrfsck.c Add fallocate support v2 2008-10-31 12:48:02 -04:00
btrfsctl.c Modify the subvol and snapshot creation ioctls to work anywhere in the tree 2008-11-18 11:26:35 -05:00
btrfstune.c update btrfs-progs for seed device support 2008-11-18 10:40:06 -05:00
convert.c Full back reference support 2008-09-23 12:29:10 -04:00
crc32c.c CRC32C big endian bugs... 2008-02-15 11:20:02 -05:00
crc32c.h calculate checksums during IO 2007-06-28 16:20:29 -04:00
ctree.c update btrfs-progs for seed device support 2008-11-18 10:40:06 -05:00
ctree.h update btrfs-progs for seed device support 2008-11-18 10:40:06 -05:00
debug-tree.c Remove offset field from struct btrfs_extent_ref 2008-10-09 11:55:30 -04:00
dir-item.c Unaligned access fixes 2008-02-15 11:19:58 -05:00
dir-test.c Add a readonly flag open_ctree to force RO opens 2008-05-05 09:45:26 -04:00
disk-io.c update btrfs-progs for seed device support 2008-11-18 10:40:06 -05:00
disk-io.h Verify parent generation number on btree reads 2008-05-13 13:48:58 -04:00
extent-cache.c Add support for multiple devices per filesystem 2008-03-24 15:03:18 -04:00
extent-cache.h Port extent buffer to btrfs-progs 2008-01-04 10:36:26 -05:00
extent-tree.c update btrfs-progs for seed device support 2008-11-18 10:40:06 -05:00
extent_io.c Verify parent generation number on btree reads 2008-05-13 13:48:58 -04:00
extent_io.h Verify parent generation number on btree reads 2008-05-13 13:48:58 -04:00
file-item.c btrfs-progs: Fix printf format casting errors 2008-04-01 10:52:22 -04:00
hash.h Switch btrfs_name_hash() to crc32c 2008-08-20 20:11:23 -04:00
hasher.c Unaligned access fixes 2008-02-15 11:19:58 -05:00
inode-item.c btrfs-progs new dir index support 2008-07-24 12:13:32 -04:00
inode-map.c btrfs-progs: Fix printf format casting errors 2008-04-01 10:52:22 -04:00
ioctl.h Modify the subvol and snapshot creation ioctls to work anywhere in the tree 2008-11-18 11:26:35 -05:00
kerncompat.h Add mirroring support across multiple drives 2008-04-03 16:35:48 -04:00
list.h Dynamic chunk allocation 2008-03-24 15:03:58 -04:00
mkfs.c Add root tree pointer transaction ids 2008-10-29 14:07:47 -04:00
print-tree.c Add fallocate support v2 2008-10-31 12:48:02 -04:00
print-tree.h Update btrfs-progs to match kernel sources 2008-01-04 10:38:22 -05:00
quick-test.c Add a readonly flag open_ctree to force RO opens 2008-05-05 09:45:26 -04:00
radix-tree.c Make btrfs-progs compile with -fstrict-aliasing (included in -O2) again. 2007-09-14 10:31:06 -04:00
radix-tree.h i386 fixes from axboe 2007-06-12 11:39:09 -04:00
random-test.c add GPLv2 2007-06-12 09:07:11 -04:00
rbtree.c Stop using radix trees to record pending allocations 2007-10-15 16:25:04 -04:00
rbtree.h Stop using radix trees to record pending allocations 2007-10-15 16:25:04 -04:00
root-tree.c btrfs-progs: Fix printf format casting errors 2008-04-01 10:52:22 -04:00
show-blocks Add debug-tree -e to print all allocated extents, and show-blocks to graph them 2008-03-03 19:55:16 -05:00
transaction.h Update btrfs-progs to match kernel sources 2008-01-04 10:38:22 -05:00
utils.c update btrfs-progs for seed device support 2008-11-18 10:40:06 -05:00
utils.h Update the Ext3 converter 2008-04-22 14:06:56 -04:00
version.sh Use git for version number too 2008-08-20 20:11:22 -04:00
volumes.c update btrfs-progs for seed device support 2008-11-18 10:40:06 -05:00
volumes.h update btrfs-progs for seed device support 2008-11-18 10:40:06 -05:00