Home
last modified time | relevance | path

Searched refs:clusters (Results 1 – 10 of 10) sorted by relevance

/FileX-v6.4.1/common/src/
Dfx_fault_tolerant_create_log_file.c82 ULONG clusters; in _fx_fault_tolerant_create_log_file() local
99 clusters = media_ptr -> fx_media_fault_tolerant_clusters; in _fx_fault_tolerant_create_log_file()
102 while (FAT_index <= (media_ptr -> fx_media_total_clusters - clusters + FX_FAT_ENTRY_START)) in _fx_fault_tolerant_create_log_file()
131 } while (i < clusters); in _fx_fault_tolerant_create_log_file()
134 if (i >= clusters) in _fx_fault_tolerant_create_log_file()
159 for (i = 0; i < (clusters - 1); i++) in _fx_fault_tolerant_create_log_file()
178 …status = _fx_utility_FAT_entry_write(media_ptr, FAT_index + clusters - 1, media_ptr -> fx_media_f… in _fx_fault_tolerant_create_log_file()
226 media_ptr -> fx_media_available_clusters - clusters; in _fx_fault_tolerant_create_log_file()
Dfx_file_extended_allocate.c100 ULONG clusters; in _fx_file_extended_allocate() local
193 clusters = (ULONG)(((size + bytes_per_cluster - 1) / bytes_per_cluster)); in _fx_file_extended_allocate()
196 if (clusters == 0) in _fx_file_extended_allocate()
211 if (clusters > media_ptr -> fx_media_available_clusters) in _fx_file_extended_allocate()
226 …if (((file_ptr -> fx_file_current_available_size + (((ULONG64) clusters) * ((ULONG64) bytes_per_cl… in _fx_file_extended_allocate()
227 …((file_ptr -> fx_file_current_available_size + (((ULONG64) clusters) * ((ULONG64) bytes_per_cluste… in _fx_file_extended_allocate()
247 while (FAT_index <= (media_ptr -> fx_media_total_clusters - clusters + FX_FAT_ENTRY_START)) in _fx_file_extended_allocate()
283 } while (i < clusters); in _fx_file_extended_allocate()
286 if (i >= clusters) in _fx_file_extended_allocate()
320 for (i = 0; i < (clusters - 1); i++) in _fx_file_extended_allocate()
[all …]
Dfx_file_extended_best_effort_allocate.c101 ULONG clusters, maximum_clusters; in _fx_file_extended_best_effort_allocate() local
197 clusters = (ULONG)(((size + bytes_per_cluster - 1) / bytes_per_cluster)); in _fx_file_extended_best_effort_allocate()
200 if (clusters == 0) in _fx_file_extended_best_effort_allocate()
233 …if (((file_ptr -> fx_file_current_available_size + (((ULONG64) clusters) * ((ULONG64) bytes_per_cl… in _fx_file_extended_best_effort_allocate()
234 …((file_ptr -> fx_file_current_available_size + (((ULONG64) clusters) * ((ULONG64) bytes_per_cluste… in _fx_file_extended_best_effort_allocate()
291 …} while ((i < clusters) && ((FAT_index + i) < media_ptr -> fx_media_total_clusters + FX_FAT_ENTRY_… in _fx_file_extended_best_effort_allocate()
304 if (i >= clusters) in _fx_file_extended_best_effort_allocate()
328 clusters = maximum_clusters; in _fx_file_extended_best_effort_allocate()
351 for (i = 0; i < (clusters - 1); i++) in _fx_file_extended_best_effort_allocate()
377 …status = _fx_utility_FAT_entry_write(media_ptr, FAT_index + clusters - 1, media_ptr -> fx_media_f… in _fx_file_extended_best_effort_allocate()
[all …]
Dfx_fault_tolerant_enable.c106 ULONG clusters; local
126clusters = (FX_FAULT_TOLERANT_MAXIMUM_LOG_FILE_SIZE + bytes_per_cluster - 1) / bytes_per_cluster;
127 media_ptr -> fx_media_fault_tolerant_clusters = clusters;
263 if (memory_size > (clusters * bytes_per_cluster))
265 media_ptr -> fx_media_fault_tolerant_memory_buffer_size = clusters * bytes_per_cluster;
306 for (i = 0; i < clusters; i++)
323 if (i < clusters - 1)
Dfx_file_write.c108 ULONG clusters; in _fx_file_write() local
459 clusters = (UINT)((size + (bytes_per_cluster - 1) - in _fx_file_write()
466 clusters = 0; in _fx_file_write()
472 if (clusters + replace_clusters > media_ptr -> fx_media_available_clusters) in _fx_file_write()
474 if (clusters > media_ptr -> fx_media_available_clusters) in _fx_file_write()
490 file_ptr -> fx_file_total_clusters = file_ptr -> fx_file_total_clusters + clusters; in _fx_file_write()
493 …-> fx_file_current_available_size + (ULONG64)bytes_per_cluster * (ULONG64)clusters > 0xFFFFFFFFULL) in _fx_file_write()
505 … file_ptr -> fx_file_current_available_size + (ULONG64)bytes_per_cluster * (ULONG64)clusters; in _fx_file_write()
510 clusters += replace_clusters; in _fx_file_write()
514 … media_ptr -> fx_media_available_clusters = media_ptr -> fx_media_available_clusters - clusters; in _fx_file_write()
[all …]
Dfx_directory_free_search.c96 ULONG first_new_cluster, last_cluster, clusters; in _fx_directory_free_search() local
436 clusters = clusters_needed; in _fx_directory_free_search()
439 while (clusters) in _fx_directory_free_search()
443 clusters--; in _fx_directory_free_search()
/FileX-v6.4.1/test/regression_test/
Dfilex_fault_tolerant_enable_test.c103 ULONG clusters; in ftest_0_entry() local
260clusters = (FX_FAULT_TOLERANT_MINIMAL_BUFFER_SIZE + bytes_per_cluster - 1) / bytes_per_cluster; in ftest_0_entry()
262 for (j = 0; j < clusters; j++) in ftest_0_entry()
267 if (j < (clusters - 1)) in ftest_0_entry()
Dfilex_fault_tolerant_enable_1_test.c109 ULONG clusters; in ftest_0_entry() local
427 clusters = (FX_FAULT_TOLERANT_MINIMAL_BUFFER_SIZE + bytes_per_cluster - 1) / bytes_per_cluster; in ftest_0_entry()
432 status += fx_file_allocate( &my_file, 256 * 8 * (4194 - clusters)); in ftest_0_entry()
Dfilex_fault_tolerant_enable_2_test.c107 ULONG clusters; in ftest_0_entry() local
330 clusters = (FX_FAULT_TOLERANT_MINIMAL_BUFFER_SIZE + bytes_per_cluster - 1) / bytes_per_cluster; in ftest_0_entry()
331 cluster = 40 + clusters; in ftest_0_entry()
/FileX-v6.4.1/docs/
Drevision_history.txt70 fx_fault_tolerant_enable.c Updated the available clusters when
591 fx_media_check_lost_cluster_check.c Corrected update of available clusters.
629 already had clusters allocated, added