Correct condition to detect mount(2) support by a filesystem.
Reported and tested by: cy Sponsored by: The FreeBSD Foundation Approved by: re (rgrimes)
This commit is contained in:
parent
61ac1e28cc
commit
4fceda6206
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339694
@ -808,8 +808,10 @@ sys_mount(struct thread *td, struct mount_args *uap)
|
||||
free(fstype, M_TEMP);
|
||||
if (vfsp == NULL)
|
||||
return (ENOENT);
|
||||
if (vfsp->vfc_vfsops->vfs_cmount == NULL || ((vfsp->vfc_flags &
|
||||
VFCF_SBDRY) != 0 && (vfsp->vfc_vfsops_sd->vfs_cmount == NULL)))
|
||||
if (((vfsp->vfc_flags & VFCF_SBDRY) != 0 &&
|
||||
vfsp->vfc_vfsops_sd->vfs_cmount == NULL) ||
|
||||
((vfsp->vfc_flags & VFCF_SBDRY) == 0 &&
|
||||
vfsp->vfc_vfsops->vfs_cmount == NULL))
|
||||
return (EOPNOTSUPP);
|
||||
|
||||
ma = mount_argsu(ma, "fstype", uap->type, MFSNAMELEN);
|
||||
|
Loading…
Reference in New Issue
Block a user