On Tue, Oct 07, 2014 at 07:20:49PM -0400, Wang Shilong wrote: > This test add a regression test to make sure btrfs dosen't set > inode NOCOMPRESS flag when a small write(<=blocksize) happens. > > Signed-off-by: Wang Shilong <wangshilong1...@gmail.com> ... > +rm -f $seqres.full > + > +_scratch_mkfs >> $seqres.full 2>&1 > +_scratch_mount "-o compress=lzo" > + > +$XFS_IO_PROG -f -c "pwrite 0 10M" -c "fsync" \ > + $SCRATCH_MNT/data >> $seqres.full 2>&1 > + > +filefrag $SCRATCH_MNT/data | $AWK_PROG '{print $2}'
We don't want to introduce new external dependencies if we have internal functions that do the same thing. i.e: . common/defrag .... _extent_count $SCRATCH_MNT/data Will do the same thing without introducing a dependence on filefrag. Cheers, Dave. -- Dave Chinner da...@fromorbit.com -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html