/FileX-v6.2.1/test/regression_test/ |
D | filex_directory_long_short_get_test.c | 1 /* This FileX test concentrates on the directory long/short name get operations. */ 30 static CHAR name[50]; variable 95 printf("FileX Test: Directory long/short name get test....................."); in ftest_0_entry() 103 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 143 status += fx_file_create(&ram_disk, "name"); in ftest_0_entry() 160 status = fx_directory_short_name_get(FX_NULL, "subdir", name); in ftest_0_entry() 167 status = fx_directory_short_name_get_extended(FX_NULL, "subdir", name, 1); in ftest_0_entry() 175 /* attempt to get the long name of something that doesnt exist */ in ftest_0_entry() 183 /* Get the short name of a long name. */ in ftest_0_entry() 184 status = fx_directory_short_name_get(&ram_disk, "subdir", name); in ftest_0_entry() [all …]
|
D | filex_directory_create_delete_test.c | 31 static CHAR name[FX_MAX_LONG_NAME_LEN+50]; variable 189 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 241 /* Attempt to create a directory with an invalid name to generate an error */ in ftest_0_entry() 245 /* Attempt to create a directory with an invalid name to generate an error */ in ftest_0_entry() 460 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 475 /* Create a directory name that is too large. */ in ftest_0_entry() 479 name[i] = 'a'; in ftest_0_entry() 481 name[FX_MAX_LONG_NAME_LEN + 1] = 0; in ftest_0_entry() 483 /* Attempt to create a directory with too long of a name. */ in ftest_0_entry() 484 status = fx_directory_create(&ram_disk, name); in ftest_0_entry() [all …]
|
D | filex_directory_first_next_find_test.c | 30 static CHAR name[256]; variable 100 // A file name whose first byte is 0xe5. in ftest_0_entry() 114 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 141 status = fx_directory_next_full_entry_find(&ram_disk, name, &attributes, in ftest_0_entry() 158 status = fx_directory_first_full_entry_find(&ram_disk, name, &attributes, in ftest_0_entry() 189 status = fx_directory_first_full_entry_find(FX_NULL, name, &attributes, in ftest_0_entry() 369 status = fx_directory_next_entry_find(FX_NULL, name); in ftest_0_entry() 378 status = fx_directory_first_entry_find(&ram_disk, name); in ftest_0_entry() 379 if (strcmp(name, "RootFile01")) in ftest_0_entry() 381 status += fx_directory_next_entry_find(&ram_disk, name); in ftest_0_entry() [all …]
|
D | filex_fault_tolerant_directory_create_redo_log_interrupt_test.c | 227 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 245 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 263 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 541 CHAR name[300]; in traverse_directory() local 558 status = fx_directory_first_entry_find(&ram_disk, name); in traverse_directory() 565 if (strcmp(name, expected_name[expected_index++])) in traverse_directory() 568 /* Determine if this name is a directory or a file. */ in traverse_directory() 569 status = fx_directory_name_test(&ram_disk, name); in traverse_directory() 576 status = fx_file_open(&ram_disk, &file, name, FX_OPEN_FOR_READ); in traverse_directory() 584 status = fx_directory_next_entry_find(&ram_disk, name); in traverse_directory() [all …]
|
D | filex_fault_tolerant_long_directory_create_redo_log_interrupt_test.c | 10 Step5: Create new thread to create new directory with long directory name; 15 Step10: Recreate directory the new directory with long directory name; 184 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 202 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 220 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 414 /* Create the long directory name. */ in ftest_1_entry() 474 CHAR name[300]; in traverse_directory() local 491 status = fx_directory_first_entry_find(&ram_disk, name); in traverse_directory() 498 if (strcmp(name, expected_name[expected_index++])) in traverse_directory() 501 /* Determine if this name is a directory or a file. */ in traverse_directory() [all …]
|
D | filex_fault_tolerant_long_directory_create_directory_interrupt_test.c | 10 Step5: Create new thread to create new directory with long directory name; 15 Step10: Recreate directory the new directory with long directory name; 184 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 202 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 220 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 414 /* Create the long directory name. */ in ftest_1_entry() 477 CHAR name[300]; in traverse_directory() local 494 status = fx_directory_first_entry_find(&ram_disk, name); in traverse_directory() 501 if (strcmp(name, expected_name[expected_index++])) in traverse_directory() 504 /* Determine if this name is a directory or a file. */ in traverse_directory() [all …]
|
D | filex_fault_tolerant_long_directory_rename_io_error_test.c | 203 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 221 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 239 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 257 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 400 CHAR name[300]; in traverse_directory() local 417 status = fx_directory_first_entry_find(&ram_disk, name); in traverse_directory() 424 if (strcmp(name, expected_name[expected_index++])) in traverse_directory() 427 /* Determine if this name is a directory or a file. */ in traverse_directory() 428 status = fx_directory_name_test(&ram_disk, name); in traverse_directory() 435 status = fx_file_open(&ram_disk, &file, name, FX_OPEN_FOR_READ); in traverse_directory() [all …]
|
D | filex_media_volume_get_set_test.c | 102 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 120 /* try to set the media volume name before the media is opened */ in ftest_0_entry() 128 /* try to get the media volume name before the media is opened */ in ftest_0_entry() 174 /* try to set the media volume name to something invalid */ in ftest_0_entry() 183 /* Get the current volume name - from boot record. */ in ftest_0_entry() 186 /* Determine if there was an error getting the volume name. */ in ftest_0_entry() 201 /* Error getting the volume name. */ in ftest_0_entry() 209 /* Get the current volume name - from boot record, using extended version. */ in ftest_0_entry() 212 /* Determine if there was an error getting the volume name. */ in ftest_0_entry() 220 /* Error getting the volume name. */ in ftest_0_entry() [all …]
|
D | filex_unicode_test.c | 125 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 146 /* short name get */ in ftest_0_entry() 154 /* Call extended version of short name get. */ in ftest_0_entry() 162 /* name get */ in ftest_0_entry() 170 /* Call extended version of name get. */ in ftest_0_entry() 227 /* short name get */ in ftest_0_entry() 235 /* name get */ in ftest_0_entry() 252 /* Create the a short and long unicode file name. */ in ftest_0_entry() 270 /* Try to create the same name again - this should result in an error! */ in ftest_0_entry() 283 /* Try creating a unicode name twice... this should result in an error as well. */ in ftest_0_entry() [all …]
|
D | filex_fault_tolerant_long_directory_rename_redo_log_interrupt_test.c | 223 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 241 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 259 "MY_RAM_DISK", // Volume Name in ftest_0_entry() 535 CHAR name[300]; in traverse_directory() local 552 status = fx_directory_first_entry_find(&ram_disk, name); in traverse_directory() 559 if (strcmp(name, expected_name[expected_index++])) in traverse_directory() 562 /* Determine if this name is a directory or a file. */ in traverse_directory() 563 status = fx_directory_name_test(&ram_disk, name); in traverse_directory() 570 status = fx_file_open(&ram_disk, &file, name, FX_OPEN_FOR_READ); in traverse_directory() 578 status = fx_directory_next_entry_find(&ram_disk, name); in traverse_directory() [all …]
|
/FileX-v6.2.1/common/src/ |
D | fx_directory_search.c | 49 /* This function searches the media for the supplied name. The search */ 55 /* name_ptr Name pointer */ 60 /* last_name_ptr Pointer to the last name */ 69 /* _fx_directory_name_extract Extract directory name from */ 81 /* DATE NAME DESCRIPTION */ 115 CHAR *name, alpha, name_alpha; in _fx_directory_search() local 128 /* Setup pointer to media name buffer. */ in _fx_directory_search() 129 name = media_ptr -> fx_media_name_buffer; in _fx_directory_search() 140 /* Determine if the file name has a full directory path. */ in _fx_directory_search() 144 /* Directory name has full path, set the search pointer to NULL. */ in _fx_directory_search() [all …]
|
D | fx_directory_short_name_get_extended.c | 43 /* This function gets the short file name via the supplied long file */ 44 /* name. If the long file name is really a short file name, the short */ 45 /* file name will be returned. */ 50 /* long_file_name Pointer to long (max 255) name*/ 51 /* short_file_name Pointer to short (8.3) name */ 52 /* short_file_name_length Buffer length for short name */ 60 /* _fx_directory_search Search for the file name in */ 68 /* DATE NAME DESCRIPTION */ 83 /* Setup pointer to media name buffer. */ in _fx_directory_short_name_get_extended() 86 /* Clear the short name string. */ in _fx_directory_short_name_get_extended() [all …]
|
D | fx_unicode_file_rename.c | 51 /* to the new file name. Otherwise, if the file is not found, the */ 57 /* old_unicode_name Pointer to old unicode name */ 58 /* old_unicode_length Old unicode name length */ 59 /* new_unicode_name Pointer to new unicode name */ 60 /* new_unicode_length New unicode name length */ 61 /* new_short_name Designated new short name */ 69 /* _fx_unicode_short_name_get Get short name of unicode name*/ 71 /* _fx_unicode_directory_entry_change Change unicode file name */ 72 /* _fx_unicode_directory_search Search for unicode name */ 73 /* _fx_file_rename Rename for ASCII file name */ [all …]
|
D | fx_unicode_directory_rename.c | 51 /* will be changed to the new unicode name. Otherwise, if the directory*/ 57 /* old_unicode_name Pointer to old unicode name */ 58 /* old_unicode_length Old unicode name length */ 59 /* new_unicode_name Pointer to new unicode name */ 60 /* new_unicode_length Old unicode name length */ 61 /* new_short_name Pointer to new short name */ 69 /* _fx_unicode_short_name_get Get the directory short name */ 70 /* _fx_unicode_directory_search Search for unicode name */ 71 /* _fx_unicode_directory_entry_change Change unicode file name */ 81 /* DATE NAME DESCRIPTION */ [all …]
|
D | fx_file_rename.c | 51 /* to the new file name. Otherwise, if the file is not found, the */ 57 /* old_file_name Old file name pointer */ 58 /* new_file_name New file name pointer */ 70 /* _fx_directory_search Search for the file name in */ 83 /* DATE NAME DESCRIPTION */ 117 /* Setup pointers to media name buffers. */ in _fx_file_rename() 122 /* Clear the short name strings. */ in _fx_file_rename() 127 /* Determine if the supplied name is less than the maximum supported name size. The in _fx_file_rename() 128 maximum name (FX_MAX_LONG_NAME_LEN) is defined in fx_api.h. */ in _fx_file_rename() 137 /* Yes, reset the name size. */ in _fx_file_rename() [all …]
|
D | fx_directory_entry_write.c | 75 /* DATE NAME DESCRIPTION */ 125 /* Null the short file name. */ in _fx_directory_entry_write() 184 /* Determine if a long file name is present. */ in _fx_directory_entry_write() 188 /* Yes, long name is present - prepare short name and write out this name. */ in _fx_directory_entry_write() 210 /* Check for non-space and within the short file name length. */ in _fx_directory_entry_write() 214 /* Copy characters into the short file name area. */ in _fx_directory_entry_write() 220 /* Fill remaining short file name with spaces. */ in _fx_directory_entry_write() 264 /* Default the name match to true. */ in _fx_directory_entry_write() 267 /* Loop through the newly derived short name and the original name and look in _fx_directory_entry_write() 274 /* Determine if a space is detected in the short name. If so, in _fx_directory_entry_write() [all …]
|
D | fx_unicode_directory_search.c | 55 /* This function searches for the specified unicode or short name. */ 60 /* the short name is written back to buffer of short_name. In this case*/ 65 /* short_name (terminated with NULL). If it's found the unicode name is*/ 75 /* short_name Pointer to short name */ 76 /* short_name_buffer_length Buffer length for short name */ 77 /* unicode_name Pointer to Unicode name */ 78 /* unicode_name_length Unicode name length */ 79 /* unicode_name_buffer_length Buffer length for Unicode name*/ 97 /* DATE NAME DESCRIPTION */ 121 /* Setup temp unicode name length. */ in _fx_unicode_directory_search() [all …]
|
D | fx_directory_long_name_get_extended.c | 43 /* This function gets the long file name via the supplied short file */ 44 /* name. If there is no long file name, the short file name will be */ 50 /* short_file_name Pointer to short (8.3) name */ 51 /* long_file_name Pointer to long (max 255) name*/ 52 /* long_file_name_buffer_length Buffer length for long name */ 60 /* _fx_directory_search Search for the file name in */ 68 /* DATE NAME DESCRIPTION */ 83 /* Setup pointer to media name buffer. */ in _fx_directory_long_name_get_extended() 86 /* Clear the short name string. */ in _fx_directory_long_name_get_extended() 95 /* Search the system for the supplied short directory name. */ in _fx_directory_long_name_get_extended() [all …]
|
D | fx_unicode_file_create.c | 49 /* This function creates the specified unicode name. */ 54 /* source_unicode_name Pointer to source unicode name*/ 55 /* source_unicode_length Unicode name length */ 56 /* short_name Designated short name */ 65 /* _fx_unicode_directory_entry_change Change unicode file name */ 66 /* _fx_unicode_directory_search Search for unicode name */ 80 /* DATE NAME DESCRIPTION */ 96 /* Setup pointer to media name buffer. */ in _fx_unicode_file_create() 99 /* Clear the short name string. */ in _fx_unicode_file_create() 105 /* Clear the return short name. */ in _fx_unicode_file_create() [all …]
|
D | fx_media_volume_get_extended.c | 46 /* This function reads the volume name stored in the media's boot */ 53 /* the volume name (maximum */ 73 /* DATE NAME DESCRIPTION */ 80 /* volume name, */ 94 /* Clear the volume name. */ in _fx_media_volume_get_extended() 112 /* Ensure the volume name is NULL initially. */ in _fx_media_volume_get_extended() 118 /* Setup pointer to media name buffer. */ in _fx_media_volume_get_extended() 121 /* Clear the short name string. */ in _fx_media_volume_get_extended() 124 /* Attempt to find the volume name in the root directory. */ in _fx_media_volume_get_extended() 143 /* Check for a volume name. */ in _fx_media_volume_get_extended() [all …]
|
D | fx_directory_rename.c | 51 /* changed to the new name. Otherwise, if the directory is not found, */ 69 /* _fx_directory_name_extract Extract directory name */ 70 /* _fx_directory_search Search for the file name in */ 84 /* DATE NAME DESCRIPTION */ 113 /* Setup pointers to media name buffers. */ in _fx_directory_rename() 118 /* Clear the short name strings. */ in _fx_directory_rename() 123 /* Determine if the supplied name is less than the maximum supported name size. The in _fx_directory_rename() 124 maximum name (FX_MAX_LONG_NAME_LEN) is defined in fx_api.h. */ in _fx_directory_rename() 133 /* Yes, reset the name size. */ in _fx_directory_rename() 140 /* No leading spaces, increment the name size. */ in _fx_directory_rename() [all …]
|
D | fx_unicode_directory_create.c | 53 /* source_unicode_name Pointer to source unicode name*/ 54 /* source_unicode_length Unicode name length */ 55 /* short_name Designated short name */ 64 /* _fx_unicode_directory_entry_change Change unicode file name */ 65 /* _fx_unicode_directory_search Search for unicode name */ 79 /* DATE NAME DESCRIPTION */ 95 /* Setup pointer to media name buffer. */ in _fx_unicode_directory_create() 98 /* Clear the short name string. */ in _fx_unicode_directory_create() 104 /* Clear the return short name. */ in _fx_unicode_directory_create() 161 /* Okay, at this point we need to create a new long directory name that has enough space for the in _fx_unicode_directory_create() [all …]
|
D | fx_directory_entry_read.c | 60 /* *entry_ptr should point to the 8:3 entry if it is a long name */ 75 /* DATE NAME DESCRIPTION */ 277 /* Clear the short file name information. */ in _fx_directory_entry_read() 281 /* Setup short name pointer. */ in _fx_directory_entry_read() 284 /* Check if long file name exists. */ in _fx_directory_entry_read() 289 /* Collate the long name. */ in _fx_directory_entry_read() 291 /* Pickup the file name length. */ in _fx_directory_entry_read() 297 /* Check the file name size. */ in _fx_directory_entry_read() 301 /* Name is too big, shorten it. */ in _fx_directory_entry_read() 308 /* Size of name is fine, save pointer to short file name. */ in _fx_directory_entry_read() [all …]
|
D | fx_unicode_directory_entry_read.c | 52 /* unicode_name Destination unicode name */ 53 /* unicode_size Destination unicode name size */ 72 /* DATE NAME DESCRIPTION */ 270 /* Clear the short file name information. */ in _fx_unicode_directory_entry_read() 274 /* Setup short name pointer. */ in _fx_unicode_directory_entry_read() 280 /* Check if long file name exists. */ in _fx_unicode_directory_entry_read() 285 /* Collate the long name. */ in _fx_unicode_directory_entry_read() 298 /* Pickup the file name length. */ in _fx_unicode_directory_entry_read() 302 /* Check the file name size. */ in _fx_unicode_directory_entry_read() 306 /* Name is too big, shorten it. */ in _fx_unicode_directory_entry_read() [all …]
|
D | fx_unicode_short_name_get_extended.c | 43 /* This function finds the short name associated with the supplied */ 44 /* unicode name. */ 49 /* source_unicode_name Pointer to unicode name */ 50 /* source_unicode_length Length of unicode name */ 51 /* destination_short_name Pointer to destination name */ 52 /* short_name_buffer_length Buffer length of short name */ 60 /* _fx_unicode_directory_search Search for unicode name */ 68 /* DATE NAME DESCRIPTION */ 84 /* Setup pointer to media name buffer. */ in _fx_unicode_short_name_get_extended() 87 /* Clear the short name string. */ in _fx_unicode_short_name_get_extended() [all …]
|