summaryrefslogtreecommitdiffstats
path: root/sys/gnu/fs/xfs
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2007-08-20 15:33:22 +0000
committercognet <cognet@FreeBSD.org>2007-08-20 15:33:22 +0000
commit0b8ac2d96963570ea8b4d6507ef1ecff0be0e0ba (patch)
tree2d881bdda2c3243c63d294801123baaba387e86a /sys/gnu/fs/xfs
parent77766ce03fadc5a3fa344a477dd967530260bb26 (diff)
downloadFreeBSD-src-0b8ac2d96963570ea8b4d6507ef1ecff0be0e0ba.zip
FreeBSD-src-0b8ac2d96963570ea8b4d6507ef1ecff0be0e0ba.tar.gz
Some times ago, vfs_getopts() was changed, so that it would set error to
ENOENT if the option wasn't provided, instead of setting it to 0. xfs however didn't catch up on this, so it assumed something went bad if vfs_getopts() sets the error to non-zero, and just returns the error. Unbreak xfs mount by just ignoring the error if vfs_getopts() sets the error to ENOENT, as we should have sane defaults. Reviewed by: kan Approved by: re (rwatson) Tested by: rpaulo
Diffstat (limited to 'sys/gnu/fs/xfs')
-rw-r--r--sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c b/sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c
index 758cdef..8d3ba0f 100644
--- a/sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c
+++ b/sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c
@@ -131,25 +131,25 @@ _xfs_param_copyin(struct mount *mp, struct thread *td)
args->logbufsize = -1;
parse_int(mp, "flags", &args->flags, &error);
- if (error != 0)
+ if (error != 0 && error != ENOENT)
return error;
args->flags |= XFSMNT_32BITINODES;
parse_int(mp, "sunit", &args->sunit, &error);
- if (error != 0)
+ if (error != 0 && error != ENOENT)
return error;
parse_int(mp, "swidth", &args->swidth, &error);
- if (error != 0)
+ if (error != 0 && error != ENOENT)
return error;
parse_int(mp, "logbufs", &args->logbufs, &error);
- if (error != 0)
+ if (error != 0 && error != ENOENT)
return error;
parse_int(mp, "logbufsize", &args->logbufsize, &error);
- if (error != 0)
+ if (error != 0 && error != ENOENT)
return error;
fsname = vfs_getopts(mp->mnt_optnew, "from", &error);
OpenPOWER on IntegriCloud