Can I convert an existing directory into a subvolume?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm new to btrfs, just dipping my toes in the water...

I've got two partitions, / on /dev/sda2 and /home on /dev/sda3, both
formatted as btrfs in a new openSUSE 13.1 installation. I copied the
whole of /home (4 users) into the btrfs formatted /home partition from
an ext4 backup.

I would like to create snapshots of /home/user/Documents for example,
but I understand these have to be subvolumes first. Googling tells me I
can't convert a conventional subdirectory into a subvolume, so I'm
guessing I'll have to create a new /home/user/Documents subvolume and
then copy all the contents from the subdirectory. Correct? Then delete
the subdirectory?

Can the subvolume have the same name as the subdirectory it is
replacing, or should it be called something like 'tempDocs', and then
renamed back to 'Documents' after the original has gone?

Bob

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux