X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/70702af1370e44e32fb2c3c507e4759a187b4fe5:/fatfs/doc/en/getfree.html..289f6a146c0b2087607d8d8659531ea90142779a:/fatfs/documents/doc/getfree.html diff --git a/fatfs/doc/en/getfree.html b/fatfs/documents/doc/getfree.html similarity index 73% rename from fatfs/doc/en/getfree.html rename to fatfs/documents/doc/getfree.html index 1cfc09a..cdc730b 100644 --- a/fatfs/doc/en/getfree.html +++ b/fatfs/documents/doc/getfree.html @@ -1,7 +1,7 @@ - + @@ -18,7 +18,7 @@ FRESULT f_getfree ( const TCHAR* path, /* [IN] Logical drive number */ DWORD* nclst, /* [OUT] Number of free clusters */ - FATFS** fatfs /* [OUT] Corresponding file system object */ + FATFS** fatfs /* [OUT] Corresponding filesystem object */ ); @@ -31,7 +31,7 @@ FRESULT f_getfree (
nclst
Pointer to the DWORD variable to store number of free clusters.
fatfs
-
Pointer to pointer that to store a pointer to the corresponding file system object.
+
Pointer to pointer that to store a pointer to the corresponding filesystem object.
@@ -53,13 +53,13 @@ FRESULT f_getfree (

Descriptions

-

The f_getfree function gets number of free clusters on the volume. The member csize in the file system object indicates number of sectors per cluster, so that the free space in unit of sector can be calcurated with this information. When FSINFO structure on the FAT32 volume is not in sync, this function can return an incorrect free cluster count. To avoid this problem, FatFs can be forced full FAT scan by _FS_NOFSINFO option.

+

The f_getfree function gets number of free clusters on the volume. The member csize in the filesystem object indicates number of sectors per cluster, so that the free space in unit of sector can be calcurated with this information. When FSINFO structure on the FAT32 volume is not in sync, this function can return an incorrect free cluster count. To avoid this problem, FatFs can be forced full FAT scan by FF_FS_NOFSINFO option.

QuickInfo

-

Available when _FS_READONLY == 0 and _FS_MINIMIZE == 0.

+

Available when FF_FS_READONLY == 0 and FF_FS_MINIMIZE == 0.

@@ -71,7 +71,7 @@ FRESULT f_getfree ( /* Get volume information and free clusters of drive 1 */ - res = f_getfree("1:", &fre_clust, &fs); + res = f_getfree("1:", &fre_clust, &fs); if (res) die(res); /* Get total sectors and free sectors */ @@ -79,8 +79,7 @@ FRESULT f_getfree ( fre_sect = fre_clust * fs->csize; /* Print the free space (assuming 512 bytes/sector) */ - printf("%10lu KiB total drive space.\n%10lu KiB available.\n", - tot_sect / 2, fre_sect / 2); + printf("%10lu KiB total drive space.\n%10lu KiB available.\n", tot_sect / 2, fre_sect / 2);