From bfa66ecdb675afbf00d48c70cf5d53af383f27f0 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Mon, 5 Feb 2018 14:37:35 -0600 Subject: [PATCH] mkfs: don't create realtime filesystems with reflink enabled We don't support reflink on the realtime device, so don't let people create such things. Signed-off-by: Darrick J. Wong Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- mkfs/xfs_mkfs.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index 219b209b4..b20e3d682 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -2025,6 +2025,13 @@ _("cowextsize not supported without reflink support\n")); usage(); } + if (cli->sb_feat.reflink && cli->xi->rtname) { + fprintf(stderr, +_("reflink not supported with realtime devices\n")); + usage(); + cli->sb_feat.reflink = false; + } + if (cli->sb_feat.rmapbt && cli->xi->rtname) { fprintf(stderr, _("rmapbt not supported with realtime devices\n")); -- 2.47.2