add MBR_IS_EXTENDED() to detect one of the extended MBR partition types

This commit is contained in:
lukem 2000-12-24 13:30:51 +00:00
parent be812c01d9
commit 05aeef6f4c
1 changed files with 5 additions and 1 deletions

View File

@ -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.6 2000/12/24 13:30:51 lukem Exp $ */
/*
* Copyright (c) 1994, 1998 Christopher G. Demetriou
@ -83,4 +83,8 @@ struct mbr_partition {
#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_ */