linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* md device is read only mode
@ 2012-07-05 17:27 Piergiorgio Sartor
  2012-07-09  1:40 ` NeilBrown
  0 siblings, 1 reply; 4+ messages in thread
From: Piergiorgio Sartor @ 2012-07-05 17:27 UTC (permalink / raw)
  To: linux-raid

Hi all,

following the comment of Neil about the fact that
an md device, in r/o mode, will BUG() in case of
write attempt, I would like to ask for some more
information on the topic.

The problem is the following, mounting a filesystem
in r/o does not, correctly, prevent writes to the
underlying device.

Now, assuming a filesystem is mounted r/w over an
md device, being r/w too, it is pretty clear that
switching the md device to r/o will create problems.

What if the md device is started in r/o mode and
than, later, the filesystem is mounted *without*
specifying r/o mode?

The filesystem might try to write to the device,
but it will not work, of course.
Does this will cause a BUG() in md?

Because using a r/o memory card, there are no
problems, the mount recognize the device is r/o
and it sets the filesystems r/o too.
I do not know if it anyway tries to write to the
r/o device, ignoring the errors reported.

I would say that, if md BUG() in any case, it
could be a bug... :-)

Any comments?

Thanks,

bye,

-- 

piergiorgio

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

end of thread, other threads:[~2012-07-09 21:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-05 17:27 md device is read only mode Piergiorgio Sartor
2012-07-09  1:40 ` NeilBrown
2012-07-09 17:34   ` Piergiorgio Sartor
2012-07-09 21:42     ` NeilBrown

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