linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bug report: mounting the same device to different mount points in parallel may fail
@ 2018-01-18  4:23 Misono, Tomohiro
  0 siblings, 0 replies; only message in thread
From: Misono, Tomohiro @ 2018-01-18  4:23 UTC (permalink / raw)
  To: linux-btrfs

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-01-18  4:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-18  4:23 bug report: mounting the same device to different mount points in parallel may fail Misono, Tomohiro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).