/third_party/ltp/testcases/kernel/fs/fs_bind/cloneNS/ |
H A D | fs_bind_cloneNS02.sh | 14 fs_bind_makedir rshared dir1 15 EXPECT_PASS mount --bind "$FS_BIND_DISK1" dir1 18 EXPECT_PASS mount --bind dir1 dir2 23 EXPECT_PASS mount --bind "$FS_BIND_DISK2" dir1/a 24 fs_bind_check dir1/a dir2/a 26 fs_bind_check -n dir1/b dir2/b 29 fs_bind_check -s "$FS_BIND_DISK2" dir1/a dir2/a 31 fs_bind_check -s -n "$FS_BIND_DISK3" dir1/b 32 fs_bind_exec_ns mount --bind "$PWD/$FS_BIND_DISK4" $PWD/dir1/c 33 fs_bind_check -s dir1/ [all...] |
H A D | fs_bind_cloneNS01.sh | 14 fs_bind_makedir rshared dir1 17 EXPECT_PASS mount --bind "$FS_BIND_DISK1" dir1 18 EXPECT_PASS mount --bind dir1 dir2 23 fs_bind_check dir1/a dir2/a 25 fs_bind_check -s "$FS_BIND_DISK2" dir1/a dir2/a 26 fs_bind_exec_ns mount --bind "$PWD/$FS_BIND_DISK3" $PWD/dir1/b 27 fs_bind_check -s dir1/b dir2/b 29 EXPECT_PASS umount dir1/b 32 EXPECT_PASS umount dir1 34 EXPECT_PASS umount dir1 [all...] |
H A D | fs_bind_cloneNS06.sh | 14 fs_bind_makedir rshared dir1 16 mkdir dir1/x dir2 dir3 dir4 18 EXPECT_PASS mount --rbind dir1 dir2 31 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" dir1/x 33 fs_bind_check dir1/x dir2/x dir3/x dir4/x 36 fs_bind_check -n dir1/x/a dir2/x/a 40 fs_bind_check -s dir1/x dir2/x dir3/x dir4/x 42 fs_bind_check -s -n dir1/x/a dir2/x/a 46 fs_bind_check -s -n dir1/x/b dir3/x/b 51 fs_bind_check -s -n dir1/ [all...] |
H A D | fs_bind_cloneNS04.sh | 14 fs_bind_makedir private dir1 15 EXPECT_PASS mount --bind "$FS_BIND_DISK1" dir1 18 EXPECT_PASS mount --bind "$FS_BIND_DISK2" dir1/a 20 fs_bind_check -s -n "$FS_BIND_DISK2" dir1/a 21 fs_bind_exec_ns mount --bind "$PWD/$FS_BIND_DISK3" "$PWD/dir1/b" 23 fs_bind_check -n "$FS_BIND_DISK3" dir1/b 25 EXPECT_PASS umount dir1/a 26 EXPECT_PASS umount dir1 27 EXPECT_PASS umount dir1
|
H A D | fs_bind_cloneNS03.sh | 14 fs_bind_makedir runbindable dir1 15 EXPECT_PASS mount --bind "$FS_BIND_DISK1" dir1 16 fs_bind_check "$FS_BIND_DISK1" dir1 20 fs_bind_check -s "$FS_BIND_DISK1" dir1 22 EXPECT_PASS umount dir1 23 EXPECT_PASS umount dir1
|
/third_party/ltp/testcases/kernel/fs/fs_bind/bind/ |
H A D | fs_bind24.sh | 14 fs_bind_makedir rshared dir1 15 mkdir dir1/1 dir1/1/2 dir1/1/2/3 dir1/1/2/fs_bind_check dir2 dir3 dir4 18 EXPECT_PASS mount --bind dir1/1/2 dir2 19 EXPECT_PASS mount --make-rslave dir1 20 EXPECT_PASS mount --make-rshared dir1 22 EXPECT_PASS mount --bind dir1/1/2/3 dir3 23 EXPECT_PASS mount --make-rslave dir1 [all...] |
H A D | fs_bind21.sh | 14 fs_bind_makedir rshared dir1 16 mkdir dir1/x dir2 dir3 dir4 18 EXPECT_PASS mount --bind dir1 dir2 29 EXPECT_PASS mount --bind "$FS_BIND_DISK1" dir1/x 30 fs_bind_check dir1/x dir2/x dir3/x dir4/x 33 fs_bind_check -n dir1/x/a dir2/x/a 37 fs_bind_check -n dir1/x/b dir3/x/b 42 fs_bind_check -n dir1/x/c dir4/x/c 49 EXPECT_PASS umount dir1/x 50 EXPECT_PASS umount dir1 [all...] |
/third_party/ltp/testcases/kernel/fs/fs_bind/ |
H A D | fs_bind_regression.sh | 25 mkdir dir1 27 EXPECT_PASS mount --bind "$FS_BIND_DISK1" dir1 28 EXPECT_PASS mount --bind "$FS_BIND_DISK2" dir1/a 29 EXPECT_PASS mount --rbind dir1 dir2 31 fs_bind_check dir1/a dir2/a 33 EXPECT_PASS umount dir1/a 36 EXPECT_PASS umount dir1 43 mkdir dir1 45 EXPECT_PASS mount --bind "$FS_BIND_DISK1" dir1 46 EXPECT_PASS mount --bind "$FS_BIND_DISK2" dir1/ [all...] |
H A D | fs_bind_lib.sh | 62 # usage: fs_bind_check [-n] dir1 dirn... 66 # dir1 dirn... An arbitraty number of directories, that are compared. 70 local OPTIND expect_diff use_ns args msg dir1 dir2 fail output 93 dir1=$1 99 if [ ! -d "$dir1" ]; then 100 tst_res TFAIL "$msg: \"$dir1\" does not exist" 113 output="$(tst_ns_exec ${FS_BIND_MNTNS_PID} mnt diff -r "$PWD/$dir1" "$PWD/$dir2" 2> /dev/null)" 115 output="$(diff -r "$dir1" "$dir2" 2> /dev/null)" 126 tst_res TFAIL "\"$dir1\" \"$dir2\" differ:\n$output" 130 dir1 [all...] |
/third_party/ltp/testcases/kernel/fs/fs_bind/rbind/ |
H A D | fs_bind_rbind33.sh | 14 fs_bind_makedir rshared dir1 16 mkdir dir1/x dir2 dir3 dir4 18 EXPECT_PASS mount --rbind dir1 dir2 29 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" dir1/x 31 fs_bind_check dir1/x dir2/x dir3/x dir4/x 34 fs_bind_check -n dir1/x/a dir2/x/a 38 fs_bind_check -n dir1/x/b dir3/x/b 43 fs_bind_check -n dir1/x/c dir4/x/c 51 EXPECT_PASS umount dir1/x 52 EXPECT_PASS umount dir1 [all...] |
/third_party/ltp/testcases/kernel/fs/fs-bench/ |
H A D | create-files.c | 18 void makedir(char *dir1); 31 char dir1[MAXN]; in main() local 51 sprintf(dir1, "%2.2x", i); in main() 52 makedir(dir1); in main() 53 changedir(dir1); in main() 63 sprintf(filename, "%s%s%s%2.2x", dir1, in main() 84 void makedir(char *dir1) in makedir() argument 86 if (mkdir(dir1, S_IRWXU) < 0) { in makedir() 87 perror(dir1); in makedir()
|
/third_party/node/test/parallel/ |
H A D | test-fs-mkdir.js | 269 const dir1 = nextdir(); 271 const firstPathCreated = path.join(tmpdir.path, dir1); 272 const pathname = path.join(tmpdir.path, dir1, dir2); 284 const dir1 = nextdir(); 286 const pathname = path.join(tmpdir.path, dir1, dir2); 287 fs.mkdirSync(path.join(tmpdir.path, dir1)); 298 const dir1 = nextdir(); 300 const pathname = path.join(tmpdir.path, dir1, dir2); 301 fs.mkdirSync(path.join(tmpdir.path, dir1, dir2), common.mustNotMutateObjectDeep({ recursive: true })); 312 const dir1 [all...] |
/third_party/ltp/testcases/kernel/fs/mongo/ |
H A D | mongo.pl | 232 my ($phase_num, $phase_name, $cmd, $dir1, $dir2, $flag, $processes) = @_ ; 259 $com .= "$cmd $dir1-$i-$j $flag"; 262 $com .= "$cmd $dir1-$i-$j $dir2-$i-$j"; 265 $com .= "$cmd $dir1-$i-$j "."-type f | while read X; do echo \$X \$X.lnk ; done | $TOPDIR/mongo_slinks "; 274 $com .= "$cmd $dir1-$i-$j -type f | perl -e 'while (<>) { chomp; rename (\$_, \"\$_.r\"); };'"; 279 $com .= "$cmd $dir1-$i-$j & $cmd $dir2-$i-$j"; 282 $com .= "$cmd $dir1-$i-$j ; $cmd $dir2-$i-$j"; 401 $dir1 = "$TESTDIR/testdir1"; 415 mongo_launcher ( 1, "Create", $cmd_1, $dir1, $dir2, $flag, $p); # phase 1 416 mongo_launcher ( 2, "Copy ", $cmd_2, $dir1, [all...] |
/third_party/ltp/testcases/kernel/fs/fs_readonly/ |
H A D | test_robind.sh | 29 # a) mounts on dir1, 47 DIRS="dir1 dir2-bound dir3-ro" 91 umount dir1 93 tst_resm TWARN "umount dir1" 213 mount -t $fstype $device dir1 215 tst_brkm TBROK "mount $device to dir1 failed" 220 mount --bind dir1 dir2-bound 222 tst_brkm TBROK "mount --bind dir1 dir2-bound failed" 227 mount --bind dir1 dir3-ro 229 tst_brkm TBROK "mount --bind dir1 dir [all...] |
/third_party/ltp/testcases/kernel/fs/fs_inod/ |
H A D | fs_inod | 163 echo "$0: creating dir1 subdirectories & files" 164 [ -d dir1 ] || { \ 165 mkdir dir1 || abort "mkdir dir1 FAILED" 167 cd dir1 || err_log "cd dir1 FAILED" 168 make_subdirs || err_log "make_subdirs on dir1 FAILED" 178 echo "$0: cd ../dir1 & creating files" 179 cd ../dir1 184 echo "$0: cd ../dir1 [all...] |
/third_party/python/Lib/test/test_tools/ |
H A D | test_lll.py | 20 with tempfile.TemporaryDirectory() as dir1, \ 22 fn1 = os.path.join(dir1, 'foo1') 24 for fn, dir in (fn1, dir1), (fn2, dir2): 29 self.lll.main([dir1, dir2]) 32 f'{dir1}:\n'
|
/third_party/ltp/testcases/kernel/fs/scsi/ltpfs/ |
H A D | main.c | 50 int makedir(char *dir1); 247 char dir1[MAXN]; in do_create_file_test() local 265 sprintf(dir1, "%2.2x", i); in do_create_file_test() 267 makedir(dir1); in do_create_file_test() 269 changedir(dir1); in do_create_file_test() 286 sprintf(filename, "%s%s%s%2.2x", dir1, in do_create_file_test() 313 int makedir(char *dir1) in makedir() argument 315 if (mkdir(dir1, S_IRWXU) < 0) { in makedir() 316 perror(dir1); in makedir()
|
/third_party/ltp/testcases/network/nfs/nfs_stress/ |
H A D | nfs03.sh | 50 tst_res TINFO "creating dir1 subdirectories & files" 51 ROD mkdir -p dir1 52 cd dir1 65 tst_res TINFO "cd dir1 & removing files" 66 cd ../dir1
|
/third_party/musl/libc-test/src/functionalext/supplement/dirent/ |
H A D | opendir.c | 67 DIR *dir1 = opendir("/dev/null"); in opendir_0200() local 68 if (dir1) { in opendir_0200()
|
/third_party/libinput/src/ |
H A D | evdev-mt-touchpad-gestures.c | 275 tp_gesture_same_directions(int dir1, int dir2) in tp_gesture_same_directions() argument 284 return ((dir1 | (dir1 >> 1)) & dir2) || in tp_gesture_same_directions() 285 ((dir2 | (dir2 >> 1)) & dir1) || in tp_gesture_same_directions() 286 ((dir1 & 0x80) && (dir2 & 0x01)) || in tp_gesture_same_directions() 287 ((dir2 & 0x80) && (dir1 & 0x01)); in tp_gesture_same_directions() 869 uint32_t dir1, dir2; in tp_gesture_detect_motion_gestures() local 1001 dir1 = tp_gesture_get_direction(tp, first); in tp_gesture_detect_motion_gestures() 1008 tp_gesture_same_directions(dir1, dir2)) { in tp_gesture_detect_motion_gestures() 1029 uint32_t dir1, dir in tp_gesture_is_pinch() local [all...] |
/third_party/python/Lib/test/ |
H A D | test_tempfile.py | 848 dir1 = tempfile.mkdtemp() 849 self.assertTrue(dir1.endswith('aaa')) 1591 dir1 = os.path.join(d2, 'dir1') 1592 os.mkdir(dir1) 1627 os.chmod(dir1, mode) 1628 old_mode = os.stat(dir1).st_mode 1629 test(dir1, target_is_directory=True) 1630 new_mode = os.stat(dir1).st_mode 1644 dir1 [all...] |
H A D | test_shutil.py | 220 dir1 = os.path.join(tmp, 'dir1') 221 dir2 = os.path.join(dir1, 'dir2') 223 for d in dir1, dir2, dir3: 227 link1 = os.path.join(dir1, 'link1') 229 link2 = os.path.join(dir1, 'link2') 231 link3 = os.path.join(dir1, 'link3') 234 shutil.rmtree(dir1) 235 self.assertFalse(os.path.exists(dir1)) 262 dir1 [all...] |
/third_party/littlefs/ |
H A D | lfs.c | 5522 lfs1_dir_t dir1; local 5524 dir1.d.tail[0] = lfs->lfs1->root[0]; 5525 dir1.d.tail[1] = lfs->lfs1->root[1]; 5526 while (!lfs_pair_isnull(dir1.d.tail)) { 5528 err = lfs1_dir_fetch(lfs, &dir1, dir1.d.tail); 5539 dir2.rev = dir1.d.rev; 5540 dir1.head[0] = dir1.pair[0]; 5541 dir1 [all...] |
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/ |
H A D | libcpuset.c | 1200 DIR *dir1, *dir2; in rebuild_map() local 1209 if ((dir1 = opendir(buf)) == NULL) in rebuild_map() 1211 while ((dent1 = readdir(dir1)) != NULL) { in rebuild_map() 1227 closedir(dir1); in rebuild_map()
|
/third_party/vk-gl-cts/modules/gles2/functional/ |
H A D | es2fClippingTests.cpp | 349 bool twoPointClippedTriangleInvisible(const tcu::Vec3& p, const tcu::IVec3& dir1, const tcu::IVec3& dir2) in twoPointClippedTriangleInvisible() argument 354 const tcu::Vector<deInt64, 3> d1 = tcu::Vector<deInt64, 3>(dir1.x(), dir1.y(), dir1.z()); in twoPointClippedTriangleInvisible()
|