9 |
/* Constants and structures */ |
/* Constants and structures */ |
10 |
#include "e2fs_defs.h" |
#include "e2fs_defs.h" |
11 |
|
|
12 |
|
#if __GNUC_PREREQ(4,1) |
13 |
|
# pragma GCC visibility push(hidden) |
14 |
|
#endif |
15 |
|
|
16 |
/* Iterate a function on each entry of a directory */ |
/* Iterate a function on each entry of a directory */ |
17 |
int iterate_on_dir(const char *dir_name, |
int iterate_on_dir(const char *dir_name, |
18 |
int (*func)(const char *, struct dirent *, void *), |
int (*func)(const char *, struct dirent *, void *), |
31 |
/* Must be 1 for compatibility with `int long_format'. */ |
/* Must be 1 for compatibility with `int long_format'. */ |
32 |
#define PFOPT_LONG 1 |
#define PFOPT_LONG 1 |
33 |
/* Print file attributes on an ext2 file system */ |
/* Print file attributes on an ext2 file system */ |
34 |
void print_flags(FILE *f, unsigned long flags, unsigned options); |
void print_e2flags(FILE *f, unsigned long flags, unsigned options); |
35 |
|
|
36 |
|
extern const uint32_t e2attr_flags_value[]; |
37 |
|
extern const char e2attr_flags_sname[]; |
38 |
|
|
39 |
|
/* If you plan to ENABLE_COMPRESSION, see e2fs_lib.c and chattr.c - */ |
40 |
|
/* make sure that chattr doesn't accept bad options! */ |
41 |
|
#ifdef ENABLE_COMPRESSION |
42 |
|
#define e2attr_flags_value_chattr (&e2attr_flags_value[5]) |
43 |
|
#define e2attr_flags_sname_chattr (&e2attr_flags_sname[5]) |
44 |
|
#else |
45 |
|
#define e2attr_flags_value_chattr (&e2attr_flags_value[1]) |
46 |
|
#define e2attr_flags_sname_chattr (&e2attr_flags_sname[1]) |
47 |
|
#endif |
48 |
|
|
49 |
|
#if __GNUC_PREREQ(4,1) |
50 |
|
# pragma GCC visibility pop |
51 |
|
#endif |