“3ad44d2ae574c8a88ea943c06492e94e60889900”上不存在“git@gitcode.net:weixin_43871785/gpt-vue.git”
  • A
    btrfs: fix rw_devices miss match after seed replace · 63dd86fa
    Anand Jain 提交于
    reproducer:
        reproducer:
        mount /dev/sdb /btrfs
        btrfs dev add /dev/sdc /btrfs
        btrfs rep start -B /dev/sdb /dev/sdd /btrfs
        umount /btrfs
    
    WARNING: CPU: 0 PID: 3882 at fs/btrfs/volumes.c:892 __btrfs_close_devices+0x1c8/0x200 [btrfs]()
    
    which is
    
            WARN_ON(fs_devices->rw_devices);
    
       The problem here is that we did not add one to the rw_devices when
       we replace the seed device with a writable device.
    Signed-off-by: NAnand Jain <anand.jain@oracle.com>
    Signed-off-by: NChris Mason <clm@fb.com>
    63dd86fa
dev-replace.c 28.9 KB