Gert Hulselmans
2011-Jan-24 23:12 UTC
[PATCH] disklib: Detect "MS-DOS 3.30 through Windows 95 (A)" MBR
Add detection code for "MS-DOS 3.30 through Windows 95 (A)" MBR to disklib. Signed-off-by: Gert Hulselmans <gerth at zytor.com> --- com32/gpllib/disk/mbrs.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/com32/gpllib/disk/mbrs.c b/com32/gpllib/disk/mbrs.c index 77e4180..37309e1 100644 --- a/com32/gpllib/disk/mbrs.c +++ b/com32/gpllib/disk/mbrs.c @@ -27,7 +27,6 @@ void get_mbr_string(const uint32_t label, char *buffer, const int buffer_size) switch (s_label) { case 0x0000: - case 0xfa33: case 0xfab8: case 0xfabe: strlcpy(buffer, "No bootloader", buffer_size - 1); @@ -99,6 +98,9 @@ void get_mbr_string(const uint32_t label, char *buffer, const int buffer_size) else strlcpy(buffer, "Unknown mbr", buffer_size - 1); break; + case 0xfa33: + strlcpy(buffer, "MS-DOS 3.30 through Windows 95 (A)", buffer_size - 1); + break; case 0xfaeb: strlcpy(buffer, "Lilo", buffer_size - 1); break; -- 1.7.1 ------=_20110124152841_33905 Content-Type: text/x-patch; name="0001-disklib-Detect-FreeDOS-eXtended-FDisk-MBR.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0001-disklib-Detect-FreeDOS-eXtended-FDisk-MBR.patch"
Apparently Analagous Threads
- [PATCH] disklib: Detect "FreeDOS (eXtended FDisk)" MBR
- [Pull request] disklib: fixes for write functions
- Announcing EXT2FS lib for syslinux
- [syslinux:disklib] disklib: make CHS calculation match core/fs/diskio.c
- chain.c: fix v2 for public indexes in iterators (for master and disklib)