diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2012-07-27 10:08:01 -0400 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2012-07-27 10:08:01 -0400 |
commit | 8f069b41bce79b0c4b6076acd0f3d15df0a232ed (patch) | |
tree | 6cf160e729c423c3eb003e5c4f4d921a62b556ca /drivers/md/dm-stripe.c | |
parent | eb850de608cc22e0199b3797cd5c0076bae6cda0 (diff) |
dm stripe: remove minimum stripe size
There is no technical limitation in device mapper that would prevent the
dm-stripe target from using a stripe size smaller than page size.
This patch removes the limit and makes stripe volumes portable across
architectures with different page size.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-stripe.c')
-rw-r--r-- | drivers/md/dm-stripe.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/dm-stripe.c b/drivers/md/dm-stripe.c index 9690daa11c8..6a20e9ea0bf 100644 --- a/drivers/md/dm-stripe.c +++ b/drivers/md/dm-stripe.c | |||
@@ -109,8 +109,7 @@ static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv) | |||
109 | return -EINVAL; | 109 | return -EINVAL; |
110 | } | 110 | } |
111 | 111 | ||
112 | if (kstrtouint(argv[1], 10, &chunk_size) || | 112 | if (kstrtouint(argv[1], 10, &chunk_size) || !chunk_size) { |
113 | (chunk_size < (PAGE_SIZE >> SECTOR_SHIFT))) { | ||
114 | ti->error = "Invalid chunk_size"; | 113 | ti->error = "Invalid chunk_size"; |
115 | return -EINVAL; | 114 | return -EINVAL; |
116 | } | 115 | } |