public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* What's wrong with snapshot?
@ 2009-01-08  9:27 Shen Feng
  2009-01-08 11:49 ` Yan Zheng
  0 siblings, 1 reply; 3+ messages in thread
From: Shen Feng @ 2009-01-08  9:27 UTC (permalink / raw)
  To: linux-btrfs

Hello, 

I tried to ceate a snapshot of a subvol.
But it seems now work.

Please see the test below. I think the file created by dd
should also in the snap directory.

[root@localhost mnt]# ./test2.sh 
+ mkfs.btrfs /dev/sdb8
fs created label (null) on /dev/sdb8
	nodesize 4096 leafsize 4096 sectorsize 4096 size 18.63GB
Btrfs v0.16-35-g6e0e6df-dirty
+ btrfsctl -a
Scanning for Btrfs filesystems
+ mount -t btrfs /dev/sdb8 /mnt/btrfs
+ cd /mnt/btrfs
+ btrfsctl -S sub /mnt/btrfs
operation complete
Btrfs v0.16-35-g6e0e6df-dirty
+ btrfsctl -s snap /mnt/btrfs/sub
operation complete
Btrfs v0.16-35-g6e0e6df-dirty
+ dd if=/dev/zero of=/mnt/btrfs/sub/file bs=1024 count=1024
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB) copied, 0.0208993 s, 50.2 MB/s
+ ls -a snap sub
snap:
.  ..

sub:
.  ..  file
+ cd ..


Anything wrong?
Thanks

-Shen



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

* Re: What's wrong with snapshot?
  2009-01-08  9:27 What's wrong with snapshot? Shen Feng
@ 2009-01-08 11:49 ` Yan Zheng
  2009-01-09  3:18   ` Shen Feng
  0 siblings, 1 reply; 3+ messages in thread
From: Yan Zheng @ 2009-01-08 11:49 UTC (permalink / raw)
  To: Shen Feng; +Cc: linux-btrfs

2009/1/8 Shen Feng <shen@cn.fujitsu.com>:
> Hello,
>
> I tried to ceate a snapshot of a subvol.
> But it seems now work.
>
> Please see the test below. I think the file created by dd
> should also in the snap directory.
>

This is the expected behaviour.  Following link describes what
snapshot is.

http://en.wikipedia.org/wiki/Snapshot_(computer_storage)

Yan Zheng

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

* Re: What's wrong with snapshot?
  2009-01-08 11:49 ` Yan Zheng
@ 2009-01-09  3:18   ` Shen Feng
  0 siblings, 0 replies; 3+ messages in thread
From: Shen Feng @ 2009-01-09  3:18 UTC (permalink / raw)
  To: Yan Zheng; +Cc: linux-btrfs

thanks. I got it.

Shen

on 01/08/2009 07:49 PM, Yan Zheng wrote:
> 2009/1/8 Shen Feng <shen@cn.fujitsu.com>:
>> Hello,
>>
>> I tried to ceate a snapshot of a subvol.
>> But it seems now work.
>>
>> Please see the test below. I think the file created by dd
>> should also in the snap directory.
>>
> 
> This is the expected behaviour.  Following link describes what
> snapshot is.
> 
> http://en.wikipedia.org/wiki/Snapshot_(computer_storage)
> 
> Yan Zheng
> 
> 


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

end of thread, other threads:[~2009-01-09  3:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-08  9:27 What's wrong with snapshot? Shen Feng
2009-01-08 11:49 ` Yan Zheng
2009-01-09  3:18   ` Shen Feng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox