diff mbox series

[09/13] xfs: xfs_copy doesn't like RT sections

Message ID 20250321072145.1675257-10-hch@lst.de (mailing list archive)
State New
Headers show
Series [01/13] xfs/177: force a small file system size | expand

Commit Message

Christoph Hellwig March 21, 2025, 7:21 a.m. UTC
internal or external..

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 common/xfs | 3 +++
 1 file changed, 3 insertions(+)

Comments

Darrick J. Wong March 21, 2025, 3:20 p.m. UTC | #1
On Fri, Mar 21, 2025 at 08:21:38AM +0100, Christoph Hellwig wrote:
> internal or external..
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Some day someone ought to make xfs_copy work on rt volumes...
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>

--D

> ---
>  common/xfs | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/common/xfs b/common/xfs
> index ccf263aeb969..d9999829d3b5 100644
> --- a/common/xfs
> +++ b/common/xfs
> @@ -1556,6 +1556,9 @@ _require_xfs_copy()
>  	[ "$USE_EXTERNAL" = yes ] && \
>  		_notrun "Cannot xfs_copy with external devices"
>  
> +	$XFS_INFO_PROG "$TEST_DIR" | grep -q 'realtime.*internal' &&
> +		_notrun "Cannot xfs_copy with internal rt device"
> +
>  	# xfs_copy on v5 filesystems do not require the "-d" option if xfs_db
>  	# can change the UUID on v5 filesystems
>  	touch /tmp/$$.img
> -- 
> 2.45.2
> 
>
diff mbox series

Patch

diff --git a/common/xfs b/common/xfs
index ccf263aeb969..d9999829d3b5 100644
--- a/common/xfs
+++ b/common/xfs
@@ -1556,6 +1556,9 @@  _require_xfs_copy()
 	[ "$USE_EXTERNAL" = yes ] && \
 		_notrun "Cannot xfs_copy with external devices"
 
+	$XFS_INFO_PROG "$TEST_DIR" | grep -q 'realtime.*internal' &&
+		_notrun "Cannot xfs_copy with internal rt device"
+
 	# xfs_copy on v5 filesystems do not require the "-d" option if xfs_db
 	# can change the UUID on v5 filesystems
 	touch /tmp/$$.img