aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2024-10-04 14:53:42 +0000
committerMark Johnston <markj@FreeBSD.org>2024-10-04 15:56:34 +0000
commitd9fe71828797508d1d28655e40780a5ae9078e66 (patch)
treefc6ec84f22a669a455776e7f6d1f72b1eaf3cdbe
parent48979e8def00b69a07880e7827af7e32d5e377ff (diff)
makefs: Remove the warning printed when makefs -t zfs is used
We haven't seen bug reports relating to this feature for a while, so stop printing a warning. Reviewed by: cperciva MFC after: 2 weeks
-rw-r--r--usr.sbin/makefs/tests/makefs_zfs_tests.sh2
-rw-r--r--usr.sbin/makefs/zfs.c8
-rw-r--r--usr.sbin/makefs/zfs/zfs.h2
3 files changed, 3 insertions, 9 deletions
diff --git a/usr.sbin/makefs/tests/makefs_zfs_tests.sh b/usr.sbin/makefs/tests/makefs_zfs_tests.sh
index 6e20ae33b354..7040cf9fd736 100644
--- a/usr.sbin/makefs/tests/makefs_zfs_tests.sh
+++ b/usr.sbin/makefs/tests/makefs_zfs_tests.sh
@@ -28,7 +28,7 @@
# SUCH DAMAGE.
#
-MAKEFS="makefs -t zfs -o nowarn=true"
+MAKEFS="makefs -t zfs"
ZFS_POOL_NAME="makefstest$$"
TEST_ZFS_POOL_NAME="$TMPDIR/poolname"
diff --git a/usr.sbin/makefs/zfs.c b/usr.sbin/makefs/zfs.c
index b16a48564f04..a0c81f9654ab 100644
--- a/usr.sbin/makefs/zfs.c
+++ b/usr.sbin/makefs/zfs.c
@@ -92,7 +92,7 @@ zfs_prep_opts(fsinfo_t *fsopts)
{ '\0', "ashift", &zfs->ashift, OPT_INT32,
MINBLOCKSHIFT, MAXBLOCKSHIFT, "ZFS pool ashift" },
{ '\0', "nowarn", &zfs->nowarn, OPT_BOOL,
- 0, 0, "Suppress warning about experimental ZFS support" },
+ 0, 0, "Provided for backwards compatibility, ignored" },
{ .name = NULL }
};
@@ -779,12 +779,6 @@ zfs_makefs(const char *image, const char *dir, fsnode *root, fsinfo_t *fsopts)
zfs_check_opts(fsopts);
- if (!zfs->nowarn) {
- fprintf(stderr,
- "ZFS support is currently considered experimental. "
- "Do not use it for anything critical.\n");
- }
-
dirfd = open(dir, O_DIRECTORY | O_RDONLY);
if (dirfd < 0)
err(1, "open(%s)", dir);
diff --git a/usr.sbin/makefs/zfs/zfs.h b/usr.sbin/makefs/zfs/zfs.h
index ff94c270bbf6..5c47b7c3156b 100644
--- a/usr.sbin/makefs/zfs/zfs.h
+++ b/usr.sbin/makefs/zfs/zfs.h
@@ -73,7 +73,7 @@ typedef struct {
*/
char filebuf[MAXBLOCKSIZE] __aligned(alignof(uint64_t));
- bool nowarn;
+ bool nowarn; /* ignored */
/* Pool parameters. */
const char *poolname;