Although I think this rarely happens in the real world, mounting
the same device to different mount points in parallel may fail:
- kernel 4.15.0-rc8
- Procedure
[mount.sh]
#!/bin/bash
for i in `seq 1 1000`; do
echo $i
mount $1 $2
umount $2
if [ $? -ne 0 ]; then
exit 1;
fi
done
$ mkfs.btrfs -f /dev/sde
$ ./mount.sh /dev/sde /mnt
$ ./mount.sh /dev/sde /mnt2 (on the different terminal)
- stdout
mount: /mnt2: wrong fs type, bad option, bad superblock on
/dev/sde, missing codepage or helper program, or other error.
- dmesg
[ 108.122576] BTRFS error (device sde): super_total_bytes 199481098240 mismatch with fs_devices total_rw_bytes 398962196480
[ 108.122647] BTRFS error (device sde): failed to read chunk tree: -22
[ 108.150060] BTRFS error (device sde): open_ctree failed
xfs or ext4 works fine.
Regards,
Tomohiro Misono
--
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