]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - tools-util.h
Update bcachefs sources to 10ab39f2fa bcachefs: Improvements to the journal read...
[bcachefs-tools-debian] / tools-util.h
index ae63f723621d899e57e2963471cd4bc90cd46a41..e5c3508474b9431c60a6d63de59cce99965b4e45 100644 (file)
@@ -2,6 +2,7 @@
 #define _TOOLS_UTIL_H
 
 #include <errno.h>
+#include <mntent.h>
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -153,7 +154,8 @@ u32 crc32c(u32, const void *, size_t);
 
 char *dev_to_name(dev_t);
 char *dev_to_path(dev_t);
-char *dev_to_mount(char *);
+struct mntent *dev_to_mount(char *);
+bool dev_mounted_rw(char *);
 
 #define args_shift(_nr)                                                        \
 do {                                                                   \