Chameleon Applications

Chameleon Applications Commit Details

Date:2010-02-19 17:27:40 (14 years 1 month ago)
Author:Tamás Kosárszky
Commit:120
Parents: 119
Message:Applying patches to make fdisk440 Windows Vista/7 friendly by reducing the MBR code size to 440 bytes.
Changes:
M/trunk/fdisk.tproj/mbr.h
M/trunk/fdisk.tproj/part.c
M/trunk/fdisk.tproj/Makefile

File differences

trunk/fdisk.tproj/part.c
2020
2121
2222
23
24
2523
24
25
26
27
28
2629
2730
2831
......
7881
7982
8083
81
84
8285
8386
8487
......
157160
158161
159162
163
160164
161165
162166
*
* @APPLE_LICENSE_HEADER_END@
*/
/*
* 2008-05-24:
* Tamas Kosarszky: changed caption for partition type 0x07
* and added caption for type 0xEE.
*/
/*
* Copyright (c) 1997 Tobias Weingartner
* All rights reserved.
*
{ 0x04, "DOS FAT-16 ", "Primary DOS with 16 bit FAT"},
{ 0x05, "Extended DOS", "Extended DOS"},
{ 0x06, "DOS > 32MB ", "Primary 'big' DOS (> 32MB)"},
{ 0x07, "HPFS/QNX/AUX", "OS/2 HPFS, QNX-2 or Advanced UNIX"},
{ 0x07, "NTFS ", "Windows NT NTFS"},
{ 0x08, "AIX fs ", "AIX filesystem"},
{ 0x09, "AIX/Coherent", "AIX boot partition or Coherent"},
{ 0x0A, "OS/2 Bootmgr", "OS/2 Boot Manager or OPUS"},
{ 0xE3, "SpeedStor ", "DOS R/O or SpeedStor or Storage Dimensions"},
{ 0xE4, "SpeedStor ", "SpeedStor 16-bit FAT extended partition < 1024 cyl."},
{ 0xEB, "BeOS/i386 ", "BeOS for Intel"},
{ 0xEE, "GPT ", "GPT protective partition"},
{ 0xF1, "SpeedStor ", "SpeedStor or Storage Dimensions"},
{ 0xF2, "DOS 3.3+ Sec", "DOS 3.3+ Secondary"},
{ 0xF4, "SpeedStor ", "SpeedStor >1024 cyl. or LANstep or IBM PS/2 IML"},
trunk/fdisk.tproj/mbr.h
2020
2121
2222
23
2423
24
25
26
27
28
29
30
31
2532
2633
2734
......
6572
6673
6774
68
75
6976
7077
7178
*
* @APPLE_LICENSE_HEADER_END@
*/
/*
* 2008-05-24:
* Tamas Kosarszky: changed MBR_CODE_SIZE to 0x1B8 to make fdisk
* compatible with Vista and GPT specifications.
*
* Credits goes to Dense for the idea of this modification and
* Kabyl for findig this piece of source.
*/
/*
* Copyright (c) 1997 Tobias Weingartner
* All rights reserved.
*
#endif
/* Various constants */
#define MBR_CODE_SIZE 0x1BE
#define MBR_CODE_SIZE 0x1B8
#define MBR_PART_SIZE0x10
#define MBR_PART_OFF 0x1BE
#define MBR_SIG_OFF 0x1FE
trunk/fdisk.tproj/Makefile
1
1
22
33
44
Project = fdisk
Project = fdisk440
ProductType = tool
Install_Dir = /usr/sbin

Archive Download the corresponding diff file

Revision: 120