zfs/tests/zfs-tests/tests/functional/no_space
Akash B ba769ea351
Fix ENOSPC for extended quota
When unlinking multiple files from a pool at 100% capacity, it
was possible for ENOSPC to be returned after the first few unlinks.
This issue was fixed previously by PR #13172 but then this was
again introduced by PR #13839.

This is resolved using the existing mechanism of returning ERESTART
when over quota as long as we know enough space will shortly be
available after processing the pending deferred frees.

Also, updated the existing testcase which reliably reproduced the
issue without this patch.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Dipak Ghosh <dipak.ghosh@hpe.com>
Signed-off-by: Akash B <akash-b@hpe.com>
Closes #15312
2023-09-28 14:10:07 -07:00
..
cleanup.ksh Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
enospc.cfg Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
enospc_001_pos.ksh Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
enospc_002_pos.ksh tests: don't >-redirect without eval 2022-04-01 17:57:19 -07:00
enospc_003_pos.ksh Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
enospc_df.ksh tests: review every awk(1) invocation 2022-04-01 17:57:55 -07:00
enospc_ganging.ksh EIO caused by encryption + recursive gang 2023-02-06 09:37:06 -08:00
enospc_rm.ksh Fix ENOSPC for extended quota 2023-09-28 14:10:07 -07:00
setup.ksh Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00