md: don't allow bitmap file to be added to raid0/linear.
authorNeilBrown <neilb@suse.de>
Fri, 8 Aug 2014 05:40:24 +0000 (15:40 +1000)
committerNeilBrown <neilb@suse.de>
Fri, 8 Aug 2014 05:43:20 +0000 (15:43 +1000)
commitd66b1b395a59027a1c054e1fc57d582cb4194491
tree7baa7abbfe0b1671c421613c97c41f8e37a8d322
parenta8461a61c241a25afedbe493c13d98a6e0cf4246
md: don't allow bitmap file to be added to raid0/linear.

An array can only accept a bitmap if it will call bitmap_daemon_work
periodically, which means it needs a thread running.

If there is no thread, don't allow a bitmap to be added.

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