X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fbtrfs-util.h;h=1b9c142e5cb27b750bc1c8410c979dd5ff34799b;hb=dbafedacba3ee77098e932222ae7840e7b4040fc;hp=28946c60c9ceaa84ad00c0b93352a64c69172f23;hpb=1c7dd82563ff2e71a067aea20d2acb2d0553644b;p=elogind.git
diff --git a/src/shared/btrfs-util.h b/src/shared/btrfs-util.h
index 28946c60c..1b9c142e5 100644
--- a/src/shared/btrfs-util.h
+++ b/src/shared/btrfs-util.h
@@ -19,6 +19,8 @@
along with systemd; If not, see .
***/
+#pragma once
+
#include
#include
@@ -48,6 +50,7 @@ int btrfs_subvol_make_label(const char *path);
int btrfs_subvol_remove(const char *path);
int btrfs_subvol_snapshot(const char *old_path, const char *new_path, bool read_only, bool fallback_copy);
+int btrfs_subvol_set_read_only_fd(int fd, bool b);
int btrfs_subvol_set_read_only(const char *path, bool b);
int btrfs_subvol_get_read_only_fd(int fd);
int btrfs_subvol_get_id_fd(int fd, uint64_t *ret);