util.h revision 1.1
1/* $NetBSD: util.h,v 1.1 2025/10/13 00:44:35 perseant Exp $ */ 2 3/* Creat test image and filesystem, record superblock locations */ 4void create_lfs(size_t, size_t, int, int); 5 6/* Write a well-known byte pattern into a file, appending if it exists */ 7int write_file(const char *, off_t, int); 8 9/* Check the byte pattern and size of the file */ 10int check_file(const char *, int); 11 12/* Check the file system for consistency */ 13int fsck(void); 14 15/* Run dumplfs; for debugging */ 16void dumplfs(void); 17 18#define MAXLINE 132 19#define CHUNKSIZE 300 20 21#define IMGNAME "disk.img" 22#define FAKEBLK "/dev/blk" 23#define LOGFILE "newfs.log" 24 25#define MP "/mp" 26 27extern long long sbaddr[2]; 28