1 /* vi: set sw=4 ts=4: */
3 * See README for additional information
5 * Licensed under GPLv2, see file LICENSE in this source tree.
11 /* Print file attributes on an ext2 file system */
12 const uint32_t e2attr_flags_value
[] ALIGN4
= {
13 #ifdef ENABLE_COMPRESSION
40 const char e2attr_flags_sname
[] ALIGN1
=
41 #ifdef ENABLE_COMPRESSION
44 "suSDiadAcEjItTeCFNPV";
46 static const char e2attr_flags_lname
[] ALIGN1
=
47 #ifdef ENABLE_COMPRESSION
48 "Compressed_File" "\0"
49 "Compressed_Dirty_File" "\0"
50 "Compression_Raw_Access" "\0"
52 "Secure_Deletion" "\0"
54 "Synchronous_Updates" "\0"
55 "Synchronous_Directory_Updates" "\0"
60 "Compression_Requested" "\0"
63 "Indexed_directory" "\0"
65 "Top_of_Directory_Hierarchies" "\0"
70 "Project_Hierarchy" "\0"
72 /* Another trailing NUL is added by compiler */;
74 void print_e2flags_long(unsigned flags
)
80 fv
= e2attr_flags_value
;
81 fn
= e2attr_flags_lname
;
96 void print_e2flags(unsigned flags
)
101 fv
= e2attr_flags_value
;
102 fn
= e2attr_flags_sname
;