mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-13 12:58:20 +03:00
homework: use bit fields where we deal with lots of separate boolean flags
No actual code changes, just making a structure a bit shorter.
This commit is contained in:
parent
498abadb8c
commit
baa41cee77
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user