Quota is incremented on COW/write at fs_helpers.rs (line 57), but commit and abort delete branch delta directories at branch.rs (line 667), branch.rs (line 728), and branch.rs (line 776) without subtracting their sizes. Nested commit also copies child deltas into the parent without adding quota for the new parent copies. Over time, ENOSPC behavior can become detached from actual disk use.
Quota is incremented on COW/write at fs_helpers.rs (line 57), but commit and abort delete branch delta directories at branch.rs (line 667), branch.rs (line 728), and branch.rs (line 776) without subtracting their sizes. Nested commit also copies child deltas into the parent without adding quota for the new parent copies. Over time, ENOSPC behavior can become detached from actual disk use.