summaryrefslogtreecommitdiff
path: root/src/home/homework.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-10-22 15:51:49 +0200
committerLennart Poettering <lennart@poettering.net>2021-10-22 16:03:23 +0200
commitbaa41cee77bdf6e441e2a52a7c01c369854bc43a (patch)
tree3393b7c5307e4310c21ce519be605a53f69c16ca /src/home/homework.h
parent498abadb8c91c708ace9f05b816678893f7ac31d (diff)
downloadsystemd-baa41cee77bdf6e441e2a52a7c01c369854bc43a.tar.gz
homework: use bit fields where we deal with lots of separate boolean flags
No actual code changes, just making a structure a bit shorter.
Diffstat (limited to 'src/home/homework.h')
-rw-r--r--src/home/homework.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/home/homework.h b/src/home/homework.h
index df5356454b..7bd31b5cea 100644
--- a/src/home/homework.h
+++ b/src/home/homework.h
@@ -28,12 +28,12 @@ typedef struct HomeSetup {
void *volume_key;
size_t volume_key_size;
- bool undo_dm;
- bool undo_mount;
- bool do_offline_fitrim;
- bool do_offline_fallocate;
- bool do_mark_clean;
- bool do_drop_caches;
+ bool undo_dm:1;
+ bool undo_mount:1; /* Whether to unmount /run/systemd/user-home-mount */
+ bool do_offline_fitrim:1;
+ bool do_offline_fallocate:1;
+ bool do_mark_clean:1;
+ bool do_drop_caches:1;
uint64_t partition_offset;
uint64_t partition_size;