e2fs_lib.h 921 B

12345678910111213141516171819202122232425262728293031
  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. /* Constants and structures */
  9. #include "bb_e2fs_defs.h"
  10. PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
  11. /* Print file attributes on an ext2 file system */
  12. void print_e2flags_long(unsigned flags);
  13. void print_e2flags(unsigned flags);
  14. extern const uint32_t e2attr_flags_value[];
  15. extern const char e2attr_flags_sname[];
  16. /* If you plan to ENABLE_COMPRESSION, see e2fs_lib.c and chattr.c - */
  17. /* make sure that chattr doesn't accept bad options! */
  18. #ifdef ENABLE_COMPRESSION
  19. #define e2attr_flags_value_chattr (&e2attr_flags_value[5])
  20. #define e2attr_flags_sname_chattr (&e2attr_flags_sname[5])
  21. #else
  22. #define e2attr_flags_value_chattr (&e2attr_flags_value[1])
  23. #define e2attr_flags_sname_chattr (&e2attr_flags_sname[1])
  24. #endif
  25. POP_SAVED_FUNCTION_VISIBILITY