home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 12 / CD_ASCQ_12_0294.iso / vrac / inimt30f.zip / WHATISEA.TXT < prev   
Text File  |  1993-08-02  |  7KB  |  133 lines

  1.      
  2.                         WHATISEA.TXT
  3.  
  4.          Discussion of Extended Attributes and SysMaint
  5.  
  6. Extended Attributes are added to directories and files to describe the
  7. contents, use, association and many other aspects of the directory or
  8. file. The Extended Attributes are not an actual part of the file, but
  9. are associated with the file. For HPFS this Extended Attribute
  10. information is kept in the Directory entry, for FAT the information
  11. is kept in a separate file, since there is not enough room in the
  12. directory. Refer to the OS/2 documentation for a more complete
  13. discussion of Extended Attributes themselves.
  14.  
  15. One of the problems with OS/2 is that, while it makes extensive use
  16. of Extended Attributes, it does not provide the user with the tools
  17. necessary to deal with problems or give users the tools necessary to
  18. understand them. While this is a problem for everyone, it is
  19. especially a problem for developers who might want to take advantage
  20. of Extended Attributes in their applications.
  21.  
  22. SysMaint is designed to all the user to look at the Extended
  23. Attributes that are present on their system, edit them, if necessary,
  24. and do a number of different kinds of maintenance functions. However,
  25. before discussing how SysMaint handles Extended Attributes, it is
  26. necessary to be sure that everyone understands a little about how
  27. Extended Attributes are structured. The following discussion assumes
  28. that the reader is already familiar with IniMaint, the structure of
  29. the IniMaint windows and how IniMaint displays and maintains INI
  30. Files.
  31.  
  32. The is a parallel between how INI files are structured and how
  33. Extended Attributes are structured so SysMaint uses most of the
  34. IniMaint code to handle the Extended Attributes. INI Files are
  35. organized into Applications that have one or more Keys and each Key
  36. has a Value assigned to that Key. Extended Attributes are associated
  37. with a Directory or a File, each of which can have more than one
  38. Extended Attribute and each Extended Attribute has a Name and an
  39. associated value. Therefore, SysMaint will display the names of the
  40. Directories or Files in the Application Window, the Names of the
  41. Extended Attributes in the Key Name Window and the Extended Attribute
  42. Value in the Key Value Window.
  43.  
  44. The approach above works very well for Simple Extended Attributes.
  45. However, the parallel between INI Files and Extended Attributes
  46. breaks down when it encounters a Multiple Value Extended Attribute,
  47. so some modifications are needed to handle this situation.
  48.  
  49. There are three general types of Extended Attributes as far as
  50. SysMaint is concerned:
  51.  
  52. 1. Extended Attributes that SysMaint does not understand and will
  53. display just as they are found.
  54.  
  55. 2. Simple Extended Attributes that use the type identifiers that are
  56. documented in the OS/2 documentation. These are Extended Attributes
  57. that closely parallel the INI File structure and are displayed that
  58. way.
  59.  
  60. 3. Multiple Extended Attributes, which are Extended Attributes that
  61. contain other Extended Attributes. These are the Extended Attributes
  62. that do not closely parallel the INI File structure.
  63.  
  64. There were two different ways that SysMaint could handle the Multiple
  65. Value Extended Attributes:
  66.  
  67. 1. They could simply be identified as Multiple Value and the entire
  68. Extended Attribute could be placed in the Key Value Window.
  69.  
  70. 2. The structure of the Multiple Value Extended Attribute could be
  71. decoded and displayed in the windows in a decoded form.
  72.  
  73. Since the decoding of the Multiple Value Extended Attributes is not a
  74. trivial task, especially since a Multiple Value Extended Attribute
  75. can contain other Multiple Value Extended Attributes, thus causing
  76. multiple levels of decoding, SysMaint will decode the Multiple Value
  77. Extended Attributes and display them in decoded form. This causes a
  78. single Extended Attribute to have multiple entries in the Key Name
  79. window. In order to create unique Key Entries and to display the
  80. level of the Extended Attribute, each Key Name will be followed by
  81. two additional pieces of data, each placed inside a pair of parens.
  82.  
  83. 1. The Level of the Extended Attribute. For a Simple Extended
  84. Attribute this will simply be: (01). For a Multiple Value Extended
  85. Attribute the numbers will start with (01) and increase by one for
  86. each of the Extended Attributes within the initial one. If another
  87. level of Multiple Value Extended Attributes is encountered, then an
  88. additional level will be added to the Level Information: (04.01),
  89. would mean that the fourth main level Extended Attribute is a
  90. Multiple Value Extended Attribute and this is the first entry for
  91. that Extended Attribute.
  92.  
  93. 2. The type of Extended Attribute, such as Ascii, Binary, Icon or
  94. Multiple Value.
  95.  
  96. This arrangement sounds complicated, but it ends up looking very much
  97. like an outline would look and is not difficult to understand. Since
  98. all of the entries will start with the name of the Extended
  99. Attribute, it is very easy to know which entries go with which.
  100.  
  101. The online Help for SysMaint has extensive detailed descriptions of
  102. how to select which Extended Attributes you want to operate on, what
  103. operation you want done and how you want to handle the various
  104. default actions. Therefore, it might be very useful to review the
  105. Online Help before doing much with the actual Extended Attributes.
  106.  
  107. Finally, a word of warning and a request for help.
  108.  
  109. The warning is that Extended Attributes can be critical to the health
  110. of you environment. Therefore, you should not do something with the
  111. Extended Attributes on your system if you are not sure you understand
  112. what you are doing. You cannot hurt youself if you simply look at
  113. Extended Attributes via the Edit Function or Save them. However,
  114. something like Splitting the Extended Attributes from a file will
  115. leave the file without the Attributes. If you are doing it so you can
  116. backup the file under DOS and will be careful to Join the Extended
  117. Attributes back to the files before you use them. If you are not sure
  118. about what you want to do, please go to the OS2AVEND Forum on
  119. Compuserve, Section 1 and we will be more than happy to discuss your
  120. intentions and any potential problems.
  121.  
  122. The request for help involves supplying documentation on any unusual
  123. conditions you might encounter. One of the items in the Default
  124. Dialog for the Extended Attributes is to activate a log to the
  125. INIEA.LOG file. Anytime you encounter a condtion where SysMaint
  126. cannot handle an Extended Attribute condition or have invalid
  127. Extended Attributes, I would ask you to turn on the logging, ask to
  128. Edit the Extended Attributes that are invalid or causing a problem,
  129. close SysMaint, zip the resulting INIEA.LOG file and Email it to use
  130. using the Compuserve ID in the main documentation or mail to the
  131. supplied address. This will allow us to be able to see the various
  132. conditions that occur and modify the program to handle them.
  133.