When the user didn't specify chunk size and disk contained chunk size, the kernel wouldn't set the disk's chunk size. This is a bug. It was not triggered by lvm. Signed-off-by: Mikulas Patocka --- drivers/md/dm-exception-store.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) Index: linux-2.6.25.3/drivers/md/dm-exception-store.c =================================================================== --- linux-2.6.25.3.orig/drivers/md/dm-exception-store.c 2008-05-23 21:04:38.000000000 +0200 +++ linux-2.6.25.3/drivers/md/dm-exception-store.c 2008-05-23 21:05:06.000000000 +0200 @@ -283,13 +283,14 @@ static int read_header(struct pstore *ps ps->version = le32_to_cpu(dh->version); chunk_size = le32_to_cpu(dh->chunk_size); - if (!chunk_size_supplied || ps->snap->chunk_size == chunk_size) + if (ps->snap->chunk_size == chunk_size) return 0; - DMWARN("chunk size %llu in device metadata overrides " - "table chunk size of %llu.", - (unsigned long long)chunk_size, - (unsigned long long)ps->snap->chunk_size); + if (chunk_size_supplied) + DMWARN("chunk size %llu in device metadata overrides " + "table chunk size of %llu.", + (unsigned long long)chunk_size, + (unsigned long long)ps->snap->chunk_size); /* We had a bogus chunk_size. Fix stuff up. */ free_area(ps);