summaryrefslogtreecommitdiff
path: root/nfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-05-10 22:15:05 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-05-10 22:15:05 +0000
commit0b58d5f723b7a202da6dc82b62fd6daf7412ce35 (patch)
tree92efcfc479b8b844f6b51d63d10371fb1f4dfb94 /nfs
parentc416ab311d679cbc0814c7afed090d1baf9cd324 (diff)
(netfs_attempt_rename, netfs_attempt_link): New parm EXCL, but don't
implement the hard case yet.
Diffstat (limited to 'nfs')
-rw-r--r--nfs/ops.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/nfs/ops.c b/nfs/ops.c
index 339f91c3..f0ecb882 100644
--- a/nfs/ops.c
+++ b/nfs/ops.c
@@ -497,12 +497,15 @@ netfs_attempt_rmdir (struct netcred *cred, struct node *np,
<hurd/netfs.h>. */
error_t
netfs_attempt_link (struct netcred *cred, struct node *dir,
- struct node *np, char *name)
+ struct node *np, char *name, int excl)
{
int *p;
void *rpcbuf;
error_t err = 0;
+ if (!excl)
+ return EOPNOTSUPP; /* XXX */
+
/* If we have postponed a translator setting on an unlinked node,
then here's where we set it, by creating the new node instead of
doing a normal link. */
@@ -802,12 +805,16 @@ netfs_attempt_unlink (struct netcred *cred, struct node *dir,
<hurd/netfs.h>. */
error_t
netfs_attempt_rename (struct netcred *cred, struct node *fromdir,
- char *fromname, struct node *todir, char *toname)
+ char *fromname, struct node *todir, char *toname,
+ int excl)
{
int *p;
void *rpcbuf;
error_t err;
+ if (excl)
+ return EOPNOTSUPP; /* XXX */
+
mutex_lock (&fromdir->lock);
p = nfs_initialize_rpc (NFSPROC_RENAME, cred, 0, &rpcbuf, fromdir, -1);
p = xdr_encode_fhandle (p, &fromdir->nn->handle);