datto / dattobd

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

nr_changed_blocks to bytes ? #258

Open ss-17 opened 3 years ago

ss-17 commented 3 years ago

Hello,

Its not an issue but just a quick query. How do I calculate changed bytes from: nr_changed_blocks after doing:

dbdctl setup-snapshot /dev/sda1 /.datto 0

Thanks

nixomose commented 3 years ago

everything in dattobd is 4k, including cow block size, so multiply nr_changed_blocks by 4096 and that should be it.