path: root/utils.h
diff options
authorGoldwyn Rodrigues <>2008-04-01 10:36:46 -0400
committerDavid Woodhouse <>2008-04-01 10:36:46 -0400
commitc2c5e3e7e533b1b03ba68723ef8ab7274d07148a (patch)
tree1b5527cebdc3ae994e385bd57d5de0019312048c /utils.h
parentad67cd73b7c1ab043f0c27570750f6d2becd7f03 (diff)
check if partition is mounted before mkfs
This saves from the blunder of formatting a live mounted filesystem. This can be extended to get the mount flags of the filesystem mounted. Signed-off-by: Goldwyn Rodrigues <>
Diffstat (limited to 'utils.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index eacfaacc..997d1349 100644
--- a/utils.h
+++ b/utils.h
@@ -35,4 +35,5 @@ int btrfs_scan_for_fsid(struct btrfs_fs_devices *fs_devices, u64 total_devs,
int run_ioctls);
int btrfs_register_one_device(char *fname);
int btrfs_scan_one_dir(char *dirname, int run_ioctl);
+int check_mounted(char *devicename);