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>
This commit is contained in:
Craig Rodrigues 2007-02-06 05:57:40 +00:00
parent af7a34173d
commit 5b54856414
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166526

View File

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