e2fsprogs: code shrink
text data bss dec hex filename 776594 974 9420 786988 c022c busybox_old 776494 974 9420 786888 c01c8 busybox_unstripped
This commit is contained in:
@ -28,3 +28,16 @@ int fgetsetflags(const char *name, unsigned long *get_flags, unsigned long set_f
|
||||
#define PFOPT_LONG 1
|
||||
/* Print file attributes on an ext2 file system */
|
||||
void print_flags(FILE *f, unsigned long flags, unsigned options);
|
||||
|
||||
extern const uint32_t e2attr_flags_value[];
|
||||
extern const char e2attr_flags_sname[];
|
||||
|
||||
/* If you plan to ENABLE_COMPRESSION, see e2fs_lib.c and chattr.c - */
|
||||
/* make sure that chattr doesn't accept bad options! */
|
||||
#ifdef ENABLE_COMPRESSION
|
||||
#define e2attr_flags_value_chattr (&e2attr_flags_value[5])
|
||||
#define e2attr_flags_sname_chattr (&e2attr_flags_sname[5])
|
||||
#else
|
||||
#define e2attr_flags_value_chattr (&e2attr_flags_value[1])
|
||||
#define e2attr_flags_sname_chattr (&e2attr_flags_sname[1])
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user