cvs commit: src/sys/kern vfs_mount.c

Craig Rodrigues rodrigc at
Wed Nov 23 20:51:16 GMT 2005

rodrigc     2005-11-23 20:51:15 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_mount.c 
  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
  Noticed by:     kris on sparc64
  Revision  Changes    Path
  1.204     +47 -37    src/sys/kern/vfs_mount.c

More information about the cvs-src mailing list