Re: Discrepant st_rdev and st_dev stats in btrfs block and fs device ids

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

 



On Sun, Sep 06, 2009 at 04:51:55PM +0100, Marcus wrote:
> Hello,
> 
> I think I found a btrfs 0.19 problem when used in an lvm2 volume;
> btrfs is returning a st_dev stat from the mounted filesystem / that is
> different from the lvm2 blockdevice st_rdev stat in
> /dev/mapper/vg0-os0.
> 
> This btrfs behavior is different from ext4, where the st_dev and
> st_rdev stats match (http://pastebin.com/m64e90a8e or a summary
> below). Because of that, in grub2, 'grub-probe -t device / ' fails
> with ' grub-probe: error: cannot find a device for /. ' , and so
> update-grub2 fails causing cascading problems all around.
> 
> Can anyone repeat this? Any ideas why this could be happening? Is this expected?
>

Yes this is expected.  Because of the way that btrfs can have multiple disks and
snapshot and such, it creates this sort of virtual device as its backing device
in the kernel to keep track of everything, so it's st_dev will not match the
actual device it resides on.  Thanks,

Josef 
--
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