datto / dattobd

kernel module for taking block-level snapshots and incremental backups of Linux block devices
GNU General Public License v2.0
561 stars 120 forks source link

Ftrace hooking #303

Closed Swistusmen closed 1 year ago

Swistusmen commented 1 year ago

-introduce ftrace to get system calls adresses (from 4.17 they are hidden what causes that incremental backup after reboot is not possible) -somehow module_exit seemed to not be working during shutdown- that forced me to replace standard umount with a soft link to script which umount filesystem and then calls rmmod dattobd which leads to incremental backup after reboot

-I have tested it on multiple ubuntu LTS, on Debian 11, and Centos 8 -On RHEL9 there is a problem with building which is being solved at the same time by another person, so to not duplicate work I'm leaving this PR as it is with consciousness that there will be a lot of comments