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

bdevname ifdefs #316

Closed natalia-zelazna closed 12 months ago

natalia-zelazna commented 12 months ago

This awful bunch of ifdefs is a consequence of kernel progression. Identifier bdevname disappears and for backwards compatibility reasons I added an ifdef instead of removing all calls to bdevname and replacing them with %pg. The solution with %pg instead of %s format comes from kernel source code.