From: Nikolay Borisov Date: Mon, 30 Aug 2021 12:23:05 +0000 (+0300) Subject: common/renameat2: Make _rename_tests_source_dest take flags as 4th arguement X-Git-Tag: v2022.05.01~249 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=83bc5abe4a02f5ff8bdf9e05239e82366d34e861;p=xfstests-dev.git common/renameat2: Make _rename_tests_source_dest take flags as 4th arguement Currently this function takes the flags parameter to be passed to the renameat program by assuming there exists a 'flags' variable. Instead, make the flags being passed as 4th argument to the function. Signed-off-by: Nikolay Borisov Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/common/renameat2 b/common/renameat2 index 4b64eea7..4d25d7ce 100644 --- a/common/renameat2 +++ b/common/renameat2 @@ -61,6 +61,7 @@ _rename_tests_source_dest() local source=$1 local dest=$2 local options=$3 + local flags=$4 for stype in none regu symb dire tree; do for dtype in none regu symb dire tree; do @@ -90,11 +91,11 @@ _rename_tests() local flags=$2 #same directory renames - _rename_tests_source_dest $testdir/src $testdir/dst "samedir " + _rename_tests_source_dest $testdir/src $testdir/dst "samedir " $flags #cross directory renames mkdir $testdir/x $testdir/y - _rename_tests_source_dest $testdir/x/src $testdir/y/dst "crossdir" + _rename_tests_source_dest $testdir/x/src $testdir/y/dst "crossdir" $flags rmdir $testdir/x $testdir/y }