| lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 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 | * %Begin-Header% |
| 9 | * This file may be redistributed under the terms of the GNU Library |
| 10 | * General Public License, version 2. |
| 11 | * %End-Header% |
| 12 | */ |
| 13 | |
| 14 | /* |
| 15 | * History: |
| 16 | * 93/12/22 - Creation |
| 17 | */ |
| 18 | |
| 19 | #include "config.h" |
| 20 | #include <stdio.h> |
| 21 | |
| 22 | #include "e2p.h" |
| 23 | |
| 24 | void print_fs_state (FILE * f, unsigned short state) |
| 25 | { |
| 26 | if (state & EXT2_VALID_FS) |
| 27 | fprintf (f, " clean"); |
| 28 | else |
| 29 | fprintf (f, " not clean"); |
| 30 | if (state & EXT2_ERROR_FS) |
| 31 | fprintf (f, " with errors"); |
| 32 | } |