mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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:
parent
56896f63d9
commit
4ab125739b
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue