The generic/052 and generic/054 tests run ls on the root directory,
and on ext4 we have a lost+found directory which is not in the
golden output.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
sed -e "s/mknod: [\`']\(.*\)': File exists/mknod: \1: File exists/"
}
+_filter_lostfound()
+{
+ sed -e '/^lost+found$/d'
+}
+
# make sure this script returns success
/bin/true
|| _fail "mount failed: $mnt $MOUNT_OPTIONS"
echo "ls SCRATCH_MNT"
-ls $SCRATCH_MNT
+ls $SCRATCH_MNT | _filter_lostfound
echo "unmount"
_scratch_unmount
# check before on what FS should look like
_echofull "ls SCRATCH_MNT"
- ls $SCRATCH_MNT
+ ls $SCRATCH_MNT | _filter_lostfound
_echofull "godown"
src/godown -v -f $SCRATCH_MNT >> $seqres.full
# check on what FS looks like after log recovery
_echofull "ls SCRATCH_MNT"
- ls $SCRATCH_MNT
+ ls $SCRATCH_MNT | _filter_lostfound
_echofull "unmount"
_scratch_unmount