Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/nfsserver/nfs_nfsdsocket.c
Show First 20 Lines • Show All 454 Lines • ▼ Show 20 Lines | static int nfsv3to4op[NFS_V3NPROCS] = { | ||||
NFSV4OP_READDIR, | NFSV4OP_READDIR, | ||||
NFSV4OP_READDIRPLUS, | NFSV4OP_READDIRPLUS, | ||||
NFSV4OP_FSSTAT, | NFSV4OP_FSSTAT, | ||||
NFSV4OP_FSINFO, | NFSV4OP_FSINFO, | ||||
NFSV4OP_PATHCONF, | NFSV4OP_PATHCONF, | ||||
NFSV4OP_COMMIT, | NFSV4OP_COMMIT, | ||||
}; | }; | ||||
u_int16_t nfsrv_auevent[NFS_V3NPROCS] = { | |||||
AUE_NULL, | |||||
AUE_NFSRPC_GETATTR, | |||||
AUE_NFSRPC_SETATTR, | |||||
AUE_NFSRPC_LOOKUP, | |||||
AUE_NFSRPC_ACCESS, | |||||
AUE_NFSRPC_READLINK, | |||||
AUE_NFSRPC_READ, | |||||
AUE_NFSRPC_WRITE, | |||||
AUE_NFSRPC_CREATE, | |||||
AUE_NFSRPC_MKDIR, | |||||
AUE_NFSRPC_SYMLINK, | |||||
AUE_NFSRPC_MKNOD, | |||||
AUE_NFSRPC_REMOVE, | |||||
AUE_NFSRPC_RMDIR, | |||||
AUE_NFSRPC_RENAME, | |||||
AUE_NFSRPC_LINK, | |||||
AUE_NFSRPC_READDIR, | |||||
AUE_NFSRPC_READDIRPLUS, | |||||
AUE_NFSRPC_FSSTAT, | |||||
AUE_NFSRPC_FSINFO, | |||||
AUE_NFSRPC_PATHCONF, | |||||
AUE_NFSRPC_COMMIT, | |||||
}; | |||||
static struct mtx nfsrvd_statmtx; | static struct mtx nfsrvd_statmtx; | ||||
MTX_SYSINIT(nfsst, &nfsrvd_statmtx, "NFSstat", MTX_DEF); | MTX_SYSINIT(nfsst, &nfsrvd_statmtx, "NFSstat", MTX_DEF); | ||||
static void | static void | ||||
nfsrvd_statstart(int op, struct bintime *now) | nfsrvd_statstart(int op, struct bintime *now) | ||||
{ | { | ||||
if (op > (NFSV42_NOPS + NFSV4OP_FAKENOPS)) { | if (op > (NFSV42_NOPS + NFSV4OP_FAKENOPS)) { | ||||
printf("%s: op %d invalid\n", __func__, op); | printf("%s: op %d invalid\n", __func__, op); | ||||
▲ Show 20 Lines • Show All 730 Lines • Show Last 20 Lines |