This module is a POC of the Linux kernel "move to trash" implementation
Given the compiled module:
- Use
insmod fstrash.ko
to load the module - Use
mkdir /.fstrash
to create the trash folder - ... run
find /.fstrash -iname XXX_* -mmin 5 exec rm -f {} \;
or similar by the CRON - Use
rmdir -rf /.fstrash
to remove the trash folder - Use
rmmod fstrash
to unload the module
Written by Ilya V. Matveychikov [email protected], distributed under GPL