> > + # return created swap size > > + echo $swap_log | grep -oP '(?<=size = )\w+' > Hi Zorro. > I saw you've changed generic/643 to suit this change, but there're many cases > call _format_swapfile() [1], now it print something to stdout by default, did > you make sure it won't break other cases' golden image? Yes, I did change generic/643 to use the value returned by _format_swapfile(). I did test a few other tests which use _format_swapfile(), just in case, and they passed normally for me, that's why I added the following comment to my patch's description: -- Tests using _format_swapfile() that do not require the swap file size do not need to be modified, as the return value will be simply ignored. -- Did you find something failing that wasn't supposed to? If not, I'll try to rephrase that above on my V2, to be a bit more clear. Thanks for the review! Cheers. > > Thanks, > Zorro > > [1] > $ grep -rsn _format_swapfile tests/ > tests/btrfs/173:22:# We can't use _format_swapfile because we don't want chattr +C, and we can't > tests/btrfs/173:34:_format_swapfile "$SCRATCH_MNT/swap" $(($(get_page_size) * 10)) > tests/btrfs/177:66:_format_swapfile "$swapfile" $((32 * 1024 * 1024)) > tests/btrfs/174:23:_format_swapfile "$swapfile" $(($(get_page_size) * 10)) > tests/btrfs/175:21: _format_swapfile "$SCRATCH_MNT/swap" "$sz" > tests/btrfs/175:50:_format_swapfile "$SCRATCH_MNT/swap" $(($(get_page_size) * 10)) > tests/btrfs/176:32:_format_swapfile "$SCRATCH_MNT/swap" $(($(get_page_size) * 10)) > tests/btrfs/176:50:_format_swapfile "$SCRATCH_MNT/swap" $(($(get_page_size) * 10)) > tests/generic/643:39:_format_swapfile $swapfile 1m >> $seqres.full > tests/generic/357:42:_format_swapfile "$testdir/file1" $((blocks * blksz)) > tests/generic/493:30:_format_swapfile "$testdir/file1" $((blocks * blksz)) > tests/generic/494:29:_format_swapfile "$testdir/file1" $((blocks * blksz)) > tests/generic/356:42:_format_swapfile "$testdir/file1" $((blocks * blksz)) > tests/generic/569:34:_format_swapfile $testfile 20m > tests/generic/495:24:# We can't use _format_swapfile because we're using our custom mkswap and > tests/generic/554:33:_format_swapfile $SCRATCH_MNT/swapfile 16m > > > } > > > > _swapon_file() { > > @@ -2628,7 +2632,7 @@ _require_scratch_swapfile() > > _scratch_mount > > > > # Minimum size for mkswap is 10 pages > > - _format_swapfile "$SCRATCH_MNT/swap" $(($(get_page_size) * 10)) > > + _format_swapfile "$SCRATCH_MNT/swap" $(($(get_page_size) * 10)) > /dev/null > > > > # ext* has supported all variants of swap files since their > > # introduction, so swapon should not fail. > > -- > > 2.31.1 > > > -- Carlos