summaryrefslogtreecommitdiffstats
path: root/src/home/homed-home.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-11-05 16:34:12 +0100
committerLennart Poettering <lennart@poettering.net>2021-11-12 22:44:54 +0100
commitb0a7fb152a9b46d7c1b021a38d3e2dedc74d3e49 (patch)
treee8dcadb279be6a4589ce438618fff4dd73520657 /src/home/homed-home.h
parenthomed: allow querying disk free status separetely from generating JSON from it (diff)
downloadsystemd-b0a7fb152a9b46d7c1b021a38d3e2dedc74d3e49.tar.xz
systemd-b0a7fb152a9b46d7c1b021a38d3e2dedc74d3e49.zip
homed: include actual fs type + access mode as part of "status" section of user record
So far we have two properties for the intended fstype + access mode of home dirs, but they might differ from what is actually used (because the user record changed from the home dir, after it was created, or vice versa). Let's hence add these props also to the "status" section of user record, which report the status quo. That way we can always show the correct, current settings.
Diffstat (limited to 'src/home/homed-home.h')
-rw-r--r--src/home/homed-home.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/home/homed-home.h b/src/home/homed-home.h
index c5654140d0..37c54b0557 100644
--- a/src/home/homed-home.h
+++ b/src/home/homed-home.h
@@ -7,6 +7,7 @@ typedef struct Home Home;
#include "homed-operation.h"
#include "list.h"
#include "ordered-set.h"
+#include "stat-util.h"
#include "user-record.h"
typedef enum HomeState {
@@ -190,7 +191,7 @@ int home_unlock(Home *h, UserRecord *secret, sd_bus_error *error);
HomeState home_get_state(Home *h);
-int home_get_disk_status(Home *h, uint64_t *ret_disk_size,uint64_t *ret_disk_usage, uint64_t *ret_disk_free, uint64_t *ret_disk_ceiling, uint64_t *ret_disk_floor);
+int home_get_disk_status(Home *h, uint64_t *ret_disk_size,uint64_t *ret_disk_usage, uint64_t *ret_disk_free, uint64_t *ret_disk_ceiling, uint64_t *ret_disk_floor, statfs_f_type_t *ret_fstype, mode_t *ret_access_mode);
void home_process_notify(Home *h, char **l, int fd);