Esempio n. 1
0
void
cleanup_module(void)
#endif
{
#if defined(AFS_CACHE_BYPASS)
    afs_warn("Cache bypass patched libafs module cleaning up.\n");
#endif

    afs_shutdown_pagecopy();

#ifdef LINUX_KEYRING_SUPPORT
    osi_keyring_shutdown();
#endif
    osi_sysctl_clean();
#ifndef LINUX_KEYRING_SUPPORT
    osi_syscall_clean();
#endif
    unregister_filesystem(&afs_fs_type);

    afs_destroy_inodecache();
    osi_linux_free_afs_memory();

#ifdef AFS_LINUX24_ENV
    osi_ioctl_clean();
    osi_proc_clean();
#endif

    return;
}
Esempio n. 2
0
void
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;
}