]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - lib/e2p/ps.c
Merge branch 'maint' into next
[thirdparty/e2fsprogs.git] / lib / e2p / ps.c
CommitLineData
3839e657
TT
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 *
543547a5
TT
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%
3839e657
TT
12 */
13
14/*
15 * History:
16 * 93/12/22 - Creation
17 */
18
d1154eb4 19#include "config.h"
3839e657
TT
20#include <stdio.h>
21
3839e657
TT
22#include "e2p.h"
23
24void print_fs_state (FILE * f, unsigned short state)
25{
26 if (state & EXT2_VALID_FS)
27 fprintf (f, " clean");
28 else
29 fprintf (f, " not clean");
30 if (state & EXT2_ERROR_FS)
31 fprintf (f, " with errors");
32}