[pnfs] [PATCH] nfs41: define CB_NOTIFY_DEVICEID as not supported
Benny Halevy
bhalevy at panasas.com
Thu Feb 7 12:02:31 EST 2008
Need to return NFS4ERR_NOTSUPP for CB_NOTIFY_DEVICEID rather
than NFS4ERR_OP_ILLEGAL.
Signed-off-by: Benny Halevy <bhalevy at panasas.com>
---
fs/nfs/callback.h | 1 +
fs/nfs/callback_xdr.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/fs/nfs/callback.h b/fs/nfs/callback.h
index 46d0dbc..8a2d958 100644
--- a/fs/nfs/callback.h
+++ b/fs/nfs/callback.h
@@ -30,6 +30,7 @@ enum nfs4_callback_opnum {
OP_CB_SEQUENCE = 11,
OP_CB_WANTS_CANCELLED = 12,
OP_CB_NOTIFY_LOCK = 13,
+ OP_CB_NOTIFY_DEVICEID = 14,
OP_CB_ILLEGAL = 10044,
};
diff --git a/fs/nfs/callback_xdr.c b/fs/nfs/callback_xdr.c
index 7a919f3..916424b 100644
--- a/fs/nfs/callback_xdr.c
+++ b/fs/nfs/callback_xdr.c
@@ -581,6 +581,7 @@ static __be32 process_op(uint32_t minorversion, int nop,
case OP_CB_RECALL_SLOT:
case OP_CB_WANTS_CANCELLED:
case OP_CB_NOTIFY_LOCK:
+ case OP_CB_NOTIFY_DEVICEID:
op = &callback_ops[0];
status = htonl(NFS4ERR_NOTSUPP);
break;
--
1.5.3.3
More information about the pNFS
mailing list