Denis Vlasenko | c4f623e | 2006-12-26 01:30:59 +0000 | [diff] [blame] | 1 | /* 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 Vlasenko | 176bc34 | 2012-04-17 15:06:55 +0200 | [diff] [blame] | 10 | #include "bb_e2fs_defs.h" |
Denis Vlasenko | c4f623e | 2006-12-26 01:30:59 +0000 | [diff] [blame] | 11 | |
Denis Vlasenko | f81e8db | 2009-04-09 12:35:13 +0000 | [diff] [blame] | 12 | PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN |
Denis Vlasenko | 98636eb | 2008-05-09 17:59:34 +0000 | [diff] [blame] | 13 | |
Denis Vlasenko | c4f623e | 2006-12-26 01:30:59 +0000 | [diff] [blame] | 14 | /* Print file attributes on an ext2 file system */ |
Denys Vlasenko | 87c40cf | 2021-06-24 09:31:57 +0200 | [diff] [blame] | 15 | void print_e2flags_long(unsigned flags); |
| 16 | void print_e2flags(unsigned flags); |
Denis Vlasenko | d059ddc | 2007-10-30 19:36:07 +0000 | [diff] [blame] | 17 | |
| 18 | extern const uint32_t e2attr_flags_value[]; |
| 19 | extern 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 Vlasenko | 98636eb | 2008-05-09 17:59:34 +0000 | [diff] [blame] | 30 | |
Denis Vlasenko | f81e8db | 2009-04-09 12:35:13 +0000 | [diff] [blame] | 31 | POP_SAVED_FUNCTION_VISIBILITY |