home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / de / comp / sys / amiga / misc / 2914 < prev    next >
Encoding:
Text File  |  1992-07-29  |  3.4 KB  |  80 lines

  1. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!smurf.sub.org!hugis!castle.erh.sub.org!forge.erh.sub.org!barnard
  2. From: barnard@forge.erh.sub.org (Henning Schmiedehausen)
  3. Newsgroups: de.comp.sys.amiga.misc
  4. Subject: Re: Info ueber trackdisk-kompatibles Device
  5. Message-ID: <mLsqr*Yg0@forge.erh.sub.org>
  6. Date: Wed, 29 Jul 1992 02:04:54 GMT
  7. References: <zrawi01.712244965@indiaka>
  8. Organization: Barnard's Software Forge
  9. X-Newsreader: Arn V1.00 beta rel1
  10. Lines: 68
  11.  
  12. In article <zrawi01.712244965@indiaka>, J. Wiedmann writes:
  13.  
  14. > Hallo,
  15. > ich moechte in ein Programm eine DiskCopy-aehnliche Routine einbauen. Sie
  16. > soll aber nicht nur fuer df0:-df3: funktionieren, sondern auch fuer andere
  17. > Devices, die nach demselben Prinzip arbeiten, z.B. msh: oder ff0: (mit Fast-
  18. > FileSystem gemountetes df0:), natuerlich nur sofern das Format uebereinstimmt.
  19. >
  20. > Ich moechte also, zu einem gegebenen Device- oder Volumenamen die noetigen
  21. > Informationen bestimmen, als da waeren:
  22. >     - Zahl der Koepfe, Zylinder, Sektoren
  23. >     - Bytes pro Block
  24. >     - Verwendetes Filesystem
  25. >     - Trackdisk-kompatibel (Ja/Nein)
  26.  
  27.  
  28. Du  gehst  die  Device-Liste  durch  und  schaust beim gesuchten Device unter
  29. dn_Startup nach.  Dort findest Du die FileSysStartupMsg:
  30.  
  31. struct FileSysStartupMsg {
  32.     ULONG    fssm_Unit;    /* exec unit number for this device */
  33.     BSTR    fssm_Device;    /* null terminated bstring to the device name */
  34.     BPTR    fssm_Environ;    /* ptr to environment table (see above) */
  35.     ULONG    fssm_Flags;    /* flags for OpenDevice() */
  36. };
  37.  
  38. Dort  findest  Du Unit und Device-Name, ausserdem einen Zeiger auf 'Environ'.
  39. Dieser enthaelt:
  40.  
  41.  
  42. struct DosEnvec {
  43.     ULONG de_TableSize;         /* Size of Environment vector */
  44.     ULONG de_SizeBlock;         /* in longwords: standard value is 128 */
  45.     ULONG de_SecOrg;         /* not used; must be 0 */
  46.     ULONG de_Surfaces;         /* # of heads (surfaces). drive specific */
  47.     ULONG de_SectorPerBlock; /* not used; must be 1 */
  48.     ULONG de_BlocksPerTrack; /* blocks per track. drive specific */
  49.     ULONG de_Reserved;         /* DOS reserved blocks at start of partition. */
  50.     ULONG de_PreAlloc;         /* DOS reserved blocks at end of partition */
  51.     ULONG de_Interleave;     /* usually 0 */
  52.     ULONG de_LowCyl;         /* starting cylinder. typically 0 */
  53.     ULONG de_HighCyl;         /* max cylinder. drive specific */
  54.     ULONG de_NumBuffers;     /* Initial # DOS of buffers.  */
  55.     ULONG de_BufMemType;     /* type of mem to allocate for buffers */
  56.     ULONG de_MaxTransfer;    /* Max number of bytes to transfer at a time */
  57.     ULONG de_Mask;         /* Address Mask to block out certain memory */
  58.     LONG  de_BootPri;         /* Boot priority for autoboot */
  59.     ULONG de_DosType;         /* ASCII (HEX) string showing filesystem type;
  60.                   * 0X444F5300 is old filesystem,
  61.                   * 0X444F5301 is fast file system */
  62.     ULONG de_Baud;         /* Baud rate for serial handler */
  63.     ULONG de_Control;         /* Control word for handler/filesystem */
  64.     ULONG de_BootBlocks;     /* Number of blocks containing boot code */
  65.  
  66. };
  67.  
  68.  
  69. .... also alles was Du brauchst.... ;)
  70.  
  71.     Ciao
  72.         Henning
  73.  
  74. --
  75. -- Henning Schmiedehausen --- barnard@forge.erh.sub.org --- A 3000/25 --- __
  76. Captain, wir koennen es schaffen, wir koennen den  |Home of Barnard's__  ///
  77. Transporter modifizieren. Wir brauchen 15 Jahre und|Software Forge   \\\///
  78. 100 Techniker... - Geordi LaForge, ST:TNG - The ensigns of command    \XX/
  79.