diff options
author | Franck Bui <fbui@suse.com> | 2016-10-12 08:58:04 +0200 |
---|---|---|
committer | Franck Bui <fbui@suse.com> | 2016-10-19 09:53:07 +0200 |
commit | 23aba343498f3cbe0bdce6c841a0c34339d1be90 (patch) | |
tree | 86a002a1a01ce9b8b670e036c5a1232eee9f8fbb /src/journal/journald-server.h | |
parent | 18e758bf25d49ec7af589df9a2a4e6c905281a4e (diff) |
journal: cache used vfs stats as well
The set of storage space values we cache are calculated according to a couple
of filesystem statistics (free blocks, block size).
This patch caches the vfs stats we're interested in so these values are
available later and coherent with the rest of the space cached values.
Diffstat (limited to 'src/journal/journald-server.h')
-rw-r--r-- | src/journal/journald-server.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/journal/journald-server.h b/src/journal/journald-server.h index 18fb21b3aa..1ce52cdadd 100644 --- a/src/journal/journald-server.h +++ b/src/journal/journald-server.h @@ -50,9 +50,13 @@ typedef enum SplitMode { } SplitMode; typedef struct JournalStorageSpace { + usec_t timestamp; + uint64_t available; uint64_t limit; - usec_t timestamp; + + uint64_t vfs_used; /* space used by journal files */ + uint64_t vfs_available; } JournalStorageSpace; typedef struct JournalStorage { |