~ubuntu-branches/debian/jessie/arcboot/jessie

« back to all changes in this revision

Viewing changes to e2fslib/e2p/e2p.h

  • Committer: Bazaar Package Importer
  • Author(s): Guido Guenther
  • Date: 2004-03-02 12:01:14 UTC
  • Revision ID: james.westby@ubuntu.com-20040302120114-0pukal9hlpt3k0l7
Tags: 0.3.8.1
correct subarch detection for IP32

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <sys/types.h>          /* Needed by dirent.h on netbsd */
 
2
#include <stdio.h>
 
3
#include <dirent.h>
 
4
 
 
5
#include <ext2_fs.h>
 
6
 
 
7
#define E2P_FEATURE_COMPAT      0
 
8
#define E2P_FEATURE_INCOMPAT    1
 
9
#define E2P_FEATURE_RO_INCOMPAT 2
 
10
 
 
11
 
 
12
/* `options' for print_flags() */
 
13
 
 
14
#define PFOPT_LONG  1 /* Must be 1 for compatibility with `int long_format'. */
 
15
 
 
16
 
 
17
int fgetflags (const char * name, unsigned long * flags);
 
18
int fgetversion (const char * name, unsigned long * version);
 
19
int fsetflags (const char * name, unsigned long flags);
 
20
int fsetversion (const char * name, unsigned long version);
 
21
int getflags (int fd, unsigned long * flags);
 
22
int getversion (int fd, unsigned long * version);
 
23
int iterate_on_dir (const char * dir_name,
 
24
                    int (*func) (const char *, struct dirent *, void *),
 
25
                    void * private);
 
26
void list_super(struct ext2_super_block * s);
 
27
void list_super2(struct ext2_super_block * s, FILE *f);
 
28
void print_fs_errors (FILE * f, unsigned short errors);
 
29
void print_flags (FILE * f, unsigned long flags, unsigned options);
 
30
void print_fs_state (FILE * f, unsigned short state);
 
31
int setflags (int fd, unsigned long flags);
 
32
int setversion (int fd, unsigned long version);
 
33
 
 
34
const char *e2p_feature2string(int compat, unsigned int mask);
 
35
int e2p_string2feature(char *string, int *compat, unsigned int *mask);
 
36
int e2p_edit_feature(const char *str, __u32 *compat_array, __u32 *ok_array);
 
37
 
 
38
int e2p_is_null_uuid(void *uu);
 
39
void e2p_uuid_to_str(void *uu, char *out);