X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=Kill.c;h=d5c1e36df4d3724e6cf060238902cb897e01bfed;hp=eb7475416322b94862115314012f960c79421731;hb=9fe32043178f221526b6d59f3bbce58f777089da;hpb=ba7eb04f71b0f5add796bd94319d1a0671b566de diff --git a/Kill.c b/Kill.c index eb747541..d5c1e36d 100644 --- a/Kill.c +++ b/Kill.c @@ -44,7 +44,7 @@ int Kill(char *dev, int force, int quiet, int noexcl) int fd, rv = 0; struct supertype *st; - fd = open(dev, noexcl ? O_RDWR : (O_RDWR|O_EXCL)); + fd = open(dev, O_DIRECT | (noexcl ? O_RDWR : (O_RDWR|O_EXCL))); if (fd < 0) { if (!quiet) fprintf(stderr, Name ": Couldn't open %s for write - not zeroing\n",