Skip to content

Commit

Permalink
Merge ../zfs into adam105x
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdmoss committed Aug 14, 2024
2 parents 75760f7 + 244ea5c commit a1c3d75
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions module/zfs/dataset_kstats.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ static dataset_kstat_values_t empty_dataset_kstats = {
{
{ "zil_commit_count", KSTAT_DATA_UINT64 },
{ "zil_commit_writer_count", KSTAT_DATA_UINT64 },
{ "zil_commit_error_count", KSTAT_DATA_UINT64 },
{ "zil_commit_stall_count", KSTAT_DATA_UINT64 },
{ "zil_commit_suspend_count", KSTAT_DATA_UINT64 },
{ "zil_itx_count", KSTAT_DATA_UINT64 },
{ "zil_itx_indirect_count", KSTAT_DATA_UINT64 },
{ "zil_itx_indirect_bytes", KSTAT_DATA_UINT64 },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function display_status
((ret |= $?))

typeset mntpnt=$(get_prop mountpoint $pool)
dd if=/dev/random of=$mntpnt/testfile.$$ &
dd if=/dev/urandom of=$mntpnt/testfile.$$ &
typeset pid=$!

zpool iostat -v 1 3 > /dev/null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ log_must truncate -s 1G $VDEV

log_must zpool create -o feature@block_cloning=enabled $TESTPOOL $VDEV

log_must dd if=/dev/random of=/$TESTPOOL/file1 bs=1 count=1000
log_must dd if=/dev/urandom of=/$TESTPOOL/file1 bs=1 count=1000

ulimit -f 2
log_must clonefile -f /$TESTPOOL/file1 /$TESTPOOL/file2 0 0 all
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ log_onexit cleanup
log_assert "ensure single-disk pool resumes properly after suspend and clear"

# create a file, and take a checksum, so we can compare later
log_must dd if=/dev/random of=$DATAFILE bs=128K count=1
log_must dd if=/dev/urandom of=$DATAFILE bs=128K count=1
typeset sum1=$(cat $DATAFILE | md5sum)

# make a debug device that we can "unplug"
Expand Down

0 comments on commit a1c3d75

Please sign in to comment.