summaryrefslogtreecommitdiffstats
path: root/src/basic/btrfs.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/basic/btrfs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/basic/btrfs.h b/src/basic/btrfs.h
new file mode 100644
index 0000000..38be9d2
--- /dev/null
+++ b/src/basic/btrfs.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+
+#include <fcntl.h>
+
+int btrfs_validate_subvolume_name(const char *name);
+
+int btrfs_subvol_make(int dir_fd, const char *path);
+
+int btrfs_subvol_make_fallback(int dir_fd, const char *path, mode_t mode);