diff options
author | Javier <dev.git@javispedro.com> | 2022-04-15 10:48:48 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2022-04-15 10:48:48 +0200 |
commit | 30c3e414c423bcbfe10b1e40bb8a0e01d3eec7c9 (patch) | |
tree | c6b721d9456a2d92dafe2ab57715e6b2720fa63d /sftsr.h | |
parent | 528069dc5992bd069a3c1783db50d630c3d355b4 (diff) | |
download | vbados-30c3e414c423bcbfe10b1e40bb8a0e01d3eec7c9.tar.gz vbados-30c3e414c423bcbfe10b1e40bb8a0e01d3eec7c9.zip |
show disk free space (up to 2GB), necessary for filemgr to work
Diffstat (limited to 'sftsr.h')
-rw-r--r-- | sftsr.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -33,6 +33,12 @@ /** Maximum number of open files */ #define NUM_FILES 40 +/** Parameters used for returning disk geometry. + * For compatibility, better if sector_per_cluster * bytes_per_sector <= 32K. */ +#define SECTORS_PER_CLUSTER 8 +#define BYTES_PER_SECTOR 4096 +#define BYTES_PER_CLUSTER (SECTORS_PER_CLUSTER * BYTES_PER_SECTOR) + /** Directory enumeration needs an open file, this is its index in the "openfile" table. */ #define SEARCH_DIR_FILE 0 |