Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
4.2 KiB

  1. //
  2. // Define flags and specific dump routines for the UDFR/W structures
  3. //
  4. #include "pch.h"
  5. #include "fatkd.h"
  6. #include "..\..\udfs\nodetype.h"
  7. #include "..\..\udfs\udf.h"
  8. #include "..\..\udfs\udfstruc.h"
  9. #include "..\..\udfs\udfdata.h"
  10. //
  11. // UDFS R/O In memory structure flag descriptions
  12. //
  13. STATE UdfFcbState[] = {
  14. { FCB_STATE_INITIALIZED, FCB_STATE_INITIALIZED, "Initialised"},
  15. { FCB_STATE_IN_FCB_TABLE, FCB_STATE_IN_FCB_TABLE, "InFcbTable"},
  16. { FCB_STATE_VMCB_MAPPING, FCB_STATE_VMCB_MAPPING, "VMCB"},
  17. { FCB_STATE_EMBEDDED_DATA, FCB_STATE_EMBEDDED_DATA, "EmbeddedData"},
  18. { FCB_STATE_MCB_INITIALIZED, FCB_STATE_MCB_INITIALIZED, "McbInit"},
  19. { FCB_STATE_ALLOW_ONEGIG_WORKAROUND, FCB_STATE_ALLOW_ONEGIG_WORKAROUND, "OneGigWorkaround"},
  20. { 0 }
  21. };
  22. STATE UdfIrpContextFlags[] = {
  23. { IRP_CONTEXT_FLAG_ON_STACK, IRP_CONTEXT_FLAG_ON_STACK, "OnStack"},
  24. { IRP_CONTEXT_FLAG_MORE_PROCESSING, IRP_CONTEXT_FLAG_MORE_PROCESSING, "MoreProcessing"},
  25. { IRP_CONTEXT_FLAG_FORCE_POST, IRP_CONTEXT_FLAG_FORCE_POST, "ForcePost"},
  26. { IRP_CONTEXT_FLAG_WAIT, IRP_CONTEXT_FLAG_WAIT, "Wait"},
  27. { IRP_CONTEXT_FLAG_TOP_LEVEL, IRP_CONTEXT_FLAG_TOP_LEVEL, "TopLevel"},
  28. { IRP_CONTEXT_FLAG_TOP_LEVEL_UDFS, IRP_CONTEXT_FLAG_TOP_LEVEL_UDFS, "TopLevelUdfs"},
  29. { IRP_CONTEXT_FLAG_IN_TEARDOWN, IRP_CONTEXT_FLAG_IN_TEARDOWN, "InTeardown"},
  30. { IRP_CONTEXT_FLAG_ALLOC_IO, IRP_CONTEXT_FLAG_ALLOC_IO, "AllocIo"},
  31. { IRP_CONTEXT_FLAG_DISABLE_POPUPS, IRP_CONTEXT_FLAG_DISABLE_POPUPS, "DisablePopups"},
  32. { IRP_CONTEXT_FLAG_IN_FSP, IRP_CONTEXT_FLAG_IN_FSP, "InFsp"},
  33. { IRP_CONTEXT_FLAG_FULL_NAME, IRP_CONTEXT_FLAG_FULL_NAME, "FullName"},
  34. { IRP_CONTEXT_FLAG_TRAIL_BACKSLASH, IRP_CONTEXT_FLAG_TRAIL_BACKSLASH, "TrailBackslash"},
  35. { 0 }
  36. };
  37. STATE UdfVcbStateFlags[] = {
  38. { VCB_STATE_REMOVABLE_MEDIA, VCB_STATE_REMOVABLE_MEDIA, "Removable"},
  39. { VCB_STATE_LOCKED, VCB_STATE_LOCKED, "Locked"},
  40. { VCB_STATE_NOTIFY_REMOUNT, VCB_STATE_NOTIFY_REMOUNT, "NotifyRemount"},
  41. { VCB_STATE_METHOD_2_FIXUP, VCB_STATE_METHOD_2_FIXUP, "Method2Fixup"},
  42. { VCB_STATE_VMCB_INIT, VCB_STATE_VMCB_INIT, "VMCBInit"},
  43. { VCB_STATE_VPB_NOT_ON_DEVICE,VCB_STATE_VPB_NOT_ON_DEVICE,"VPBNotOnDevice"},
  44. { 0 }
  45. };
  46. STATE UdfCcbFlags[] = {
  47. { CCB_FLAG_OPEN_BY_ID, CCB_FLAG_OPEN_BY_ID, "OpenById"},
  48. { CCB_FLAG_OPEN_RELATIVE_BY_ID, CCB_FLAG_OPEN_RELATIVE_BY_ID, "OpenRelById"},
  49. { CCB_FLAG_IGNORE_CASE, CCB_FLAG_IGNORE_CASE, "IgnoreCase"},
  50. { CCB_FLAG_DISMOUNT_ON_CLOSE, CCB_FLAG_DISMOUNT_ON_CLOSE, "DismountOnClose"},
  51. { CCB_FLAG_ALLOW_EXTENDED_DASD_IO, CCB_FLAG_ALLOW_EXTENDED_DASD_IO, "ExtendedDASD"},
  52. { CCB_FLAG_ENUM_NAME_EXP_HAS_WILD, CCB_FLAG_ENUM_NAME_EXP_HAS_WILD, "EnumNameHasWild"},
  53. { CCB_FLAG_ENUM_MATCH_ALL, CCB_FLAG_ENUM_MATCH_ALL, "EnumMatchAll"},
  54. { CCB_FLAG_ENUM_RETURN_NEXT, CCB_FLAG_ENUM_RETURN_NEXT, "EnumReturnNext"},
  55. { CCB_FLAG_ENUM_INITIALIZED, CCB_FLAG_ENUM_INITIALIZED, "EnumInitialised"},
  56. { CCB_FLAG_ENUM_NOMATCH_CONSTANT_ENTRY, CCB_FLAG_ENUM_NOMATCH_CONSTANT_ENTRY, "NoMatchConstantEntry"},
  57. { 0 }
  58. };
  59. STATE UdfLcbFlags[] = {
  60. { LCB_FLAG_IGNORE_CASE, LCB_FLAG_IGNORE_CASE, "IgnoreCase"},
  61. { LCB_FLAG_SHORT_NAME, LCB_FLAG_SHORT_NAME, "ShortName"},
  62. { LCB_FLAG_POOL_ALLOCATED, LCB_FLAG_POOL_ALLOCATED, "PoolAllocated"},
  63. { 0 }
  64. };
  65. STATE UdfPcbFlags[] = {
  66. { PCB_FLAG_PHYSICAL_PARTITION, PCB_FLAG_PHYSICAL_PARTITION, "Physical"},
  67. { PCB_FLAG_VIRTUAL_PARTITION, PCB_FLAG_VIRTUAL_PARTITION, "Virtual"},
  68. { PCB_FLAG_SPARABLE_PARTITION, PCB_FLAG_SPARABLE_PARTITION, "Sparable"},
  69. { 0 }
  70. };