Newer
Older
ubixos-pre / doc / doxygen / html / boot_2boot2_2ubixfs_8h-source.html
@reddawg reddawg on 18 Jun 2004 3 KB UbixOS PreRelease
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Ubixos: ubixfs.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.3 -->
<h1>ubixfs.h</h1><div class="fragment"><pre>00001 <span class="preprocessor">#define DOSPTYP_UBX      0x2A   </span><span class="comment">/* UbixFS partition type */</span>
00002 <span class="preprocessor">#define UBIXDISKMAGIC    ((u_int32_t)0x45) </span><span class="comment">/* The disk magic number */</span>
00003 <span class="preprocessor">#define MAXUBIXPARTITIONS 16</span>
00004 <span class="preprocessor"></span><span class="preprocessor">#define UBIXFSMAGIC      ((u_int32_t)0x69) </span><span class="comment">/* The File System Magic Number */</span>
00005 
00006 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> uLong;
00007 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> uShort;
00008 
00009 
00010 <span class="keyword">struct </span>ubixDiskLabel {
00011   u_int32_t magicNum;
00012   u_int32_t magicNum2;
00013   u_int16_t driveType;
00014   u_int16_t numPartitions;
00015   <span class="keyword">struct  </span>ubixPartitions {             <span class="comment">/* the partition table */</span>
00016     u_int32_t p_size;       <span class="comment">/* number of sectors in partition */</span>
00017     u_int32_t p_offset;     <span class="comment">/* starting sector */</span>
00018     u_int32_t p_fsize;      <span class="comment">/* filesystem basic fragment size */</span>
00019     u_int32_t p_bsize;      <span class="comment">/* BAT size */</span>
00020     u_int8_t p_fstype;      <span class="comment">/* filesystem type, see below */</span>
00021     u_int8_t p_frag;        <span class="comment">/* filesystem fragments per block */</span>
00022         } partitions[MAXUBIXPARTITIONS];
00023   };
00024 
00025 <span class="comment">//Block Allocation Table Entry</span>
00026 <span class="keyword">struct </span>blockAllocationTableEntry {
00027   <span class="keywordtype">long</span> attributes; <span class="comment">//Block Attributes</span>
00028   <span class="keywordtype">long</span> realSector; <span class="comment">//Real Sector  </span>
00029   <span class="keywordtype">long</span> nextBlock;  <span class="comment">//Sector Of Next Block</span>
00030   <span class="keywordtype">long</span> reserved;   <span class="comment">//Reserved</span>
00031   };
00032 
00033 
00034 <span class="keyword">struct </span>directoryEntry {
00035   uLong  startCluster;   <span class="comment">//Starting Cluster Of File</span>
00036   uLong  size;           <span class="comment">//Size Of File</span>
00037   uLong  creationDate;  <span class="comment">//Date Created</span>
00038   uLong  lastModified;  <span class="comment">//Date Last Modified</span>
00039   uLong  uid;           <span class="comment">//UID Of Owner</span>
00040   uLong  gid;           <span class="comment">//GID Of Owner</span>
00041   uShort attributes;    <span class="comment">//Files Attributes</span>
00042   uShort permissions;   <span class="comment">//Files Permissions</span>
00043   <span class="keywordtype">char</span>   fileName[256]; <span class="comment">//File Name</span>
00044   };
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 28 17:49:42 2004 for Ubixos by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 > 
</a>1.3.3 </small></address>
</body>
</html>