redirfs icon indicating copy to clipboard operation
redirfs copied to clipboard

After file move, filter unregister failed

Open tohosys opened this issue 5 years ago • 0 comments

Dear @slavaim,

After some mv operations in filtetring area, we can not unregister filter module with msg of "Device or resource busy".

OS:

  • CentOS 6 or 7

Test:

  1. rfsctl -f mvflt -i /test1
  2. mv /test1/file1 /test1/file2
  3. rfsctl -f mvflt -c
  4. echo -n "1" > /sys/fs/redirfs/filters/mvflt/unregister bash: echo: write error: Device or resource busy

Cause:

  • counter mismatch error at following line on "redirfs_unregister_filter" function: -- if (atomic_read(&rflt->count) != 3) {

Would you please give me some solution?

Thanks.

tohosys avatar Feb 11 '20 02:02 tohosys