@@ -122,7 +122,7 @@ static int BlackListCompare(const void *str1, const void *str2);
122122
123123static char dir_check_file (pgFile * file );
124124static void dir_list_file_internal (parray * files , pgFile * parent , bool exclude ,
125- bool omit_symlink , parray * black_list ,
125+ bool follow_symlink , parray * black_list ,
126126 int external_dir_num , fio_location location );
127127static void opt_path_map (ConfigOption * opt , const char * arg ,
128128 TablespaceList * list , const char * type );
@@ -159,14 +159,14 @@ dir_create_dir(const char *dir, mode_t mode)
159159}
160160
161161pgFile *
162- pgFileNew (const char * path , const char * rel_path , bool omit_symlink ,
162+ pgFileNew (const char * path , const char * rel_path , bool follow_symlink ,
163163 int external_dir_num , fio_location location )
164164{
165165 struct stat st ;
166166 pgFile * file ;
167167
168168 /* stat the file */
169- if (fio_stat (path , & st , omit_symlink , location ) < 0 )
169+ if (fio_stat (path , & st , follow_symlink , location ) < 0 )
170170 {
171171 /* file not found is not an error case */
172172 if (errno == ENOENT )
@@ -445,11 +445,11 @@ BlackListCompare(const void *str1, const void *str2)
445445 * List files, symbolic links and directories in the directory "root" and add
446446 * pgFile objects to "files". We add "root" to "files" if add_root is true.
447447 *
448- * When omit_symlink is true, symbolic link is ignored and only file or
448+ * When follow_symlink is true, symbolic link is ignored and only file or
449449 * directory linked to will be listed.
450450 */
451451void
452- dir_list_file (parray * files , const char * root , bool exclude , bool omit_symlink ,
452+ dir_list_file (parray * files , const char * root , bool exclude , bool follow_symlink ,
453453 bool add_root , int external_dir_num , fio_location location )
454454{
455455 pgFile * file ;
@@ -490,7 +490,7 @@ dir_list_file(parray *files, const char *root, bool exclude, bool omit_symlink,
490490 parray_qsort (black_list , BlackListCompare );
491491 }
492492
493- file = pgFileNew (root , "" , omit_symlink , external_dir_num , location );
493+ file = pgFileNew (root , "" , follow_symlink , external_dir_num , location );
494494 if (file == NULL )
495495 {
496496 /* For external directory this is not ok */
@@ -512,7 +512,7 @@ dir_list_file(parray *files, const char *root, bool exclude, bool omit_symlink,
512512 if (add_root )
513513 parray_append (files , file );
514514
515- dir_list_file_internal (files , file , exclude , omit_symlink , black_list ,
515+ dir_list_file_internal (files , file , exclude , follow_symlink , black_list ,
516516 external_dir_num , location );
517517
518518 if (!add_root )
@@ -731,7 +731,7 @@ dir_check_file(pgFile *file)
731731 */
732732static void
733733dir_list_file_internal (parray * files , pgFile * parent , bool exclude ,
734- bool omit_symlink , parray * black_list ,
734+ bool follow_symlink , parray * black_list ,
735735 int external_dir_num , fio_location location )
736736{
737737 DIR * dir ;
@@ -764,7 +764,7 @@ dir_list_file_internal(parray *files, pgFile *parent, bool exclude,
764764 join_path_components (child , parent -> path , dent -> d_name );
765765 join_path_components (rel_child , parent -> rel_path , dent -> d_name );
766766
767- file = pgFileNew (child , rel_child , omit_symlink , external_dir_num ,
767+ file = pgFileNew (child , rel_child , follow_symlink , external_dir_num ,
768768 location );
769769 if (file == NULL )
770770 continue ;
@@ -821,7 +821,7 @@ dir_list_file_internal(parray *files, pgFile *parent, bool exclude,
821821 * recursively.
822822 */
823823 if (S_ISDIR (file -> mode ))
824- dir_list_file_internal (files , file , exclude , omit_symlink ,
824+ dir_list_file_internal (files , file , exclude , follow_symlink ,
825825 black_list , external_dir_num , location );
826826 }
827827
0 commit comments