This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
openbsd:shell:quotas [2020/02/27 01:37] pirata |
openbsd:shell:quotas [2020/02/27 01:42] pirata [Defining limits] |
||
---|---|---|---|
Line 16: | Line 16: | ||
====== Defining limits ====== | ====== Defining limits ====== | ||
- | To set thresholds, We use edquota(8). Keep in mind that values are measured in KB (1MB equals to 1000KB). | + | To set thresholds, We use edquota(8). Keep in mind that values are measured in KB (1000KB equals to 1MB). |
edquota(8) invokes vi(1) unless you specify other editor. | edquota(8) invokes vi(1) unless you specify other editor. | ||
Line 39: | Line 39: | ||
<code bash> | <code bash> | ||
- | # edquota -p PiRATA jrmu jimmy_will dennis | + | $ edquota -p PiRATA jrmu jimmy_will dennis |
</code> | </code> | ||
Line 70: | Line 70: | ||
/home 3704 5000000 10000000 58 0 0 | /home 3704 5000000 10000000 58 0 0 | ||
</code> | </code> | ||
- | |||
- | ====== Checking filesystem consistency ====== | ||
- | quotacheck(8) examines each filesystem, builds a table of current disk usage, and compares this table against that recorded in the disk quota file for the filesystem. If any inconsistencies are detected, both the quota file and the current system copy of the incorrect quotas are updated (the latter only occurs if an active filesystem is checked). | ||
- | |||
- | This verification runs at boot time before enabling disk quotas with quotaon(8). |