Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Mounting ext2fs instead of ffs after 5.99.60 (SOLVED)
> (Although it still can be confusing when somebody had reformatted a
> Linux disk with NetBSD.)
newfs(8) should explicitly zap possible ext2fs magic?
Index: mkfs.c
===================================================================
RCS file: /cvsroot/src/sbin/newfs/mkfs.c,v
retrieving revision 1.110
diff -u -p -r1.110 mkfs.c
--- mkfs.c 25 Aug 2011 16:17:58 -0000 1.110
+++ mkfs.c 4 Feb 2012 19:36:29 -0000
@@ -615,6 +615,8 @@ mkfs(const char *fsys, int fi, int fo,
for (sz = SBLOCKSIZE; sz <= 0x10000; sz <<= 1)
zap_old_sblock(roundup(sblkoff, sz));
}
+ /* Also zap possible Ext2fs magic leftover. */
+ zap_old_sblock(1024); /* XXX: SBOFF in ext2fs.h */
if (isappleufs) {
struct appleufslabel appleufs;
---
(untesed at all)
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index