@@ -504,6 +504,12 @@ _filter_mknod()
sed -e "s/mknod: [\`']\(.*\)': File exists/mknod: \1: File exists/"
}
+# Remove leading "rename" in "mv -v" output
+_filter_mv()
+{
+ sed -e "s/^renamed //"
+}
+
_filter_lostfound()
{
sed -e '/^lost+found$/d'
@@ -95,7 +95,7 @@ ln -v $edir1/efile1 $udir/efile1 |& _filter_scratch
rm $udir/efile1 # undo
echo -e "\n*** Rename encrypted => unencrypted ***"
-mv -v $edir1/efile1 $udir/efile1 |& _filter_scratch
+mv -v $edir1/efile1 $udir/efile1 |& _filter_scratch |& _filter_mv
mv $udir/efile1 $edir1/efile1 # undo
@@ -119,9 +119,9 @@ src/renameat2 -x $edir1/efile1 $udir/ufile |& _filter_scratch
echo -e "\n\n*** Special file tests ***"
mkfifo $edir1/fifo
-mv -v $edir1/fifo $edir2/fifo | _filter_scratch
-mv -v $edir2/fifo $udir/fifo | _filter_scratch
-mv -v $udir/fifo $edir1/fifo | _filter_scratch
+mv -v $edir1/fifo $edir2/fifo | _filter_scratch |& _filter_mv
+mv -v $edir2/fifo $udir/fifo | _filter_scratch |& _filter_mv
+mv -v $udir/fifo $edir1/fifo | _filter_scratch |& _filter_mv
mkfifo $udir/fifo
src/renameat2 -x $udir/fifo $edir1/fifo
ln -v $edir1/fifo $edir2/fifo | _filter_scratch