summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-01-30 10:21:20 +0000
committerphk <phk@FreeBSD.org>2001-01-30 10:21:20 +0000
commita3eebfdb498127601f3c0d93833e2917107d993b (patch)
tree3e9ab7b1d5371b2e8d9ea97e90d5de81cbb5c64b /sbin
parentd2d8355cd9b65f11f74a20927f62b58cc0d019f3 (diff)
downloadFreeBSD-src-a3eebfdb498127601f3c0d93833e2917107d993b.zip
FreeBSD-src-a3eebfdb498127601f3c0d93833e2917107d993b.tar.gz
Make mount_mfs annoy users for 15 seconds and point them at mdconfig(8).
Diffstat (limited to 'sbin')
-rw-r--r--sbin/newfs/newfs.86
-rw-r--r--sbin/newfs/newfs.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/sbin/newfs/newfs.8 b/sbin/newfs/newfs.8
index 64548bb..ef90f88 100644
--- a/sbin/newfs/newfs.8
+++ b/sbin/newfs/newfs.8
@@ -80,6 +80,12 @@
.Op Fl o Ar options
.Op Fl s Ar size
.Ar special node
+.Sh WARNING
+.Nm mount_mfs
+is being phased out.
+Please see
+.Xr mdconfig 8
+for the replacement.
.Sh DESCRIPTION
.Nm Newfs
is used to initialize and clear filesystems before first use.
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c
index cc86950..8a9f00d 100644
--- a/sbin/newfs/newfs.c
+++ b/sbin/newfs/newfs.c
@@ -245,6 +245,12 @@ main(argc, argv)
if (strstr(progname, "mfs")) {
mfs = 1;
Nflag++;
+ fprintf(stderr,
+"WARNING: MFS is being phased out in preference for md devices\n"
+"WARNING: Please see mdconfig(8) for details\n"
+"WARNING: Continuing in 15 seconds\n");
+ sleep(15);
+
}
opstring = mfs ?
OpenPOWER on IntegriCloud