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 <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Adam Kwolek 2011-01-17 15:06:02 +11:00 committed by NeilBrown
parent e35b189b4e
commit 55f1472192
1 changed files with 1 additions and 1 deletions

2
Grow.c
View File

@ -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),