diff options
Diffstat (limited to 'lib/mount_util.c')
-rw-r--r-- | lib/mount_util.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/mount_util.c b/lib/mount_util.c index 02b2731..dccecdf 100644 --- a/lib/mount_util.c +++ b/lib/mount_util.c @@ -193,3 +193,20 @@ int fuse_mnt_check_empty(const char *progname, const char *mnt, } return 0; } + +int fuse_mnt_check_fuseblk(void) +{ + char buf[256]; + FILE *f = fopen("/proc/filesystems", "r"); + if (!f) + return 1; + + while (fgets(buf, sizeof(buf), f)) + if (strstr(buf, "fuseblk\n")) { + fclose(f); + return 1; + } + + fclose(f); + return 0; +} |