summaryrefslogtreecommitdiffstats
path: root/sbin/mount
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2007-02-06 05:57:40 +0000
committerrodrigc <rodrigc@FreeBSD.org>2007-02-06 05:57:40 +0000
commit6898f59c41484dab9c39f1192e7a8a1749606639 (patch)
treee490362d26d4b26d3ab64e242b8002b0e6c37764 /sbin/mount
parentf0103758789a9e6d2e248c25c0e0f25b674f4ce1 (diff)
downloadFreeBSD-src-6898f59c41484dab9c39f1192e7a8a1749606639.zip
FreeBSD-src-6898f59c41484dab9c39f1192e7a8a1749606639.tar.gz
Print warning that "-t msdos" is deprecated and being converted to
"-t msdosfs". The conversion has been happening since 1.43, but no equivalent conversion happens in "umount -t", which led to some confusion with some users. PR: 79296 Submitted by: Nobuhiro Yasutomi <nobuhiro yasutomi nifty ne jp>
Diffstat (limited to 'sbin/mount')
-rw-r--r--sbin/mount/mount.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index df8d3ff..70a7b42 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -531,8 +531,11 @@ mountfs(const char *vfstype, const char *spec, const char *name, int flags,
optbuf = catopt(optbuf, "update");
/* Compatibility glue. */
- if (strcmp(vfstype, "msdos") == 0)
+ if (strcmp(vfstype, "msdos") == 0) {
+ warnx(
+ "Using \"-t msdosfs\", since \"-t msdos\" is deprecated.");
vfstype = "msdosfs";
+ }
/* Construct the name of the appropriate mount command */
(void)snprintf(execname, sizeof(execname), "mount_%s", vfstype);
OpenPOWER on IntegriCloud