[syslinux:master] disklib: Detect DiskCryptor MBR

syslinux-bot for Gert Hulselmans gerth at zytor.com
Tue Jan 25 17:00:08 PST 2011


Commit-ID:  9e1c7c49ac466b91343fd45373d21538d1b33838
Gitweb:     http://syslinux.zytor.com/commit/9e1c7c49ac466b91343fd45373d21538d1b33838
Author:     Gert Hulselmans <gerth at zytor.com>
AuthorDate: Mon, 24 Jan 2011 23:53:34 +0100
Committer:  Erwan Velu <erwanaliasr1 at gmail.com>
CommitDate: Tue, 25 Jan 2011 20:54:27 +0100

disklib: Detect DiskCryptor MBR

Add detection code for DiskCryptor MBR to disklib.

Signed-off-by: Gert Hulselmans <gerth at zytor.com>


---
 com32/gpllib/disk/mbrs.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/com32/gpllib/disk/mbrs.c b/com32/gpllib/disk/mbrs.c
index d87acdc..6150fcf 100644
--- a/com32/gpllib/disk/mbrs.c
+++ b/com32/gpllib/disk/mbrs.c
@@ -40,6 +40,8 @@ void get_mbr_string(const uint32_t label, char *buffer, const int buffer_size)
 	/* We need more than 2 bytes */
 	if (((label >> 8) & 0xff) == 0x8e)
 	    strlcpy(buffer, "Windows", buffer_size - 1);
+	else if (((label >> 8) & 0xff) == 0x90)
+	    strlcpy(buffer, "DiskCryptor", buffer_size - 1);
 	else if (((label >> 8) & 0xff) == 0xfa)
 	    strlcpy(buffer, "Syslinux", buffer_size - 1);
 	else



More information about the Syslinux-commits mailing list