]> asedeno.scripts.mit.edu Git - linux.git/commit
md: handle read-only member devices better.
authorNeilBrown <neilb@suse.com>
Wed, 12 Apr 2017 22:53:48 +0000 (08:53 +1000)
committerShaohua Li <shli@fb.com>
Thu, 20 Apr 2017 20:25:51 +0000 (13:25 -0700)
commit97b20ef784388753becb41b27876a048e905fe9b
tree2f7128cc65e3cbbcf6b78f0bd0d97919ad6de6a7
parentcf25ae78fc50010f66b9be945017796da34c434d
md: handle read-only member devices better.

1/ If an array has any read-only devices when it is started,
   the array itself must be read-only
2/ A read-only device cannot be added to an array after it is
   started.
3/ Setting an array to read-write should not succeed
   if any member devices are read-only

Reported-and-Tested-by: Nanda Kishore Chinnaram <Nanda_Kishore_Chinna@dell.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c