home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lvmtlk12.zip / include / lvm_cons.h next >
C/C++ Source or Header  |  2000-12-09  |  3KB  |  87 lines

  1. /*
  2. *
  3. *   Copyright (c) International Business Machines  Corp., 2000
  4. *
  5. *   This program is free software;  you can redistribute it and/or modify
  6. *   it under the terms of the GNU General Public License as published by
  7. *   the Free Software Foundation; either version 2 of the License, or
  8. *   (at your option) any later version.
  9. *
  10. *   This program is distributed in the hope that it will be useful,
  11. *   but WITHOUT ANY WARRANTY;  without even the implied warranty of
  12. *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
  13. *   the GNU General Public License for more details.
  14. *
  15. *   You should have received a copy of the GNU General Public License
  16. *   along with this program;  if not, write to the Free Software
  17. *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. *
  19. * Module: lvm_cons.h
  20. */
  21.  
  22. /*
  23. * Change History:
  24. *
  25. */
  26.  
  27. /*
  28. * Description:  This module defines constants used throughout the LVM code.
  29. *
  30. */
  31.  
  32. /* XLATOFF */
  33. #ifndef LVM_CONSTANTS_H_INCLUDED
  34.  
  35. #define LVM_CONSTANTS_H_INCLUDED 1
  36. /* XLATON */
  37.  
  38. /* The number of bytes in a sector on the disk. */
  39. #define BYTES_PER_SECTOR  512
  40.  
  41. /* The maximum number of cylinders, heads, and sectors that a partition table entry can accomodate.
  42.  
  43. Cylinders are numbered 0 - 1023, for a maximum of 1024 cylinders.
  44. Heads are numbered 0 - 255, for a maximum of 256 heads.
  45. Sectors are numbered 1 - 63, for a maximum of 63 sectors per track.                                */
  46. #define MAX_CYLINDERS 1024
  47. #define MAX_HEADS     256
  48. #define MAX_SECTORS   63
  49.  
  50. /* The following define the values used to indicate that a partition table entry is for an EBR, not a partition. */
  51. #define EBR_BOOT_INDICATOR     0
  52. #define EBR_FORMAT_INDICATOR   5
  53.  
  54. /* The following define is used as the default Format_Indicator for new non-primary partitions. */
  55. #define NEW_LOGICAL_DRIVE_FORMAT_INDICATOR   0x6
  56.  
  57. /* The following define is used as the default Format_Indicator for a new non-active primary partitions. */
  58. #define NEW_PRIMARY_PARTITION_FORMAT_INDICATOR   0x16
  59.  
  60. /* The following define is used as the default Format_Indicator for a new active primary partition. */
  61. #define NEW_ACTIVE_PRIMARY_PARTITION_FORMAT_INDICATOR  0x06
  62.  
  63. /* The following define is used to hold the value of the Boot_Indicator for active partitions. */
  64. #define ACTIVE_PARTITION   0x80
  65.  
  66. /* Define the size of a Partition Name.  Partition Names are user defined names given to a partition. */
  67. #define PARTITION_NAME_SIZE  20
  68.  
  69. /* Define the size of a volume name.  Volume Names are user defined names given to a volume. */
  70. #define VOLUME_NAME_SIZE  20
  71.  
  72. /* Define the size of a disk name.  Disk Names are user defined names given to physical disk drives in the system. */
  73. #define DISK_NAME_SIZE    20
  74.  
  75. /* The name of the filesystem in use on a partition.  This name may be up to 12 ( + NULL terminator) characters long. */
  76. #define FILESYSTEM_NAME_SIZE 20
  77.  
  78. /* The comment field is reserved but is not currently used.  This is for future expansion and use. */
  79. #define COMMENT_SIZE 81
  80.  
  81. /* Define the minimum number of sectors to reserve on the disk for Boot Manager. */
  82. #define BOOT_MANAGER_SIZE   2048
  83.  
  84. /* XLATOFF */
  85. #endif
  86. /* XLATON */
  87.