paul@181 | 1 | /* |
paul@181 | 2 | * pe.c - Print a second extended filesystem errors behavior |
paul@181 | 3 | * |
paul@181 | 4 | * Copyright (C) 1992, 1993, 1994 Remy Card <card@masi.ibp.fr> |
paul@181 | 5 | * Laboratoire MASI, Institut Blaise Pascal |
paul@181 | 6 | * Universite Pierre et Marie Curie (Paris VI) |
paul@181 | 7 | * |
paul@181 | 8 | * %Begin-Header% |
paul@181 | 9 | * This file may be redistributed under the terms of the GNU Library |
paul@181 | 10 | * General Public License, version 2. |
paul@181 | 11 | * %End-Header% |
paul@181 | 12 | */ |
paul@181 | 13 | |
paul@181 | 14 | /* |
paul@181 | 15 | * History: |
paul@181 | 16 | * 94/01/09 - Creation |
paul@181 | 17 | */ |
paul@181 | 18 | |
paul@181 | 19 | #include "config.h" |
paul@181 | 20 | #include <stdio.h> |
paul@181 | 21 | |
paul@181 | 22 | #include "e2p.h" |
paul@181 | 23 | |
paul@181 | 24 | void print_fs_errors (FILE * f, unsigned short errors) |
paul@181 | 25 | { |
paul@181 | 26 | switch (errors) |
paul@181 | 27 | { |
paul@181 | 28 | case EXT2_ERRORS_CONTINUE: |
paul@181 | 29 | fprintf (f, "Continue"); |
paul@181 | 30 | break; |
paul@181 | 31 | case EXT2_ERRORS_RO: |
paul@181 | 32 | fprintf (f, "Remount read-only"); |
paul@181 | 33 | break; |
paul@181 | 34 | case EXT2_ERRORS_PANIC: |
paul@181 | 35 | fprintf (f, "Panic"); |
paul@181 | 36 | break; |
paul@181 | 37 | default: |
paul@181 | 38 | fprintf (f, "Unknown (continue)"); |
paul@181 | 39 | } |
paul@181 | 40 | } |