[VFATLIB] Upgrade fsck.fat to 4.1

Also make it easier to sync in the future.
This commit is contained in:
Pierre Schweitzer 2018-05-28 23:18:25 +02:00
parent 9f3169b295
commit 469289ed5c
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
14 changed files with 676 additions and 374 deletions

View file

@ -23,13 +23,13 @@
#ifndef _CHECK_H
#define _CHECK_H
off_t alloc_rootdir_entry(DOS_FS * fs, DIR_ENT * de, const char *pattern);
off_t alloc_rootdir_entry(DOS_FS * fs, DIR_ENT * de, const char *pattern, int gen_name);
/* Allocate a free slot in the root directory for a new file. The file name is
constructed after 'pattern', which must include a %d type format for printf
and expand to exactly 11 characters. The name actually used is written into
the 'de' structure, the rest of *de is cleared. The offset returned is to
where in the filesystem the entry belongs. */
/* Allocate a free slot in the root directory for a new file. If gen_name is
true, the file name is constructed after 'pattern', which must include a %d
type format for printf and expand to exactly 11 characters. The name
actually used is written into the 'de' structure, the rest of *de is cleared.
The offset returned is to where in the filesystem the entry belongs. */
int scan_root(DOS_FS * fs);