Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to rmmod redirfs.ko #9

Open
wangchuanfang opened this issue Aug 1, 2018 · 7 comments
Open

How to rmmod redirfs.ko #9

wangchuanfang opened this issue Aug 1, 2018 · 7 comments

Comments

@wangchuanfang
Copy link

HI, I want ro rmmod redirfs.ko, and add the code:
"
static void __exit rfs_exit(void)
{
rfs_sysfs_delete();
rfs_file_cache_destory();
rfs_inode_cache_destroy();
rfs_dentry_cache_destory();
if (rfs_info_none)
rfs_info_put(rfs_info_none);
}
module_exit(rfs_exit);
"

/rfsctl/rfsctl -f roflt -i /home/test
/rfsctl/rfsctl -f roflt -R /home/test
/rfsctl/rfsctl -f roflt -u
rmmod roflt.ko
rmmod redirfs.ko
The system has been restarted, How can i rmmod redirfs.ko

@slavaim
Copy link
Owner

slavaim commented Aug 3, 2018

Hi

I am currently a little busy. I will research on this issue in my spare time. Generally it is not an easy task to unload a file system filter (independent of OS - Windows, Linux etc). As an interim measure you can disable module unloading for your project thus requiring a reload to update.

@wangchuanfang
Copy link
Author

HI,
I know how to unload a file system filter , but I also hope to unload the redirfs.ko. I hope you take the time to help solve this problem.Thank you very much

@wangchuanfang
Copy link
Author

HI,
I know how to unload a file system filter , but I also hope to unload the redirfs.ko. I hope you take the time to help solve this problem.Thank you very much.

@wangchuanfang
Copy link
Author

[root@localhost bak]# ./rfsctl -f roflt -c
[root@localhost bak]# ./rfsctl -f roflt -u
error: Device or resource busy
[root@localhost bak]# cat /sys/fs/redirfs/filters/roflt/paths
[root@localhost bak]# cat /sys/fs/redirfs/filters/roflt/tasks
[root@localhost bak]# ls
hligd librfsctl.so redirfs.ko rfsctl roflt.ko
[root@localhost bak]# ./rfsctl -f roflt -u
error: Device or resource busy

The roflt.ko can not unload, but I also hope to unload the redirfs.ko and roflt.ko.

@tohosys
Copy link

tohosys commented Apr 17, 2019

Dear wangchuanfang,
I got the same problem.
Did you have a solution?
Thanks.

@wangchuanfang
Copy link
Author

Sorry, I can't find a solution either

@tohosys
Copy link

tohosys commented Jun 24, 2019

@wangchuanfang
check my solution, please...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants