00001 #define DOSPTYP_UBX 0x2A
00002 #define UBIXDISKMAGIC ((u_int32_t)0x45)
00003 #define MAXUBIXPARTITIONS 16
00004 #define UBIXFSMAGIC ((u_int32_t)0x69)
00005
00006 typedef unsigned long uLong;
00007 typedef unsigned short uShort;
00008
00009
00010 struct ubixDiskLabel {
00011 u_int32_t magicNum;
00012 u_int32_t magicNum2;
00013 u_int16_t driveType;
00014 u_int16_t numPartitions;
00015 struct ubixPartitions {
00016 u_int32_t p_size;
00017 u_int32_t p_offset;
00018 u_int32_t p_fsize;
00019 u_int32_t p_bsize;
00020 u_int8_t p_fstype;
00021 u_int8_t p_frag;
00022 } partitions[MAXUBIXPARTITIONS];
00023 };
00024
00025
00026 struct blockAllocationTableEntry {
00027 long attributes;
00028 long realSector;
00029 long nextBlock;
00030 long reserved;
00031 };
00032
00033
00034 struct directoryEntry {
00035 uLong startCluster;
00036 uLong size;
00037 uLong creationDate;
00038 uLong lastModified;
00039 uLong uid;
00040 uLong gid;
00041 uShort attributes;
00042 uShort permissions;
00043 char fileName[256];
00044 };