summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8acd6c5)
raw | patch | inline | side by side (parent: 8acd6c5)
author | octo <octo> | |
Fri, 21 Apr 2006 07:19:06 +0000 (07:19 +0000) | ||
committer | octo <octo> | |
Fri, 21 Apr 2006 07:19:06 +0000 (07:19 +0000) |
src/nfs.c | patch | blob | history |
diff --git a/src/nfs.c b/src/nfs.c
index efb8dc68b542954443ddc4feb925b91153bf0823..d0f33c5238269638d00ae52b8bb462b3489ddb0f 100644 (file)
--- a/src/nfs.c
+++ b/src/nfs.c
#define MODULE_NAME "nfs"
-#if defined(KERNEL_LINUX) || defined(HAVE_LIBKSTAT)
+/* #if defined(KERNEL_LINUX) || defined(HAVE_LIBKSTAT) */
+#if KERNEL_LINUX
# define NFS_HAVE_READ 1
#else
# define NFS_HAVE_READ 0
};
static int nfs3_procedures_ds_num = 22;
-#ifdef HAVE_LIBKSTAT
+#if HAVE_LIBKSTAT && 0
extern kstat_ctl_t *kc;
static kstat_t *nfs2_ksp_client;
static kstat_t *nfs2_ksp_server;
static void nfs_init (void)
{
-#ifdef HAVE_LIBKSTAT
+#if HAVE_LIBKSTAT && 0
kstat_t *ksp_chain;
nfs2_ksp_client = NULL;
}
#endif /* NFS_HAVE_READ */
-#if defined(KERNEL_LINUX)
+#if KERNEL_LINUX
static void nfs_read_stats_file (FILE *fh, char *inst)
{
char buffer[BUFSIZE];
#endif /* defined(KERNEL_LINUX) */
#undef BUFSIZE
-#ifdef HAVE_LIBKSTAT
+#if HAVE_LIBKSTAT && 0
static void nfs2_read_kstat (kstat_t *ksp, char *inst)
{
unsigned long long values[18];
#if NFS_HAVE_READ
static void nfs_read (void)
{
-#if defined(KERNEL_LINUX)
+#if KERNEL_LINUX
FILE *fh;
if ((fh = fopen ("/proc/net/rpc/nfs", "r")) != NULL)
/* #endif defined(KERNEL_LINUX) */
-#elif defined(HAVE_LIBKSTAT)
+#elif HAVE_LIBKSTAT && 0
if (nfs2_ksp_client != NULL)
nfs2_read_kstat (nfs2_ksp_client, "client");
if (nfs2_ksp_server != NULL)