| /freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
| H A D | clone_after_trunc.c | 32 #define FILE_SIZE (1024 * 1024) macro 48 unsigned char *write_buf = malloc(FILE_SIZE); in run_test() 49 unsigned char *read_buf = malloc(FILE_SIZE); in run_test() 52 memset(write_buf, 0xAA, FILE_SIZE); in run_test() 54 if (write(src, write_buf, FILE_SIZE) != FILE_SIZE) in run_test() 60 if (write(dst, write_buf, FILE_SIZE) != FILE_SIZE) in run_test() 71 copy_file_range(src, &off_in, dst, &off_out, FILE_SIZE, 0); in run_test() 72 if (ret != FILE_SIZE) in run_test() 79 if (read(dst, read_buf, FILE_SIZE) != FILE_SIZE) in run_test() 84 if (memcmp(write_buf, read_buf, FILE_SIZE) != 0) { in run_test()
|
| /freebsd/contrib/libarchive/libarchive/test/ |
| H A D | test_read_data_large.c | 113 #define FILE_SIZE 0x90000 /* 576 KiB total logical size */ macro 116 static char sparse_data[FILE_SIZE]; 117 static char sparse_expected[FILE_SIZE]; 161 archive_entry_set_size(ae, FILE_SIZE); in DEFINE_TEST() 166 assertEqualIntA(a, FILE_SIZE, in DEFINE_TEST() 178 assertEqualInt(FILE_SIZE, archive_entry_size(ae)); in DEFINE_TEST() 190 assert(ftruncate(fd, FILE_SIZE) != -1); in DEFINE_TEST() 200 assertFileSize("file", FILE_SIZE); in DEFINE_TEST() 201 assertFileContents(sparse_expected, FILE_SIZE, "file"); in DEFINE_TEST()
|
| H A D | test_read_format_zip_winzip_aes_large.c | 31 static const size_t FILE_SIZE[FILE_COUNT] = { 1456747, 29357, 6818, 32667 }; variable 42 assertEqualInt(FILE_SIZE[file_id], archive_entry_size(ae)); in test_file_with_bad_password() 58 assertEqualInt(FILE_SIZE[file_id], archive_entry_size(ae)); in test_file_with_good_password()
|
| /freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_add/ |
| H A D | zpool_add_006_pos.ksh | 98 if (( file_size > FILE_SIZE )); then 99 file_size=$FILE_SIZE 138 file_size=$FILE_SIZE
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/append/ |
| H A D | threadsappend_001_pos.ksh | 46 typeset -i FILE_SIZE=1310720 67 if [[ $SIZE -ne $FILE_SIZE ]]; then
|
| /freebsd/tests/sys/cddl/zfs/tests/threadsappend/ |
| H A D | threadsappend_001_pos.ksh | 64 typeset -i FILE_SIZE=1310720 86 if [[ $SIZE -ne $FILE_SIZE ]]; then
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_import/ |
| H A D | import_cachefile_device_removed.ksh | 68 log_must mkfile $FILE_SIZE $removevdev 100 log_must mkfile $FILE_SIZE $VDEV3 $VDEV4 132 log_must mkfile $FILE_SIZE $VDEV1 $VDEV3
|
| H A D | zpool_import_016_pos.ksh | 49 log_must mkfile $FILE_SIZE ${DEVICE_DIR}/${DEVICE_FILE}$i 77 log_must mkfile $FILE_SIZE $VDEV0
|
| H A D | zpool_import_007_pos.ksh | 48 log_must mkfile $FILE_SIZE ${DEVICE_DIR}/${DEVICE_FILE}$i 76 log_must mkfile $FILE_SIZE $VDEV0
|
| H A D | zpool_import_017_pos.ksh | 49 log_must mkfile $FILE_SIZE ${DEVICE_DIR}/${DEVICE_FILE}$i 78 log_must mkfile $FILE_SIZE $VDEV0 $VDEV1
|
| H A D | zpool_import_008_pos.ksh | 48 log_must mkfile $FILE_SIZE ${DEVICE_DIR}/${DEVICE_FILE}$i 77 log_must mkfile $FILE_SIZE $VDEV0 $VDEV1
|
| H A D | zpool_import_003_pos.ksh | 43 log_must mkfile $FILE_SIZE $VDEV0 $VDEV1
|
| H A D | zpool_import_encrypted_load.ksh | 40 log_must mkfile $FILE_SIZE $VDEV0
|
| H A D | zpool_import_encrypted.ksh | 40 log_must mkfile $FILE_SIZE $VDEV0
|
| H A D | setup.ksh | 43 log_must truncate -s $FILE_SIZE ${DEVICE_DIR}/${DEVICE_FILE}$i
|
| H A D | zpool_import_015_pos.ksh | 38 log_must truncate -s $FILE_SIZE $VDEV0 $VDEV1
|
| H A D | zpool_import_features_001_pos.ksh | 41 log_must mkfile $FILE_SIZE $VDEV0
|
| H A D | zpool_import_014_pos.ksh | 43 log_must mkfile $FILE_SIZE ${DEVICE_DIR}/${DEVICE_FILE}$i
|
| /freebsd/tests/sys/cddl/zfs/tests/interop/ |
| H A D | interop_001_pos.ksh | 85 fill_fs $bg 20 25 $FILE_SIZE $FILE_COUNT
|
| /freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_create/ |
| H A D | zpool_create_004_pos.ksh | 75 file_size=$FILE_SIZE
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/perf/regression/ |
| H A D | random_reads.ksh | 71 export FILE_SIZE=$((TOTAL_SIZE / NUMJOBS))
|
| H A D | random_readwrite_fixed.ksh | 61 export FILE_SIZE=$((TOTAL_SIZE / NUMJOBS))
|
| H A D | sequential_reads_arc_cached.ksh | 61 export FILE_SIZE=$((TOTAL_SIZE / NUMJOBS))
|
| H A D | random_readwrite.ksh | 71 export FILE_SIZE=$((TOTAL_SIZE / NUMJOBS))
|
| H A D | sequential_reads.ksh | 69 export FILE_SIZE=$((TOTAL_SIZE / NUMJOBS))
|