code: mafs

ref: 5f15f2246d0fdac0fa98a0a910d40827edfaf68f
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	devwrites(u64 blkno, void *b, u64 n);

/* 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*, ...);