Details
-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
9223372036854775807
Description
osp_pre_status=-ENOSPC is used to skip OST from object allocation. The error was set when OST available space is less than 0.1% of total OST size. This value is not configurable. For many cases 0.1% is too low, because append works for existing files. So, procfs files was added for configuration.
Alexander, could you please resubmit your patch once you have fixed the two test failures (
LU-7550andLU-7552. To run those tests multiple times to get a good confidence about the fix, you should use:To run a bunch of tests and two sets in parallel so it doesn't take so long.
There was also a code late review comment internally that returning -ENOSPC from ->statfs() is probably not the right thing, because this may cause unexpected errors if the caller just wants to know the space usage. Instead, it should set OS_STATE_ENOSPC or OS_STATE_ENOINO in the os_state field and the caller should check that. Having two separate flags also avoids the need to guess what the -ENOSPC error is for.