summaryrefslogtreecommitdiff
path: root/sbin/fdisk/mbr.h
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2002-01-04 08:35:07 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2002-01-04 08:35:07 +0000
commit4000cc8ea3810f6c3298aa89bd4399132331629f (patch)
treefd8b18872aa3a8f2fb23eb2fa4e1dd90024d23fa /sbin/fdisk/mbr.h
parent80c51b3f573153f5c32b1bba1e002af3c13d9e43 (diff)
Remove references to the NT serial number. Now the first 0x1be
bytes of the MBR are treated as code for the purposes of the (u)pdate command. This is consistent with the new -u flag. This means boot managers like BootEasy can now be written out correctly. Note that rewriting the MBR now whacks the NT serial number - a behavior that is consistent with the DOS FDISK /MBR.
Diffstat (limited to 'sbin/fdisk/mbr.h')
-rw-r--r--sbin/fdisk/mbr.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/sbin/fdisk/mbr.h b/sbin/fdisk/mbr.h
index 48e9d637de3..39aab01bec0 100644
--- a/sbin/fdisk/mbr.h
+++ b/sbin/fdisk/mbr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mbr.h,v 1.7 2001/12/15 02:12:26 kjell Exp $ */
+/* $OpenBSD: mbr.h,v 1.8 2002/01/04 08:35:06 kjell Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -36,11 +36,9 @@
#include "part.h"
/* Various constants */
-#define MBR_CODE_SIZE 0x1B8
+#define MBR_CODE_SIZE 0x1BE
#define MBR_PART_SIZE 0x10
#define MBR_PART_OFF 0x1BE
-#define MBR_NTSER_OFF 0x1B8
-#define MBR_SPARE_OFF 0x1BC /* Spare short, not used */
#define MBR_SIG_OFF 0x1FE
@@ -49,8 +47,6 @@ typedef struct _mbr_t {
off_t reloffset;
off_t offset;
unsigned char code[MBR_CODE_SIZE];
- unsigned long nt_serial;
- unsigned short spare;
prt_t part[NDOSPART];
unsigned short signature;
} mbr_t;