Gert Hulselmans
2011-Jan-24 23:17 UTC
[PATCH] disklib: Detect "FreeDOS (eXtended FDisk)" MBR
Add detection code for "FreeDOS (eXtended FDisk)" 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 37309e1..6150fcf 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 0xfab8: case 0xfabe: strlcpy(buffer, "No bootloader", buffer_size - 1); break; @@ -101,6 +100,9 @@ void get_mbr_string(const uint32_t label, char *buffer, const int buffer_size) case 0xfa33: strlcpy(buffer, "MS-DOS 3.30 through Windows 95 (A)", buffer_size - 1); break; + case 0xfab8: + strlcpy(buffer, "FreeDOS (eXtended FDisk)", buffer_size - 1); + break; case 0xfaeb: strlcpy(buffer, "Lilo", buffer_size - 1); break; -- 1.7.1 ------=_20110124152841_33905--
Seemingly Similar Threads
- [PATCH] disklib: Detect "MS-DOS 3.30 through Windows 95 (A)" 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)