1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-21 07:15:49 +00:00

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
This commit is contained in:
Mark Johnston 2024-10-04 14:53:42 +00:00
parent 48979e8def
commit d9fe718287
3 changed files with 3 additions and 9 deletions

View File

@ -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"

View File

@ -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);

View File

@ -73,7 +73,7 @@ typedef struct {
*/
char filebuf[MAXBLOCKSIZE] __aligned(alignof(uint64_t));
bool nowarn;
bool nowarn; /* ignored */
/* Pool parameters. */
const char *poolname;