diff options
author | Mark McLoughlin <markmc@redhat.com> | 2006-10-03 04:15:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 11:04:14 -0400 |
commit | 4c7e3bf44d0ae227ea1ee87c2197212e65d043d7 (patch) | |
tree | 658140b966d78f4709de10cd03e0bfdade6bc13e /drivers/md/dm-snap.h | |
parent | 92c060a692a0c3482cdfcaf346cb2f7572368895 (diff) |
[PATCH] dm snapshot: allow zero chunk_size
The chunk size of snapshots cannot be changed so it is redundant to require it
as a parameter when activating an existing snapshot. Allow a value of zero in
this case and ignore it. For a new snapshot, use a default value if zero is
specified.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md/dm-snap.h')
-rw-r--r-- | drivers/md/dm-snap.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/md/dm-snap.h b/drivers/md/dm-snap.h index fdec1e2dc87..221eb8880c8 100644 --- a/drivers/md/dm-snap.h +++ b/drivers/md/dm-snap.h | |||
@@ -128,10 +128,9 @@ int dm_add_exception(struct dm_snapshot *s, chunk_t old, chunk_t new); | |||
128 | * Constructor and destructor for the default persistent | 128 | * Constructor and destructor for the default persistent |
129 | * store. | 129 | * store. |
130 | */ | 130 | */ |
131 | int dm_create_persistent(struct exception_store *store, uint32_t chunk_size); | 131 | int dm_create_persistent(struct exception_store *store); |
132 | 132 | ||
133 | int dm_create_transient(struct exception_store *store, | 133 | int dm_create_transient(struct exception_store *store); |
134 | struct dm_snapshot *s, int blocksize); | ||
135 | 134 | ||
136 | /* | 135 | /* |
137 | * Return the number of sectors in the device. | 136 | * Return the number of sectors in the device. |