mount_msdosfs and longnames
Rainer Hurling
rhurlin at gwdg.de
Sat Nov 19 08:31:34 PST 2005
With your latest patch all seems to be OK again, for old as well as new
'mount_msdosfs' program.
Thank you very much for this qualified and fast help.
Rainer Hurling
Craig Rodrigues wrote:
> Can you try the following patch, rebuild your kernel,
> and try both old *and* new mount_msdosfs programs?
>
>
> Index: msdosfs_vfsops.c
> ===================================================================
> RCS file: /home/ncvs/src/sys/fs/msdosfs/msdosfs_vfsops.c,v
> retrieving revision 1.148
> diff -u -u -r1.148 msdosfs_vfsops.c
> --- msdosfs_vfsops.c 18 Nov 2005 22:34:31 -0000 1.148
> +++ msdosfs_vfsops.c 19 Nov 2005 13:41:36 -0000
> @@ -81,7 +81,7 @@
> "from",
> "export",
> "uid", "gid", "mask", "dirmask",
> - "shortname", "shortnames", "longname", "longnames", "win95",
> + "shortname", "shortnames", "longname", "longnames", "nowin95", "win95",
> "kiconv", "cs_win", "cs_dos", "cs_local",
> NULL
> };
> @@ -172,11 +172,10 @@
> vfs_flagopt(mp->mnt_optnew, "kiconv",
> &pmp->pm_flags, MSDOSFSMNT_KICONV);
>
> - /* XXX: Can't use flagopt due to negative option */
> - if (!vfs_getopt(mp->mnt_optnew, "win95", NULL, NULL))
> - pmp->pm_flags &= ~MSDOSFSMNT_NOWIN95;
> - else
> + if (vfs_getopt(mp->mnt_optnew, "nowin95", NULL, NULL) == 0)
> pmp->pm_flags |= MSDOSFSMNT_NOWIN95;
> + else
> + pmp->pm_flags &= ~MSDOSFSMNT_NOWIN95;
>
> if (pmp->pm_flags & MSDOSFSMNT_NOWIN95)
> pmp->pm_flags |= MSDOSFSMNT_SHORTNAME;
More information about the freebsd-current
mailing list