Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Nov 2005 20:51:15 +0000 (UTC)
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern vfs_mount.c
Message-ID:  <200511232051.jANKpFtJ093286@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rodrigc     2005-11-23 20:51:15 UTC

  FreeBSD src repository

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511232051.jANKpFtJ093286>