Re: Is it safe to mount subvolumes of already-mounted volumes (even with different options)?

2014-07-16 Thread Zhe Zhang
Hi Sebastian, I posted a similar question and got many helpful answers: https://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg35047.html Basically, you cannot guarantee that the computing mounting /dev/sdx doesn't write to arbitrary addresses of /dev/sdxN as unallocated blocks and thus corr

Re: [Question] disk_bytenr with multiple devices

2014-07-14 Thread Zhe Zhang
, Qu Wenruo wrote: > > Original Message > Subject: [Question] disk_bytenr with multiple devices > From: Zhe Zhang > To: linux-btrfs@vger.kernel.org > Date: 2014年07月11日 02:21 >> >> When a btrfs has multiple devices (e.g. /dev/sdb, /dev/sdc), how >

[Question] disk_bytenr with multiple devices

2014-07-10 Thread Zhe Zhang
When a btrfs has multiple devices (e.g. /dev/sdb, /dev/sdc), how should I interpret disk_bytenr in btrfs_file_extent_item? Does it depend on the striping config? Say I used raid0, then disk_bytenr 0~64K will be on /dev/sdb, and 64K~128K on /dev/sdc? Thanks, Zhe -- To unsubscribe from this list: s

Re: Question about debugfs on btrfs

2014-07-02 Thread Zhe Zhang
Thanks Hugo, that works great. On Wed, Jul 2, 2014 at 12:31 PM, Hugo Mills wrote: > On Wed, Jul 02, 2014 at 12:23:01PM -0400, Zhe Zhang wrote: >> Hi, >> >> I'm trying to use a functionality like "debugfs blocks" or >> "dump_extents" on a btrfs

Question about debugfs on btrfs

2014-07-02 Thread Zhe Zhang
Hi, I'm trying to use a functionality like "debugfs blocks" or "dump_extents" on a btrfs partition. The current debugfs user space program doesn't seem to support it (from e2fsprogs). I cannot find debugfs in btrfs-progs either. Any advice on how to do it? Thanks! Zhe -- To unsubscribe from this

Re: [Question] Btrfs on iSCSI device

2014-06-27 Thread Zhe Zhang
On Fri, Jun 27, 2014 at 1:15 PM, Austin S Hemmelgarn wrote: > On 2014-06-27 12:34, Goffredo Baroncelli wrote: >> Hi, >> On 06/27/2014 05:44 PM, Zhe Zhang wrote: >>> Hi, >>> >>> I setup 2 Linux servers to share the same device through iSCSI. Then I >>

[Question] Btrfs on iSCSI device

2014-06-27 Thread Zhe Zhang
Hi, I setup 2 Linux servers to share the same device through iSCSI. Then I created a btrfs on the device. Then I saw the problem that the 2 Linux servers do not see a consistent file system image. Details: -- Server 1 running kernel 2.6.32, server 2 running 3.2.1 -- Both running btrfs v0.20-rc1 -