In node_lookup() ops, pcn->pcn_nameiop contains a NAMEI_* constant, not

PUFFSLOOKUP_*
This commit is contained in:
manu 2011-04-19 10:35:24 +00:00
parent 9761dd743b
commit 7a675e4eab
1 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: puffs_ops.3,v 1.27 2010/12/13 09:06:51 pooka Exp $ .\" $NetBSD: puffs_ops.3,v 1.28 2011/04/19 10:35:24 manu Exp $
.\" .\"
.\" Copyright (c) 2007 Antti Kantee. All rights reserved. .\" Copyright (c) 2007 Antti Kantee. All rights reserved.
.\" .\"
@ -372,17 +372,17 @@ the dev_t for the entry should be set using
.Pp .Pp
The type of operation is found from The type of operation is found from
.Va pcn-\*[Gt]pcn_nameiop : .Va pcn-\*[Gt]pcn_nameiop :
.Bl -tag -width XPUFFSLOOKUP_LOOKUPX .Bl -tag -width XNAMEI_LOOKUPX
.It Dv PUFFSLOOKUP_LOOKUP .It Dv NAMEI_LOOKUP
Normal lookup operation. Normal lookup operation.
.It Dv PUFFSLOOKUP_CREATE .It Dv NAMEI_CREATE
Lookup to create a node. Lookup to create a node.
.It Dv PUFFSLOOKUP_DELETE .It Dv NAMEI_DELETE
Lookup for node deletion. Lookup for node deletion.
.It Dv PUFFSLOOKUP_RENAME .It Dv NAMEI_RENAME
Lookup for the target of a rename operation (source will be looked Lookup for the target of a rename operation (source will be looked
up using up using
.Dv PUFFSLOOKUP_DELETE ) . .Dv NAMEI_DELETE ) .
.El .El
.Pp .Pp
The final component from a pathname lookup usually requires special The final component from a pathname lookup usually requires special
@ -400,9 +400,9 @@ an errno.
As a special case, As a special case,
.Er ENOENT .Er ENOENT
signals "success" for cases where the lookup operation is signals "success" for cases where the lookup operation is
.Dv PUFFSLOOKUP_CREATE .Dv NAMEI_CREATE
or or
.Dv PUFFSLOOKUP_RENAME . .Dv NAMEI_RENAME .
Failure in these cases can be signalled by returning another appropriate Failure in these cases can be signalled by returning another appropriate
error code, for example error code, for example
.Er EACCESS . .Er EACCESS .