Re: dm-cache: resize_cache_dev resizing to wrong size ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Nov 30, 2013 at 12:58:42PM +0100, Vincent Pelletier wrote:
> Can someone confirm my reading ?

Confirmed.  What confused me for a bit was why the tests were passing:

https://github.com/jthornber/device-mapper-test-suite/blob/master/lib/dmtest/tests/cache/resize_tests.rb

This bug means the superblock *will* record the new cache size, but
the arrays will not be resized.

The cache_check tool needs to be improved to spot this.  At the moment
it just checks that the btree is full of valid array blocks, and
determines missing ranges for damaged trees.  In our case the trees
are fine, just not big enough.

I also think I need to add more tests that force data migration on a
newly resized cache.

Thanks,

- Joe

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel




[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux