summaryrefslogtreecommitdiff
path: root/libdiskfs/diskfs.h
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-10-06 14:43:23 +0000
committerThomas Bushnell <thomas@gnu.org>1999-10-06 14:43:23 +0000
commite74a41ddb8371c800004c99b80ef0b564128884b (patch)
tree63b611c651490ad0e2d84cc33dd1ddbf2ad1d674 /libdiskfs/diskfs.h
parent6edeb62e3980f1a3769ed74cb81567744b5b6e92 (diff)
1999-10-06 Thomas Bushnell, BSG <tb@mit.edu>
* lookup.c (diskfs_lookup): NAME is no longer const. Update documentation Strip leading and trailing slashes from NAME before using it. * diskfs.h (diskfs_lookup): NAME is no longer const. Update documentation. 1999-10-05 Thomas Bushnell, BSG <tb@mit.edu> * priv.h (CHANGE_NODE_FIELD): Use diskfs_check_readonly instead of directly reading diskfs_readonly.
Diffstat (limited to 'libdiskfs/diskfs.h')
-rw-r--r--libdiskfs/diskfs.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h
index 73c55faf..65452c60 100644
--- a/libdiskfs/diskfs.h
+++ b/libdiskfs/diskfs.h
@@ -643,6 +643,11 @@ struct node *diskfs_make_node (struct disknode *dn);
either be LOOKUP, CREATE, RENAME, or REMOVE. CRED identifies the
user making the call.
+ NAME will have leading and trailing slashes stripped. It is an
+ error if there are internal slashes. NAME will be modified in
+ place if there are slashes in it; it is therefore an error to
+ specify a constant NAME which contains slashes.
+
If the name is found, return zero, and (if NP is nonzero) set *NP
to point to the node for it, locked. If the name is not found,
return ENOENT, and (if NP is nonzero) set *NP to zero. If NP is
@@ -685,7 +690,7 @@ struct node *diskfs_make_node (struct disknode *dn);
This function is a wrapper for diskfs_lookup_hard.
*/
error_t diskfs_lookup (struct node *dp,
- const char *name, enum lookup_type type,
+ char *name, enum lookup_type type,
struct node **np, struct dirstat *ds,
struct protid *cred);