another shot at fixing writes
[reactos.git] / rosapps / sysutils / dosfsck / check.h
1 /* check.h - Check and repair a PC/MS-DOS file system */
2
3 /* Written 1993 by Werner Almesberger */
4
5
6 #ifndef _CHECK_H
7 #define _CHECK_H
8
9 loff_t alloc_rootdir_entry(DOS_FS *fs, DIR_ENT *de, const char *pattern);
10
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. */
16
17 int scan_root(DOS_FS *fs);
18
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
21 be checked again. */
22
23 #endif