File: e2lib.h

package info (click to toggle)
aboot 1.0~pre20200212-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 908 kB
  • sloc: ansic: 8,793; perl: 738; asm: 308; makefile: 270; sh: 3
file content (27 lines) | stat: -rw-r--r-- 811 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef EXT2_LIB_H
#define EXT2_LIB_H

struct ext2_inode;

int 			ext2_init(char * name, int access);
void 			ext2_close();
struct ext2_inode *	ext2_iget(int ino);
void 			ext2_iput(struct ext2_inode *ip);
int			ext2_balloc(void);
int			ext2_ialloc(void);
int			ext2_blocksize(void);
int			ext2_blkno(struct ext2_inode *ip, int blkoff,
				   int allocate);
void			ext2_bread(struct ext2_inode *ip, int blkno,
				   char * buffer);
void			ext2_bwrite(struct ext2_inode *ip, int blkno,
				    char * buffer);
struct ext2_inode *	ext2_namei(char * name);
void			ext2_truncate(struct ext2_inode *ip);
void			ext2_mknod(struct ext2_inode *dip,
				   char * name, int ino);
int			ext2_fill_contiguous(struct ext2_inode * ip,
					     int nblocks);
void			ext2_write_bootblock(char *bb);

#endif /* EXT2_LIB_H */