summaryrefslogtreecommitdiff
path: root/src/shared/mkfs-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-07-29 18:36:26 +0200
committerLennart Poettering <lennart@poettering.net>2020-08-24 21:59:49 +0200
commitc95f9a2351ffd63b53a4c33fb683606e43677c89 (patch)
treed1210cb74c8e96a25e60a184e6da3ed0479a600d /src/shared/mkfs-util.h
parent8dbc208cc1a7bbd9af44d98df4a4eb472266699a (diff)
downloadsystemd-c95f9a2351ffd63b53a4c33fb683606e43677c89.tar.gz
shared: introduce mkfs-util.c/.h
Let's move the "mkfs" code from homed there, plus other related code. This way we can easily reuse it from other places.
Diffstat (limited to 'src/shared/mkfs-util.h')
-rw-r--r--src/shared/mkfs-util.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/shared/mkfs-util.h b/src/shared/mkfs-util.h
new file mode 100644
index 0000000000..54e9b931e6
--- /dev/null
+++ b/src/shared/mkfs-util.h
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: LGPL-2.1+ */
+#pragma once
+
+#include <stdbool.h>
+
+#include "sd-id128.h"
+
+int mkfs_exists(const char *fstype);
+
+int make_filesystem(const char *node, const char *fstype, const char *label, sd_id128_t uuid, bool discard);