📄 verifyicb.c
字号:
#include "../nsrHdrs/nsr.h"#include <stdlib.h>#include <stdio.h>#include <string.h>#include <ctype.h>#include "chkudf.h"#include "protos.h"/* * Read a File Entry and extract the basics. */int checkICB(struct FileEntry *fe, struct long_ad FE, int dir){ if (fe) { if (!CheckTag((struct tag *)fe, U_endian32(FE.Location_LBN), TAGID_FILE_ENTRY, 16, blocksize)) { printf("(%10d) ", U_endian32(fe->InfoLengthL)); } if (dir && fe->sICBTag.FileType != FILE_TYPE_DIRECTORY) { printf("[Type: %d] ", fe->sICBTag.FileType); } if (!dir && fe->sICBTag.FileType != FILE_TYPE_RAW) { printf("[Type: %d] ", fe->sICBTag.FileType); } } else { Error.Code = ERR_READ; Error.Sector = U_endian32(FE.Location_LBN); }/* Verify that the information length is consistent with the descriptors. Verify the recorded sectors field. */ DumpError(); return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -