Thu Oct 15 06:24:08 2015 UTC ()
For now bitflip the lfs64 magic number.

This will be unflipped when the format is finalized - right now I
still have pending changes to the superblock in mind (to reduce the
number of redundant fields) so anything created now is not future-
proof. However, the code's also nearing being ready for testing; so
I'm doing this before turning it on as a precaution.


(dholland)
diff -r1.195 -r1.196 src/sys/ufs/lfs/lfs.h

cvs diff -r1.195 -r1.196 src/sys/ufs/lfs/lfs.h (expand / switch to context diff)
--- src/sys/ufs/lfs/lfs.h 2015/10/15 06:15:48 1.195
+++ src/sys/ufs/lfs/lfs.h 2015/10/15 06:24:08 1.196
@@ -1,4 +1,4 @@
-/*	$NetBSD: lfs.h,v 1.195 2015/10/15 06:15:48 dholland Exp $	*/
+/*	$NetBSD: lfs.h,v 1.196 2015/10/15 06:24:08 dholland Exp $	*/
 
 /*  from NetBSD: dinode.h,v 1.22 2013/01/22 09:39:18 dholland Exp  */
 /*  from NetBSD: dir.h,v 1.21 2009/07/22 04:49:19 dholland Exp  */
@@ -776,8 +776,8 @@
 #define	       LFS_MAGIC       		0x070162
 #define        LFS_MAGIC_SWAPPED	0x62010700
 
-#define        LFS64_MAGIC     		0x19620701
-#define        LFS64_MAGIC_SWAPPED      0x01076219
+#define        LFS64_MAGIC     		(0x19620701 ^ 0xffffffff)
+#define        LFS64_MAGIC_SWAPPED      (0x01076219 ^ 0xffffffff)
 
 #define	       LFS_VERSION     		2