Chameleon

Chameleon Commit Details

Date:2012-06-07 19:52:43 (7 years 12 days ago)
Author:Cosmosis Jones
Commit:1989
Parents: 1988
Message:applied extfat patch
Changes:
M/trunk/i386/libsaio/saio_types.h
M/trunk/i386/libsaio/ntfs.c
M/trunk/i386/libsaio/Makefile

File differences

trunk/i386/libsaio/Makefile
3939
4040
4141
42
42
4343
4444
4545
fake_efi.o ext2fs.o \
hpet.o dram_controllers.o spd.o usb.o pci_setup.o \
device_inject.o nvidia.o ati.o gma.o pci_root.o \
convert.o aml_generator.o console.o
convert.o aml_generator.o console.o exfat.o
SAIO_OBJS := $(addprefix $(OBJROOT)/, $(SAIO_OBJS))
trunk/i386/libsaio/ntfs.c
2626
2727
2828
29
30
31
32
33
2934
3035
3136
......
191196
192197
193198
199
200
201
202
203
194204
195205
196206
......
316326
317327
318328
319
320
329
330
331
332
321333
322334
323335
......
340352
341353
342354
355
356
357
358
343359
344360
#include "libsaio.h"
#include "sl.h"
/*
* dmazar, 14/7/2011 - support for EXFAT volume label reading
*/
#include "exfat.h"
#define BYTE_ORDER_MARK0xFEFF
#include "ntfs_private.h"
*/
if (memcmp((const char *)boot->bf_sysid, "NTFS ", 8) != 0)
{
/*
* Check for EXFAT. Finish by jumping to error to free buf,
* although if it is EXFAT then it's no an error.
*/
EXFATGetDescription(ih, str, strMaxLen);
goto error;
}
boot = (struct bootfile *) buf;
// Check for NTFS signature
if ( memcmp((void*)boot->bf_sysid, NTFS_BBID, NTFS_BBIDLEN) != 0 )
return -1;
if ( memcmp((void*)boot->bf_sysid, NTFS_BBID, NTFS_BBIDLEN) != 0 ) {
// If not NTFS, maybe it is EXFAT
return EXFATGetUUID(ih, uuidStr);
}
// Check for non-null volume serial number
if( !boot->bf_volsn )
if (strncmp((const char *)part_bootfile->bf_sysid, NTFS_BBID, NTFS_BBIDLEN) == 0)
result = true;
// If not NTFS, maybe it is EXFAT
if (!result)
result = EXFATProbe(buffer);
return result;
}
trunk/i386/libsaio/saio_types.h
6464
6565
6666
67
67
6868
6969
7070
typedef struct Tag Tag, *TagPtr;
typedef struct {
charplist[4096];// buffer for plist
charplist[16384];// buffer for plist
TagPtrdictionary;// buffer for xml dictionary
boolcanOverride;// flag to mark a dictionary can be overriden
} config_file_t;

Archive Download the corresponding diff file

Revision: 1989