code: mafs

ref: eef0fe67ee4bb8c254f0f9e61c24ef5d34d05a4f
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*, ...);