Commit 5f756ca
dm-stripe: limit chunk_sectors to the stripe size
Currently we use min io size as the chunk size when deciding on the limit
of atomic write size.
Using min io size is not reliable, as this may be mutated when stacking
the bottom device limits.
The block stacking limits will rely on chunk_sectors in future, so set
this value (to the chunk size).
Introduce a flag - DM_TARGET_STRIPED - and check this in
dm_set_device_limits() when setting this limit.
Signed-off-by: John Garry <[email protected]>1 parent 10beabf commit 5f756ca
3 files changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
| 469 | + | |
| 470 | + | |
470 | 471 | | |
471 | 472 | | |
472 | 473 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
433 | 437 | | |
434 | 438 | | |
435 | 439 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
312 | 315 | | |
313 | 316 | | |
314 | 317 | | |
| |||
0 commit comments