mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-25 16:13:17 +00:00
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:
parent
af7a34173d
commit
5b54856414
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166526
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user