summaryrefslogtreecommitdiffstats
path: root/src/home/homework.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-05-05 15:13:20 +0200
committerLennart Poettering <lennart@poettering.net>2020-05-07 16:13:07 +0200
commit28a7f10620313bb055709e8d2657b18af6380c43 (patch)
tree336f7806f3ea9a7072000287ccdf2807824d6fb4 /src/home/homework.h
parenthomectl: add option for controlling new luksOfflineDiscard user record field (diff)
downloadsystemd-28a7f10620313bb055709e8d2657b18af6380c43.tar.xz
systemd-28a7f10620313bb055709e8d2657b18af6380c43.zip
homework: run fitrim or fallocate on logout based on the new user record property
Diffstat (limited to 'src/home/homework.h')
-rw-r--r--src/home/homework.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/home/homework.h b/src/home/homework.h
index 81698b7601..3bcf3ad9b0 100644
--- a/src/home/homework.h
+++ b/src/home/homework.h
@@ -17,6 +17,7 @@ typedef struct HomeSetup {
LoopDevice *loop;
struct crypt_device *crypt_device;
int root_fd;
+ int image_fd;
sd_id128_t found_partition_uuid;
sd_id128_t found_luks_uuid;
sd_id128_t found_fs_uuid;
@@ -28,6 +29,8 @@ typedef struct HomeSetup {
bool undo_dm;
bool undo_mount;
+ bool do_offline_fitrim;
+ bool do_offline_fallocate;
uint64_t partition_offset;
uint64_t partition_size;
@@ -36,6 +39,7 @@ typedef struct HomeSetup {
#define HOME_SETUP_INIT \
{ \
.root_fd = -1, \
+ .image_fd = -1, \
.partition_offset = UINT64_MAX, \
.partition_size = UINT64_MAX, \
}