aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount/extern.h
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2005-11-23 20:51:15 +0000
committerCraig Rodrigues <rodrigc@FreeBSD.org>2005-11-23 20:51:15 +0000
commit5e6b93a014c5fe2d897ff859d9e80b54f80e83c0 (patch)
treed02e9c06318f0490e603e219d0d0c72ab7d0c861 /sbin/mount/extern.h
parent4ca0505435291c2baef44b46f376dec1e221e6ea (diff)
downloadsrc-5e6b93a014c5fe2d897ff859d9e80b54f80e83c0.tar.gz
src-5e6b93a014c5fe2d897ff859d9e80b54f80e83c0.zip
In nmount() and vfs_donmount(), do not strcmp() the options in the iovec
directly. We need to copyin() the strings in the iovec before we can strcmp() them. Also, when we want to send the errmsg back to userspace, we need to copyout()/copystr() the string. Add a small helper function vfs_getopt_pos() which takes in the name of an option, and returns the array index of the name in the iovec, or -1 if not found. This allows us to locate an option in the iovec without actually manipulating the iovec members. directly via strcmp(). Noticed by: kris on sparc64
Notes
Notes: svn path=/head/; revision=152735
Diffstat (limited to 'sbin/mount/extern.h')
0 files changed, 0 insertions, 0 deletions