Arla on FreeBSD

Kostik Belousov kostikbel at gmail.com
Thu Feb 15 10:56:07 UTC 2007


On Thu, Feb 15, 2007 at 12:45:37PM +0200, Kostik Belousov wrote:
> 	td = curthread;
> 	NDINIT(&nd, LOOKUP, FOLLOW | MPSAFE, UIO_USERSPACE, fname, td);
> 	flags = FREAD | FWRITE;
> 	error = vn_open(&nd, &flags, 0, -1);
And, forgot to mention that there is very subtle difference in 6.x/CURRENT
API that fd == -1 causes unconditional Giant aquision for 6.x.
> 	if (error)
> 		return (error);
> 	vfslocked = NDHASGIANT(&nd);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20070215/13ac82dd/attachment.pgp


More information about the freebsd-fs mailing list