diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2007-06-20 21:37:58 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2007-06-20 21:37:58 +0000 |
commit | 62c24a8e4b10d77e08ee4a40c6f6b6a8d1eafeab (patch) | |
tree | a94336f70cf1199760a84089c8e83dfe1fe01167 /lib/mount_util.c | |
parent | 2b3a22fea0509681d9e86d5131a0008165bbf6ba (diff) |
Add fs subtype support to libfuse and fusermount
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; +} |