From 62c24a8e4b10d77e08ee4a40c6f6b6a8d1eafeab Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Wed, 20 Jun 2007 21:37:58 +0000 Subject: Add fs subtype support to libfuse and fusermount --- lib/mount_util.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'lib/mount_util.c') 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; +} -- cgit v1.2.3