/freebsd-current/tools/test/stress2/testcases/rename/ |
H A D | Makefile | 1 PROG= rename
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | rename_dir.c | 33 * Create two directory trees in zfs filesystem, and rename 64 if (rename("a/b/c", "1/2/3/c") == 0) 66 if (rename("1/2/3/c", "a/b/c") == 0) 76 if (rename("1", "a/b/c/d/e/1") == 0) 78 if (rename("a/b/c/d/e/1", "1") == 0)
|
/freebsd-current/contrib/pjdfstest/tests/rename/ |
H A D | 02.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/rename/02.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="rename returns ENAMETOOLONG if an entire length of either path name exceeded {PATH_MAX} characters" 19 expect 0 rename ${n0} ${nx} 20 expect 0 rename ${nx} ${n0} 21 expect ENAMETOOLONG rename ${n0} ${nxx} 23 expect ENAMETOOLONG rename ${nxx} ${n0}
|
H A D | 17.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/rename/17.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="rename returns EFAULT if one of the pathnames specified is outside the process's allocated address space" 15 expect EFAULT rename ${n0} NULL 16 expect EFAULT rename ${n0} DEADCODE 18 expect EFAULT rename NULL ${n0} 19 expect EFAULT rename DEADCODE ${n0} 20 expect EFAULT rename NULL DEADCODE 21 expect EFAULT rename DEADCODE NULL
|
H A D | 01.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/rename/01.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="rename returns ENAMETOOLONG if a component of either pathname exceeded {NAME_MAX} characters" 17 expect 0 rename ${nx} ${n0} 18 expect 0 rename ${n0} ${nx} 22 expect ENAMETOOLONG rename ${n0} ${nxx} 24 expect ENAMETOOLONG rename ${nxx} ${n0}
|
H A D | 11.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/rename/11.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="rename returns ELOOP if too many symbolic links were encountered in translating one of the pathnames" 18 expect ELOOP rename ${n0}/test ${n2} 19 expect ELOOP rename ${n1}/test ${n2} 21 expect ELOOP rename ${n2} ${n0}/test 22 expect ELOOP rename ${n2} ${n1}/test
|
H A D | 03.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/rename/03.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="rename returns ENOENT if a component of the 'from' path does not exist, or a path prefix of 'to' does not exist" 17 expect ENOENT rename ${n0}/${n1}/test ${n2} 19 expect ENOENT rename ${n2} ${n0}/${n1}/test
|
H A D | 18.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/rename/18.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="rename returns EINVAL when the 'from' argument is a parent directory of 'to'" 19 expect EINVAL rename ${n0} ${n0}/${n1} 20 expect EINVAL rename ${n0} ${n0}/${n1}/${n2}
|
H A D | 19.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/rename/19.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="rename returns EINVAL/EBUSY when an attempt is made to rename '.' or '..'" 19 expect "EINVAL|EBUSY" rename ${n0}/${n1}/. ${n2} 20 expect "EINVAL|EBUSY" rename ${n0}/${n1}/.. ${n2}
|
H A D | 04.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/rename/04.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="rename returns EACCES when a component of either path prefix denies search permission" 28 expect 0 -u 65534 -g 65534 rename ${n1}/${n3} ${n2}/${n4} 29 expect 0 -u 65534 -g 65534 rename ${n2}/${n4} ${n1}/${n3} 32 expect EACCES -u 65534 -g 65534 rename ${n1}/${n3} ${n1}/${n4} 33 expect EACCES -u 65534 -g 65534 rename ${n1}/${n3} ${n2}/${n4} 37 expect EACCES -u 65534 -g 65534 rename ${n1}/${n3} ${n2}/${n4}
|
H A D | 16.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/rename/16.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="rename returns EROFS if the requested link requires writing in a directory on a read-only file system" 25 expect EROFS rename ${n0}/${n1} ${n0}/${n2} 26 expect EROFS rename ${n0}/${n1} ${n2} 28 expect EROFS rename ${n2} ${n0}/${n2}
|
H A D | 05.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/rename/05.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="rename returns EACCES when the requested link requires writing in a directory with a mode that denies write permission" 28 expect 0 -u 65534 -g 65534 rename ${n1}/${n3} ${n2}/${n4} 29 expect 0 -u 65534 -g 65534 rename ${n2}/${n4} ${n1}/${n3} 32 expect EACCES -u 65534 -g 65534 rename ${n1}/${n3} ${n2}/${n4} 34 expect EACCES -u 65534 -g 65534 rename ${n1}/${n3} ${n1}/${n4}
|
H A D | 21.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/rename/21.t 211352 2010-08-15 21:24:17Z pjd $ 22 # to rename subdirectory (${n0}). If we rename directory write access 25 expect "0|EACCES" -u 65534 -g 65534 rename ${n2}/${n0} ${n2}/${n1} 26 expect "0|EACCES" -u 65534 -g 65534 rename ${n2}/${n1} ${n2}/${n0} 32 expect "0|EACCES" -u 65534 -g 65534 rename ${n2}/${n0} ${n3}/${n1} 42 expect 0 -u 65534 -g 65534 rename ${n2}/${n0} ${n3}/${n1}
|
/freebsd-current/contrib/netbsd-tests/lib/libposix/ |
H A D | t_rename.c | 48 ATF_TC(rename); variable 49 ATF_TC_HEAD(rename, tc) 51 atf_tc_set_md_var(tc, "descr", "Checks rename(2)"); 53 ATF_TC_BODY(rename, tc) 60 /* Check if rename to same name works as expected */ 61 REQUIRE_LIBC(rename("t1", "t1"), -1); 66 REQUIRE_LIBC(rename("t1", "t2"), -1); 69 /* check if rename of hardlinked file works the BSD way */ 70 ATF_REQUIRE_MSG(stat("t1", &sb) != 0, "BSD rename should remove file t1"); 73 /* check if rename o [all...] |
/freebsd-current/tests/sys/cddl/zfs/bin/ |
H A D | rename_dir.c | 30 * Create two directory trees in zfs filesystem, and rename 53 char *msg = "rename() fails to handle race situation\n"; 63 if (rename("a/b/c", "1/2/3/c") == 0) 65 if (rename("1/2/3/c", "a/b/c") == 0) 77 if (rename("1", "a/b/c/d/e/1") == 0) 79 if (rename("a/b/c/d/e/1", "1") == 0)
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_rename/ |
H A D | zfs_rename_012_neg.ksh | 36 # 'zfs rename' should be failed with bad option, null target dataset, 41 # 2. Try 'zfs rename' with various illegal scenarios; 42 # 3. Verify 'zfs rename' command should be failed. 47 log_assert "'zfs rename' should fail with bad option, null target dataset and" \ 60 log_mustnot zfs rename $opt $ds ${ds}-new 62 log_mustnot zfs rename $ds 63 log_mustnot zfs rename $ds ${ds}-new ${ds}-new1 64 log_mustnot zfs rename $ds ${ds}.$longname 67 log_pass "'zfs rename' fails with illegal scenarios as expected."
|
H A D | zfs_rename_014_neg.ksh | 31 # zfs rename should work on existing datasets that exceed 33 # scenario that we try to rename it to something deeper 47 # 6. Make sure that 'zfs rename' can work only if we are 93 log_mustnot zfs rename $TESTPOOL/$dsA02 $TESTPOOL/$dsB15A 98 log_mustnot zfs rename $TESTPOOL/$dsA02 $TESTPOOL/$dsB16A 99 log_must zfs rename $TESTPOOL/$dsA02 $TESTPOOL/$dsB15A 104 log_mustnot zfs rename $TESTPOOL/$dsC01 $TESTPOOL/$dsB15A47C 105 log_must zfs rename $TESTPOOL/$dsB15A47A $TESTPOOL/$dsB15A47B 106 log_must zfs rename $TESTPOOL/$dsB15A47B $TESTPOOL/$dsB15A40B 108 log_pass "Verify 'zfs rename' limit [all...] |
/freebsd-current/tests/sys/cddl/zfs/tests/cli_root/zfs_rename/ |
H A D | zfs_rename_012_neg.ksh | 36 # 'zfs rename' should be failed with bad option, null target dataset, 41 # 2. Try 'zfs rename' with various illegal scenarios; 42 # 3. Verify 'zfs rename' command should be failed. 56 log_assert "'zfs rename' should fail with bad option, null target dataset and" \ 69 log_mustnot $ZFS rename $opt $ds ${ds}-new 71 log_mustnot $ZFS rename $ds 72 log_mustnot $ZFS rename $ds ${ds}-new ${ds}-new1 73 log_mustnot $ZFS rename $ds ${ds}.$longname 76 log_pass "'zfs rename' fails with illegal scenarios as expected."
|
/freebsd-current/tools/test/stress2/misc/ |
H A D | rename.sh | 29 # Test race between ISDOTDOT lookups and directory removal/rename 31 # With lookup_shared=1 rename() will fail from time to time with ENOENT and 40 sed '1,/^EOF/d' < $here/$0 > rename.c 41 mycc -o rename -Wall rename.c || exit 1 42 rm -f rename.c 44 rm -rf /tmp/rename.dir.* 47 /tmp/rename & 53 rm -rf /tmp/rename.dir.* /tmp/rename [all...] |
H A D | rename2.sh | 29 # With lookup_shared=1 rename() will fail from time to time with ENOENT and 30 # the following stat() will succeed. (Variation of rename.sh) 41 rm -rf /tmp/rename.dir.* 49 rm -rf /tmp/rename.dir.* /tmp/rename2 71 sprintf(dir1, "/tmp/rename.dir.%d", getpid()); 72 sprintf(dir2, "/tmp/rename.dir.2.%d", getpid()); 83 if (rename(dir1, dir2) == -1) { 84 warn("rename(%s, %s)", dir1, dir2); 90 if (rename(dir2, dir1) == -1) { 91 warn("rename( [all...] |
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rootpool/ |
H A D | rootpool_003_neg.ksh | 43 # 3) try to rename the rootfs to some newfs, which should fail. 55 log_mustnot zfs rename $rootfs $rootpool/newfs 56 log_mustnot zfs rename -f $rootfs $rootpool/newfs
|
/freebsd-current/contrib/pjdfstest/tests/granular/ |
H A D | 05.t | 33 expect EACCES -u 65534 -g 65534 rename ${n0} ../${n3}/${n0} 35 expect 0 -u 65534 -g 65534 rename ${n0} ../${n3}/${n0} 39 expect EACCES -u 65534 -g 65534 rename ../${n3}/${n0} ${n0} 41 expect 0 -u 65534 -g 65534 rename ../${n3}/${n0} ${n0} 49 expect EACCES -u 65534 -g 65534 rename ../${n3}/${n0} ${n0} 51 expect 0 -u 65534 -g 65534 rename ../${n3}/${n0} ${n0} 62 expect 0 -u 65534 -g 65534 rename ${n0} ../${n3}/${n0} 63 expect 0 -u 65534 -g 65534 rename ../${n3}/${n0} ${n0} 75 expect EPERM -u 65534 -g 65534 rename ${n0} ../${n3}/${n0} 76 expect 0 rename [all...] |
H A D | 03.t | 33 expect EACCES -u 65534 -g 65534 rename ${n0} ../${n3}/${n0} 35 expect 0 -u 65534 -g 65534 rename ${n0} ../${n3}/${n0} 38 expect 0 -u 65534 -g 65534 rename ../${n3}/${n0} ${n0} 46 expect EACCES -u 65534 -g 65534 rename ../${n3}/${n0} ${n0} 48 expect 0 -u 65534 -g 65534 rename ../${n3}/${n0} ${n0} 58 expect 0 -u 65534 -g 65534 rename ${n0} ../${n3}/${n0} 59 expect 0 -u 65534 -g 65534 rename ../${n3}/${n0} ${n0} 70 expect EPERM -u 65534 -g 65534 rename ${n0} ../${n3}/${n0} 71 expect 0 rename ${n0} ../${n3}/${n0} 75 expect 0 -u 65534 -g 65534 rename [all...] |
/freebsd-current/tests/sys/cddl/zfs/tests/cli_root/zfs_diff/ |
H A D | zfs_diff_001_pos.ksh | 41 log_must ${MKDIR} ${TESTDIR}/dirs/rename 46 log_must ${TOUCH} ${TESTDIR}/files/rename 56 log_must ${MV} ${TESTDIR}/dirs/rename ${TESTDIR}/dirs/rename.new 60 log_must ${MV} ${TESTDIR}/files/rename ${TESTDIR}/files/rename.new
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/projectquota/ |
H A D | projectquota_009_pos.ksh | 37 # snapshot,clone,rename,upgrade,send,receive. 44 # rename|upgrade|promote 51 for ds in $TESTPOOL/fs $TESTPOOL/fs-rename $TESTPOOL/fs-clone; do 109 log_note "zfs rename can not change the previously set project{obj}quota" 110 log_must zfs rename $TESTPOOL/fs-rev $TESTPOOL/fs-rename 115 log_must check_quota "projectquota@$PRJID1" $TESTPOOL/fs-rename "$PQUOTA_LIMIT" 116 log_must check_quota "projectobjquota@$PRJID2" $TESTPOOL/fs-rename \ 120 log_must zfs upgrade $TESTPOOL/fs-rename 125 log_must check_quota "projectquota@$PRJID1" $TESTPOOL/fs-rename " [all...] |