strange behavior btrfs copy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have a btrfs file system /b1 on /dev/sdb with 2 subvolumes and 2 
snapshots of them.

I have written a code which takes 2 disks as input source: /dev/sdb and 
destination as /dev/sdc and copies entire disk in 512 byte chunks to 
desination /dev/sdc.

my source btrfs /dev/sdb is mounted /b1 currently and mount command show 
the same.

I ran above program and it is successful. and now everything in /dev/sdb 
is copied to /dev/sdc

but after this when I run mount command at CLI, i am seeing strange 
behaviour and output show /dev/sdc is mounted on /b1.

Some how it changes device from /dev/sdb to /dev/sdc on the fliy.

I also tried to cd to /b1 (which make /b1 is in use) and ran same 
program, still after copy from /dev/sdb to /dev/sdc, mount shows 
/dev/sdc is mounted on /b1


what could be the reason for this?

does btrfs do any polling or something?

since /dev/sdb and /dev/sdc contains same data, i can mount /dev/sdc 
independently.


--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux