Re: [PATCH 15/15] xfs: test that we can handle spurious zone wp advancements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/05/2025 18:04, Darrick J. Wong wrote:
>>  ./common/filter
>> +. ./common/zoned
>> +
>> +_require_scratch
> Needs _require_realtime so that the next command doesn't fail on
> undefined SCRATCH_RTDEV
> 
>> +_require_zoned_device $SCRATCH_RTDEV
>> +_require_command "$BLKZONE_PROG" blkzone
>> +
>> +_scratch_mkfs >> $seqres.full 2>&1 || _fail "mkfs failed"
>> +_scratch_mount
>> +blksz=$(_get_file_block_size $SCRATCH_MNT)
>> +
>> +test_file=$SCRATCH_MNT/test.dat
>> +dd if=/dev/zero of=$test_file bs=1M count=16 >> $seqres.full 2>&1 \
>> +	oflag=direct || _fail "file creation failed"
>> +
>> +_scratch_unmount
>> +
>> +#
>> +# Figure out which zone was opened to store the test file and where
>> +# the write pointer is in that zone
>> +#
>> +open_zone=$($BLKZONE_PROG report $SCRATCH_RTDEV | \
>> +	$AWK_PROG '/oi/ { print $2 }' | sed 's/,//')
>> +open_zone_wp=$($BLKZONE_PROG report $SCRATCH_RTDEV | \
>> +       	grep "start: $open_zone" | $AWK_PROG '{ print $8 }')
>    ^ spaces here before a tab

Fixed, thanks!




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux