diff options
author | ssouhlal <ssouhlal@FreeBSD.org> | 2004-12-13 16:21:48 +0000 |
---|---|---|
committer | ssouhlal <ssouhlal@FreeBSD.org> | 2004-12-13 16:21:48 +0000 |
commit | dce62f30862cbde3f88adadbf17c0704d53a580b (patch) | |
tree | 35b2b7a613c096ef281cf2f3a5648bd131e68171 /sys/fs/ntfs/ntfs_vfsops.c | |
parent | 76068cb7f7989a555660b0bd00fa3015813b6535 (diff) | |
download | FreeBSD-src-dce62f30862cbde3f88adadbf17c0704d53a580b.zip FreeBSD-src-dce62f30862cbde3f88adadbf17c0704d53a580b.tar.gz |
Exporting of NTFS filesystem broke in rev 1.70. Fix it.
Approved by: phk, grehan (mentor)
Diffstat (limited to 'sys/fs/ntfs/ntfs_vfsops.c')
-rw-r--r-- | sys/fs/ntfs/ntfs_vfsops.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/fs/ntfs/ntfs_vfsops.c b/sys/fs/ntfs/ntfs_vfsops.c index 52ba5cb..6e8288a 100644 --- a/sys/fs/ntfs/ntfs_vfsops.c +++ b/sys/fs/ntfs/ntfs_vfsops.c @@ -154,15 +154,12 @@ ntfs_mount ( /* * If updating, check whether changing from read-only to - * read/write; if there is no device name, that's all we do. + * read/write. */ if (mp->mnt_flag & MNT_UPDATE) { - /* if not updating name...*/ - if (from == NULL) { - error = vfs_copyopt(mp->mnt_optnew, "export", - &export, sizeof export); - if (error) - return (error); + error = vfs_copyopt(mp->mnt_optnew, "export", + &export, sizeof export); + if ((error == 0) && export.ex_flags != 0) { /* * Process export requests. Jumping to "success" * will return the vfs_export() error code. |