Lines Matching refs:DirNdx

1779     PDIR_INDEX_ITEM DirNdx;  in UDFUnlinkFile__()  local
1807 DirNdx = UDFDirIndex(hDirNdx,Index); in UDFUnlinkFile__()
1809 if(DirNdx && DirNdx->FName.Buffer) { in UDFUnlinkFile__()
1810 AdPrint(("Unlink: %ws\n",DirNdx->FName.Buffer)); in UDFUnlinkFile__()
1818 (DirNdx && (DirNdx->FI_Flags & UDF_FI_FLAG_FI_MODIFIED)) )) { in UDFUnlinkFile__()
1832 if((DirNdx->FileCharacteristics & FILE_DIRECTORY) && in UDFUnlinkFile__()
1838 DirNdx->FI_Flags |= UDF_FI_FLAG_FI_MODIFIED; in UDFUnlinkFile__()
1839 DirNdx->FileCharacteristics |= FILE_DELETED; in UDFUnlinkFile__()
1846 if(DirNdx && FreeSpace) { in UDFUnlinkFile__()
1850 DirNdx->FI_Flags |= UDF_FI_FLAG_FI_MODIFIED; in UDFUnlinkFile__()
1851 DirNdx->FI_Flags &= ~UDF_FI_FLAG_SYS_ATTR; in UDFUnlinkFile__()
2020 PDIR_INDEX_ITEM DirNdx; in UDFOpenFile__() local
2036 if(!(DirNdx = UDFDirIndex(hDirNdx,i))) in UDFOpenFile__()
2038 if((FileInfo = DirNdx->FileInfo)) { in UDFOpenFile__()
2040 if((DirNdx->FileCharacteristics & FILE_DELETED) && NotDeleted) { in UDFOpenFile__()
2052 RtlCopyMemory(FileInfo, DirNdx->FileInfo, sizeof(UDF_FILE_INFO)); in UDFOpenFile__()
2054 UDFInsertLinkedFile(FileInfo, DirNdx->FileInfo); in UDFOpenFile__()
2055 DirNdx->FI_Flags |= UDF_FI_FLAG_LINKED; in UDFOpenFile__()
2073 if((DirNdx->FileCharacteristics & FILE_DELETED) && NotDeleted) { in UDFOpenFile__()
2086 …FileInfo->FileIdent = (PFILE_IDENT_DESC)MyAllocatePoolTag__(NonPagedPool, DirNdx->Length, MEM_FID_… in UDFOpenFile__()
2088 FileInfo->FileIdentLen = DirNdx->Length; in UDFOpenFile__()
2089 if(!OS_SUCCESS(status = UDFReadExtent(Vcb, &(DirInfo->Dloc->DataLoc), DirNdx->Offset, in UDFOpenFile__()
2090 DirNdx->Length, FALSE, (int8*)(FileInfo->FileIdent), &ReadBytes) )) in UDFOpenFile__()
2136 ASSERT(!DirNdx->FileInfo); in UDFOpenFile__()
2137 DirNdx->FileInfo = FileInfo; in UDFOpenFile__()
2140 DirNdx->FI_Flags |= UDF_FI_FLAG_LINKED; in UDFOpenFile__()
2142 DirNdx->FI_Flags &= ~UDF_FI_FLAG_LINKED; in UDFOpenFile__()
2285 PDIR_INDEX_ITEM DirNdx, DirNdx2; in UDFCleanUpFile__() local
2324 DirNdx = UDFDirIndex(hDirNdx,Index); in UDFCleanUpFile__()
2331 … (DirNdx && (DirNdx->FI_Flags & UDF_FI_FLAG_FI_MODIFIED)) ? "FI " : "" in UDFCleanUpFile__()
2338 (DirNdx && (DirNdx->FI_Flags & UDF_FI_FLAG_FI_MODIFIED)) ); in UDFCleanUpFile__()
2357 for(i=2; (DirNdx = UDFDirIndex(Dloc->DirIndex,i)); i++) { in UDFCleanUpFile__()
2358 if(DirNdx->FileInfo) { in UDFCleanUpFile__()
2371 if(DirNdx->FileInfo->Dloc) { in UDFCleanUpFile__()
2373 DirNdx2 = UDFDirIndex(DirNdx->FileInfo->Dloc->DirIndex, 1); in UDFCleanUpFile__()
2443 for(i=2; (DirNdx = UDFDirIndex(Dloc->DirIndex,i)); i++) { in UDFCleanUpFile__()
2444 ASSERT(!DirNdx->FileInfo); in UDFCleanUpFile__()
2445 if(DirNdx->FName.Buffer) in UDFCleanUpFile__()
2446 MyFreePool__(DirNdx->FName.Buffer); in UDFCleanUpFile__()
2455 for(i=2; DirNdx = UDFDirIndex(Dloc->DirIndex,i); i++) { in UDFCleanUpFile__()
2456 ASSERT(!DirNdx->FileInfo); in UDFCleanUpFile__()
2457 if(DirNdx->FName.Buffer) in UDFCleanUpFile__()
2458 MyFreePool__(DirNdx->FName.Buffer); in UDFCleanUpFile__()
2499 DirNdx = UDFDirIndex(FileInfo->Dloc->DirIndex, 0); in UDFCleanUpFile__()
2500 if(DirNdx && (DirNdx->FileInfo == FileInfo)) in UDFCleanUpFile__()
2501 DirNdx->FileInfo = FileInfo->PrevLinkedFile; in UDFCleanUpFile__()
2502 DirNdx = UDFDirIndex(FileInfo->ParentFile->Dloc->DirIndex, FileInfo->Index); in UDFCleanUpFile__()
2503 if(DirNdx && (DirNdx->FileInfo == FileInfo)) in UDFCleanUpFile__()
2504 DirNdx->FileInfo = ParFileInfo; in UDFCleanUpFile__()
2527 DirNdx = UDFDirIndex(FileInfo->ParentFile->Dloc->DirIndex, FileInfo->Index); in UDFCleanUpFile__()
2528 ASSERT(DirNdx); in UDFCleanUpFile__()
2532 ASSERT(!DirNdx || !(OldFI = DirNdx->FileInfo) || in UDFCleanUpFile__()
2535 ASSERT(!DirNdx || !(OldFI = DirNdx->FileInfo) || in UDFCleanUpFile__()
2539 if( DirNdx && (DirNdx->FileInfo == FileInfo) ) { in UDFCleanUpFile__()
2541 DirNdx->FileInfo = NULL; in UDFCleanUpFile__()
2545 if(!Parallel && DirNdx->FileInfo) in UDFCleanUpFile__()
2596 PDIR_INDEX_ITEM DirNdx; in UDFCreateFile__() local
2617 DirNdx = UDFDirIndex(hDirNdx,i); in UDFCreateFile__()
2622 if(UDFIsDeleted(DirNdx)) { in UDFCreateFile__()
2626 DirNdx = UDFDirIndex(hDirNdx,i); in UDFCreateFile__()
2631 if(DirNdx->FileInfo) { in UDFCreateFile__()
2633 status = UDFPretendFileDeleted__(Vcb, DirNdx->FileInfo); in UDFCreateFile__()
2649 DirNdx = UDFDirIndex(hDirNdx,i); in UDFCreateFile__()
2650 DirNdx->FI_Flags &= ~UDF_FI_FLAG_SYS_ATTR; in UDFCreateFile__()
2669 DirNdx->FileCharacteristics &= ~FILE_DIRECTORY; in UDFCreateFile__()
2671 DirNdx->FI_Flags |= UDF_FI_FLAG_FI_MODIFIED; in UDFCreateFile__()
2680 DirNdx->FileCharacteristics = 0; in UDFCreateFile__()
2721 …FileInfo->FileIdent = (PFILE_IDENT_DESC)MyAllocatePoolTag__(NonPagedPool, DirNdx->Length, MEM_FID_… in UDFCreateFile__()
2723 FileInfo->FileIdentLen = DirNdx->Length; in UDFCreateFile__()
2724 if(!OS_SUCCESS(status = UDFReadExtent(Vcb, &(DirInfo->Dloc->DataLoc), DirNdx->Offset, in UDFCreateFile__()
2725DirNdx->Length, FALSE, (int8*)(FileInfo->FileIdent), &ReadBytes) )) in UDFCreateFile__()
2730 DirNdx->FileCharacteristics = 0; in UDFCreateFile__()
2746 while((DirNdx = UDFDirIndexScan(&ScanContext, NULL))) { in UDFCreateFile__()
2747 if((DirNdx->Length == l) && UDFIsDeleted(DirNdx) && in UDFCreateFile__()
2748 !DirNdx->FileInfo ) { in UDFCreateFile__()
2750 if(DirNdx->FName.Buffer) { in UDFCreateFile__()
2751 MyFreePool__(DirNdx->FName.Buffer); in UDFCreateFile__()
2752 DirNdx->FName.Buffer = NULL; in UDFCreateFile__()
2775 DirNdx = UDFDirIndex(hDirNdx,i-1); in UDFCreateFile__()
2776 UDFDirIndex(hDirNdx,i)->Offset = DirNdx->Offset + DirNdx->Length; in UDFCreateFile__()
2777 DirNdx = UDFDirIndex(hDirNdx,i); in UDFCreateFile__()
2779 DirNdx = UDFDirIndex(hDirNdx,i); in UDFCreateFile__()
2780 DirNdx->Offset = 0; in UDFCreateFile__()
2783 …if( ((d = ((LBS - (DirNdx->Offset + l + DirInfo->Dloc->DataLoc.Offset)) & (LBS-1) )) < sizeof(FILE… in UDFCreateFile__()
2806 DirNdx->Length = l; in UDFCreateFile__()
2810DirNdx->FName.Buffer = (PWCHAR)MyAllocatePoolTag__(UDF_FILENAME_MT, (DirNdx->FName.MaximumLength =… in UDFCreateFile__()
2811 DirNdx->FName.Length = _fn->Length; in UDFCreateFile__()
2812 if(!DirNdx->FName.Buffer) in UDFCreateFile__()
2814 RtlCopyMemory(DirNdx->FName.Buffer, _fn->Buffer, _fn->Length); in UDFCreateFile__()
2815 DirNdx->FName.Buffer[_fn->Length/sizeof(WCHAR)] = 0; in UDFCreateFile__()
2817 DirNdx->FI_Flags |= UDFBuildHashEntry(Vcb, &(DirNdx->FName), &(DirNdx->hashes), HASH_ALL); in UDFCreateFile__()
2820 DirNdx->FI_Flags |= UDF_FI_FLAG_FI_MODIFIED; in UDFCreateFile__()
2821 DirNdx->FI_Flags &= ~UDF_FI_FLAG_SYS_ATTR; in UDFCreateFile__()
2822 ASSERT(!DirNdx->FileInfo); in UDFCreateFile__()
2823 DirNdx->FileInfo = FileInfo; in UDFCreateFile__()
2824 DirNdx->FileEntryLoc = FEicb.extLocation; in UDFCreateFile__()
2826 DirNdx->FileCharacteristics = FILE_DELETED; in UDFCreateFile__()
2855 if((i >= 2) && (DirNdx->FName.Buffer[0] == L'.')) { in UDFCreateFile__()
2874 DirNdx->FileCharacteristics = 0; in UDFCreateFile__()
3142 PDIR_INDEX_ITEM DirNdx; in UDFCloseFile__() local
3143 DirNdx = UDFDirIndex(UDFGetDirIndexByFileInfo(FileInfo), FileInfo->Index); in UDFCloseFile__()
3144 if(DirNdx) { in UDFCloseFile__()
3146 DirNdx->FI_Flags |= UDF_FI_FLAG_FI_MODIFIED; in UDFCloseFile__()
3147 DirNdx->FileCharacteristics |= FILE_DELETED; in UDFCloseFile__()
4015 PDIR_INDEX_ITEM DirNdx; in UDFFlushFE() local
4016 DirNdx = UDFDirIndex(UDFGetDirIndexByFileInfo(FileInfo), FileInfo->Index); in UDFFlushFE()
4017 if(DirNdx) { in UDFFlushFE()
4019 DirNdx->FileEntryLoc.logicalBlockNum = in UDFFlushFE()
4022 DirNdx->FI_Flags |= UDF_FI_FLAG_FI_MODIFIED; in UDFFlushFE()
4058 PDIR_INDEX_ITEM DirNdx; in UDFFlushFI() local
4068 DirNdx = UDFDirIndex(DirInfo->Dloc->DirIndex, FileInfo->Index); in UDFFlushFI()
4071 if(DirNdx->FileCharacteristics & FILE_DELETED) { in UDFFlushFI()
4075 UDFPrint((" FlushFI: offs %x\n", (ULONG)(DirNdx->Offset))); in UDFFlushFI()
4077 if((DirNdx->FI_Flags & UDF_FI_FLAG_FI_MODIFIED)) { in UDFFlushFI()
4080 FileInfo->FileIdent->fileCharacteristics = DirNdx->FileCharacteristics; in UDFFlushFI()
4082 DirNdx->Offset, NULL, NULL, NULL, NULL); in UDFFlushFI()
4087 …if(!OS_SUCCESS(status = UDFWriteFile__(Vcb, DirInfo, DirNdx->Offset, 1, FALSE, (int8*)(FileInfo->F… in UDFFlushFI()
4092 DirNdx->Offset, NULL, NULL, NULL, NULL); in UDFFlushFI()
4104 …if(!OS_SUCCESS(status = UDFWriteFile__(Vcb, DirInfo, DirNdx->Offset, FileInfo->FileIdentLen, FALSE… in UDFFlushFI()
4108 DirNdx->FI_Flags &= ~UDF_FI_FLAG_FI_MODIFIED; in UDFFlushFI()
4193 PDIR_INDEX_ITEM DirNdx; in UDFFlushFile__() local
4194 DirNdx = UDFDirIndex(UDFGetDirIndexByFileInfo(FileInfo), FileInfo->Index); in UDFFlushFile__()
4195 if(DirNdx) { in UDFFlushFile__()
4197 DirNdx->FI_Flags |= UDF_FI_FLAG_FI_MODIFIED; in UDFFlushFile__()
4198 DirNdx->FileCharacteristics |= FILE_DELETED; in UDFFlushFile__()
5576 PDIR_INDEX_ITEM DirNdx = UDFDirIndex(hDirNdx, FileInfo->Index); in UDFPretendFileDeleted__() local
5577 if(!DirNdx) return STATUS_CANNOT_DELETE; in UDFPretendFileDeleted__()
5587 DirNdx->FI_Flags |= UDF_FI_FLAG_FI_INTERNAL; in UDFPretendFileDeleted__()
5588 if(DirNdx->FName.Buffer) { in UDFPretendFileDeleted__()
5589 MyFreePool__(DirNdx->FName.Buffer); in UDFPretendFileDeleted__()
5590 DirNdx->FName.Buffer = NULL; in UDFPretendFileDeleted__()
5591 DirNdx->FName.Length = in UDFPretendFileDeleted__()
5592 DirNdx->FName.MaximumLength = 0; in UDFPretendFileDeleted__()