diff options
Diffstat (limited to 'util-linux/e2p/ps.c')
-rw-r--r-- | util-linux/e2p/ps.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/util-linux/e2p/ps.c b/util-linux/e2p/ps.c new file mode 100644 index 000000000..bec8b4195 --- /dev/null +++ b/util-linux/e2p/ps.c | |||
@@ -0,0 +1,29 @@ | |||
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 | /* | ||
13 | * History: | ||
14 | * 93/12/22 - Creation | ||
15 | */ | ||
16 | |||
17 | #include <stdio.h> | ||
18 | |||
19 | #include "e2p.h" | ||
20 | |||
21 | void print_fs_state (FILE * f, unsigned short state) | ||
22 | { | ||
23 | if (state & EXT2_VALID_FS) | ||
24 | fprintf (f, " clean"); | ||
25 | else | ||
26 | fprintf (f, " not clean"); | ||
27 | if (state & EXT2_ERROR_FS) | ||
28 | fprintf (f, " with errors"); | ||
29 | } | ||