]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md: refuse to change shape of array if it is active but read-only
authorNeilBrown <neilb@suse.de>
Mon, 5 May 2014 23:45:05 +0000 (09:45 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 5 May 2014 23:49:37 +0000 (09:49 +1000)
commit9a1571d0435817356fe24e4adac375290f831d41
tree079b80a2568a99d96a966d0278531be5134f6466
parent0f62fb220aa4ebabe8547d3a9ce4a16d3c045f21
md: refuse to change shape of array if it is active but read-only

read-only arrays should not be changed.  This includes changing
the level, layout, size, or number of devices.

So reject those changes for readonly arrays.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c