ceph-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* creation of ./.snap/test creates something in ./subdir/.snap/
@ 2010-06-19  7:27 Thomas Mueller
  2010-06-19 15:40 ` Sage Weil
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Mueller @ 2010-06-19  7:27 UTC (permalink / raw)
  To: ceph-devel

hi

i was looking for a way to list all snapshots*.

then i discovered this:


mkdir ./.snap/test

then i found this:
./.snap/test
./subdir/.snap/_test_1099511630280


the subdir/.snap/_test_1099511630280 vanishes if i delete the ./.snap/
test.


kclient: ceph-client-standalone/unstable-backport
ceph:  ceph/unstable


- Thomas


* 

find ./ -type d -print0 | \
	xargs -0 -I% -n1 find %/.snap -mindepth 1 -maxdepth 1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: creation of ./.snap/test creates something in ./subdir/.snap/
  2010-06-19  7:27 creation of ./.snap/test creates something in ./subdir/.snap/ Thomas Mueller
@ 2010-06-19 15:40 ` Sage Weil
  2010-06-19 16:03   ` Thomas Mueller
  0 siblings, 1 reply; 4+ messages in thread
From: Sage Weil @ 2010-06-19 15:40 UTC (permalink / raw)
  To: Thomas Mueller; +Cc: ceph-devel

On Sat, 19 Jun 2010, Thomas Mueller wrote:
> hi
> 
> i was looking for a way to list all snapshots*.
> 
> then i discovered this:
> 
> 
> mkdir ./.snap/test
> 
> then i found this:
> ./.snap/test
> ./subdir/.snap/_test_1099511630280
> 
> 
> the subdir/.snap/_test_1099511630280 vanishes if i delete the ./.snap/
> test.

This is expected, because subdir's contents are contained by the 'test' 
snap, and we want the .snap/ dir to show you all snaps that contain 
copies of the current directory.  The name is mangled 
(_$snap_$snap_root_ino) to avoid collisions with the current directory's 
snap namespace.  Snaps beginning with _ are disallowed.

> find ./ -type d -print0 | \
> 	xargs -0 -I% -n1 find %/.snap -mindepth 1 -maxdepth 1

find ./ -type d -print0 | \
	xargs -0 -I% -n1 find %/.snap -mindepth 1 -maxdepth 1 \
                         \( ! -name "_*" \)

should do it, I think.  
sage

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: creation of ./.snap/test creates something in ./subdir/.snap/
  2010-06-19 15:40 ` Sage Weil
@ 2010-06-19 16:03   ` Thomas Mueller
  2010-06-21  7:30     ` Jerker Nyberg
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Mueller @ 2010-06-19 16:03 UTC (permalink / raw)
  To: ceph-devel

Am Sat, 19 Jun 2010 08:40:48 -0700 schrieb Sage Weil:

> On Sat, 19 Jun 2010, Thomas Mueller wrote:
>> hi
>> 
>> i was looking for a way to list all snapshots*.
>> 
>> then i discovered this:
>> 
>> 
>> mkdir ./.snap/test
>> 
>> then i found this:
>> ./.snap/test
>> ./subdir/.snap/_test_1099511630280
>> 
>> 
>> the subdir/.snap/_test_1099511630280 vanishes if i delete the ./.snap/
>> test.
> 
> This is expected, because subdir's contents are contained by the 'test'
> snap, and we want the .snap/ dir to show you all snaps that contain
> copies of the current directory.  The name is mangled
> (_$snap_$snap_root_ino) to avoid collisions with the current directory's
> snap namespace.  Snaps beginning with _ are disallowed.
> 


thanks for the explanation! i've created 

http://ceph.newdream.net/wiki/Snapshots

for future  reference. 

- Thomas



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: creation of ./.snap/test creates something in ./subdir/.snap/
  2010-06-19 16:03   ` Thomas Mueller
@ 2010-06-21  7:30     ` Jerker Nyberg
  0 siblings, 0 replies; 4+ messages in thread
From: Jerker Nyberg @ 2010-06-21  7:30 UTC (permalink / raw)
  To: ceph-devel


Hi all,

It would be sweet to get shadow copy for Samba to work with Ceph 
snapshots. This blog entry (for ZFS) might be a good start if anyone is 
interested in experimenting and documenting (for Ceph)!

http://www.edplese.com/blog/2009/12/02/samba-shadow_copy2-enhancements/

One difference seem to be that Samba is expecting the snapshots to be per 
volume and not per directory, but I havn't had time to look into it 
further.

--jerker


On Sat, 19 Jun 2010, Thomas Mueller wrote:

> thanks for the explanation! i've created
>
> http://ceph.newdream.net/wiki/Snapshots
>
> for future  reference.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-06-21  7:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-19  7:27 creation of ./.snap/test creates something in ./subdir/.snap/ Thomas Mueller
2010-06-19 15:40 ` Sage Weil
2010-06-19 16:03   ` Thomas Mueller
2010-06-21  7:30     ` Jerker Nyberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).