aboutsummaryrefslogtreecommitdiff
path: root/util-linux/e2p/pe.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/e2p/pe.c')
-rw-r--r--util-linux/e2p/pe.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/util-linux/e2p/pe.c b/util-linux/e2p/pe.c
new file mode 100644
index 000000000..4cce69117
--- /dev/null
+++ b/util-linux/e2p/pe.c
@@ -0,0 +1,37 @@
1/*
2 * pe.c - Print a second extended filesystem errors behavior
3 *
4 * Copyright (C) 1992, 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 * 94/01/09 - Creation
15 */
16
17#include <stdio.h>
18
19#include "e2p.h"
20
21void print_fs_errors (FILE * f, unsigned short errors)
22{
23 switch (errors)
24 {
25 case EXT2_ERRORS_CONTINUE:
26 fprintf (f, "Continue");
27 break;
28 case EXT2_ERRORS_RO:
29 fprintf (f, "Remount read-only");
30 break;
31 case EXT2_ERRORS_PANIC:
32 fprintf (f, "Panic");
33 break;
34 default:
35 fprintf (f, "Unknown (continue)");
36 }
37}