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