For max_atomic_write option to be set, it means that the user wants to
support atomic writes up to that size.
However, to support this we must have reflink, so enforce that this is
available.
Signed-off-by: John Garry <john.g.garry@oracle.com>
Suggested-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
cli->sb_feat.exchrange = true;
}
+ if (cli_opt_set(&iopts, I_MAX_ATOMIC_WRITE) && !cli->sb_feat.reflink) {
+ fprintf(stderr,
+_("max_atomic_write option not supported without reflink support\n"));
+ usage();
+ }
+
/*
* Copy features across to config structure now.
*/