summaryrefslogtreecommitdiff
path: root/e2fsprogs/e2fs_lib.h
diff options
context:
space:
mode:
authorDenis Vlasenko2007-10-30 19:36:07 +0000
committerDenis Vlasenko2007-10-30 19:36:07 +0000
commitd059ddc1bbd7863f8ef8aa6484b6c3ba802b5dca (patch)
tree1d2d1fe01bc3c0939b14b1deed9f33daf3f54be1 /e2fsprogs/e2fs_lib.h
parent1641d614fa13b87b38688bb845159493c821e476 (diff)
downloadbusybox-d059ddc1bbd7863f8ef8aa6484b6c3ba802b5dca.zip
busybox-d059ddc1bbd7863f8ef8aa6484b6c3ba802b5dca.tar.gz
e2fsprogs: code shrink
text data bss dec hex filename 776594 974 9420 786988 c022c busybox_old 776494 974 9420 786888 c01c8 busybox_unstripped
Diffstat (limited to 'e2fsprogs/e2fs_lib.h')
-rw-r--r--e2fsprogs/e2fs_lib.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/e2fsprogs/e2fs_lib.h b/e2fsprogs/e2fs_lib.h
index 1a7d3a1..d01249d 100644
--- a/e2fsprogs/e2fs_lib.h
+++ b/e2fsprogs/e2fs_lib.h
@@ -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