ps.c 628 B

123456789101112131415161718192021222324252627
  1. /* vi: set sw=4 ts=4: */
  2. /*
  3. * ps.c - Print filesystem state
  4. *
  5. * Copyright (C) 1993, 1994 Remy Card <card@masi.ibp.fr>
  6. * Laboratoire MASI, Institut Blaise Pascal
  7. * Universite Pierre et Marie Curie (Paris VI)
  8. *
  9. * This file can be redistributed under the terms of the GNU Library General
  10. * Public License
  11. */
  12. /*
  13. * History:
  14. * 93/12/22 - Creation
  15. */
  16. #include <stdio.h>
  17. #include "e2p.h"
  18. void print_fs_state(FILE *f, unsigned short state)
  19. {
  20. fprintf(f, (state & EXT2_VALID_FS ? " clean" : " not clean"));
  21. if (state & EXT2_ERROR_FS)
  22. fprintf(f, " with errors");
  23. }