lib/repo: Add min-free-space-size option
Similar to min-free-space-percent but it supports specific sizes (in MB, GB or TB). Also, making min-free-space-percent and -size mutually exclusive. min-free-space-percent does not give a fine tuning of the free disk space that a user might decide to keep. It can translate to very large size (e.g. 1% = ~10GB on 1TB HDD) or very small (e.g. 1% = ~330MB on 32GB system like Endless devices). Hence, it makes sense to introduce a config option to honor specific size as per the user. Closes: #1616 Approved by: jlebon
This commit is contained in:
1 parent
c767f7b739
commit
31809d32f2
5 files changed
+132
-19
No files matched your search
@@ -124,6 +124,15 @@ Boston, MA 02111-1307, USA.
|
||||
keep free. The default value is 3.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>min-free-space-size</varname></term>
|
||||
<listitem><para>Value (in MB, GB or TB) that specifies a minimum space (in blocks)
|
||||
in the underlying filesystem to keep free. Also, note that min-free-space-percent
|
||||
and min-free-space-size are mutually exclusive. Examples of acceptable values:
|
||||
500MB, 1GB etc.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>add-remotes-config-dir</varname></term>
|
||||
<listitem>
|
||||
|
||||
Reference in new issue
Block a user