ReactOS 0.4.16-dev-852-gcfcc8d8
|
#include "udf.h"
Go to the source code of this file.
Macros | |
#define | UDF_BUG_CHECK_ID UDF_FILE_UDF_INFO |
#define | DOS_CRC_MODULUS 41 |
#define | hexChar crcChar |
#define | DOS_CRC_LEN 4 |
#define | DOS_CRC_MODULUS 41 |
#define | lba WrittenBytes |
Variables | |
static const char | valid_char_arr [] = {"*/:?\"<>|\\"} |
static const char | crcChar [] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ#_~-@" |
static const uint16 | CrcTable [256] |
static const uint32 | crc32_tab [] |
#define DOS_CRC_LEN 4 |
#define DOS_CRC_MODULUS 41 |
Definition at line 44 of file udf_info.cpp.
#define DOS_CRC_MODULUS 41 |
Definition at line 44 of file udf_info.cpp.
Definition at line 45 of file udf_info.cpp.
#define lba WrittenBytes |
#define UDF_BUG_CHECK_ID UDF_FILE_UDF_INFO |
Definition at line 19 of file udf_info.cpp.
Definition at line 4290 of file udf_info.cpp.
Definition at line 1445 of file udf_info.cpp.
Referenced by UDFHardLinkFile__(), and UDFSetFileUID().
OSSTATUS UDFBuildFileEntry | ( | IN PVCB | Vcb, |
IN PUDF_FILE_INFO | DirInfo, | ||
IN PUDF_FILE_INFO | FileInfo, | ||
IN uint32 | PartNum, | ||
IN uint16 | AllocMode, | ||
IN uint32 | ExtAttrSz, | ||
IN BOOLEAN | Extended | ||
) |
Definition at line 971 of file udf_info.cpp.
Referenced by UDFCreateFile__(), and UDFCreateRootFile__().
OSSTATUS UDFBuildFileIdent | ( | IN PVCB | Vcb, |
IN PUNICODE_STRING | fn, | ||
IN PLONG_AD | FileEntryIcb, | ||
IN uint32 | ImpUseLen, | ||
OUT PFILE_IDENT_DESC * | _FileId, | ||
OUT uint32 * | FileIdLen | ||
) |
Definition at line 1107 of file udf_info.cpp.
Referenced by UDFCreateFile__(), and UDFRecordDirectory__().
Definition at line 1520 of file udf_info.cpp.
Referenced by UDFUnlinkFile__().
void UDFChangeFileLinkCount | ( | IN PUDF_FILE_INFO | FileInfo, |
IN BOOLEAN | Increase | ||
) |
Definition at line 1315 of file udf_info.cpp.
uint32 UDFCleanUpFile__ | ( | IN PVCB | Vcb, |
IN PUDF_FILE_INFO | FileInfo | ||
) |
Definition at line 2276 of file udf_info.cpp.
Referenced by UDFBlankMount(), UDFCleanUpFcbChain(), UDFCloseResidual(), UDFCommonCreate(), UDFCompareVcb(), UDFCompleteMount(), UDFCreateFile__(), UDFCreateStreamDir__(), UDFHardLinkFile__(), UDFLoadVAT(), UDFMarkStreamsForDeletion(), UDFReadSecurity(), UDFRenameMoveFile__(), UDFUnlinkAllFilesInDir(), UDFUnlinkFile__(), and UDFWriteSecurity().
OSSTATUS UDFCloseFile__ | ( | IN PVCB | Vcb, |
IN PUDF_FILE_INFO | FileInfo | ||
) |
Definition at line 2994 of file udf_info.cpp.
Referenced by UDFCleanUpFcbChain(), UDFCloseFileInfoChain(), UDFCloseResidual(), UDFCommonCreate(), UDFCompareVcb(), UDFCompleteMount(), UDFCreateFile__(), UDFCreateStreamDir__(), UDFHardLinkFile__(), UDFLoadVAT(), UDFMarkStreamsForDeletion(), UDFReadSecurity(), UDFRename(), UDFRenameMoveFile__(), UDFSetEOF(), UDFUnlinkAllFilesInDir(), UDFUnlinkFile__(), and UDFWriteSecurity().
BOOLEAN UDFCompareFileInfo | ( | IN PUDF_FILE_INFO | f1, |
IN PUDF_FILE_INFO | f2 | ||
) |
Definition at line 4218 of file udf_info.cpp.
Referenced by UDFCompareVcb().
void __fastcall UDFCompressUnicode | ( | IN PUNICODE_STRING | UName, |
IN OUT uint8 ** | _CS0, | ||
IN OUT PSIZE_T | Length | ||
) |
Definition at line 240 of file udf_info.cpp.
Referenced by UDFBuildFileIdent(), UDFRenameMoveFile__(), and UDFSetDstring().
OSSTATUS UDFConvertFEToExtended | ( | IN PVCB | Vcb, |
IN PUDF_FILE_INFO | FileInfo | ||
) |
Definition at line 5458 of file udf_info.cpp.
Referenced by UDFCreateStreamDir__().
Definition at line 5358 of file udf_info.cpp.
Referenced by UDFSetFileAllocModeFromICB().
Definition at line 4527 of file udf_info.cpp.
Referenced by UDFDecompressUnicode(), UDFReadTagged(), and UDFSetUpTag().
OSSTATUS UDFCreateFile__ | ( | IN PVCB | Vcb, |
IN BOOLEAN | IgnoreCase, | ||
IN PUNICODE_STRING | _fn, | ||
IN uint32 | ExtAttrSz, | ||
IN uint32 | ImpUseLen, | ||
IN BOOLEAN | Extended, | ||
IN BOOLEAN | CreateNew, | ||
IN OUT PUDF_FILE_INFO | DirInfo, | ||
OUT PUDF_FILE_INFO * | _FileInfo | ||
) |
Definition at line 2577 of file udf_info.cpp.
Referenced by UDFCommonCreate(), UDFHardLinkFile__(), UDFRenameMoveFile__(), and UDFWriteSecurity().
OSSTATUS UDFCreateRootFile__ | ( | IN PVCB | Vcb, |
IN uint32 | PartNum, | ||
IN uint32 | ExtAttrSz, | ||
IN uint32 | ImpUseLen, | ||
IN BOOLEAN | Extended, | ||
OUT PUDF_FILE_INFO * | _FileInfo | ||
) |
Definition at line 4827 of file udf_info.cpp.
Referenced by UDFCreateStreamDir__().
OSSTATUS UDFCreateStreamDir__ | ( | IN PVCB | Vcb, |
IN PUDF_FILE_INFO | FileInfo, | ||
OUT PUDF_FILE_INFO * | _SDirInfo | ||
) |
Definition at line 4888 of file udf_info.cpp.
Referenced by UDFCommonCreate(), and UDFWriteSecurity().
void __fastcall UDFDecompressUnicode | ( | IN OUT PUNICODE_STRING | UName, |
IN uint8 * | CS0, | ||
IN SIZE_T | Length, | ||
OUT uint16 * | valueCRC | ||
) |
Definition at line 170 of file udf_info.cpp.
Referenced by UDFGetDstring(), and UDFIndexDirectory().
void __fastcall UDFDOSName | ( | IN PVCB | Vcb, |
IN OUT PUNICODE_STRING | DosName, | ||
IN PUNICODE_STRING | UdfName, | ||
IN BOOLEAN | KeepIntact | ||
) |
Definition at line 427 of file udf_info.cpp.
Referenced by UDFBuildHashEntry(), UDFFileDirInfoToNT(), UDFFindFile(), and UDFIsNameInExpression().
void __fastcall UDFDOSName100 | ( | IN OUT PUNICODE_STRING | DosName, |
IN PUNICODE_STRING | UdfName, | ||
IN BOOLEAN | KeepIntact | ||
) |
Definition at line 465 of file udf_info.cpp.
Referenced by UDFDOSName().
void __fastcall UDFDOSName200 | ( | IN OUT PUNICODE_STRING | DosName, |
IN PUNICODE_STRING | UdfName, | ||
IN BOOLEAN | KeepIntact, | ||
IN BOOLEAN | Mode150 | ||
) |
Definition at line 582 of file udf_info.cpp.
Referenced by UDFDOSName().
void __fastcall UDFDOSName201 | ( | IN OUT PUNICODE_STRING | DosName, |
IN PUNICODE_STRING | UdfName, | ||
IN BOOLEAN | KeepIntact | ||
) |
Definition at line 700 of file udf_info.cpp.
Referenced by UDFDOSName().
Definition at line 3864 of file udf_info.cpp.
Referenced by UDFCloseFile__(), UDFCreateFile__(), and UDFFlushFile__().
Definition at line 4051 of file udf_info.cpp.
Referenced by UDFCloseFile__(), UDFCreateFile__(), UDFFlushFile__(), and UDFRenameMoveFile__().
Definition at line 4119 of file udf_info.cpp.
Referenced by UDFCleanUpFcbChain(), UDFCommonCleanup(), UDFCommonCreate(), UDFFlushADirectory(), UDFFlushAFile(), UDFRecordVAT(), UDFRenameMoveFile__(), UDFUnlinkAllFilesInDir(), UDFUnlinkFile__(), UDFUpdateNonAllocated(), and UDFWriteSecurity().
uint32 UDFGetFileEALength | ( | IN PUDF_FILE_INFO | FileInfo | ) |
Definition at line 1420 of file udf_info.cpp.
Referenced by UDFHardLinkFile__(), and UDFRenameMoveFile__().
uint16 UDFGetFileLinkCount | ( | IN PUDF_FILE_INFO | FileInfo | ) |
Definition at line 1355 of file udf_info.cpp.
Referenced by UDFCleanUpFile__(), UDFCloseFile__(), UDFCommonCleanup(), UDFFileDirInfoToNT(), UDFGetStandardInformation(), UDFHardLinkFile__(), UDFMarkStreamsForDeletion(), UDFOpenFile__(), UDFPrepareForRenameMoveLink(), UDFRenameMoveFile__(), UDFSetDispositionInformation(), UDFSetEOF(), and UDFUnlinkFile__().
int64 UDFGetFileSize | ( | IN PUDF_FILE_INFO | FileInfo | ) |
Definition at line 1236 of file udf_info.cpp.
Referenced by UDFCloseFile__(), UDFCompleteMount(), UDFFlushFE(), UDFFlushFile__(), UDFGetNetworkInformation(), UDFGetStandardInformation(), UDFLoadVAT(), UDFReadSecurity(), UDFRecordDirectory__(), UDFRecordVAT(), UDFResizeFile__(), and UDFWriteFile__().
int64 UDFGetFileSizeFromDirNdx | ( | IN PVCB | Vcb, |
IN PUDF_FILE_INFO | FileInfo | ||
) |
Definition at line 1256 of file udf_info.cpp.
Referenced by UDFSetEOF().
int64 UDFGetFileUID | ( | IN PUDF_FILE_INFO | FileInfo | ) |
Definition at line 1509 of file udf_info.cpp.
Definition at line 1491 of file udf_info.cpp.
Referenced by UDFGetFileUID().
OSSTATUS UDFHardLinkFile__ | ( | IN PVCB | Vcb, |
IN BOOLEAN | IgnoreCase, | ||
IN OUT BOOLEAN * | Replace, | ||
IN PUNICODE_STRING | fn, | ||
IN OUT PUDF_FILE_INFO | DirInfo1, | ||
IN OUT PUDF_FILE_INFO | DirInfo2, | ||
IN OUT PUDF_FILE_INFO | FileInfo | ||
) |
Definition at line 4672 of file udf_info.cpp.
Referenced by UDFHardLink().
BOOLEAN UDFIsDirEmpty | ( | IN PDIR_INDEX_HDR | hCurDirNdx | ) |
Definition at line 3844 of file udf_info.cpp.
Referenced by UDFUnlinkFile__().
BOOLEAN __fastcall UDFIsIllegalChar | ( | IN WCHAR | chr | ) |
Definition at line 370 of file udf_info.cpp.
Referenced by UDFDOSName100(), UDFDOSName200(), and UDFDOSName201().
OSSTATUS UDFLoadExtInfo | ( | IN PVCB | Vcb, |
IN PFILE_ENTRY | fe, | ||
IN PLONG_AD | fe_loc, | ||
IN OUT PEXTENT_INFO | FExtInfo, | ||
IN OUT PEXTENT_INFO | AExtInfo | ||
) |
Definition at line 1062 of file udf_info.cpp.
Referenced by UDFOpenFile__(), and UDFOpenRootFile__().
Definition at line 3602 of file udf_info.cpp.
Referenced by UDFLoadPartDesc().
OSSTATUS UDFOpenFile__ | ( | IN PVCB | Vcb, |
IN BOOLEAN | IgnoreCase, | ||
IN BOOLEAN | NotDeleted, | ||
IN PUNICODE_STRING | fn, | ||
IN PUDF_FILE_INFO | DirInfo, | ||
OUT PUDF_FILE_INFO * | _FileInfo, | ||
IN uint_di * | IndexToOpen | ||
) |
Definition at line 2004 of file udf_info.cpp.
Referenced by UDFCommonCreate(), UDFCompleteMount(), UDFCreateFile__(), UDFHardLinkFile__(), UDFMarkStreamsForDeletion(), UDFReadSecurity(), UDFRenameMoveFile__(), UDFUnlinkAllFilesInDir(), and UDFWriteSecurity().
Definition at line 2187 of file udf_info.cpp.
Referenced by UDFCompareVcb(), UDFCompleteMount(), UDFLoadVAT(), and UDFOpenStreamDir__().
OSSTATUS UDFOpenStreamDir__ | ( | IN PVCB | Vcb, |
IN PUDF_FILE_INFO | FileInfo, | ||
OUT PUDF_FILE_INFO * | _SDirInfo | ||
) |
Definition at line 4965 of file udf_info.cpp.
Referenced by UDFCommonCreate(), UDFMarkStreamsForDeletion(), UDFReadSecurity(), UDFUnlinkFile__(), and UDFWriteSecurity().
OSSTATUS UDFPadLastSector | ( | IN PVCB | Vcb, |
IN PEXTENT_INFO | ExtInfo | ||
) |
Definition at line 2962 of file udf_info.cpp.
Referenced by UDFFlushFE().
OSSTATUS UDFPretendFileDeleted__ | ( | IN PVCB | Vcb, |
IN PUDF_FILE_INFO | FileInfo | ||
) |
Definition at line 5566 of file udf_info.cpp.
Referenced by UDFCommonCleanup(), and UDFCreateFile__().
Definition at line 1559 of file udf_info.cpp.
Referenced by UDFLoadFileset(), and UDFLoadLogicalVol().
OSSTATUS UDFReadFileEntry | ( | IN PVCB | Vcb, |
IN long_ad * | Icb, | ||
IN OUT PFILE_ENTRY | FileEntry, | ||
IN OUT uint16 * | Ident | ||
) |
Definition at line 306 of file udf_info.cpp.
Referenced by UDFFileDirInfoToNT(), UDFOpenFile__(), and UDFOpenRootFile__().
Definition at line 4586 of file udf_info.cpp.
Referenced by UDFAddXSpaceBitmap(), UDFBuildFreeSpaceBitmap(), UDFFindAnchor(), UDFFindLastFileSet(), UDFLoadLogicalVolInt(), UDFLoadPartition(), UDFPrepareXSpaceBitmap(), UDFProcessSequence(), UDFReadFileEntry(), UDFReadVDS(), UDFUpdateLogicalVol(), UDFUpdateVDS(), UDFUpdateVolIdent(), UDFVerifyFreeSpaceBitmap(), UDFVerifySequence(), and UDFVerifyXSpaceBitmap().
Definition at line 3384 of file udf_info.cpp.
Referenced by UDFCommonCreate(), and UDFCreateStreamDir__().
Definition at line 5036 of file udf_info.cpp.
Referenced by UDFUmount__().
OSSTATUS UDFRenameMoveFile__ | ( | IN PVCB | Vcb, |
IN BOOLEAN | IgnoreCase, | ||
IN OUT BOOLEAN * | Replace, | ||
IN PUNICODE_STRING | fn, | ||
IN OUT PUDF_FILE_INFO | DirInfo1, | ||
IN OUT PUDF_FILE_INFO | DirInfo2, | ||
IN OUT PUDF_FILE_INFO | FileInfo | ||
) |
Definition at line 3176 of file udf_info.cpp.
Referenced by UDFRename().
Definition at line 3468 of file udf_info.cpp.
Referenced by UDFCommonCleanup(), UDFCommonCreate(), UDFCommonWrite(), UDFConvertFEToExtended(), UDFCreateFile__(), UDFPackDirectory__(), UDFRecordVAT(), UDFSetAllocationInformation(), and UDFSetEOF().
void UDFSetAllocDescLen | ( | IN PVCB | Vcb, |
IN PUDF_FILE_INFO | FileInfo | ||
) |
Definition at line 1277 of file udf_info.cpp.
Referenced by UDFFlushFE().
Definition at line 1542 of file udf_info.cpp.
void UDFSetFileSize | ( | IN PUDF_FILE_INFO | FileInfo, |
IN int64 | Size | ||
) |
Definition at line 1157 of file udf_info.cpp.
Referenced by UDFCreateFile__(), UDFCreateRootFile__(), UDFResizeFile__(), and UDFWriteFile__().
Definition at line 1190 of file udf_info.cpp.
Referenced by UDFCommonCleanup(), UDFCommonWrite(), UDFFlushAFile(), UDFSetBasicInformation(), and UDFSetEOF().
void UDFSetFileUID | ( | IN PVCB | Vcb, |
IN PUDF_FILE_INFO | FileInfo | ||
) |
Definition at line 1456 of file udf_info.cpp.
Referenced by UDFCreateFile__(), and UDFCreateRootFile__().
Definition at line 936 of file udf_info.cpp.
Referenced by UDFBuildLongAllocDescs(), UDFBuildShortAllocDescs(), UDFFlushFE(), UDFFlushFI(), UDFPackDirectory__(), UDFPrepareXSpaceBitmap(), UDFRecordDirectory__(), UDFReTagDirectory(), UDFUpdateLogicalVol(), UDFUpdateLogicalVolInt(), UDFUpdatePartDesc(), and UDFUpdateVolIdent().
__inline OSSTATUS UDFSparseFile__ | ( | IN PVCB | Vcb, |
IN PUDF_FILE_INFO | FileInfo, | ||
IN int64 | Offset, | ||
IN SIZE_T | Length, | ||
IN BOOLEAN | Direct, | ||
OUT PSIZE_T | ReadBytes | ||
) |
Definition at line 2944 of file udf_info.cpp.
uint16 __fastcall UDFUnicodeCksum | ( | PWCHAR | s, |
uint32 | n | ||
) |
Definition at line 4356 of file udf_info.cpp.
Referenced by UDFDOSName100(), UDFDOSName200(), and UDFDOSName201().
uint16 __fastcall UDFUnicodeCksum150 | ( | PWCHAR | s, |
uint32 | n | ||
) |
Definition at line 4422 of file udf_info.cpp.
Referenced by UDFDOSName200().
Definition at line 336 of file udf_info.cpp.
Referenced by UDFIsIllegalChar().
OSSTATUS UDFUnlinkAllFilesInDir | ( | IN PVCB | Vcb, |
IN PUDF_FILE_INFO | DirInfo | ||
) |
Definition at line 1945 of file udf_info.cpp.
Referenced by UDFUnlinkFile__().
Definition at line 1766 of file udf_info.cpp.
Referenced by UDFCleanUpFcbChain(), UDFCommonCleanup(), UDFCommonCreate(), UDFCreateStreamDir__(), UDFHardLinkFile__(), UDFRenameMoveFile__(), UDFUnlinkAllFilesInDir(), UDFUnlinkFile__(), and UDFWriteSecurity().
Definition at line 5316 of file udf_info.cpp.
Referenced by UDFMountVolume(), and UDFVerifyVolume().
OSSTATUS UDFWriteFile__ | ( | IN PVCB | Vcb, |
IN PUDF_FILE_INFO | FileInfo, | ||
IN int64 | Offset, | ||
IN SIZE_T | Length, | ||
IN BOOLEAN | Direct, | ||
IN int8 * | Buffer, | ||
OUT PSIZE_T | WrittenBytes | ||
) |
Definition at line 1605 of file udf_info.cpp.
Referenced by UDFCommonWrite(), UDFConvertFEToExtended(), UDFFlushFI(), UDFPackDirectory__(), UDFRecordDirectory__(), UDFRecordVAT(), UDFResizeFile__(), UDFReTagDirectory(), and UDFWriteSecurity().
__inline OSSTATUS UDFZeroFile__ | ( | IN PVCB | Vcb, |
IN PUDF_FILE_INFO | FileInfo, | ||
IN int64 | Offset, | ||
IN SIZE_T | Length, | ||
IN BOOLEAN | Direct, | ||
OUT PSIZE_T | ReadBytes | ||
) |
Definition at line 2925 of file udf_info.cpp.
Definition at line 86 of file udf_info.cpp.
Referenced by crc32().
Definition at line 46 of file udf_info.cpp.
Referenced by UDFDOSName201().
Definition at line 51 of file udf_info.cpp.
Referenced by UDFCrc(), UDFUnicodeCksum(), and UDFUnicodeCksum150().
Definition at line 41 of file udf_info.cpp.
Referenced by UDFIsIllegalChar().