Commit de0d95c
Andreas Gruenbacher
gfs2: Check quota consistency on mount
In gfs2_quota_init(), make sure that the per-node "quota_change%u" file
doesn't contain duplicate uids/gids. Those duplicates would cause us to
acquire the glock corresponding to those ids repeatedly, which the glock
code doesn't allow.
When finding inconsistencies, we wipe them out and ignore them. The
resulting quotas will likely be inconsistent, and running quotacheck(1)
is advised.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>1 parent 5131652 commit de0d95c
1 file changed
Lines changed: 31 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1427 | 1427 | | |
1428 | 1428 | | |
1429 | 1429 | | |
1430 | | - | |
| 1430 | + | |
1431 | 1431 | | |
1432 | 1432 | | |
1433 | 1433 | | |
| |||
1443 | 1443 | | |
1444 | 1444 | | |
1445 | 1445 | | |
1446 | | - | |
| 1446 | + | |
1447 | 1447 | | |
1448 | 1448 | | |
1449 | | - | |
| 1449 | + | |
1450 | 1450 | | |
1451 | 1451 | | |
1452 | 1452 | | |
| |||
1468 | 1468 | | |
1469 | 1469 | | |
1470 | 1470 | | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
1471 | 1494 | | |
1472 | 1495 | | |
1473 | 1496 | | |
1474 | | - | |
1475 | | - | |
1476 | | - | |
1477 | 1497 | | |
1478 | 1498 | | |
| 1499 | + | |
1479 | 1500 | | |
1480 | 1501 | | |
1481 | 1502 | | |
1482 | 1503 | | |
| 1504 | + | |
| 1505 | + | |
1483 | 1506 | | |
1484 | 1507 | | |
1485 | 1508 | | |
| |||
1491 | 1514 | | |
1492 | 1515 | | |
1493 | 1516 | | |
| 1517 | + | |
| 1518 | + | |
1494 | 1519 | | |
1495 | 1520 | | |
1496 | 1521 | | |
| |||
0 commit comments