Subject: bin/11804: mbrlabel doesn't recognize NTFS partitions
To: None <gnats-bugs@gnats.netbsd.org>
From: Dave Huang <khym@bga.com>
List: netbsd-bugs
Date: 12/23/2000 14:33:16
>Number: 11804
>Category: bin
>Synopsis: mbrlabel doesn't recognize NTFS partitions
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sat Dec 23 14:33:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Dave Huang
>Release: NetBSD 1.5O as of December 22, 2000
>Organization:
Name: Dave Huang | Mammal, mammal / their names are called /
INet: khym@bga.com | they raise a paw / the bat, the cat /
FurryMUCK: Dahan | dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 25 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
>Environment:
System: NetBSD yerfable.metonymy.com 1.5O NetBSD 1.5O (YERFABLE) #127: Fri Dec 22 11:58:27 CST 2000 khym@yerfable.metonymy.com:/usr/src.local/sys/arch/alpha/compile/YERFABLE alpha
Architecture: alpha
Machine: alpha
>Description:
The mbrlabel program doesn't recognize NTFS partitions.
>How-To-Repeat:
Run mbrlabel on a drive with an NTFS partition and see it show
up as fstype "unused" rather than "NTFS"
>Fix:
--- /usr/src/sbin/mbrlabel/mbrlabel.c Wed Dec 6 04:55:54 2000
+++ mbrlabel.c Sat Dec 23 16:28:53 2000
@@ -107,6 +107,7 @@
{ MBR_PTYPE_FAT32, FS_MSDOS },
{ MBR_PTYPE_FAT32L, FS_MSDOS },
{ MBR_PTYPE_FAT16L, FS_MSDOS },
+ { MBR_PTYPE_NTFS, FS_NTFS },
{ MBR_PTYPE_LNXEXT2, FS_EX2FS },
{ 0, 0 }
};
>Release-Note:
>Audit-Trail:
>Unformatted: