Hi Eric, I'm porting the following function: int rqblockio (unsigned char command, struct dpb *dpbp);
In particular, the command I need to emulate is: C_BLDBPB (which builds the Bios Parameter Block) to do that, I'm gonna: 1. Read the boot sector of the volume 2. Make some calculations 3. Fill the fields of dpb (disk parameter block) The dpb has the following field: "dpb_nfreeclst" which is the number of free clusters of the volume. How am I supposed to calculate "dpb_nfreeclst"? The boot sector, in fact, contains the number of "available" clusters but not of "free_clusters". Is "dpb_nfreeclst" really needed by FreeDOS? thanks for your support, Enrico ------------------------------------------------------ Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom http://click.libero.it/infostrada ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel