[hfs-user] Difference in Data types??

Biswaroop(External) Biswaroop\(External\)" <biswaroopb@integramicro.com
Fri, 29 Mar 2002 17:10:16 +0530


This is a multi-part message in MIME format.

------=_NextPart_000_0015_01C1D744.98D61740
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

HI, Everybody
 Wishing u all a very Happy Holi.( An Indian festival played
  with colours)

  Well in the MDB structure for an HFS volume the
  field
  vol.drXTClpSiz /* clump size for extents overflow file */
  is 4 bytes long.
  Again in the Catalog Data Record structure the member
  filClpSize; /* file clump size */
  takes 2 bytes.
=20
  Therefore when i assign the value of the first variable to
  the second I lose information.
  But then one way is to make the MDB's variable contain
  a value only for 2 bytes then assignment won't make=20
  a data loss. But the value for the MDB's variable was
  calculated as 1/128 th part of the Total volume size.
  An emphirical formula used in the hfsutils package.
  Any comments on this???
  Please is there any simple formula to find out the
  extent file size and the catalog file size for a volume
  when we know before hand how many files have to be
  in that volume.
  For eg. if i know i have to write "X" files  contained in
  "Y" number of directories.
   Then can i calculate what should be the volume's=20
   clump size for the extents overflow file and the catalog=20
  file.

Waiting for ur  explanations.
=20
 Bye
 Biswaroop


Each Day gives us an Opprutunity to
Ruin it, those who Fail, Succeed in Life.
                                                -- Bisban

------=_NextPart_000_0015_01C1D744.98D61740
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>HI, Everybody</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;Wishing u all a very Happy Holi.( =
An Indian=20
festival played</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; with colours)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; Well in the MDB structure for an =
HFS volume=20
the</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; field</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; vol.drXTClpSiz /* clump size for =
extents=20
overflow file */</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; is 4 bytes long.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; Again in the Catalog Data Record =
structure=20
the member</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; filClpSize;&nbsp;/* file clump =
size=20
*/</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; takes 2 bytes.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; Therefore when i assign the =
value of the=20
first variable to</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; the second I lose =
information.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; But then one way is to make the =
MDB's=20
variable contain</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; a value only for 2 bytes then =
assignment=20
won't make </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; a data loss. But the value for =
the MDB's=20
variable was</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; calculated as 1/128 th part of =
the Total=20
volume size.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; An emphirical formula used in =
the hfsutils=20
package.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; Any comments on =
this???</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; Please is there any simple =
formula to find=20
out the</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; extent file size and the catalog =
file size=20
for a volume</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; when we know before hand how =
many files have=20
to be</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; in that volume.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; For eg. if i know i have to =
write "X"=20
files&nbsp; contained in</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; "Y" number of =
directories.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; Then can i calculate what =
should be=20
the volume's </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; clump size for the extents =
overflow=20
file and the catalog </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; file.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Waiting for ur&nbsp; =
explanations.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;Bye</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;Biswaroop</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Each Day gives us an Opprutunity =
to<BR>Ruin it,=20
those who Fail, Succeed in=20
Life.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

-- Bisban</FONT></DIV></BODY></HTML>

------=_NextPart_000_0015_01C1D744.98D61740--