* snapshots of directories
@ 2010-01-12 2:12 Michael Niederle
2010-01-12 2:19 ` TARUISI Hiroaki
0 siblings, 1 reply; 5+ messages in thread
From: Michael Niederle @ 2010-01-12 2:12 UTC (permalink / raw)
To: linux-btrfs
I try to take a snapshot of a single directory, e.g. root:
> btrfsctl -s root.2010-01-12 /root
operation complete
Btrfs v0.19-4-gab8fb4c-dirty
Then I take look what's inside the newly created snapshot:
> ls -l /root.2010-01-12/
total 0
drwxr-xr-x 1 root root 1192 2010-01-03 20:32:12 bin
drwxr-xr-x 1 root root 76 2009-06-25 0:40:35 boot
drwxr-xr-x 1 root root 1756 2010-01-12 2:33:07 cmds
drwxr-xr-x 1 root root 0 2010-01-06 12:21:46 data
drwxr-xr-x 1 root root 4356 2010-01-12 2:07:00 dev
drwxr-xr-x 1 root root 42 2010-01-04 12:29:45 downloads
drwxr-xr-x 1 root root 4528 2010-01-12 2:12:12 etc
drwxr-xr-x 1 root root 52 2010-01-11 12:57:47 home
drwxr-xr-x 1 root root 0 2007-11-10 4:44:07 initrd
drwxr-xr-x 1 root root 4490 2010-01-05 20:15:53 lib
drwxr-xr-x 1 root root 124 2008-04-27 14:53:39 mnt
drwxr-xr-x 1 root root 62 2008-01-08 0:21:58 net
drwxr-xr-x 1 root root 0 2008-04-09 3:19:16 objects
drwxr-xr-x 1 root root 316 2009-12-28 23:23:13 opt
dr-xr-xr-x 1 root root 0 2007-11-10 3:35:28 proc
drwxr-xr-x 1 root root 7676 2010-01-11 0:35:41 root
drwxr-xr-x 1 root root 0 2010-01-12 1:56:17 save
drwxr-xr-x 1 root root 0 2010-01-12 1:55:58 save2
drwxr-xr-x 1 root root 3804 2010-01-06 2:36:08 sbin
drwxr-xr-x 1 root root 0 2007-11-10 3:35:28 sys
drwxr-xr-x 1 root root 358 2010-01-11 18:44:29 tmp
drwxr-xr-x 1 root root 176 2009-12-29 17:08:37 usr
drwxr-xr-x 1 root root 72 2010-01-05 20:03:00 var
It seems that always a snapshot of the root is taken instead one of the
specified directory? Is this by design?
Snapshotting the root works fine, but if you take several snapshots it's a bit
"recursive", because every new snapshot contains all previous snapshots.
Greetings, Michael
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: snapshots of directories
2010-01-12 2:12 snapshots of directories Michael Niederle
@ 2010-01-12 2:19 ` TARUISI Hiroaki
2010-01-12 5:44 ` Adrian von Bidder
2010-01-13 19:04 ` Andrey Kuzmin
0 siblings, 2 replies; 5+ messages in thread
From: TARUISI Hiroaki @ 2010-01-12 2:19 UTC (permalink / raw)
To: mniederle; +Cc: linux-btrfs
In btrfs, snapshot is a clone of subvolume, not arbitrary
directory.
You specified '/root' directory and it is not subvolume,
snapshot is created for parent subvolume, root of filesystem.
Regards,
taruisi
(2010/01/12 11:12), Michael Niederle wrote:
> I try to take a snapshot of a single directory, e.g. root:
>
>> btrfsctl -s root.2010-01-12 /root
> operation complete
> Btrfs v0.19-4-gab8fb4c-dirty
>
> Then I take look what's inside the newly created snapshot:
>
>> ls -l /root.2010-01-12/
> total 0
> drwxr-xr-x 1 root root 1192 2010-01-03 20:32:12 bin
> drwxr-xr-x 1 root root 76 2009-06-25 0:40:35 boot
> drwxr-xr-x 1 root root 1756 2010-01-12 2:33:07 cmds
> drwxr-xr-x 1 root root 0 2010-01-06 12:21:46 data
> drwxr-xr-x 1 root root 4356 2010-01-12 2:07:00 dev
> drwxr-xr-x 1 root root 42 2010-01-04 12:29:45 downloads
> drwxr-xr-x 1 root root 4528 2010-01-12 2:12:12 etc
> drwxr-xr-x 1 root root 52 2010-01-11 12:57:47 home
> drwxr-xr-x 1 root root 0 2007-11-10 4:44:07 initrd
> drwxr-xr-x 1 root root 4490 2010-01-05 20:15:53 lib
> drwxr-xr-x 1 root root 124 2008-04-27 14:53:39 mnt
> drwxr-xr-x 1 root root 62 2008-01-08 0:21:58 net
> drwxr-xr-x 1 root root 0 2008-04-09 3:19:16 objects
> drwxr-xr-x 1 root root 316 2009-12-28 23:23:13 opt
> dr-xr-xr-x 1 root root 0 2007-11-10 3:35:28 proc
> drwxr-xr-x 1 root root 7676 2010-01-11 0:35:41 root
> drwxr-xr-x 1 root root 0 2010-01-12 1:56:17 save
> drwxr-xr-x 1 root root 0 2010-01-12 1:55:58 save2
> drwxr-xr-x 1 root root 3804 2010-01-06 2:36:08 sbin
> drwxr-xr-x 1 root root 0 2007-11-10 3:35:28 sys
> drwxr-xr-x 1 root root 358 2010-01-11 18:44:29 tmp
> drwxr-xr-x 1 root root 176 2009-12-29 17:08:37 usr
> drwxr-xr-x 1 root root 72 2010-01-05 20:03:00 var
>
> It seems that always a snapshot of the root is taken instead one of the
> specified directory? Is this by design?
>
> Snapshotting the root works fine, but if you take several snapshots it's a bit
> "recursive", because every new snapshot contains all previous snapshots.
>
> Greetings, Michael
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: snapshots of directories
2010-01-12 2:19 ` TARUISI Hiroaki
@ 2010-01-12 5:44 ` Adrian von Bidder
2010-01-13 19:04 ` Andrey Kuzmin
1 sibling, 0 replies; 5+ messages in thread
From: Adrian von Bidder @ 2010-01-12 5:44 UTC (permalink / raw)
To: TARUISI Hiroaki; +Cc: mniederle, linux-btrfs
[-- Attachment #1: Type: Text/Plain, Size: 3108 bytes --]
On Tuesday 12 January 2010 03.19:34 TARUISI Hiroaki wrote:
> In btrfs, snapshot is a clone of subvolume, not arbitrary
> directory.
> You specified '/root' directory and it is not subvolume,
> snapshot is created for parent subvolume, root of filesystem.
... hence my proposal (haven't seen a comment so far) to have snapshot
creation fail if the specified directory is not a subvol root.
cheers
-- vbi
>
> Regards,
> taruisi
>
> (2010/01/12 11:12), Michael Niederle wrote:
> > I try to take a snapshot of a single directory, e.g. root:
> >> btrfsctl -s root.2010-01-12 /root
> >
> > operation complete
> > Btrfs v0.19-4-gab8fb4c-dirty
> >
> > Then I take look what's inside the newly created snapshot:
> >> ls -l /root.2010-01-12/
> >
> > total 0
> > drwxr-xr-x 1 root root 1192 2010-01-03 20:32:12 bin
> > drwxr-xr-x 1 root root 76 2009-06-25 0:40:35 boot
> > drwxr-xr-x 1 root root 1756 2010-01-12 2:33:07 cmds
> > drwxr-xr-x 1 root root 0 2010-01-06 12:21:46 data
> > drwxr-xr-x 1 root root 4356 2010-01-12 2:07:00 dev
> > drwxr-xr-x 1 root root 42 2010-01-04 12:29:45 downloads
> > drwxr-xr-x 1 root root 4528 2010-01-12 2:12:12 etc
> > drwxr-xr-x 1 root root 52 2010-01-11 12:57:47 home
> > drwxr-xr-x 1 root root 0 2007-11-10 4:44:07 initrd
> > drwxr-xr-x 1 root root 4490 2010-01-05 20:15:53 lib
> > drwxr-xr-x 1 root root 124 2008-04-27 14:53:39 mnt
> > drwxr-xr-x 1 root root 62 2008-01-08 0:21:58 net
> > drwxr-xr-x 1 root root 0 2008-04-09 3:19:16 objects
> > drwxr-xr-x 1 root root 316 2009-12-28 23:23:13 opt
> > dr-xr-xr-x 1 root root 0 2007-11-10 3:35:28 proc
> > drwxr-xr-x 1 root root 7676 2010-01-11 0:35:41 root
> > drwxr-xr-x 1 root root 0 2010-01-12 1:56:17 save
> > drwxr-xr-x 1 root root 0 2010-01-12 1:55:58 save2
> > drwxr-xr-x 1 root root 3804 2010-01-06 2:36:08 sbin
> > drwxr-xr-x 1 root root 0 2007-11-10 3:35:28 sys
> > drwxr-xr-x 1 root root 358 2010-01-11 18:44:29 tmp
> > drwxr-xr-x 1 root root 176 2009-12-29 17:08:37 usr
> > drwxr-xr-x 1 root root 72 2010-01-05 20:03:00 var
> >
> > It seems that always a snapshot of the root is taken instead one of the
> > specified directory? Is this by design?
> >
> > Snapshotting the root works fine, but if you take several snapshots
> > it's a bit "recursive", because every new snapshot contains all
> > previous snapshots.
> >
> > Greetings, Michael
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-btrfs"
> > in the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Most scientists think that the not-fossil theory is a red herring;
indeed, they think that oil is lots of herrings (and other things)
compacted over time into sticky black mud.
-- Prospect Magazine, March 2003, p. 6
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 389 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: snapshots of directories
2010-01-12 2:19 ` TARUISI Hiroaki
2010-01-12 5:44 ` Adrian von Bidder
@ 2010-01-13 19:04 ` Andrey Kuzmin
2010-01-14 0:40 ` TARUISI Hiroaki
1 sibling, 1 reply; 5+ messages in thread
From: Andrey Kuzmin @ 2010-01-13 19:04 UTC (permalink / raw)
To: TARUISI Hiroaki; +Cc: mniederle, linux-btrfs
Did I get you right in that btrfs does not support snapshots of an
arbitrary directory?
Regards,
Andrey
On Tue, Jan 12, 2010 at 5:19 AM, TARUISI Hiroaki
<taruishi.hiroak@jp.fujitsu.com> wrote:
> In btrfs, snapshot is a clone of subvolume, not arbitrary
> directory.
> You specified '/root' directory and it is not subvolume,
> snapshot is created for parent subvolume, root of filesystem.
>
> Regards,
> taruisi
>
> (2010/01/12 11:12), Michael Niederle wrote:
>> I try to take a snapshot of a single directory, e.g. root:
>>
>>> btrfsctl -s root.2010-01-12 /root
>> operation complete
>> Btrfs v0.19-4-gab8fb4c-dirty
>>
>> Then I take look what's inside the newly created snapshot:
>>
>>> ls -l /root.2010-01-12/
>> total 0
>> drwxr-xr-x 1 root root 1192 2010-01-03 20:32:12 bin
>> drwxr-xr-x 1 root root =A0 76 2009-06-25 =A00:40:35 boot
>> drwxr-xr-x 1 root root 1756 2010-01-12 =A02:33:07 cmds
>> drwxr-xr-x 1 root root =A0 =A00 2010-01-06 12:21:46 data
>> drwxr-xr-x 1 root root 4356 2010-01-12 =A02:07:00 dev
>> drwxr-xr-x 1 root root =A0 42 2010-01-04 12:29:45 downloads
>> drwxr-xr-x 1 root root 4528 2010-01-12 =A02:12:12 etc
>> drwxr-xr-x 1 root root =A0 52 2010-01-11 12:57:47 home
>> drwxr-xr-x 1 root root =A0 =A00 2007-11-10 =A04:44:07 initrd
>> drwxr-xr-x 1 root root 4490 2010-01-05 20:15:53 lib
>> drwxr-xr-x 1 root root =A0124 2008-04-27 14:53:39 mnt
>> drwxr-xr-x 1 root root =A0 62 2008-01-08 =A00:21:58 net
>> drwxr-xr-x 1 root root =A0 =A00 2008-04-09 =A03:19:16 objects
>> drwxr-xr-x 1 root root =A0316 2009-12-28 23:23:13 opt
>> dr-xr-xr-x 1 root root =A0 =A00 2007-11-10 =A03:35:28 proc
>> drwxr-xr-x 1 root root 7676 2010-01-11 =A00:35:41 root
>> drwxr-xr-x 1 root root =A0 =A00 2010-01-12 =A01:56:17 save
>> drwxr-xr-x 1 root root =A0 =A00 2010-01-12 =A01:55:58 save2
>> drwxr-xr-x 1 root root 3804 2010-01-06 =A02:36:08 sbin
>> drwxr-xr-x 1 root root =A0 =A00 2007-11-10 =A03:35:28 sys
>> drwxr-xr-x 1 root root =A0358 2010-01-11 18:44:29 tmp
>> drwxr-xr-x 1 root root =A0176 2009-12-29 17:08:37 usr
>> drwxr-xr-x 1 root root =A0 72 2010-01-05 20:03:00 var
>>
>> It seems that always a snapshot of the root is taken instead one of =
the
>> specified directory? Is this by design?
>>
>> Snapshotting the root works fine, but if you take several snapshots =
it's a bit
>> "recursive", because every new snapshot contains all previous snapsh=
ots.
>>
>> Greetings, Michael
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-btrf=
s" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs=
" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: snapshots of directories
2010-01-13 19:04 ` Andrey Kuzmin
@ 2010-01-14 0:40 ` TARUISI Hiroaki
0 siblings, 0 replies; 5+ messages in thread
From: TARUISI Hiroaki @ 2010-01-14 0:40 UTC (permalink / raw)
To: andrey.v.kuzmin; +Cc: mniederle, linux-btrfs
Yes. I mean that.
In detail, 'non subvolume directory' may be more precise
than 'arbitrary directory'.
Thanks for your description.
Regards,
taruisi
(2010/01/14 4:04), Andrey Kuzmin wrote:
> Did I get you right in that btrfs does not support snapshots of an
> arbitrary directory?
>
> Regards,
> Andrey
>
>
>
>
> On Tue, Jan 12, 2010 at 5:19 AM, TARUISI Hiroaki
> <taruishi.hiroak@jp.fujitsu.com> wrote:
>> In btrfs, snapshot is a clone of subvolume, not arbitrary
>> directory.
>> You specified '/root' directory and it is not subvolume,
>> snapshot is created for parent subvolume, root of filesystem.
>>
>> Regards,
>> taruisi
>>
>> (2010/01/12 11:12), Michael Niederle wrote:
>>> I try to take a snapshot of a single directory, e.g. root:
>>>
>>>> btrfsctl -s root.2010-01-12 /root
>>> operation complete
>>> Btrfs v0.19-4-gab8fb4c-dirty
>>>
>>> Then I take look what's inside the newly created snapshot:
>>>
>>>> ls -l /root.2010-01-12/
>>> total 0
>>> drwxr-xr-x 1 root root 1192 2010-01-03 20:32:12 bin
>>> drwxr-xr-x 1 root root 76 2009-06-25 0:40:35 boot
>>> drwxr-xr-x 1 root root 1756 2010-01-12 2:33:07 cmds
>>> drwxr-xr-x 1 root root 0 2010-01-06 12:21:46 data
>>> drwxr-xr-x 1 root root 4356 2010-01-12 2:07:00 dev
>>> drwxr-xr-x 1 root root 42 2010-01-04 12:29:45 downloads
>>> drwxr-xr-x 1 root root 4528 2010-01-12 2:12:12 etc
>>> drwxr-xr-x 1 root root 52 2010-01-11 12:57:47 home
>>> drwxr-xr-x 1 root root 0 2007-11-10 4:44:07 initrd
>>> drwxr-xr-x 1 root root 4490 2010-01-05 20:15:53 lib
>>> drwxr-xr-x 1 root root 124 2008-04-27 14:53:39 mnt
>>> drwxr-xr-x 1 root root 62 2008-01-08 0:21:58 net
>>> drwxr-xr-x 1 root root 0 2008-04-09 3:19:16 objects
>>> drwxr-xr-x 1 root root 316 2009-12-28 23:23:13 opt
>>> dr-xr-xr-x 1 root root 0 2007-11-10 3:35:28 proc
>>> drwxr-xr-x 1 root root 7676 2010-01-11 0:35:41 root
>>> drwxr-xr-x 1 root root 0 2010-01-12 1:56:17 save
>>> drwxr-xr-x 1 root root 0 2010-01-12 1:55:58 save2
>>> drwxr-xr-x 1 root root 3804 2010-01-06 2:36:08 sbin
>>> drwxr-xr-x 1 root root 0 2007-11-10 3:35:28 sys
>>> drwxr-xr-x 1 root root 358 2010-01-11 18:44:29 tmp
>>> drwxr-xr-x 1 root root 176 2009-12-29 17:08:37 usr
>>> drwxr-xr-x 1 root root 72 2010-01-05 20:03:00 var
>>>
>>> It seems that always a snapshot of the root is taken instead one of the
>>> specified directory? Is this by design?
>>>
>>> Snapshotting the root works fine, but if you take several snapshots it's a bit
>>> "recursive", because every new snapshot contains all previous snapshots.
>>>
>>> Greetings, Michael
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
--
taruisi
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-01-14 0:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-12 2:12 snapshots of directories Michael Niederle
2010-01-12 2:19 ` TARUISI Hiroaki
2010-01-12 5:44 ` Adrian von Bidder
2010-01-13 19:04 ` Andrey Kuzmin
2010-01-14 0:40 ` TARUISI Hiroaki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox