Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143781921
D3894.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D3894.diff
View Options
Index: head/usr.bin/mkimg/ebr.c
===================================================================
--- head/usr.bin/mkimg/ebr.c
+++ head/usr.bin/mkimg/ebr.c
@@ -39,11 +39,15 @@
#include "mkimg.h"
#include "scheme.h"
+#ifndef DOSPTYP_FAT16B
+#define DOSPTYP_FAT16B 0x06
+#endif
#ifndef DOSPTYP_FAT32
#define DOSPTYP_FAT32 0x0b
#endif
static struct mkimg_alias ebr_aliases[] = {
+ { ALIAS_FAT16B, ALIAS_INT2TYPE(DOSPTYP_FAT16B) },
{ ALIAS_FAT32, ALIAS_INT2TYPE(DOSPTYP_FAT32) },
{ ALIAS_FREEBSD, ALIAS_INT2TYPE(DOSPTYP_386BSD) },
{ ALIAS_NONE, 0 }
Index: head/usr.bin/mkimg/mbr.c
===================================================================
--- head/usr.bin/mkimg/mbr.c
+++ head/usr.bin/mkimg/mbr.c
@@ -39,6 +39,9 @@
#include "mkimg.h"
#include "scheme.h"
+#ifndef DOSPTYP_FAT16B
+#define DOSPTYP_FAT16B 0x06
+#endif
#ifndef DOSPTYP_FAT32
#define DOSPTYP_FAT32 0x0b
#endif
@@ -49,6 +52,7 @@
static struct mkimg_alias mbr_aliases[] = {
{ ALIAS_EBR, ALIAS_INT2TYPE(DOSPTYP_EXT) },
{ ALIAS_EFI, ALIAS_INT2TYPE(DOSPTYP_EFI) },
+ { ALIAS_FAT16B, ALIAS_INT2TYPE(DOSPTYP_FAT16B) },
{ ALIAS_FAT32, ALIAS_INT2TYPE(DOSPTYP_FAT32) },
{ ALIAS_FREEBSD, ALIAS_INT2TYPE(DOSPTYP_386BSD) },
{ ALIAS_NTFS, ALIAS_INT2TYPE(DOSPTYP_NTFS) },
Index: head/usr.bin/mkimg/scheme.h
===================================================================
--- head/usr.bin/mkimg/scheme.h
+++ head/usr.bin/mkimg/scheme.h
@@ -36,6 +36,7 @@
/* start */
ALIAS_EBR,
ALIAS_EFI,
+ ALIAS_FAT16B,
ALIAS_FAT32,
ALIAS_FREEBSD,
ALIAS_FREEBSD_BOOT,
Index: head/usr.bin/mkimg/scheme.c
===================================================================
--- head/usr.bin/mkimg/scheme.c
+++ head/usr.bin/mkimg/scheme.c
@@ -50,6 +50,7 @@
} scheme_alias[] = {
{ "ebr", ALIAS_EBR },
{ "efi", ALIAS_EFI },
+ { "fat16b", ALIAS_FAT16B },
{ "fat32", ALIAS_FAT32 },
{ "freebsd", ALIAS_FREEBSD },
{ "freebsd-boot", ALIAS_FREEBSD_BOOT },
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 1, 1:05 PM (4 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28371874
Default Alt Text
D3894.diff (1 KB)
Attached To
Mode
D3894: mkimg: support fat16b partitions (MBR type 06h)
Attached
Detach File
Event Timeline
Log In to Comment