Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [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 | * |
Theodore Ts'o | 543547a | 2010-05-17 21:31:56 -0400 | [diff] [blame] | 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% |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 12 | */ |
| 13 | |
| 14 | /* |
| 15 | * History: |
| 16 | * 93/12/22 - Creation |
| 17 | */ |
| 18 | |
| 19 | #include <stdio.h> |
| 20 | |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 21 | #include "e2p.h" |
| 22 | |
| 23 | void print_fs_state (FILE * f, unsigned short state) |
| 24 | { |
| 25 | if (state & EXT2_VALID_FS) |
| 26 | fprintf (f, " clean"); |
| 27 | else |
| 28 | fprintf (f, " not clean"); |
| 29 | if (state & EXT2_ERROR_FS) |
| 30 | fprintf (f, " with errors"); |
| 31 | } |