Whamcloud - gitweb
efc74b3a6c56dd4a9555da6555944e4f3863f254
[tools/e2fsprogs.git] / lib / e2p / pe.c
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 <linux/ext2_fs.h>
20
21 #include "e2p.h"
22
23 void print_fs_errors (FILE * f, unsigned short errors)
24 {
25         switch (errors)
26         {
27                 case EXT2_ERRORS_CONTINUE:
28                         fprintf (f, "Continue");
29                         break;
30                 case EXT2_ERRORS_RO:
31                         fprintf (f, "Remount read-only");
32                         break;
33                 case EXT2_ERRORS_PANIC:
34                         fprintf (f, "Panic");
35                         break;
36                 default:
37                         fprintf (f, "Unknown (continue)");
38         }
39 }