]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_copy: improve the error message when mkfs is in progress
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Oct 2025 08:52:03 +0000 (10:52 +0200)
committerAndrey Albershteyn <aalbersh@kernel.org>
Fri, 7 Nov 2025 12:16:32 +0000 (13:16 +0100)
Indicate the correct reason for the failure instead of the same
message as for the generic error condition just above.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Andrey Albershteyn <aalbersh@kernel.org>
copy/xfs_copy.c

index 07957e007812fe0467ac74f3101580ddfe026751..3ba9a07e446997feb20c1bac8e376ddb4a1cbb9d 100644 (file)
@@ -759,7 +759,7 @@ main(int argc, char **argv)
                        "%s: Aborting.\n"), progname, source_name, progname);
                exit(1);
        } else if (mp->m_sb.sb_inprogress)  {
-               do_log(_("%s %s filesystem failed to initialize\n"
+               do_log(_("%s mkfs for %s filesystem still in progress\n"
                        "%s: Aborting.\n"), progname, source_name, progname);
                exit(1);
        } else if (mp->m_sb.sb_logstart == 0)  {