blob: 78c8099348c1f206cd3a6a06fe0785083239a82e [file] [log] [blame]
Theodore Ts'o3839e651997-04-26 13:21:57 +00001/*
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 *
Theodore Ts'o543547a2010-05-17 21:31:56 -04008 * %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'o3839e651997-04-26 13:21:57 +000012 */
13
14/*
15 * History:
16 * 94/01/09 - Creation
17 */
18
19#include <stdio.h>
20
Theodore Ts'o3839e651997-04-26 13:21:57 +000021#include "e2p.h"
22
23void 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}