On Fri, May 27, 2022 at 02:22:28PM +0300, Nikolay Borisov wrote: >> +# Return the btrfs logical address for the first block in a file >> +_btrfs_get_first_logical() >> +{ >> + local file=$1 >> + _require_command "$FILEFRAG_PROG" filefrag >> + >> + ${FILEFRAG_PROG} -v $SCRATCH_MNT/foobar >> $seqres.full > > Likely you want to print the logical layout of the file for reference > purposes? Then use $file instead of $SCRATCH_MNT/foobar Yeah, this should use $file.