Chris Mason wrote:
I wonder how well would deduplication work with defragmentation? One
excludes the other to some extent.
Very much so ;) Ideally we end up doing dedup in large extents, but it
will definitely increase the overall fragmentation of the FS.
Defragmentation could lead to interesting problems if it's not aware of
dedupliction.
I can imagine "freeing up space" (i.e., as seen by userspace) where
duplicated blocks are found, but keeping track of duplicated blocks
internally (and not allowing to overwrite any block which is duplicated).
Only when free space is really needed, "deduplicate" blocks which have
more copies, and allow to overwrite them with data.
Perhaps complicated though.
--
Tomasz Chmielewski
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html