On Thu, Feb 21, 2013 at 04:46:14PM +0100, Swâmi Petaramesh wrote: > Hi again, > > Having numerous snapshots, I prefer to ask rather than take the risk of > exploding my storage space, better safe than sorry ;-) > > "man btrfs" states : > > « NOTE: defragmenting with kernels up to 2.6.37 will unlink COW-ed > copies of data, don't use it if you use snapshots, have > deduplicated your data or made copies with cp --reflink. » > > I use : > # uname -r > 3.5.0-24-generic > > ...So should I expect that defraging my BTRFS will be smart enough not > to uncow my snapshots ? Is it actually able to defrag both the file and > its snapshots altogether, keeping all this as a single physical copy of > the defragged data ?
Well, there is already a patch which addresses your concern and it's 'snapshot-aware defrag' feature and now in v6, it's not merged yet. thanks, liubo > > TIA. > > -- > Swâmi Petaramesh <sw...@petaramesh.org> http://petaramesh.org PGP 9076E32E > Ne cherchez pas : Je ne suis pas sur Facebook. > > -- > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html