summaryrefslogtreecommitdiffstats
path: root/src/home/homework-luks.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-10-13 22:40:11 +0200
committerLennart Poettering <lennart@poettering.net>2021-10-16 10:13:02 +0200
commite1ab663575b205b4a9e7363fff3215d87f7d992f (patch)
treeecb67597f1648827634764aa9d7b31bb87cfb675 /src/home/homework-luks.h
parenthomework: remove duplicate error logging when doing ext4 resizes (diff)
downloadsystemd-e1ab663575b205b4a9e7363fff3215d87f7d992f.tar.xz
systemd-e1ab663575b205b4a9e7363fff3215d87f7d992f.zip
homework: reuse home_validate_update_luks() at one more place
We have the same code at two places, let's reuse it. Given the more generic scope let's rename the function home_get_state() since it retrieve the current setup state of the LUKS logic.
Diffstat (limited to 'src/home/homework-luks.h')
-rw-r--r--src/home/homework-luks.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/home/homework-luks.h b/src/home/homework-luks.h
index 8764862bd2..eac8f0761b 100644
--- a/src/home/homework-luks.h
+++ b/src/home/homework-luks.h
@@ -15,7 +15,7 @@ int home_store_header_identity_luks(UserRecord *h, HomeSetup *setup, UserRecord
int home_create_luks(UserRecord *h, PasswordCache *cache, char **effective_passwords, UserRecord **ret_home);
-int home_validate_update_luks(UserRecord *h, HomeSetup *setup);
+int home_get_state_luks(UserRecord *h, HomeSetup *setup);
int home_resize_luks(UserRecord *h, bool already_activated, PasswordCache *cache, HomeSetup *setup, UserRecord **ret_home);