linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mdadm -Db switches array to write-pending?!
@ 2013-07-10 17:54 Martin Wilck
  2013-07-15  5:18 ` NeilBrown
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Wilck @ 2013-07-10 17:54 UTC (permalink / raw)
  To: linux-raid, NeilBrown

Hi Neil, hi all,

I discovered a weird behavior of mdadm -Db - it will switch a RAID array
from read-auto state to write-pending. For DDF (and possibly other
formats) this will cause metadata writes.

If I read the code correctly, the reason is that mdadm -Db will use the
GET_BITMAP_FILE ioctl, which calls md_allow_write(). I saw this on a
CentOS 6.3 kernel but comparing the code I didn't see a difference in
recent kernels.

I am wondering if this is intentional, and if no, if anything could be
done about it. It is certainly surprising behavior.

Regards
Martin

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

end of thread, other threads:[~2013-07-26 21:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-10 17:54 mdadm -Db switches array to write-pending?! Martin Wilck
2013-07-15  5:18 ` NeilBrown
2013-07-17 20:19   ` Martin Wilck
2013-07-26 18:01     ` Martin Wilck
2013-07-26 21:58       ` 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).