c95f9a2351
Let's move the "mkfs" code from homed there, plus other related code. This way we can easily reuse it from other places.
11 lines
247 B
C
11 lines
247 B
C
/* 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);
|