linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Two identical copies of an image mounted result in changes to both images if only one is modified
@ 2013-06-20  8:47 Clemens Eisserer
  2013-06-20  9:11 ` Fajar A. Nugraha
  2013-06-20  9:16 ` Hugo Mills
  0 siblings, 2 replies; 11+ messages in thread
From: Clemens Eisserer @ 2013-06-20  8:47 UTC (permalink / raw)
  To: linux-btrfs

Hi,

I've observed a rather strange behaviour while trying to mount two
identical copies of the same image to different mount points.
Each modification to one image is also performed in the second one.

Example:
dd if=/dev/sda? of=image1 bs=1M
cp image1 image2
mount -o loop image1 m1
mount -o loop image2 m2

touch m2/hello
ls -la m1  //will now also include a file calles "hello"

Is this behaviour intentional and known or should I create a bug-report?
I've deleted quite a bunch of files on my production system because of this...

Thanks, Clemens

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-06-20 13:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-20  8:47 Two identical copies of an image mounted result in changes to both images if only one is modified Clemens Eisserer
2013-06-20  9:11 ` Fajar A. Nugraha
2013-06-20  9:16 ` Hugo Mills
2013-06-20 10:22   ` Gabriel de Perthuis
2013-06-20 10:34     ` Hugo Mills
2013-06-20 10:41       ` Gabriel de Perthuis
2013-06-20 10:56         ` Hugo Mills
2013-06-20 13:22           ` Kevin O'Kelley
2013-06-20 13:28             ` Hugo Mills
2013-06-20 13:29             ` Gabriel
2013-06-20 13:32           ` Hugo Mills

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).