blob: e6ad60abc6366b2048e61e1058f93e222ba4de89 [file] [log] [blame]
Theodore Ts'o3839e651997-04-26 13:21:57 +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 *
Theodore Ts'o543547a2010-05-17 21:31:56 -04008 * %Begin-Header%
9 * This file may be redistributed under the terms of the GNU Library
10 * General Public License, version 2.
11 * %End-Header%
Theodore Ts'o3839e651997-04-26 13:21:57 +000012 */
13
14/*
15 * History:
16 * 93/12/22 - Creation
17 */
18
19#include <stdio.h>
20
Theodore Ts'o3839e651997-04-26 13:21:57 +000021#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}