code: mafs

ref: 72614a53c48950b8100c4fbe5b693fac53e912e5
dir: /fns.h/

View raw version

u64 nperiblock(u16 tag);
u64	nperindunit(u16 tag);
u8	rel2tind(u64 reli);
u64	tagstartreli(u8 tag);
u64	maxreli(u8 tag);
u64	maxblocks(u8 tag);

/* actual device i/o routines */
u64	devinit(char *devfile);
int	devread(u64 blkno, void *b);
u64	devsize(void);
int	devwrite(u64 blkno, void *b);
int devwritedirtyclear(u64 blkno);

/* show blocks */
void	showblock(int fd, u8 *buf);
void	showdentry(int fd, u8 *buf);
void	showmagic(int fd, u8 *buf);
void	showconfig(int fd, u8 *buf);
void	showsuper(int fd, u8 *buf);
void	showdata(int fd, u8 *buf);
void	showind0(int fd, u8 *buf);
void	showind(int fd, u8 *buf);

void	panic(char*, ...);
int	fprint(int, char*, ...);