winnielinnie
MVP
- Joined
- Oct 22, 2019
- Messages
- 3,641
Since ZFS is copy-on-write (COW), and snapshots are done at the block level (unlike other alternatives that rely on the file level), what is "supposed" to happen when you update an existing .zip archive by adding more files to it?
Assume the following:
From what I understand, it's the latter (only the modified parts), yet doesn't that depend on the software being used, such as the third-party compression program?
What if the program doesn't "play nice" with ZFS and creates a temporary copy of the archive as it's being modified, then deletes the original archive, then finally renames the temporary version back to the original file name? Wouldn't that look like a "new" file to ZFS (with new blocks), and thus taking a snapshot would take up a lot of extra space (nearly 1GB) even though only a portion of the archive was truly modified?
Assume the following:
- The .zip archive is using a default compression level (it's not simply "stored" like a .tar archive)
- The .zip archive already contains many files
- The .zip archive is decently large, say over 1GB
- You're not using deduplication
From what I understand, it's the latter (only the modified parts), yet doesn't that depend on the software being used, such as the third-party compression program?
What if the program doesn't "play nice" with ZFS and creates a temporary copy of the archive as it's being modified, then deletes the original archive, then finally renames the temporary version back to the original file name? Wouldn't that look like a "new" file to ZFS (with new blocks), and thus taking a snapshot would take up a lot of extra space (nearly 1GB) even though only a portion of the archive was truly modified?