Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/sys Pull up revision 1.6 (requested by lukem):



details:   https://anonhg.NetBSD.org/src/rev/94f1de318c6c
branches:  netbsd-1-5
changeset: 490750:94f1de318c6c
user:      he <he%NetBSD.org@localhost>
date:      Mon Feb 26 22:20:20 2001 +0000

description:
Pull up revision 1.6 (requested by lukem):
  Add MBR_IS_EXTENDED() to detect the extended MBR partition types.

diffstat:

 sys/sys/disklabel_mbr.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r bd2482395271 -r 94f1de318c6c sys/sys/disklabel_mbr.h
--- a/sys/sys/disklabel_mbr.h   Mon Feb 26 22:12:27 2001 +0000
+++ b/sys/sys/disklabel_mbr.h   Mon Feb 26 22:20:20 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disklabel_mbr.h,v 1.5 1999/09/23 15:21:12 ws Exp $     */
+/*     $NetBSD: disklabel_mbr.h,v 1.5.12.1 2001/02/26 22:20:20 he Exp $        */
 
 /*
  * Copyright (c) 1994, 1998 Christopher G. Demetriou
@@ -83,4 +83,8 @@
 #define        MBR_PSECT(s)    ((s) & 0x3f)
 #define        MBR_PCYL(c, s)  ((c) + (((s) & 0xc0) << 2))
 
+#define MBR_IS_EXTENDED(x)     ((x) == MBR_PTYPE_EXT || \
+                                (x) == MBR_PTYPE_EXT_LBA || \
+                                (x) == MBR_PTYPE_EXT_LNX)
+
 #endif /* _SYS_DISKLABEL_MBR_H_ */



Home | Main Index | Thread Index | Old Index