1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-13 12:58:20 +03:00

homed: don't drop caches on activation

We should drop caches if we are configured to do so in all cases where
we are done with home dir operations: except if that operation is
activation, because in that case we are not destroying anything, but
leaving it on.

Hence, turn off the flag that reminds us that we should drop caches
before exiting, once activation completed fully,

Follow-up for 86019efa4416d7b548cab321c15bc22a65463786
This commit is contained in:
Lennart Poettering 2021-10-23 00:42:54 +02:00 committed by Yu Watanabe
parent 20e458ae3c
commit aa0379f16f
3 changed files with 4 additions and 0 deletions

View File

@ -133,6 +133,7 @@ int home_activate_cifs(
return r;
setup->undo_mount = false;
setup->do_drop_caches = false;
log_info("Everything completed.");

View File

@ -72,6 +72,8 @@ int home_activate_directory(
return r;
}
setup->do_drop_caches = false;
log_info("Everything completed.");
*ret_home = TAKE_PTR(new_home);

View File

@ -1475,6 +1475,7 @@ int home_activate_luks(
setup->undo_dm = false;
setup->do_offline_fallocate = false;
setup->do_mark_clean = false;
setup->do_drop_caches = false;
log_info("Everything completed.");