diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2007-11-09 11:32:58 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2007-11-09 11:32:58 +0000 |
commit | bfda01151ed0ce826751f426f9fcd9dc253b46e3 (patch) | |
tree | 90ed3e502630fe9483053aeeaa4f717aba1be659 /sys | |
parent | bb367cd36852a5907c1792949d2fa7e751680600 (diff) |
Make disklabel aware of NTFS.
ok miod@ krw@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/subr_disk.c | 7 | ||||
-rw-r--r-- | sys/sys/disklabel.h | 3 |
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index d48b421f546..52f0c4df054 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_disk.c,v 1.65 2007/09/07 15:00:20 art Exp $ */ +/* $OpenBSD: subr_disk.c,v 1.66 2007/11/09 11:32:57 jsing Exp $ */ /* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */ /* @@ -466,6 +466,11 @@ donot: n++; break; + case DOSPTYP_NTFS: + pp->p_fstype = FS_NTFS; + n++; + break; + case DOSPTYP_FAT12: case DOSPTYP_FAT16S: case DOSPTYP_FAT16B: diff --git a/sys/sys/disklabel.h b/sys/sys/disklabel.h index 58429e75c29..363aad9272b 100644 --- a/sys/sys/disklabel.h +++ b/sys/sys/disklabel.h @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.h,v 1.39 2007/07/11 04:50:43 miod Exp $ */ +/* $OpenBSD: disklabel.h,v 1.40 2007/11/09 11:32:57 jsing Exp $ */ /* $NetBSD: disklabel.h,v 1.41 1996/05/10 23:07:37 mark Exp $ */ /* @@ -431,6 +431,7 @@ struct dos_partition { #define DOSPTYP_FAT16S 0x04 /* 16-bit FAT, less than 32M */ #define DOSPTYP_EXTEND 0x05 /* Extended; contains sub-partitions */ #define DOSPTYP_FAT16B 0x06 /* 16-bit FAT, more than 32M */ +#define DOSPTYP_NTFS 0x07 /* NTFS */ #define DOSPTYP_FAT32 0x0b /* 32-bit FAT */ #define DOSPTYP_FAT32L 0x0c /* 32-bit FAT, LBA-mapped */ #define DOSPTYP_FAT16L 0x0e /* 16-bit FAT, LBA-mapped */ |