On Wed, Feb 03, 2016 at 05:02:08PM +0100, Christoph Hellwig wrote: > See http://www.infradead.org/rpr.html > > NFS has neither FIBMAP nor FIEMAP so filefrag will fail. Handle this > case gracefully. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> > --- > tests/generic/899 | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/tests/generic/899 b/tests/generic/899 > index 9b3f973..ce3db38 100755 > --- a/tests/generic/899 > +++ b/tests/generic/899 > @@ -67,6 +67,10 @@ nr=64 > _pwrite_byte 0x61 0 $((blksz * nr)) "$testdir/file1" >> "$seqres.full" > _pwrite_byte 0x62 0 $((blksz * nr)) "$testdir/file3" >> "$seqres.full" > _pwrite_byte 0x61 0 $((blksz * nr)) "$testdir/file1.chk" >> "$seqres.full" > + > +filefrag -v "$testdir/file1" 2>&1 | grep -q "FIBMAP: Invalid argument" && \ > + _notrun "filefrag not support on file system type \"$FSTYP\"" I rewrote the test to avoid filefrag. --D > + > seq 1 2 $((nr-1)) | while read f; do > _reflink_range "$testdir/file1" $((blksz * f)) "$testdir/file3" $((blksz * f)) $blksz >> "$seqres.full" > done > -- > 2.1.4 > -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html