blob: b7c0ee2f1b2e95989be17ca9fc18fae1fe1daa87 [file] [log] [blame]
Mike Frysingerd89e6292005-04-24 05:07:59 +00001/*
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 * This file can be redistributed under the terms of the GNU Library General
9 * Public License
10 */
11
12/*
13 * History:
14 * 93/12/22 - Creation
15 */
16
17#include <stdio.h>
18
19#include "e2p.h"
20
Mike Frysinger85cffcc2005-06-11 00:08:50 +000021void print_fs_state(FILE *f, unsigned short state)
Mike Frysingerd89e6292005-04-24 05:07:59 +000022{
Mike Frysinger85cffcc2005-06-11 00:08:50 +000023 fprintf(f, (state & EXT2_VALID_FS ? " clean" : " not clean"));
Mike Frysingerd89e6292005-04-24 05:07:59 +000024 if (state & EXT2_ERROR_FS)
25 fprintf (f, " with errors");
26}