tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: factoring out the change_root() and making exporting change_{root,dir}() as interface



On Wed, Jul 29, 2009 at 12:36:37AM +0200, Christoph Badura wrote:
 > -    if ((error = fd_getvnode(SCARG(uap, fd), &fp)) != 0)
 > +    if ((error = fd_getvnode(fd, &fp)) != 0)

that doesn't look right.

 > -static int
 > +int
 >  change_dir(struct nameidata *ndp, struct lwp *l)
 >  {

Is it feasible to adjust this to pass a vnode instead of nameidata?

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index