redirfs icon indicating copy to clipboard operation
redirfs copied to clipboard

How to rmmod redirfs.ko

Open wangchuanfang opened this issue 7 years ago • 7 comments

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

wangchuanfang avatar Aug 01 '18 09:08 wangchuanfang

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.

slavaim avatar Aug 03 '18 04:08 slavaim

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 avatar Aug 07 '18 05:08 wangchuanfang

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 avatar Aug 07 '18 05:08 wangchuanfang

[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.

wangchuanfang avatar Aug 17 '18 01:08 wangchuanfang

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

tohosys avatar Apr 17 '19 07:04 tohosys

Sorry, I can't find a solution either

wangchuanfang avatar Apr 18 '19 06:04 wangchuanfang

@wangchuanfang check my solution, please...

tohosys avatar Jun 24 '19 07:06 tohosys