1/* 2 * ps.c - Print filesystem state 3 * 4 * Copyright (C) 1993, 1994 Remy Card <card@masi.ibp.fr> 5 * Laboratoire MASI, Institut Blaise Pascal 6 * Universite Pierre et Marie Curie (Paris VI) 7 * 8 * %Begin-Header% 9 * This file may be redistributed under the terms of the GNU Library 10 * General Public License, version 2. 11 * %End-Header% 12 */ 13 14/* 15 * History: 16 * 93/12/22 - Creation 17 */ 18 19#include <stdio.h> 20 21#include "e2p.h" 22 23void print_fs_state (FILE * f, unsigned short state) 24{ 25 if (state & EXT2_VALID_FS) 26 fprintf (f, " clean"); 27 else 28 fprintf (f, " not clean"); 29 if (state & EXT2_ERROR_FS) 30 fprintf (f, " with errors"); 31} 32