diff options
-rw-r--r-- | Documentation/device-mapper/striped.txt | 3 | ||||
-rw-r--r-- | drivers/md/dm-stripe.c | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/Documentation/device-mapper/striped.txt b/Documentation/device-mapper/striped.txt index f34d3236b9da..953fe1d68068 100644 --- a/Documentation/device-mapper/striped.txt +++ b/Documentation/device-mapper/striped.txt | |||
@@ -16,8 +16,7 @@ Parameters: <num devs> <chunk size> [<dev path> <offset>]+ | |||
16 | <offset>: Starting sector within the device. | 16 | <offset>: Starting sector within the device. |
17 | 17 | ||
18 | One or more underlying devices can be specified. The striped device size must | 18 | One or more underlying devices can be specified. The striped device size must |
19 | be a multiple of the chunk size and a multiple of the number of underlying | 19 | be a multiple of the chunk size multiplied by the number of underlying devices. |
20 | devices. | ||
21 | 20 | ||
22 | 21 | ||
23 | Example scripts | 22 | Example scripts |
diff --git a/drivers/md/dm-stripe.c b/drivers/md/dm-stripe.c index 183db5d3e48e..1f6316ed2b31 100644 --- a/drivers/md/dm-stripe.c +++ b/drivers/md/dm-stripe.c | |||
@@ -132,7 +132,6 @@ static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv) | |||
132 | return -EINVAL; | 132 | return -EINVAL; |
133 | } | 133 | } |
134 | 134 | ||
135 | width = ti->len; | ||
136 | if (sector_div(width, stripes)) { | 135 | if (sector_div(width, stripes)) { |
137 | ti->error = "Target length not divisible by " | 136 | ti->error = "Target length not divisible by " |
138 | "number of stripes"; | 137 | "number of stripes"; |