BSD sector label. Otherwise the first 512 bytes don't get
zapped. (Addresses Debian bug #147256.)
+2002-07-14 Theodore Ts'o <tytso@mit.edu>
+
+ * mke2fs.c (zap_sector): Clear the buffer *after* testing for the
+ BSD sector label. Otherwise the first 512 bytes don't get
+ zapped. (Addresses Debian bug #147256.)
+
2002-07-02 Theodore Ts'o <tytso@mit.edu>
* mke2fs.8.in: Cleaned up man page, and made it a bit more
sect, sect + nsect - 1);
exit(1);
}
- memset(buf, 0, 512*nsect);
if (sect == 0) {
/* Check for a BSD disklabel, and don't erase it if so */
}
}
+ memset(buf, 0, 512*nsect);
io_channel_set_blksize(fs->io, 512);
retval = io_channel_write_blk(fs->io, sect, -512*nsect, buf);
io_channel_set_blksize(fs->io, fs->blocksize);