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 9loff_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 17int 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 23int scan_root_for_volume_label(DOS_FS *fs); 24 25/* Scans the root directory looking for a volume label and prints one if 26 found. Returns a non-zero integer if found. */ 27 28#endif 29