Lines Matching refs:_fs_
45 #define FSPROTOS(_fs_) \ argument
46 int _fs_##_fstest_newfs(const atf_tc_t *, void **, const char *, \
48 int _fs_##_fstest_delfs(const atf_tc_t *, void *); \
49 int _fs_##_fstest_mount(const atf_tc_t *, void *, const char *, int); \
50 int _fs_##_fstest_unmount(const atf_tc_t *, const char *, int);
78 #define FSTEST_CONSTRUCTOR(_tc_, _fs_, _args_) \ argument
80 if (_fs_##_fstest_newfs(_tc_, &_args_, \
83 if (_fs_##_fstest_mount(_tc_, _args_, FSTEST_MNTNAME, 0) != 0) \
87 #define FSTEST_CONSTRUCTOR_FSPRIV(_tc_, _fs_, _args_, _privargs_) \ argument
89 if (_fs_##_fstest_newfs(_tc_, &_args_, \
92 if (_fs_##_fstest_mount(_tc_, _args_, FSTEST_MNTNAME, 0) != 0) \
96 #define FSTEST_DESTRUCTOR(_tc_, _fs_, _args_) \ argument
98 if (_fs_##_fstest_unmount(_tc_, FSTEST_MNTNAME, 0) != 0) { \
102 if (_fs_##_fstest_delfs(_tc_, _args_) != 0) \
128 #define ATF_TC_FSADD_RO(_fs_,_type_,_func_,_desc_,_gen_) \ argument
129 ATF_TC(_fs_##_##_func_); \
130 ATF_TC_HEAD(_fs_##_##_func_,tc) \
133 atf_tc_set_md_var(tc, "X-fs.type", #_fs_); \
136 void *_fs_##_func_##tmp; \
138 ATF_TC_BODY(_fs_##_##_func_,tc) \
140 if (!atf_check_fstype(tc, #_fs_)) \
142 FSTEST_CONSTRUCTOR(tc,_fs_,_fs_##_func_##tmp); \
144 if (_fs_##_fstest_unmount(tc, FSTEST_MNTNAME, 0) != 0) \
146 if (_fs_##_fstest_mount(tc, _fs_##_func_##tmp, \
150 if (_fs_##_fstest_unmount(tc, FSTEST_MNTNAME, 0) != 0) {\