1 #include <sys/types.h> /* Needed by dirent.h on netbsd */
5 #include <linux/ext2_fs.h>
7 #define E2P_FEATURE_COMPAT 0
8 #define E2P_FEATURE_INCOMPAT 1
9 #define E2P_FEATURE_RO_INCOMPAT 2
11 int fgetflags (const char * name, unsigned long * flags);
12 int fgetversion (const char * name, unsigned long * version);
13 int fsetflags (const char * name, unsigned long flags);
14 int fsetversion (const char * name, unsigned long version);
15 int getflags (int fd, unsigned long * flags);
16 int getversion (int fd, unsigned long * version);
17 int iterate_on_dir (const char * dir_name,
18 int (*func) (const char *, struct dirent *, void *),
20 void list_super (struct ext2_super_block * s);
21 void print_fs_errors (FILE * f, unsigned short errors);
22 void print_flags (FILE * f, unsigned long flags, int long_format);
23 void print_fs_state (FILE * f, unsigned short state);
24 int setflags (int fd, unsigned long flags);
25 int setversion (int fd, unsigned long version);
27 const char *e2p_feature2string(int compat, unsigned int mask);
28 int e2p_string2feature(char *string, int *compat, unsigned int *mask);
29 int e2p_edit_feature(const char *str, __u32 *compat_array, __u32 *ok_array);
31 int e2p_is_null_uuid(void *uu);
32 void e2p_uuid_to_str(void *uu, char *out);