]>
Commit | Line | Data |
---|---|---|
3839e657 TT |
1 | /* |
2 | * pf.c - Print file attributes on an ext2 file system | |
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/10/30 - Creation | |
15 | */ | |
16 | ||
17 | #include <stdio.h> | |
18 | #include <linux/ext2_fs.h> | |
19 | ||
20 | #include "e2p.h" | |
21 | ||
22 | void print_flags (FILE * f, unsigned long flags) | |
23 | { | |
24 | if (flags & EXT2_SYNC_FL) | |
25 | fprintf (f, "S"); | |
26 | else | |
27 | fprintf (f, "-"); | |
28 | if (flags & EXT2_COMPR_FL) | |
29 | fprintf (f, "c"); | |
30 | else | |
31 | fprintf (f, "-"); | |
32 | if (flags & EXT2_SECRM_FL) | |
33 | fprintf (f, "s"); | |
34 | else | |
35 | fprintf (f, "-"); | |
36 | if (flags & EXT2_UNRM_FL) | |
37 | fprintf (f, "u"); | |
38 | else | |
39 | fprintf (f, "-"); | |
40 | } |