X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=monitor.c;h=5c17910fe535249452cb908ffa39b43f5a950205;hp=15791f4e93ae79f073621b42ae8147fcb2149e31;hb=e8a70c89585ddca2bcb4160808f64506c64df13b;hpb=bf68e9d9ab185121b6004fc81b531bce8348726d diff --git a/monitor.c b/monitor.c index 15791f4e..5c17910f 100644 --- a/monitor.c +++ b/monitor.c @@ -469,7 +469,7 @@ static int wait_and_act(struct supertype *container, int nowait) * problem as there are no active arrays, there is * nothing that we need to be ready to do. */ - int fd = open(container->device_name, O_RDONLY|O_EXCL); + int fd = open_dev_excl(container->devnum); if (fd >= 0 || errno != EBUSY) { /* OK, we are safe to leave */ if (sigterm && !dirty_arrays)