chiark / gitweb /
core: use some nice macros where appropriate
[elogind.git] / src / shared / btrfs-util.h
index 28946c60c9ceaa84ad00c0b93352a64c69172f23..1b9c142e5cb27b750bc1c8410c979dd5ff34799b 100644 (file)
@@ -19,6 +19,8 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
+#pragma once
+
 #include <stdbool.h>
 #include <sys/types.h>
 
@@ -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);