diff options
author | Umang Jain <umang@endlessm.com> | 2018-06-12 02:36:31 +0530 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-06-13 18:57:37 +0000 |
commit | 31809d32f2268208a4f3e9e27b6882d39e4a75e0 (patch) | |
tree | 94ffdb84bdb7b8f2e1be6b5ccdef791896d2a697 /src/libostree/ostree-repo-private.h | |
parent | c767f7b73995d6228c702fcaeb1fa2b97aa93e09 (diff) | |
download | ostree-31809d32f2268208a4f3e9e27b6882d39e4a75e0.tar.gz |
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
Diffstat (limited to 'src/libostree/ostree-repo-private.h')
-rw-r--r-- | src/libostree/ostree-repo-private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libostree/ostree-repo-private.h b/src/libostree/ostree-repo-private.h index 63aa451a..eefb80e3 100644 --- a/src/libostree/ostree-repo-private.h +++ b/src/libostree/ostree-repo-private.h @@ -151,6 +151,7 @@ struct OstreeRepo { uid_t target_owner_uid; /* Ensure files are chowned to this uid/gid */ gid_t target_owner_gid; guint min_free_space_percent; /* See the min-free-space-percent config option */ + guint64 min_free_space_size; /* See the min-free-space-size config option */ guint test_error_flags; /* OstreeRepoTestErrorFlags */ |