summaryrefslogtreecommitdiffstats
path: root/Kill.c
diff options
context:
space:
mode:
Diffstat (limited to 'Kill.c')
-rw-r--r--Kill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kill.c b/Kill.c
index 0a2763e..5b25487 100644
--- a/Kill.c
+++ b/Kill.c
@@ -34,7 +34,7 @@
#include "md_u.h"
#include "md_p.h"
-int Kill(char *dev, int force, int quiet)
+int Kill(char *dev, int force, int quiet, int noexcl)
{
/*
* Nothing fancy about Kill. It just zeroes out a superblock
@@ -44,7 +44,7 @@ int Kill(char *dev, int force, int quiet)
int fd, rv = 0;
struct supertype *st;
- fd = open(dev, O_RDWR|O_EXCL);
+ fd = open(dev, noexcl ? O_RDWR : (O_RDWR|O_EXCL));
if (fd < 0) {
if (!quiet)
fprintf(stderr, Name ": Couldn't open %s for write - not zeroing\n",