home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lvmtlk12.zip / doc / lvmapi2.INF (.txt) < prev    next >
OS/2 Help File  |  2002-06-04  |  3KB  |  102 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. LVM Constants (lvm_cons.h) ΓòÉΓòÉΓòÉ
  3.  
  4. Module: lvm_cons.h
  5.  
  6. Description 
  7.  
  8. This module defines constants used throughout the LVM code.
  9.  
  10.  
  11. ΓòÉΓòÉΓòÉ 1.1. Constants ΓòÉΓòÉΓòÉ
  12.  
  13. The following sections describe constants defined in lvm_cons.h. 
  14.  
  15.  
  16. ΓòÉΓòÉΓòÉ 1.1.1. Disk geometry constants ΓòÉΓòÉΓòÉ
  17.  
  18. The number of bytes in a sector on the disk. 
  19.  
  20. #define BYTES_PER_SECTOR  512
  21.  
  22. The maximum number of cylinders, heads, and sectors that a partition table 
  23. entry can accomodate. 
  24.  
  25. Cylinders are numbered 0 - 1023, for a maximum of 1024 cylinders. 
  26. Heads are numbered 0 - 255, for a maximum of 256 heads. 
  27. Sectors are numbered 1 - 63, for a maximum of 63 sectors per track. 
  28.  
  29. #define MAX_CYLINDERS 1024
  30. #define MAX_HEADS     256
  31. #define MAX_SECTORS   63
  32.  
  33.  
  34. ΓòÉΓòÉΓòÉ 1.1.2. Extended Boot Record constants ΓòÉΓòÉΓòÉ
  35.  
  36. The following define the values used to indicate that a partition table entry 
  37. is for an EBR, not a partition. 
  38.  
  39. #define EBR_BOOT_INDICATOR     0
  40. #define EBR_FORMAT_INDICATOR   5
  41.  
  42.  
  43. ΓòÉΓòÉΓòÉ 1.1.3. Default indicator value constants ΓòÉΓòÉΓòÉ
  44.  
  45. The following define is used as the default Format_Indicator for new 
  46. non-primary partitions. 
  47.  
  48. #define NEW_LOGICAL_DRIVE_FORMAT_INDICATOR   0x6
  49.  
  50. The following define is used as the default Format_Indicator for a new 
  51. non-active primary partitions. 
  52.  
  53. #define NEW_PRIMARY_PARTITION_FORMAT_INDICATOR   0x16
  54.  
  55. The following define is used as the default Format_Indicator for a new active 
  56. primary partition. 
  57.  
  58. #define NEW_ACTIVE_PRIMARY_PARTITION_FORMAT_INDICATOR  0x06
  59.  
  60. The following define is used to hold the value of the Boot_Indicator for active 
  61. partitions. 
  62.  
  63. #define ACTIVE_PARTITION   0x80
  64.  
  65.  
  66. ΓòÉΓòÉΓòÉ 1.1.4. Name length constants ΓòÉΓòÉΓòÉ
  67.  
  68. (These length constants do not include null terminators.) 
  69.  
  70. Define the size of a Partition Name.  Partition Names are user defined names 
  71. given to a partition. 
  72.  
  73. #define PARTITION_NAME_SIZE  20
  74.  
  75. Define the size of a volume name.  Volume Names are user defined names given to 
  76. a volume. 
  77.  
  78. #define VOLUME_NAME_SIZE  20
  79.  
  80. Define the size of a disk name.  Disk Names are user defined names given to 
  81. physical disk drives in the system. 
  82.  
  83. #define DISK_NAME_SIZE    20
  84.  
  85. The name of the filesystem in use on a partition.  This name may be up to 12 ( 
  86. + NULL terminator) characters long. 
  87.  
  88. #define FILESYSTEM_NAME_SIZE 20
  89.  
  90.  
  91. ΓòÉΓòÉΓòÉ 1.1.5. Miscellaneous constants ΓòÉΓòÉΓòÉ
  92.  
  93. The comment field is reserved but is not currently used.  This is for future 
  94. expansion and use. 
  95.  
  96. #define COMMENT_SIZE 81
  97.  
  98. Define the minimum number of sectors to reserve on the disk for Boot Manager. 
  99.  
  100. #define BOOT_MANAGER_SIZE   2048
  101.  
  102.