]> git.karo-electronics.de Git - karo-tx-linux.git/commit
raid5-cache: start raid5 readonly if journal is missing
authorShaohua Li <shli@fb.com>
Fri, 9 Oct 2015 04:54:10 +0000 (21:54 -0700)
committerNeilBrown <neilb@suse.com>
Sun, 1 Nov 2015 02:48:29 +0000 (13:48 +1100)
commit7dde2ad3c5b4afb4b2544b864fa34dd1f4897ab6
tree301d84d8773e13a6b815355446b485ed3dcfc595
parenta97b7896447a89749d9258fbb9d8c3faf48a7a4e
raid5-cache: start raid5 readonly if journal is missing

If raid array is expected to have journal (eg, journal is set in MD
superblock feature map) and the array is started without journal disk,
start the array readonly.

Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/raid5-cache.c
drivers/md/raid5.c