summaryrefslogtreecommitdiffstats
path: root/sys/fs/ntfs
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2007-02-21 00:30:09 +0000
committercognet <cognet@FreeBSD.org>2007-02-21 00:30:09 +0000
commit0592e954a1f93080cfa8d82dada49caee3869f44 (patch)
treea8da7668a45d0c654594828d3050083b054857dd /sys/fs/ntfs
parent2bf000ef9b16fc43cc55f7a29dbbe68df5421f25 (diff)
downloadFreeBSD-src-0592e954a1f93080cfa8d82dada49caee3869f44.zip
FreeBSD-src-0592e954a1f93080cfa8d82dada49caee3869f44.tar.gz
Check that the error returned by vfs_getopts() is not ENOENT before assuming
there's actually an error. This is just in order to unbreak ntfs on current, before a proper solution is committed.
Diffstat (limited to 'sys/fs/ntfs')
-rw-r--r--sys/fs/ntfs/ntfs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/ntfs/ntfs_vfsops.c b/sys/fs/ntfs/ntfs_vfsops.c
index 30c7a59..e63fc8a 100644
--- a/sys/fs/ntfs/ntfs_vfsops.c
+++ b/sys/fs/ntfs/ntfs_vfsops.c
@@ -326,10 +326,10 @@ ntfs_mountfs(devvp, mp, td)
ntmp->ntm_bo = &devvp->v_bufobj;
cs_local = vfs_getopts(mp->mnt_optnew, "cs_local", &error);
- if (error)
+ if (error && error != ENOENT)
goto out;
cs_ntfs = vfs_getopts(mp->mnt_optnew, "cs_ntfs", &error);
- if (error)
+ if (error && error != ENOENT)
goto out;
/* Copy in the 8-bit to Unicode conversion table */
/* Initialize Unicode to 8-bit table from 8toU table */
OpenPOWER on IntegriCloud