#include <afsconfig.h>
#include "afs/param.h"
-RCSID
- ("$Header$");
-
-#if !defined(AFS_NONFSTRANS) || defined(AFS_AIX_IAUTH_ENV)
#include <linux/module.h> /* early to avoid printf->printk mapping */
#include "afs/sysincludes.h"
#include "afsincludes.h"
#endif
static unsigned long nfs_server_addr = 0;
-#if defined(module_param)
+#if defined(module_param) && LINUX_VERSION_CODE > KERNEL_VERSION(2,6,9)
module_param(nfs_server_addr, long, 0);
#else
MODULE_PARM(nfs_server_addr, "l");
init_module(void)
#endif
{
+#if !defined(EXPORTED_PROC_ROOT_FS) && defined(AFS_LINUX24_ENV)
+ char path[64];
+#endif
int err;
osi_Init();
if (err)
return err;
#ifdef AFS_LINUX24_ENV
+#if defined(EXPORTED_PROC_ROOT_FS)
openafs_procfs = proc_mkdir(PROC_FSDIRNAME, proc_root_fs);
+#else
+ sprintf(path, "fs/%s", PROC_FSDIRNAME);
+ openafs_procfs = proc_mkdir(path, NULL);
+#endif
osi_ioctl_init();
#endif
cleanup_module(void)
#endif
{
+#if !defined(EXPORTED_PROC_ROOT_FS) && defined(AFS_LINUX24_ENV)
+ char path[64];
+#endif
osi_syscall_clean();
osi_linux_free_afs_memory();
#ifdef AFS_LINUX24_ENV
osi_ioctl_clean();
+#if defined(EXPORTED_PROC_ROOT_FS)
remove_proc_entry(PROC_FSDIRNAME, proc_root_fs);
+#else
+ sprintf(path, "fs/%s", PROC_FSDIRNAME);
+ remove_proc_entry(path, NULL);
+#endif
#endif
return;
}
return EINVAL;
}
#endif
-#endif /* AFS_NONFSTRANS */
-