Home | History | Annotate | Download | only in lib

Lines Matching refs:fs_type

42 static int has_mkfs(const char *fs_type)
47 sprintf(buf, "mkfs.%s >/dev/null 2>&1", fs_type);
52 tst_res(TINFO, "mkfs.%s does not exist", fs_type);
56 tst_res(TINFO, "mkfs.%s does exist", fs_type);
60 static int has_kernel_support(const char *fs_type)
70 mount("/dev/zero", tmpdir, fs_type, 0, NULL);
72 tst_res(TINFO, "Kernel supports %s", fs_type);
91 sprintf(buf, "mount.%s >/dev/null 2>&1", fs_type);
95 tst_res(TINFO, "Filesystem %s is not supported", fs_type);
99 tst_res(TINFO, "FUSE does support %s", fs_type);
103 static int is_supported(const char *fs_type)
105 return has_kernel_support(fs_type) && has_mkfs(fs_type);