Add "shortnames" and "longnames" mount options which are

synonyms for "shortname" and "longname" mount options.  The old
(before nmount()) mount_msdosfs program accepted "shortnames" and "longnames",
but the kernel nmount() checked for "shortname" and "longname".
So, make the kernel accept "shortnames", "longnames", "shortname", "longname"
for forwards and backwarsd compatibility.

Discovered by:	Rainer Hurling <rhurlin at gwdg dot de>
This commit is contained in:
Craig Rodrigues 2005-11-18 22:34:31 +00:00
parent 56896f63d9
commit 4ab125739b

View file

@ -81,7 +81,7 @@ static const char *msdosfs_opts[] = {
"from",
"export",
"uid", "gid", "mask", "dirmask",
"shortname", "longname", "win95",
"shortname", "shortnames", "longname", "longnames", "win95",
"kiconv", "cs_win", "cs_dos", "cs_local",
NULL
};
@ -163,8 +163,12 @@ update_mp(mp, td)
pmp->pm_dirmask = v & ALLPERMS;
vfs_flagopt(mp->mnt_optnew, "shortname",
&pmp->pm_flags, MSDOSFSMNT_SHORTNAME);
vfs_flagopt(mp->mnt_optnew, "shortnames",
&pmp->pm_flags, MSDOSFSMNT_SHORTNAME);
vfs_flagopt(mp->mnt_optnew, "longname",
&pmp->pm_flags, MSDOSFSMNT_LONGNAME);
vfs_flagopt(mp->mnt_optnew, "longnames",
&pmp->pm_flags, MSDOSFSMNT_LONGNAME);
vfs_flagopt(mp->mnt_optnew, "kiconv",
&pmp->pm_flags, MSDOSFSMNT_KICONV);