blob: bab447a947cd556eb1ac8d4d6e7e7d09053c34d8 [file] [log] [blame]
Denis Vlasenkoc4f623e2006-12-26 01:30:59 +00001/* vi: set sw=4 ts=4: */
2/*
3 * See README for additional information
4 *
5 * This file can be redistributed under the terms of the GNU Library General
6 * Public License
7 */
8
9/* Constants and structures */
Denys Vlasenko176bc342012-04-17 15:06:55 +020010#include "bb_e2fs_defs.h"
Denis Vlasenkoc4f623e2006-12-26 01:30:59 +000011
Denis Vlasenkof81e8db2009-04-09 12:35:13 +000012PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
Denis Vlasenko98636eb2008-05-09 17:59:34 +000013
Denis Vlasenkoc4f623e2006-12-26 01:30:59 +000014/* Print file attributes on an ext2 file system */
Denys Vlasenko87c40cf2021-06-24 09:31:57 +020015void print_e2flags_long(unsigned flags);
16void print_e2flags(unsigned flags);
Denis Vlasenkod059ddc2007-10-30 19:36:07 +000017
18extern const uint32_t e2attr_flags_value[];
19extern const char e2attr_flags_sname[];
20
21/* If you plan to ENABLE_COMPRESSION, see e2fs_lib.c and chattr.c - */
22/* make sure that chattr doesn't accept bad options! */
23#ifdef ENABLE_COMPRESSION
24#define e2attr_flags_value_chattr (&e2attr_flags_value[5])
25#define e2attr_flags_sname_chattr (&e2attr_flags_sname[5])
26#else
27#define e2attr_flags_value_chattr (&e2attr_flags_value[1])
28#define e2attr_flags_sname_chattr (&e2attr_flags_sname[1])
29#endif
Denis Vlasenko98636eb2008-05-09 17:59:34 +000030
Denis Vlasenkof81e8db2009-04-09 12:35:13 +000031POP_SAVED_FUNCTION_VISIBILITY