nfs4proc.c (2f425878b6a71571341dcd3f9e9d1a6f6355da9c) nfs4proc.c (069b6ad4bb20abf175ea7875e82e8002154773af)
1/*
2 * fs/nfsd/nfs4proc.c
3 *
4 * Server-side procedures for NFSv4.
5 *
6 * Copyright (c) 2002 The Regents of the University of Michigan.
7 * All rights reserved.
8 *

--- 1087 unchanged lines hidden (view full) ---

1096 .op_func = (nfsd4op_func)nfsd4_write,
1097 .op_name = "OP_WRITE",
1098 },
1099 [OP_RELEASE_LOCKOWNER] = {
1100 .op_func = (nfsd4op_func)nfsd4_release_lockowner,
1101 .op_flags = ALLOWED_WITHOUT_FH | ALLOWED_ON_ABSENT_FS,
1102 .op_name = "OP_RELEASE_LOCKOWNER",
1103 },
1/*
2 * fs/nfsd/nfs4proc.c
3 *
4 * Server-side procedures for NFSv4.
5 *
6 * Copyright (c) 2002 The Regents of the University of Michigan.
7 * All rights reserved.
8 *

--- 1087 unchanged lines hidden (view full) ---

1096 .op_func = (nfsd4op_func)nfsd4_write,
1097 .op_name = "OP_WRITE",
1098 },
1099 [OP_RELEASE_LOCKOWNER] = {
1100 .op_func = (nfsd4op_func)nfsd4_release_lockowner,
1101 .op_flags = ALLOWED_WITHOUT_FH | ALLOWED_ON_ABSENT_FS,
1102 .op_name = "OP_RELEASE_LOCKOWNER",
1103 },
1104
1105 /* NFSv4.1 operations */
1106 [OP_EXCHANGE_ID] = {
1107 .op_func = (nfsd4op_func)nfsd4_exchange_id,
1108 .op_flags = ALLOWED_WITHOUT_FH,
1109 .op_name = "OP_EXCHANGE_ID",
1110 },
1111 [OP_CREATE_SESSION] = {
1112 .op_func = (nfsd4op_func)nfsd4_create_session,
1113 .op_flags = ALLOWED_WITHOUT_FH,
1114 .op_name = "OP_CREATE_SESSION",
1115 },
1116 [OP_DESTROY_SESSION] = {
1117 .op_func = (nfsd4op_func)nfsd4_destroy_session,
1118 .op_flags = ALLOWED_WITHOUT_FH,
1119 .op_name = "OP_DESTROY_SESSION",
1120 },
1121 [OP_SEQUENCE] = {
1122 .op_func = (nfsd4op_func)nfsd4_sequence,
1123 .op_flags = ALLOWED_WITHOUT_FH,
1124 .op_name = "OP_SEQUENCE",
1125 },
1104};
1105
1106static const char *nfsd4_op_name(unsigned opnum)
1107{
1108 if (opnum < ARRAY_SIZE(nfsd4_ops))
1109 return nfsd4_ops[opnum].op_name;
1110 return "unknown_operation";
1111}

--- 47 unchanged lines hidden ---
1126};
1127
1128static const char *nfsd4_op_name(unsigned opnum)
1129{
1130 if (opnum < ARRAY_SIZE(nfsd4_ops))
1131 return nfsd4_ops[opnum].op_name;
1132 return "unknown_operation";
1133}

--- 47 unchanged lines hidden ---