diff options
author | Charles Manning <cdhmanning@gmail.com> | 2010-07-01 16:14:01 +1200 |
---|---|---|
committer | Charles Manning <cdhmanning@gmail.com> | 2010-07-02 09:54:26 +1200 |
commit | bfb36fe45ceea5a7e8347b24a575ab627e60df94 (patch) | |
tree | 350c66c58dc5f0f7e071c716f93a484bed388496 /yaffs_verify.h | |
parent | 780469359d1051ab37ab281b0520137d73fee2e9 (diff) |
yaffs Refactorisation first phase
Partitoning code. More to happen.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'yaffs_verify.h')
-rw-r--r-- | yaffs_verify.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/yaffs_verify.h b/yaffs_verify.h new file mode 100644 index 0000000..8a6f751 --- /dev/null +++ b/yaffs_verify.h @@ -0,0 +1,39 @@ +/* + * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. + * + * Copyright (C) 2002-2010 Aleph One Ltd. + * for Toby Churchill Ltd and Brightstar Engineering + * + * Created by Charles Manning <charles@aleph1.co.uk> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#ifndef __YAFFS_VERIFY_H__ +#define __YAFFS_VERIFY_H__ + +#include "yaffs_guts.h" + +void yaffs_VerifyBlock(yaffs_Device *dev, yaffs_BlockInfo *bi, int n); +void yaffs_VerifyCollectedBlock(yaffs_Device *dev, yaffs_BlockInfo *bi, int n); +void yaffs_VerifyBlocks(yaffs_Device *dev); + +void yaffs_VerifyObjectHeader(yaffs_Object *obj, yaffs_ObjectHeader *oh, yaffs_ExtendedTags *tags, int parentCheck); +void yaffs_VerifyFile(yaffs_Object *obj); +void yaffs_VerifyHardLink(yaffs_Object *obj); +void yaffs_VerifySymlink(yaffs_Object *obj); +void yaffs_VerifySpecial(yaffs_Object *obj); +void yaffs_VerifyObject(yaffs_Object *obj); +void yaffs_VerifyObjects(yaffs_Device *dev); +void yaffs_VerifyObjectInDirectory(yaffs_Object *obj); +void yaffs_VerifyDirectory(yaffs_Object *directory); +void yaffs_VerifyFreeChunks(yaffs_Device *dev); + +int yaffs_VerifyFileSanity(yaffs_Object *obj); + +int yaffs_SkipVerification(yaffs_Device *dev); + +#endif + |