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",