blob: d1067388af76b078caf51360989530233097c0c2 [file] [log] [blame]
"Robert P. J. Day"63fc1a92006-07-02 19:47:05 +00001/* vi: set sw=4 ts=4: */
Mike Frysingerd89e6292005-04-24 05:07:59 +00002/*
3 * ps.c - Print filesystem state
4 *
5 * Copyright (C) 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 * 93/12/22 - Creation
16 */
17
18#include <stdio.h>
19
20#include "e2p.h"
21
Mike Frysinger85cffcc2005-06-11 00:08:50 +000022void print_fs_state(FILE *f, unsigned short state)
Mike Frysingerd89e6292005-04-24 05:07:59 +000023{
Mike Frysinger85cffcc2005-06-11 00:08:50 +000024 fprintf(f, (state & EXT2_VALID_FS ? " clean" : " not clean"));
Mike Frysingerd89e6292005-04-24 05:07:59 +000025 if (state & EXT2_ERROR_FS)
26 fprintf (f, " with errors");
27}