From: Adam Kwolek Date: Mon, 17 Jan 2011 04:06:02 +0000 (+1100) Subject: FIX: Arrays cannot be opened exclusively X-Git-Tag: mdadm-3.2~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55f14721920616a538c6ff1b4fa3b3cd68e41c7e;p=thirdparty%2Fmdadm.git FIX: Arrays cannot be opened exclusively When reshaping it is correct to open containers exclusively, but not arrays. The array could very easily be in use, e.g. by a mounted filesystem. Signed-off-by: Adam Kwolek Signed-off-by: NeilBrown --- diff --git a/Grow.c b/Grow.c index df736eda..23ef88ee 100644 --- a/Grow.c +++ b/Grow.c @@ -2121,7 +2121,7 @@ int reshape_container(char *container, int cfd, char *devname, if (!content) break; - fd = open_dev_excl(mdstat->devnum); + fd = open_dev(mdstat->devnum); if (fd < 0) break; adev = map_dev(dev2major(mdstat->devnum),