From: Bob Williams <linux@barrowhillfarm.org.uk>
To: linux-btrfs@vger.kernel.org
Subject: Can I convert an existing directory into a subvolume?
Date: Tue, 15 Apr 2014 14:10:54 +0100 [thread overview]
Message-ID: <lijb4u$57s$1@ger.gmane.org> (raw)
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
next reply other threads:[~2014-04-15 14:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-15 13:10 Bob Williams [this message]
2014-04-15 14:16 ` Can I convert an existing directory into a subvolume? Hugo Mills
2014-04-15 14:23 ` Bob Williams
2014-04-15 14:46 ` Chris Murphy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='lijb4u$57s$1@ger.gmane.org' \
--to=linux@barrowhillfarm.org.uk \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox