From 3d96167a543c45825df7d1546f2254e6a532a80e Mon Sep 17 00:00:00 2001 From: Suleiman Souhlal Date: Mon, 13 Dec 2004 16:21:48 +0000 Subject: [PATCH] Exporting of NTFS filesystem broke in rev 1.70. Fix it. Approved by: phk, grehan (mentor) --- sys/fs/ntfs/ntfs_vfsops.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/sys/fs/ntfs/ntfs_vfsops.c b/sys/fs/ntfs/ntfs_vfsops.c index 52ba5cb156f3..6e8288a0f3c9 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.