diff options
author | Alasdair G Kergon <agk@redhat.com> | 2006-06-26 00:27:18 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-26 09:58:34 -0700 |
commit | c51c2752491e5e771de6c8861a85ba46752d7888 (patch) | |
tree | 9371dab2a38e1a17bf91d9bc143b47b1c58c5fb7 /crypto/aes.c | |
parent | b877a96409a3a99f2ce27b3c6473c9b28298ac7c (diff) | |
download | talos-op-linux-c51c2752491e5e771de6c8861a85ba46752d7888.tar.gz talos-op-linux-c51c2752491e5e771de6c8861a85ba46752d7888.zip |
[PATCH] dm snapshot: unify chunk_size
Persistent snapshots currently store a private copy of the chunk size.
Userspace also supplies the chunk size when loading a snapshot. Ensure
consistency by only storing the chunk_size in one place instead of two.
Currently the two sizes will differ if the chunk size supplied by userspace
does not match the chunk size an existing snapshot actually uses. Amongst
other problems, this causes an incorrect 'percentage full' to be reported.
The patch ensures consistency by only storing the chunk_size in one place,
removing it from struct pstore. Some initialisation is delayed until the
correct chunk_size is known. If read_header() discovers that the wrong chunk
size was supplied, the 'area' buffer (which the header already got read into)
is reinitialised to the correct size.
[akpm: too late for 2.6.17 - suitable for 2.6.17.x after it has settled]
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'crypto/aes.c')
0 files changed, 0 insertions, 0 deletions