You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: add folder quota integration test and bootstrap config
Stage 7 rounds out the folder quota feature with declarative bootstrap
and an end-to-end smoke test that drives a real kernel NFS client.
QuotaConfig gains a [quota.bootstrap] TOML block mapping first-level
directory names to size strings. QuotaManager::apply_bootstrap
installs each entry only when the target directory has no existing
quota record, so the block is idempotent across restarts — editing it
does not clobber tracked usage. The main binary applies the bootstrap
after opening the FSAL and before accepting traffic; the operation is
exposed through the Filesystem trait with a default no-op so
non-quota backends are unaffected.
tests/test_nfs_quota.sh mounts the NFS export and exercises the four
quota scenarios end-to-end: under-limit write, over-limit write that
must return EDQUOT, remove-then-write, and truncate-then-write. It
also checks that `df` reports the quota limit as total bytes.
The nfstest-factory CI workflow now patches the deployment ConfigMap
to enable quota and bootstrap a 1MB limit on pvc-quota-test before
running the smoke test, then runs nfstest_posix against the same
mount — POSIX tests touch root-level paths only, so the two suites
do not interfere.
arcticwolf.example.toml documents the new [quota] section and the
optional bootstrap block for operators.
Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
0 commit comments