Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/lfs For now bitflip the lfs64 magic number.



details:   https://anonhg.NetBSD.org/src/rev/f105915719b1
branches:  trunk
changeset: 811169:f105915719b1
user:      dholland <dholland%NetBSD.org@localhost>
date:      Thu Oct 15 06:24:08 2015 +0000

description:
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.

diffstat:

 sys/ufs/lfs/lfs.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 80410b44be21 -r f105915719b1 sys/ufs/lfs/lfs.h
--- a/sys/ufs/lfs/lfs.h Thu Oct 15 06:15:48 2015 +0000
+++ b/sys/ufs/lfs/lfs.h Thu Oct 15 06:24:08 2015 +0000
@@ -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
 



Home | Main Index | Thread Index | Old Index