source: MondoRescue/branches/2.2.5/mindi-busybox/e2fsprogs/old_e2fsprogs/e2p/pe.c@ 1765

Last change on this file since 1765 was 1765, checked in by Bruno Cornec, 16 years ago

Update to busybox 1.7.2

  • Property svn:eol-style set to native
File size: 840 bytes
Line 
1/* vi: set sw=4 ts=4: */
2/*
3 * pe.c - Print a second extended filesystem errors behavior
4 *
5 * Copyright (C) 1992, 1993, 1994 Remy Card <card@masi.ibp.fr>
6 * Laboratoire MASI, Institut Blaise Pascal
7 * Universite Pierre et Marie Curie (Paris VI)
8 *
9 * This file can be redistributed under the terms of the GNU Library General
10 * Public License
11 */
12
13/*
14 * History:
15 * 94/01/09 - Creation
16 */
17
18#include <stdio.h>
19
20#include "e2p.h"
21
22void print_fs_errors(FILE *f, unsigned short errors)
23{
24 char *disp = NULL;
25 switch (errors) {
26 case EXT2_ERRORS_CONTINUE: disp = "Continue"; break;
27 case EXT2_ERRORS_RO: disp = "Remount read-only"; break;
28 case EXT2_ERRORS_PANIC: disp = "Panic"; break;
29 default: disp = "Unknown (continue)";
30 }
31 fprintf(f, disp);
32}
Note: See TracBrowser for help on using the repository browser.