diff options
| author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2006-12-20 01:32:59 +0000 |
|---|---|---|
| committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2006-12-20 01:32:59 +0000 |
| commit | 6d73e049720fc2d4cf4c279107e32e7b718dad36 (patch) | |
| tree | 959a8aaaa104a8e3eef0e8f58bc649c997df6e64 | |
| parent | d266890946239fcd6a9607f1635d378c615b4422 (diff) | |
Notes
| -rw-r--r-- | sys/fs/msdosfs/msdosfs_vfsops.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c index 23f651991715..3969516958c7 100644 --- a/sys/fs/msdosfs/msdosfs_vfsops.c +++ b/sys/fs/msdosfs/msdosfs_vfsops.c @@ -258,11 +258,15 @@ msdosfs_mount(struct mount *mp, struct thread *td) pmp = VFSTOMSDOSFS(mp); if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0)) { - /* Process export requests. */ - if ((pmp->pm_flags & MSDOSFS_LARGEFS) != 0) + /* + * Forbid export requests if filesystem has + * MSDOSFS_LARGEFS flag set. + */ + if ((pmp->pm_flags & MSDOSFS_LARGEFS) != 0) { + vfs_mount_error(mp, + "MSDOSFS_LARGEFS flag set, cannot export"); return (EOPNOTSUPP); - else - return (0); + } } if (!(pmp->pm_flags & MSDOSFSMNT_RONLY) && vfs_flagopt(mp->mnt_optnew, "ro", NULL, 0)) { |
