1 /* check.h - Check and repair a PC/MS-DOS file system */
3 /* Written 1993 by Werner Almesberger */
9 loff_t
alloc_rootdir_entry(DOS_FS
*fs
, DIR_ENT
*de
, const char *pattern
);
11 /* Allocate a free slot in the root directory for a new file. The file name is
12 constructed after 'pattern', which must include a %d type format for printf
13 and expand to exactly 11 characters. The name actually used is written into
14 the 'de' structure, the rest of *de is cleared. The offset returned is to
15 where in the filesystem the entry belongs. */
17 int scan_root(DOS_FS
*fs
);
19 /* Scans the root directory and recurses into all subdirectories. See check.c
20 for all the details. Returns a non-zero integer if the file system has to