elastio / elastio-snap

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

Create cow file precisely according to the user setting #255

Closed skypodolsky closed 1 year ago

skypodolsky commented 1 year ago

Currently, the size of the COW file is the sum of the header size, mapping section, and the snapshot data itself. This was added on purpose in one of the previous tasks and caused some issues with other tests. This approach implicitly adds some additional size to the fallocate specified by the user. It is now agreed that for the system administrators, it is more critical to precisely control the used disk space used, so we will bring the initial behavior back. This means, that if the user specifies 10% of the disk for the COW file, this should be the precise size of the COW file and no additional data should be added to it.

Changes:

Closes #253