Home
last modified time | relevance | path

Searched refs:ram_disk (Results 1 – 25 of 137) sorted by relevance

123456

/FileX-v6.2.1/test/regression_test/
Dfilex_directory_default_path_get_set_test.c21 static FX_MEDIA ram_disk; variable
104 status = fx_media_format(&ram_disk, in ftest_0_entry()
128 status = fx_directory_default_set(&ram_disk, "/A0"); in ftest_0_entry()
136 status = fx_directory_default_get(&ram_disk, &path_ptr); in ftest_0_entry()
144 …status = fx_directory_default_get_copy(&ram_disk, test_path_name_buffer, sizeof(test_path_name_bu… in ftest_0_entry()
156 …status = _fx_directory_local_path_get_copy(&ram_disk, test_path_name_buffer, sizeof(test_path_nam… in ftest_0_entry()
168 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry()
180 status = fx_directory_default_get(&ram_disk, &path_ptr); in ftest_0_entry()
191 temp = ram_disk.fx_media_id; in ftest_0_entry()
192 ram_disk.fx_media_id = 0; in ftest_0_entry()
[all …]
Dfilex_file_naming_test.c19 static FX_MEDIA ram_disk; variable
96 status = fx_media_format(&ram_disk, in ftest_0_entry()
120 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry()
132 status = fx_directory_default_get(&ram_disk, &path_ptr); in ftest_0_entry()
144 status = fx_directory_create(&ram_disk, "A0"); in ftest_0_entry()
145 status += fx_directory_create(&ram_disk, ".b0"); in ftest_0_entry()
146 status += fx_directory_create(&ram_disk, "C0"); in ftest_0_entry()
147 status += fx_directory_create(&ram_disk, ".d0.dir"); in ftest_0_entry()
148 status += fx_file_create(&ram_disk, ".FOO.BAR"); in ftest_0_entry()
160 status = fx_directory_create(&ram_disk, "/a0"); in ftest_0_entry()
[all …]
Dfilex_directory_naming_test.c21 static FX_MEDIA ram_disk; variable
101 status = fx_media_format(&ram_disk, in ftest_0_entry()
125 status = fx_directory_rename(&ram_disk, "/A0", "/A1"); in ftest_0_entry()
133 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry()
145 status = fx_directory_default_get(&ram_disk, &path_ptr); in ftest_0_entry()
178 status = fx_directory_create(&ram_disk, "/A0"); in ftest_0_entry()
179 status += fx_directory_create(&ram_disk, "/b0"); in ftest_0_entry()
180 status += fx_directory_create(&ram_disk, "/C0"); in ftest_0_entry()
181 status += fx_directory_create(&ram_disk, "/d0"); in ftest_0_entry()
193 status = fx_directory_create(&ram_disk, "/a0"); in ftest_0_entry()
[all …]
Dfilex_directory_local_path_test.c16 static FX_MEDIA ram_disk; variable
343 status = fx_media_format(&ram_disk, in ftest_0_entry()
367 status = fx_directory_local_path_clear(&ram_disk); in ftest_0_entry()
375 status = fx_directory_local_path_restore(&ram_disk, &local_path); in ftest_0_entry()
383 status = fx_directory_local_path_set(&ram_disk, &local_path, "/A0"); in ftest_0_entry()
392 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry()
404 status = fx_directory_local_path_set(&ram_disk, &local_path, "/DOES_NOT_EXIST"); in ftest_0_entry()
412 status = fx_file_create(&ram_disk, "RootFile01"); in ftest_0_entry()
413 status += fx_file_create(&ram_disk, "RootFile02"); in ftest_0_entry()
414 status += fx_directory_create(&ram_disk, "RootDir03"); in ftest_0_entry()
[all …]
Dfilex_media_check_test.c21 static FX_MEDIA ram_disk; variable
108 status = fx_media_format(&ram_disk, in ftest_0_entry()
125 status = fx_media_check(&ram_disk, scratch_memory, SCRATCH_MEMORY_SIZE, 0, &errors_detected); in ftest_0_entry()
129 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry()
142 status = fx_media_check(&ram_disk, scratch_memory, SCRATCH_MEMORY_SIZE, 0, &errors_detected); in ftest_0_entry()
146 status = fx_media_close(&ram_disk); in ftest_0_entry()
147 …status += fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry()
151 status = fx_media_cache_invalidate(&ram_disk); in ftest_0_entry()
154 status += fx_media_read(&ram_disk, 1, (VOID *) raw_sector_buffer); in ftest_0_entry()
168 status = fx_media_write(&ram_disk, 1, (VOID *) raw_sector_buffer); in ftest_0_entry()
[all …]
Dfilex_directory_first_next_find_test.c19 static FX_MEDIA ram_disk; variable
109 status = fx_media_format(&ram_disk, in ftest_0_entry()
133 status = fx_directory_next_entry_find(&ram_disk, "/A0"); in ftest_0_entry()
141 status = fx_directory_next_full_entry_find(&ram_disk, name, &attributes, in ftest_0_entry()
150 status = fx_directory_first_entry_find(&ram_disk, "/A0"); in ftest_0_entry()
158 status = fx_directory_first_full_entry_find(&ram_disk, name, &attributes, in ftest_0_entry()
167 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry()
199 status = fx_file_create(&ram_disk, "RootFile01"); in ftest_0_entry()
200 status += fx_file_create(&ram_disk, "RootFile02"); in ftest_0_entry()
201 status += fx_directory_create(&ram_disk, "RootDir03"); in ftest_0_entry()
[all …]
Dfilex_directory_create_delete_test.c30 static FX_MEDIA ram_disk; variable
184 status = fx_media_format(&ram_disk, in ftest_0_entry()
210 status = fx_directory_create(&ram_disk, "/A0"); in ftest_0_entry()
214 status = fx_directory_delete(&ram_disk, "/A0"); in ftest_0_entry()
218 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry()
224 status = fx_fault_tolerant_enable(&ram_disk, fault_tolerant_buffer, FAULT_TOLERANT_SIZE); in ftest_0_entry()
242 status = fx_directory_create(&ram_disk, ""); in ftest_0_entry()
246 status = fx_directory_create(&ram_disk, "/A0/error\\error"); in ftest_0_entry()
250 ram_disk.fx_media_driver_write_protect = FX_TRUE; in ftest_0_entry()
251 status = fx_directory_create(&ram_disk, "/A0"); in ftest_0_entry()
[all …]
Dfilex_media_read_write_sector_test.c23 static FX_MEDIA ram_disk; variable
116 status = fx_media_format(&ram_disk, in ftest_0_entry()
133 status = fx_media_read(&ram_disk, 1, (VOID *) raw_sector_buffer); in ftest_0_entry()
137 status = fx_media_write(&ram_disk, 1, (VOID *) raw_sector_buffer); in ftest_0_entry()
141 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry()
145 ram_disk.fx_media_driver_write_protect = FX_TRUE; in ftest_0_entry()
146 status = fx_media_write(&ram_disk, 1, (VOID *) raw_sector_buffer); in ftest_0_entry()
147 ram_disk.fx_media_driver_write_protect = FX_FALSE; in ftest_0_entry()
164 status = fx_media_read(&ram_disk, 1, (VOID *) raw_sector_buffer); in ftest_0_entry()
171 status = fx_media_write(&ram_disk, 1, (VOID *) raw_sector_buffer); in ftest_0_entry()
[all …]
Dfilex_media_volume_get_set_test.c21 static FX_MEDIA ram_disk; variable
97 status = fx_media_format(&ram_disk, in ftest_0_entry()
121 status = fx_media_volume_set(&ram_disk, "NEW"); in ftest_0_entry()
129 status = fx_media_volume_get(&ram_disk, volume_buffer, FX_BOOT_SECTOR); in ftest_0_entry()
137 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry()
175 status = fx_media_volume_set(&ram_disk, ""); in ftest_0_entry()
184 status = fx_media_volume_get(&ram_disk, volume_buffer, FX_BOOT_SECTOR); in ftest_0_entry()
210 status = fx_media_volume_get_extended(&ram_disk, volume_buffer, 2, FX_BOOT_SECTOR); in ftest_0_entry()
227 status = fx_media_volume_get(&ram_disk, volume_buffer, FX_DIRECTORY_SECTOR); in ftest_0_entry()
251 status = fx_media_volume_set(&ram_disk, "NEW"); in ftest_0_entry()
[all …]
Dfilex_file_rename_test.c26 static FX_MEDIA ram_disk; variable
110 status = fx_media_format(&ram_disk, in ftest_0_entry()
134 status = fx_file_rename(&ram_disk, "MYTEST", ""); in ftest_0_entry()
138 status = fx_file_rename(&ram_disk, "MYTEST", "OURTEST"); in ftest_0_entry()
142 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry()
147 status = fx_fault_tolerant_enable(&ram_disk, fault_tolerant_buffer, FAULT_TOLERANT_SIZE); in ftest_0_entry()
152 ram_disk.fx_media_driver_write_protect = FX_TRUE; in ftest_0_entry()
153 status = fx_file_rename(&ram_disk, "MYTEST", "OURTEST"); in ftest_0_entry()
154 ram_disk.fx_media_driver_write_protect = FX_FALSE; in ftest_0_entry()
158 status = fx_file_rename(&ram_disk, "MYTEST", "OURTEST"); in ftest_0_entry()
[all …]
Dfilex_fault_tolerant_enable_1_test.c42 static FX_MEDIA ram_disk; variable
120 status = fx_media_format(&ram_disk, in ftest_0_entry()
134 …status += fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory_large, cache_buffe… in ftest_0_entry()
145 status = fx_fault_tolerant_enable( &ram_disk, FX_NULL, FAULT_TOLERANT_SIZE); in ftest_0_entry()
151 …_fx_utility_32_unsigned_write((UCHAR *)ram_disk.fx_media_driver_info + FX_FAULT_TOLERANT_BOOT_INDE… in ftest_0_entry()
152 status = fx_fault_tolerant_enable(&ram_disk, fault_tolerant_buffer, FAULT_TOLERANT_SIZE); in ftest_0_entry()
155 status = fx_media_close( &ram_disk); in ftest_0_entry()
159 status = fx_media_format(&ram_disk, in ftest_0_entry()
173 …status += fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory_large, cache_buffe… in ftest_0_entry()
177 …_fx_utility_32_unsigned_write((UCHAR *)ram_disk.fx_media_driver_info + FX_FAULT_TOLERANT_BOOT_INDE… in ftest_0_entry()
[all …]
Dfilex_file_date_time_set_test.c19 static FX_MEDIA ram_disk; variable
108 status = fx_media_format(&ram_disk, in ftest_0_entry()
132 status = fx_directory_information_get(&ram_disk, "DOES_NOT_EXIST", &attributes, &size, in ftest_0_entry()
141 status = fx_file_date_time_set(&ram_disk, "TEST.TXT", 2000, 1, 1, 1, 1, 1); in ftest_0_entry()
149 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry()
161 status = fx_file_create(&ram_disk, "TEST.TXT"); in ftest_0_entry()
162 status += fx_file_create(&ram_disk, "OPENED_FOR_WRITE.TXT"); in ftest_0_entry()
163 status += fx_file_create(&ram_disk, "NOT_OPENED.TXT"); in ftest_0_entry()
177 status = fx_directory_information_get(&ram_disk, "DOES_NOT_EXIST", FX_NULL, FX_NULL, in ftest_0_entry()
194 status = fx_file_date_time_set(&ram_disk, "TEST.TXT", 0, 0, 0, 0, 0, 0); in ftest_0_entry()
[all …]
Dfilex_media_multiple_open_close_test.c21 static FX_MEDIA ram_disk; variable
145 status = fx_media_format(&ram_disk, in ftest_0_entry()
161 status += fx_media_format(&ram_disk, in ftest_0_entry()
186 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry()
199 status = fx_file_create(&ram_disk, "TEST.TXT"); in ftest_0_entry()
219 status = fx_file_open(&ram_disk, &my_file, "TEST.TXT", FX_OPEN_FOR_WRITE); in ftest_0_entry()
291 status = fx_media_close(&ram_disk); in ftest_0_entry()
306 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry()
319 status = fx_file_create(&ram_disk, "TEST.TXT"); in ftest_0_entry()
341 status = fx_file_open(&ram_disk, &my_file, "TEST.TXT", FX_OPEN_FOR_WRITE); in ftest_0_entry()
[all …]
Dfilex_fault_tolerant_enable_test.c36 static FX_MEDIA ram_disk; variable
124 status = fx_media_format(&ram_disk, in ftest_0_entry()
142 status = fx_media_format(&ram_disk, in ftest_0_entry()
160 status = fx_media_format(&ram_disk, in ftest_0_entry()
178 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory_large, cache_buffer… in ftest_0_entry()
180 return_if_fail(ram_disk.fx_media_fault_tolerant_enabled != FX_TRUE); in ftest_0_entry()
183 source_buffer = ((UCHAR *) ram_disk.fx_media_driver_info); in ftest_0_entry()
186 _fx_utility_memory_copy(source_buffer, buffer, ram_disk.fx_media_bytes_per_sector); in ftest_0_entry()
193 temp = ram_disk.fx_media_sectors_per_cluster; in ftest_0_entry()
194 ram_disk.fx_media_sectors_per_cluster = 0; in ftest_0_entry()
[all …]
Dfilex_file_attributes_read_set_test.c19 static FX_MEDIA ram_disk; variable
106 status = fx_media_format(&ram_disk, in ftest_0_entry()
130 status = fx_file_attributes_read(&ram_disk, "TEST.TXT", &attributes); in ftest_0_entry()
138 status = fx_file_attributes_set(&ram_disk, "TEST.TXT", 0); in ftest_0_entry()
146 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry()
158 ram_disk.fx_media_driver_write_protect = FX_TRUE; in ftest_0_entry()
159 status = fx_file_attributes_set(&ram_disk, "TEST.TXT", FX_READ_ONLY); in ftest_0_entry()
165 ram_disk.fx_media_driver_write_protect = FX_FALSE; in ftest_0_entry()
168 status = fx_file_attributes_read(&ram_disk, "TEST.TXT", &attributes); in ftest_0_entry()
176 status = fx_file_attributes_set(&ram_disk, "TEST.TXT", attributes); in ftest_0_entry()
[all …]
Dfilex_file_create_delete_test.c27 static FX_MEDIA ram_disk; variable
121 status = fx_media_format(&ram_disk, in ftest_0_entry()
138 status = fx_media_cache_invalidate(&ram_disk); in ftest_0_entry()
142 status = fx_media_extended_space_available(&ram_disk, &temp); in ftest_0_entry()
154 status = fx_file_create(&ram_disk, "asdf"); in ftest_0_entry()
162 status = fx_file_delete(&ram_disk, "asdf"); in ftest_0_entry()
167 status = fx_file_open(&ram_disk, &file_5, "rootname2", FX_OPEN_FOR_WRITE); in ftest_0_entry()
171 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry()
176 status = fx_fault_tolerant_enable(&ram_disk, fault_tolerant_buffer, FAULT_TOLERANT_SIZE); in ftest_0_entry()
181 status = fx_file_create(&ram_disk, ""); in ftest_0_entry()
[all …]
Dfilex_file_read_write_test.c20 static FX_MEDIA ram_disk; variable
113 status = fx_media_format(&ram_disk, in ftest_0_entry()
137 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry()
149 status = fx_file_create(&ram_disk, "TEST.TXT"); in ftest_0_entry()
150 status += fx_file_create(&ram_disk, "READ_ONLY.TXT"); in ftest_0_entry()
169 status = fx_file_open(&ram_disk, &my_file, "TEST.TXT", FX_OPEN_FOR_WRITE); in ftest_0_entry()
170 status += fx_file_open(&ram_disk, &read_only, "READ_ONLY.TXT", FX_OPEN_FOR_READ); in ftest_0_entry()
181 ram_disk.fx_media_driver_write_protect = FX_TRUE; in ftest_0_entry()
188 ram_disk.fx_media_driver_write_protect = FX_FALSE; in ftest_0_entry()
198 ram_disk.fx_media_bytes_per_sector = 0; in ftest_0_entry()
[all …]
Dfilex_unicode_fat_entry_3_test.c18 static FX_MEDIA ram_disk; variable
101 status = fx_media_format(&ram_disk, in ftest_0_entry()
115 …status += fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry()
119 …status = fx_unicode_directory_create(&ram_disk, long_unicode_name, length, (CHAR *)destination_nam… in ftest_0_entry()
121 status = fx_directory_local_path_set(&ram_disk, &local_path, (CHAR *)destination_name); in ftest_0_entry()
123 status = fx_directory_default_set(&ram_disk, (CHAR *)destination_name); in ftest_0_entry()
127 …status += fx_unicode_directory_create(&ram_disk, long_unicode_name, length, (CHAR *)destination_na… in ftest_0_entry()
129 …status += fx_unicode_directory_create(&ram_disk, long_unicode_name, length, (CHAR *)destination_na… in ftest_0_entry()
131 …status += fx_unicode_directory_create(&ram_disk, long_unicode_name, length, (CHAR *)destination_na… in ftest_0_entry()
133 …status += fx_unicode_directory_create(&ram_disk, long_unicode_name, length, (CHAR *)destination_na… in ftest_0_entry()
[all …]
Dfilex_unicode_file_directory_rename_extra_2_test.c19 static FX_MEDIA ram_disk; variable
95 status = fx_media_format(&ram_disk, in ftest_0_entry()
109 …status += fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory_large, cache_buffer… in ftest_0_entry()
113 status = fx_unicode_file_create( &ram_disk, new_file_name, length, (CHAR *)destination_name); in ftest_0_entry()
120 … status = fx_unicode_file_create( &ram_disk, long_unicode_name1, length, (CHAR *)destination_name); in ftest_0_entry()
125 status = fx_media_close(&ram_disk); in ftest_0_entry()
129 status = fx_media_format(&ram_disk, in ftest_0_entry()
143 …status += fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory_large, cache_buffer… in ftest_0_entry()
147 status = fx_unicode_file_create( &ram_disk, new_file_name, length, (CHAR *)destination_name); in ftest_0_entry()
154 … status = fx_unicode_file_create( &ram_disk, long_unicode_name1, length, (CHAR *)destination_name); in ftest_0_entry()
[all …]
Dfilex_fault_tolerant_enable_2_test.c28 static FX_MEDIA ram_disk; variable
119 status = fx_media_format(&ram_disk, in ftest_0_entry()
133 …status += fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory_large, cache_buffe… in ftest_0_entry()
137 status = fx_fault_tolerant_enable( &ram_disk, fault_tolerant_buffer, FAULT_TOLERANT_SIZE); in ftest_0_entry()
140 status = fx_file_create( &ram_disk, "TEST.TXT"); in ftest_0_entry()
141 status += fx_file_open( &ram_disk, &my_file, "TEST.TXT", FX_OPEN_FOR_WRITE); in ftest_0_entry()
146 ram_disk.fx_media_fault_tolerant_state = FX_FAULT_TOLERANT_STATE_STARTED; in ftest_0_entry()
147 ram_disk.fx_media_fault_tolerant_transaction_count = 1; in ftest_0_entry()
157 _fx_fault_tolerant_reset_log_file( &ram_disk); in ftest_0_entry()
163 status += fx_media_close( &ram_disk); in ftest_0_entry()
[all …]
Dfilex_fault_tolerant_long_directory_rename_io_error_test.c39 static FX_MEDIA ram_disk; variable
198 status = fx_media_format(&ram_disk, in ftest_0_entry()
216 status = fx_media_format(&ram_disk, in ftest_0_entry()
234 status = fx_media_format(&ram_disk, in ftest_0_entry()
252 status = fx_media_format(&ram_disk, in ftest_0_entry()
277 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory_large, cache_buffer… in ftest_0_entry()
289 status = fx_fault_tolerant_enable(&ram_disk, fault_tolerant_buffer, FAULT_TOLERANT_SIZE); in ftest_0_entry()
300 status = fx_directory_create(&ram_disk, "/A0"); in ftest_0_entry()
301 status += fx_directory_create(&ram_disk, "/B0"); in ftest_0_entry()
302 status += fx_directory_create(&ram_disk, "/C0"); in ftest_0_entry()
[all …]
Dfilex_file_allocate_truncate_test.c18 static FX_MEDIA ram_disk; variable
102 status = fx_media_format(&ram_disk, in ftest_0_entry()
142 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry()
154 status = fx_file_create(&ram_disk, "TEST.TXT"); in ftest_0_entry()
165 status = fx_file_create(&ram_disk, "READ_ONLY.TXT"); in ftest_0_entry()
176 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
187 status = fx_file_open(&ram_disk, &my_file, "TEST.TXT", FX_OPEN_FOR_WRITE); in ftest_0_entry()
188 status = fx_file_open(&ram_disk, &read_only, "READ_ONLY.TXT", FX_OPEN_FOR_READ); in ftest_0_entry()
223 ram_disk.fx_media_driver_write_protect = FX_TRUE; in ftest_0_entry()
238 ram_disk.fx_media_driver_write_protect = FX_FALSE; in ftest_0_entry()
[all …]
Dfilex_fault_tolerant_enable_3_test.c28 static FX_MEDIA ram_disk; variable
121 status = fx_media_format(&ram_disk, in ftest_0_entry()
135 …status += fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory_large, cache_buffe… in ftest_0_entry()
139 status = fx_fault_tolerant_enable( &ram_disk, fault_tolerant_buffer, FAULT_TOLERANT_SIZE); in ftest_0_entry()
144 status = fx_unicode_file_create( &ram_disk, unicode_name_2, length, destination_name); in ftest_0_entry()
145 status += fx_file_open( &ram_disk, &my_file, destination_name, FX_OPEN_FOR_WRITE); in ftest_0_entry()
160 ram_disk.fx_media_driver_write_protect = FX_TRUE; in ftest_0_entry()
162 status = fx_file_rename(&ram_disk, "MYTEST", "OURTEST"); in ftest_0_entry()
163 ram_disk.fx_media_driver_write_protect = FX_FALSE; in ftest_0_entry()
166 status = fx_media_close( &ram_disk); in ftest_0_entry()
[all …]
Dfilex_directory_rename_test.c26 static FX_MEDIA ram_disk; variable
108 status = fx_media_format(&ram_disk, in ftest_0_entry()
134 status = fx_directory_name_test(&ram_disk, "/A0"); in ftest_0_entry()
138 status = fx_directory_rename(&ram_disk, "/A0", ""); in ftest_0_entry()
142 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry()
147 status = fx_fault_tolerant_enable(&ram_disk, fault_tolerant_buffer, FAULT_TOLERANT_SIZE); in ftest_0_entry()
152 ram_disk.fx_media_driver_write_protect = FX_TRUE; in ftest_0_entry()
153 status = fx_directory_rename(&ram_disk, "/A0", "/A1"); in ftest_0_entry()
154 ram_disk.fx_media_driver_write_protect = FX_FALSE; in ftest_0_entry()
158 status = fx_directory_rename(&ram_disk, "/DOES_NOT_EXIST", "/VALID"); in ftest_0_entry()
[all …]
Dfilex_fault_tolerant_directory_rename_directory_interrupt_test.c51 static FX_MEDIA ram_disk; variable
216 status = fx_media_format(&ram_disk, in ftest_0_entry()
234 status = fx_media_format(&ram_disk, in ftest_0_entry()
252 status = fx_media_format(&ram_disk, in ftest_0_entry()
277 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory_large, cache_buffer… in ftest_0_entry()
289 status = fx_fault_tolerant_enable(&ram_disk, fault_tolerant_buffer, FAULT_TOLERANT_SIZE); in ftest_0_entry()
300 status = fx_directory_create(&ram_disk, "/A0"); in ftest_0_entry()
301 status += fx_directory_create(&ram_disk, "/B0"); in ftest_0_entry()
302 status += fx_directory_create(&ram_disk, "/C0"); in ftest_0_entry()
303 status += fx_directory_create(&ram_disk, "/D0"); in ftest_0_entry()
[all …]

123456