Recent nmount(2) adoption in mount_smbfs(8) did not flag the "long" option

since mount_smbfs(8) assumed long name mounting by default unless "-n long"
was explicitly specified.

Rather than supplying a "long" option in mount_smbfs(8), this commit brings
back the original behaviour by associating SMBFS_MOUNT_NO_LONG with the
"nolong" option.  This should fix the broken long file names on smbfs people
observed recently.

Reported by:	Vladimir Grebenschikov <vova at fbsd dot ru>
Reviewed by:	phk
Tested by:	Slawa Olhovchenkov <slw at zxy dot spb dot ru>
This commit is contained in:
Tai-hwa Liang 2005-12-05 19:05:06 +00:00
parent 74a2a2d543
commit 8bfc230455

View File

@ -230,9 +230,7 @@ smbfs_mount(struct mount *mp, struct thread *td)
smp->sm_dir_mode = (v & (S_IRWXU|S_IRWXG|S_IRWXO)) | S_IFDIR;
vfs_flagopt(mp->mnt_optnew,
"long", &smp->sm_flags, SMBFS_MOUNT_NO_LONG);
smp->sm_flags ^= SMBFS_MOUNT_NO_LONG;
"nolong", &smp->sm_flags, SMBFS_MOUNT_NO_LONG);
/* simple_lock_init(&smp->sm_npslock);*/
pc = mp->mnt_stat.f_mntfromname;