Commit 4d6128d
Kent Overstreet
bcachefs: Guard against insufficient devices to create stripes
We can't create stripes if we don't have enough devices - this
manifested as an integer underflow bug later.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>1 parent 03cc1e6 commit 4d6128d
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1373 | 1373 | | |
1374 | 1374 | | |
1375 | 1375 | | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
1376 | 1385 | | |
1377 | 1386 | | |
1378 | 1387 | | |
| |||
1424 | 1433 | | |
1425 | 1434 | | |
1426 | 1435 | | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
1427 | 1441 | | |
1428 | 1442 | | |
1429 | 1443 | | |
| |||
1681 | 1695 | | |
1682 | 1696 | | |
1683 | 1697 | | |
1684 | | - | |
1685 | | - | |
1686 | 1698 | | |
1687 | 1699 | | |
1688 | 1700 | | |
| |||
0 commit comments