Can moving data to a subvolume not take as long as a fully copy?

2013-01-14 Thread Marc MERLIN
I made a mistake and copied data in the root of a new btrfs filesystem. I created a subvolume, and used mv to put everything in there. Something like: cd /mnt btrfs subvolume create dir mv * dir Except it's been running for over a day now (ok, it's 5TB of data) Looks like mv is really copying all

Re: Can moving data to a subvolume not take as long as a fully copy?

2013-01-14 Thread Hugo Mills
On Mon, Jan 14, 2013 at 09:32:50AM -0800, Marc MERLIN wrote: > I made a mistake and copied data in the root of a new btrfs filesystem. > I created a subvolume, and used mv to put everything in there. > Something like: > cd /mnt > btrfs subvolume create dir > mv * dir > > Except it's been running f

Re: Can moving data to a subvolume not take as long as a fully copy?

2013-01-14 Thread Marc MERLIN
On Mon, Jan 14, 2013 at 05:41:55PM +, Hugo Mills wrote: > On Mon, Jan 14, 2013 at 09:32:50AM -0800, Marc MERLIN wrote: > > I made a mistake and copied data in the root of a new btrfs filesystem. > > I created a subvolume, and used mv to put everything in there. > > Something like: > > cd /mnt >

Re: Can moving data to a subvolume not take as long as a fully copy?

2013-01-14 Thread Hugo Mills
On Mon, Jan 14, 2013 at 10:00:41AM -0800, Marc MERLIN wrote: > On Mon, Jan 14, 2013 at 05:41:55PM +, Hugo Mills wrote: > > On Mon, Jan 14, 2013 at 09:32:50AM -0800, Marc MERLIN wrote: > > > I made a mistake and copied data in the root of a new btrfs filesystem. > > > I created a subvolume, and

Re: Can moving data to a subvolume not take as long as a fully copy?

2013-01-14 Thread David Brown
Marc MERLIN writes: > I made a mistake and copied data in the root of a new btrfs filesystem. > I created a subvolume, and used mv to put everything in there. > Something like: > cd /mnt > btrfs subvolume create dir > mv * dir > > Except it's been running for over a day now (ok, it's 5TB of data)

Re: Can moving data to a subvolume not take as long as a fully copy?

2013-01-15 Thread Marc MERLIN
On Mon, Jan 14, 2013 at 10:48:50PM -0800, David Brown wrote: > Why not make a snapshot of the root volume, and then delete the files > you want to move from the original root, and delete the rest of root > from the snapshot? Are a snapshot of the root volume and a subvolume effectively the same th

Re: Can moving data to a subvolume not take as long as a fully copy?

2013-01-15 Thread Mitch Harder
On Tue, Jan 15, 2013 at 8:49 AM, Marc MERLIN wrote: > On Mon, Jan 14, 2013 at 10:48:50PM -0800, David Brown wrote: >> Why not make a snapshot of the root volume, and then delete the files >> you want to move from the original root, and delete the rest of root >> from the snapshot? > > Are a snapsh