Home
last modified time | relevance | path

Searched refs:tmpfile (Results 1 – 25 of 39) sorted by relevance

12

/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_add/
H A Dzpool_add.kshlib45 tmpfile="$TEST_BASE_DIR/vfstab.tmp"
48 tmpfile="$TEST_BASE_DIR/fstab.tmp"
51 cat $vfstab | grep "^${DEV_DSKDIR}" >$tmpfile
57 done <$tmpfile
59 rm -f $tmpfile
79 typeset tmpfile="$TEST_BASE_DIR/mtab.tmp"
82 typeset tmpfile="$TEST_BASE_DIR/mnttab.tmp"
85 cat $mnttab | grep "^${DEV_DSKDIR}" >$tmpfile
91 done <$tmpfile
93 rm -f $tmpfile
/f-stack/dpdk/devtools/
H A Dcheck-spdx-tag.sh30 > $tmpfile
32 errors=$(wc -l < $tmpfile)
33 $quiet || cat $tmpfile
44 ':^license/' ':^/devtools/check-spdx-tag.sh' > $tmpfile
46 warnings=$(wc -l <$tmpfile)
47 $quiet || cat $tmpfile
60 tmpfile=$(mktemp -t dpdk.checkspdx.XXXXXX)
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/zpool_influxdb/
H A Dzpool_influxdb.ksh29 typeset tmpfile=$TEST_BASE_DIR/zpool_influxdb.out.$$
32 if [[ -f $tmpfile ]]; then
33 rm -f $tmpfile
46 grep "^${1}," $tmpfile >/dev/null 2>/dev/null
53 log_must zpool_influxdb > $tmpfile
68 zpool_influxdb > $tmpfile
/f-stack/freebsd/contrib/openzfs/config/
H A Dkernel-tmpfile.m43 dnl # Add support for i_op->tmpfile
8 int tmpfile(struct inode *inode, struct dentry *dentry,
12 .tmpfile = tmpfile,
18 AC_MSG_CHECKING([whether i_op->tmpfile() exists])
21 AC_DEFINE(HAVE_TMPFILE, 1, [i_op->tmpfile() exists])
H A Dalways-sed.m47 tmpfile=$(mktemp conftest.XXXXXX)
8 echo foo >$tmpfile
9 AS_IF([$SED --in-place 's#foo#bar#' $tmpfile 2>/dev/null],
11 [$SED -i '' 's#foo#bar#' $tmpfile 2>/dev/null],
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_003_pos.ksh51 rm -f $tmpfile
54 tmpfile="$TEST_BASE_DIR/zpool_create_003.tmp$$"
70 create_pool $TESTPOOL $DISK0 > $tmpfile
73 log_must eval "zpool create -n $prop $TESTPOOL $DISK0 > $tmpfile"
79 grep "$str" $tmpfile >/dev/null 2>&1 || \
89 create_pool $TESTPOOL $DISK0 > $tmpfile
H A Dzpool_create.shlib78 tmpfile="$TEST_BASE_DIR/vfstab.tmp"
81 tmpfile="$TEST_BASE_DIR/fstab.tmp"
84 cat $vfstab | grep "^${DEV_DSKDIR}" >$tmpfile
90 done <$tmpfile
92 rm -f $tmpfile
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/zpool_iostat/
H A Dzpool_iostat_002_pos.ksh46 typeset tmpfile=$TEST_BASE_DIR/zfsiostat.out.$$
51 if [[ -f $tmpfile ]]; then
52 rm -f $tmpfile
63 zpool iostat $TESTPOOL 1 4 > $tmpfile 2>&1 &
65 stat_count=$(grep $TESTPOOL $tmpfile | wc -l)
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/
H A Dzdb_002_pos.ksh35 typeset tmpfile="$TEST_BASE_DIR/zdb-feature-mismatch"
39 grep "$errstr" $tmpfile
40 rm -f $tmpfile
45 log_must eval "zdb $TESTPOOL >$tmpfile"
46 grep -q "$errstr" $tmpfile && \
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/zfs_list/
H A Dzfs_list_003_pos.ksh47 if [[ -f $tmpfile ]]; then
48 rm -f $tmpfile
57 tmpfile=$TEST_BASE_DIR/zfslist.out.$$
67 zfs list -rH -o name $path > $tmpfile
69 grep "^${fs}$" $tmpfile > /dev/null 2>&1
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/rootpool/
H A Drootpool_002_neg.ksh51 typeset tmpfile="$TEST_BASE_DIR/mounted-datasets.$$"
57 mount -p | awk '{if ($4 == "zfs") print $1}' > $tmpfile
64 done < $tmpfile
65 rm -f $tmpfile
/f-stack/freebsd/contrib/openzfs/lib/libshare/os/freebsd/
H A Dnfs.c188 char *tmpfile = NULL; in nfs_init_tmpfile() local
190 if (asprintf(&tmpfile, "%s%s", ZFS_EXPORTS_FILE, ".XXXXXXXX") == -1) { in nfs_init_tmpfile()
196 int fd = mkstemp(tmpfile); in nfs_init_tmpfile()
200 free(tmpfile); in nfs_init_tmpfile()
204 return (tmpfile); in nfs_init_tmpfile()
208 nfs_fini_tmpfile(char *tmpfile) in nfs_fini_tmpfile() argument
210 if (rename(tmpfile, ZFS_EXPORTS_FILE) == -1) { in nfs_fini_tmpfile()
211 fprintf(stderr, "Unable to rename %s: %s\n", tmpfile, in nfs_fini_tmpfile()
213 unlink(tmpfile); in nfs_fini_tmpfile()
214 free(tmpfile); in nfs_fini_tmpfile()
[all …]
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/
H A Dsend-c_stream_size_estimate.ksh45 typeset tmpfile=$(TMPDIR=$BACKDIR mktemp)
47 typeset tmpfile=$(mktemp -p $BACKDIR)
50 eval "$cmd >$tmpfile"
52 typeset size=$(eval "awk '\$2 == \"$ds\" {print \$3}' $tmpfile")
53 rm -f $tmpfile
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/mmp/
H A Dmmp.kshlib178 typeset tmpfile=$(mktemp)
183 log_must zdb -e -p $devpath $pool >$tmpfile 2>/dev/null
184 mmp_fail=$(awk '/mmp_fail/ {print $NF}' $tmpfile)
185 mmp_write=$(awk '/mmp_write/ {print $NF}' $tmpfile)
186 mmp_delay=$(awk '/mmp_delay/ {print $NF}' $tmpfile)
187 if [ -f $tmpfile ]; then
188 rm $tmpfile
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/acl/
H A Dacl_common.kshlib279 typeset tmpfile=$TEST_BASE_DIR/tmp_get_ACE.$$
293 ls $args $file > $tmpfile
294 (( $? != 0 )) && log_fail "FAIL: ls $args $file > $tmpfile"
313 done < $tmpfile
315 rm -f $tmpfile
316 (( $? != 0 )) && log_fail "FAIL: rm -f $tmpfile"
373 if [[ -f ${node}/tmpfile ]]; then
374 log_must rm -f ${node}/tmpfile
376 chgusr_exec $user touch ${node}/tmpfile > \
/f-stack/freebsd/contrib/openzfs/lib/libshare/os/linux/
H A Dnfs.c395 char *tmpfile = NULL; in nfs_init_tmpfile() local
405 if (asprintf(&tmpfile, "%s%s", ZFS_EXPORTS_FILE, ".XXXXXXXX") == -1) { in nfs_init_tmpfile()
410 int fd = mkstemp(tmpfile); in nfs_init_tmpfile()
414 free(tmpfile); in nfs_init_tmpfile()
418 return (tmpfile); in nfs_init_tmpfile()
422 nfs_fini_tmpfile(char *tmpfile) in nfs_fini_tmpfile() argument
424 if (rename(tmpfile, ZFS_EXPORTS_FILE) == -1) { in nfs_fini_tmpfile()
425 fprintf(stderr, "Unable to rename %s: %s\n", tmpfile, in nfs_fini_tmpfile()
427 unlink(tmpfile); in nfs_fini_tmpfile()
428 free(tmpfile); in nfs_fini_tmpfile()
[all …]
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/history/
H A Dhistory_002_pos.ksh49 [[ -f $tmpfile ]] && rm -f $tmpfile
64 tmpfile=$TEST_BASE_DIR/tmpfile.$$ ; tmpfile2=$TEST_BASE_DIR/tmpfile2.$$
176 log_must eval "zfs send -i $fssnap $fssnap2 > $tmpfile"
184 run_and_verify "zfs receive $fs < $tmpfile"
H A Dhistory_007_pos.ksh101 tmpfile=$import_dir/cmds_tmp.$$
104 head -n $linenum $migrated_cmds_f > $tmpfile
105 log_must diff $tmpfile $orig_cmds_f1
/f-stack/app/redis-5.0.5/tests/integration/
H A Dredis-cli.tcl49 set tmp [tmpfile "cli"]
171 set tmpfile [write_tmpfile "from file"]
172 assert_equal "OK\n" [run_cli_with_input_file $tmpfile set key]
204 set tmpfile [write_tmpfile "from file"]
205 assert_equal "OK" [run_cli_with_input_file $tmpfile set key]
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/tmpfile/
H A DMakefile.am3 pkgdatadir = $(datadir)/@PACKAGE@/zfs-tests/tests/functional/tmpfile
9 pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/tests/functional/tmpfile
H A Dsetup.ksh37 if ! $STF_SUITE/tests/functional/tmpfile/tmpfile_test $TESTDIR; then
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_clear/
H A Dzpool_clear_001_pos.ksh88 typeset tmpfile=$TEST_BASE_DIR/file.$$
96 | grep -v "errors:" > $tmpfile
128 done <$tmpfile
/f-stack/app/redis-5.0.5/src/
H A Daof.c1374 char tmpfile[256]; in rewriteAppendOnlyFile() local
1380 fp = fopen(tmpfile,"w"); in rewriteAppendOnlyFile()
1454 if (rename(tmpfile,filename) == -1) { in rewriteAppendOnlyFile()
1456 unlink(tmpfile); in rewriteAppendOnlyFile()
1465 unlink(tmpfile); in rewriteAppendOnlyFile()
1568 char tmpfile[256]; in rewriteAppendOnlyFileBackground() local
1634 char tmpfile[256]; in aofRemoveTempFile() local
1637 unlink(tmpfile); in aofRemoveTempFile()
1664 char tmpfile[256]; in backgroundRewriteDoneHandler() local
1676 newfd = open(tmpfile,O_WRONLY|O_APPEND); in backgroundRewriteDoneHandler()
[all …]
/f-stack/freebsd/tools/
H A Dmakesyscalls.lua346 files[tmpname] = io.tmpfile()
347 files[dcltmpname] = io.tmpfile()
392 local function read_file(tmpfile)
393 if files[tmpfile] == nil then
394 print("Not found: " .. tmpfile)
398 local fh = files[tmpfile]
403 local function write_line(tmpfile, line)
404 if files[tmpfile] == nil then
405 print("Not found: " .. tmpfile)
408 files[tmpfile]:write(line)
/f-stack/app/redis-5.0.5/tests/support/
H A Dtmpfile.tcl13 proc tmpfile {basename} { procedure

12