source: MondoRescue/trunk/mindi-busybox/e2fsprogs/e2p/e2p.h@ 904

Last change on this file since 904 was 821, checked in by Bruno Cornec, 18 years ago

Addition of busybox 1.2.1 as a mindi-busybox new package
This should avoid delivering binary files in mindi not built there (Fedora and Debian are quite serious about that)

File size: 2.5 KB
Line 
1#include "busybox.h"
2#include <sys/types.h> /* Needed by dirent.h on netbsd */
3#include <stdio.h>
4#include <dirent.h>
5
6#include "../ext2fs/ext2_fs.h"
7
8#define E2P_FEATURE_COMPAT 0
9#define E2P_FEATURE_INCOMPAT 1
10#define E2P_FEATURE_RO_INCOMPAT 2
11#ifndef EXT3_FEATURE_INCOMPAT_EXTENTS
12#define EXT3_FEATURE_INCOMPAT_EXTENTS 0x0040
13#endif
14
15/* `options' for print_flags() */
16
17#define PFOPT_LONG 1 /* Must be 1 for compatibility with `int long_format'. */
18
19/*int fgetversion (const char * name, unsigned long * version);*/
20/*int fsetversion (const char * name, unsigned long version);*/
21int fgetsetversion(const char * name, unsigned long * get_version, unsigned long set_version);
22#define fgetversion(name, version) fgetsetversion(name, version, 0)
23#define fsetversion(name, version) fgetsetversion(name, NULL, version)
24
25/*int fgetflags (const char * name, unsigned long * flags);*/
26/*int fsetflags (const char * name, unsigned long flags);*/
27int fgetsetflags(const char * name, unsigned long * get_flags, unsigned long set_flags);
28#define fgetflags(name, flags) fgetsetflags(name, flags, 0)
29#define fsetflags(name, flags) fgetsetflags(name, NULL, flags)
30
31int getflags (int fd, unsigned long * flags);
32int getversion (int fd, unsigned long * version);
33int iterate_on_dir (const char * dir_name,
34 int (*func) (const char *, struct dirent *, void *),
35 void * private);
36/*void list_super(struct ext2_super_block * s);*/
37void list_super2(struct ext2_super_block * s, FILE *f);
38#define list_super(s) list_super2(s, stdout)
39void print_fs_errors (FILE * f, unsigned short errors);
40void print_flags (FILE * f, unsigned long flags, unsigned options);
41void print_fs_state (FILE * f, unsigned short state);
42int setflags (int fd, unsigned long flags);
43int setversion (int fd, unsigned long version);
44
45const char *e2p_feature2string(int compat, unsigned int mask);
46int e2p_string2feature(char *string, int *compat, unsigned int *mask);
47int e2p_edit_feature(const char *str, __u32 *compat_array, __u32 *ok_array);
48
49int e2p_is_null_uuid(void *uu);
50void e2p_uuid_to_str(void *uu, char *out);
51const char *e2p_uuid2str(void *uu);
52
53const char *e2p_hash2string(int num);
54int e2p_string2hash(char *string);
55
56const char *e2p_mntopt2string(unsigned int mask);
57int e2p_string2mntopt(char *string, unsigned int *mask);
58int e2p_edit_mntopts(const char *str, __u32 *mntopts, __u32 ok);
59
60unsigned long parse_num_blocks(const char *arg, int log_block_size);
61
62char *e2p_os2string(int os_type);
63int e2p_string2os(char *str);
Note: See TracBrowser for help on using the repository browser.