public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Shen Feng <shen@cn.fujitsu.com>
To: linux-btrfs@vger.kernel.org
Subject: What's wrong with snapshot?
Date: Thu, 08 Jan 2009 17:27:52 +0800	[thread overview]
Message-ID: <4965C718.8070200@cn.fujitsu.com> (raw)

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



             reply	other threads:[~2009-01-08  9:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-08  9:27 Shen Feng [this message]
2009-01-08 11:49 ` What's wrong with snapshot? Yan Zheng
2009-01-09  3:18   ` Shen Feng

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=4965C718.8070200@cn.fujitsu.com \
    --to=shen@cn.fujitsu.com \
    --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