ps.c 604 B

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