common/rc: fix test init performance regression on XFS
[xfstests-dev.git] / common / rc
index 48ac488da5b4db331f8b29812fc34603d31c50d4..70a15f9ca156706a01de25a6aea2fddf9d1cd209 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -4514,19 +4514,6 @@ init_rc()
        # it is supported.
        $XFS_IO_PROG -i -c quit 2>/dev/null && \
                export XFS_IO_PROG="$XFS_IO_PROG -i"
-
-       # xfs_copy on v5 filesystems do not require the "-d" option if xfs_db
-       # can change the UUID on v5 filesystems
-       if [ "$FSTYP" == "xfs" ]; then
-               touch /tmp/$$.img
-               $MKFS_XFS_PROG -d file,name=/tmp/$$.img,size=512m >/dev/null 2>&1
-               # xfs_db will return 0 even if it can't generate a new uuid, so
-               # check the output to make sure if it can change UUID of V5 xfs
-               $XFS_DB_PROG -x -c "uuid generate" /tmp/$$.img \
-                       | grep -q "invalid UUID\|supported on V5 fs" \
-                       && export XFS_COPY_PROG="$XFS_COPY_PROG -d"
-               rm -f /tmp/$$.img
-       fi
 }
 
 # get real device path name by following link