extfs.tune is misdocumented and missing a keyword argument #54426
Labels
Bug
broken, incorrect, or confusing behavior
Confirmed
Salt engineer has confirmed bug/feature - often including a MCVE
Execution-Module
severity-low
4th level, cosemtic problems, work around exists
Milestone
Description of Issue
In the documentation for
extfs.tune
"reserved" is listed as a keyword argument twice (lines 148 and 153 insalt/modules/extfs.py
for versions 2018.3 and 2019.2) once for the percentage reserved and once for the number of blocks. It is interpreted as the block count when passing the flags totune2fs
.It seems that a second kwarg (perhaps
reserved_percentage
?) should be used in the docs and that added to the kwarg_map to actually allow the reserved blocks to be set as a percentage and to avoid the confusion.Setup
N/A
Steps to Reproduce Issue
N/A
Versions Report
2018.3. and 2019.2 (at least)
The text was updated successfully, but these errors were encountered: