Lines Matching +full:- +full:compat
2 * feature.c --- convert between features and strings
6 * %Begin-Header%
9 * %End-Header%
21 #include <ext2fs/kernel-jbd.h>
24 int compat; member
72 "read-only" },
132 const char *e2p_feature2string(int compat, unsigned int mask) in e2p_feature2string() argument
139 for (f = feature_list; f->string; f++) { in e2p_feature2string()
140 if ((compat == f->compat) && in e2p_feature2string()
141 (mask == f->mask)) in e2p_feature2string()
142 return f->string; in e2p_feature2string()
144 switch (compat) { in e2p_feature2string()
169 for (f = feature_list; f->string; f++) { in e2p_string2feature()
170 if (!strcasecmp(string, f->string)) { in e2p_string2feature()
171 *compat_type = f->compat; in e2p_string2feature()
172 *mask = f->mask; in e2p_string2feature()
206 const char *e2p_jrnl_feature2string(int compat, unsigned int mask) in e2p_jrnl_feature2string() argument
213 for (f = jrnl_feature_list; f->string; f++) { in e2p_jrnl_feature2string()
214 if ((compat == f->compat) && in e2p_jrnl_feature2string()
215 (mask == f->mask)) in e2p_jrnl_feature2string()
216 return f->string; in e2p_jrnl_feature2string()
218 switch (compat) { in e2p_jrnl_feature2string()
243 for (f = jrnl_feature_list; f->string; f++) { in e2p_jrnl_string2feature()
244 if (!strcasecmp(string, f->string)) { in e2p_jrnl_string2feature()
245 *compat_type = f->compat; in e2p_jrnl_string2feature()
246 *mask = f->mask; in e2p_jrnl_string2feature()
340 case '-': in e2p_edit_feature2()
388 int compat, compat2, i; in main() local
401 for (; f->string; f++) { in main()
403 e2p_string2feature((char *)f->string, &compat, in main()
405 str = e2p_feature2string(compat, mask); in main()
407 e2p_jrnl_string2feature((char *)f->string, in main()
408 &compat, &mask); in main()
409 str = e2p_jrnl_feature2string(compat, mask); in main()
413 compat, mask, f->string); in main()
414 if (strcmp(f->string, str)) { in main()
417 (compat2 != compat) || in main()