sysfs-class-ubi 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. What: /sys/class/ubi/
  2. Date: July 2006
  3. KernelVersion: 2.6.22
  4. Contact: Artem Bityutskiy <dedekind@infradead.org>
  5. Description:
  6. The ubi/ class sub-directory belongs to the UBI subsystem and
  7. provides general UBI information, per-UBI device information
  8. and per-UBI volume information.
  9. What: /sys/class/ubi/version
  10. Date: July 2006
  11. KernelVersion: 2.6.22
  12. Contact: Artem Bityutskiy <dedekind@infradead.org>
  13. Description:
  14. This file contains version of the latest supported UBI on-media
  15. format. Currently it is 1, and there is no plan to change this.
  16. However, if in the future UBI needs on-flash format changes
  17. which cannot be done in a compatible manner, a new format
  18. version will be added. So this is a mechanism for possible
  19. future backward-compatible (but forward-incompatible)
  20. improvements.
  21. What: /sys/class/ubiX/
  22. Date: July 2006
  23. KernelVersion: 2.6.22
  24. Contact: Artem Bityutskiy <dedekind@infradead.org>
  25. Description:
  26. The /sys/class/ubi0, /sys/class/ubi1, etc directories describe
  27. UBI devices (UBI device 0, 1, etc). They contain general UBI
  28. device information and per UBI volume information (each UBI
  29. device may have many UBI volumes)
  30. What: /sys/class/ubi/ubiX/avail_eraseblocks
  31. Date: July 2006
  32. KernelVersion: 2.6.22
  33. Contact: Artem Bityutskiy <dedekind@infradead.org>
  34. Description:
  35. Amount of available logical eraseblock. For example, one may
  36. create a new UBI volume which has this amount of logical
  37. eraseblocks.
  38. What: /sys/class/ubi/ubiX/bad_peb_count
  39. Date: July 2006
  40. KernelVersion: 2.6.22
  41. Contact: Artem Bityutskiy <dedekind@infradead.org>
  42. Description:
  43. Count of bad physical eraseblocks on the underlying MTD device.
  44. What: /sys/class/ubi/ubiX/bgt_enabled
  45. Date: July 2006
  46. KernelVersion: 2.6.22
  47. Contact: Artem Bityutskiy <dedekind@infradead.org>
  48. Description:
  49. Contains ASCII "0\n" if the UBI background thread is disabled,
  50. and ASCII "1\n" if it is enabled.
  51. What: /sys/class/ubi/ubiX/dev
  52. Date: July 2006
  53. KernelVersion: 2.6.22
  54. Contact: Artem Bityutskiy <dedekind@infradead.org>
  55. Description:
  56. Major and minor numbers of the character device corresponding
  57. to this UBI device (in <major>:<minor> format).
  58. What: /sys/class/ubi/ubiX/eraseblock_size
  59. Date: July 2006
  60. KernelVersion: 2.6.22
  61. Contact: Artem Bityutskiy <dedekind@infradead.org>
  62. Description:
  63. Maximum logical eraseblock size this UBI device may provide. UBI
  64. volumes may have smaller logical eraseblock size because of their
  65. alignment.
  66. What: /sys/class/ubi/ubiX/max_ec
  67. Date: July 2006
  68. KernelVersion: 2.6.22
  69. Contact: Artem Bityutskiy <dedekind@infradead.org>
  70. Description:
  71. Maximum physical eraseblock erase counter value.
  72. What: /sys/class/ubi/ubiX/max_vol_count
  73. Date: July 2006
  74. KernelVersion: 2.6.22
  75. Contact: Artem Bityutskiy <dedekind@infradead.org>
  76. Description:
  77. Maximum number of volumes which this UBI device may have.
  78. What: /sys/class/ubi/ubiX/min_io_size
  79. Date: July 2006
  80. KernelVersion: 2.6.22
  81. Contact: Artem Bityutskiy <dedekind@infradead.org>
  82. Description:
  83. Minimum input/output unit size. All the I/O may only be done
  84. in fractions of the contained number.
  85. What: /sys/class/ubi/ubiX/mtd_num
  86. Date: January 2008
  87. KernelVersion: 2.6.25
  88. Contact: Artem Bityutskiy <dedekind@infradead.org>
  89. Description:
  90. Number of the underlying MTD device.
  91. What: /sys/class/ubi/ubiX/reserved_for_bad
  92. Date: July 2006
  93. KernelVersion: 2.6.22
  94. Contact: Artem Bityutskiy <dedekind@infradead.org>
  95. Description:
  96. Number of physical eraseblocks reserved for bad block handling.
  97. What: /sys/class/ubi/ubiX/total_eraseblocks
  98. Date: July 2006
  99. KernelVersion: 2.6.22
  100. Contact: Artem Bityutskiy <dedekind@infradead.org>
  101. Description:
  102. Total number of good (not marked as bad) physical eraseblocks on
  103. the underlying MTD device.
  104. What: /sys/class/ubi/ubiX/volumes_count
  105. Date: July 2006
  106. KernelVersion: 2.6.22
  107. Contact: Artem Bityutskiy <dedekind@infradead.org>
  108. Description:
  109. Count of volumes on this UBI device.
  110. What: /sys/class/ubi/ubiX/ubiX_Y/
  111. Date: July 2006
  112. KernelVersion: 2.6.22
  113. Contact: Artem Bityutskiy <dedekind@infradead.org>
  114. Description:
  115. The /sys/class/ubi/ubiX/ubiX_0/, /sys/class/ubi/ubiX/ubiX_1/,
  116. etc directories describe UBI volumes on UBI device X (volumes
  117. 0, 1, etc).
  118. What: /sys/class/ubi/ubiX/ubiX_Y/alignment
  119. Date: July 2006
  120. KernelVersion: 2.6.22
  121. Contact: Artem Bityutskiy <dedekind@infradead.org>
  122. Description:
  123. Volume alignment - the value the logical eraseblock size of
  124. this volume has to be aligned on. For example, 2048 means that
  125. logical eraseblock size is multiple of 2048. In other words,
  126. volume logical eraseblock size is UBI device logical eraseblock
  127. size aligned to the alignment value.
  128. What: /sys/class/ubi/ubiX/ubiX_Y/corrupted
  129. Date: July 2006
  130. KernelVersion: 2.6.22
  131. Contact: Artem Bityutskiy <dedekind@infradead.org>
  132. Description:
  133. Contains ASCII "0\n" if the UBI volume is OK, and ASCII "1\n"
  134. if it is corrupted (e.g., due to an interrupted volume update).
  135. What: /sys/class/ubi/ubiX/ubiX_Y/data_bytes
  136. Date: July 2006
  137. KernelVersion: 2.6.22
  138. Contact: Artem Bityutskiy <dedekind@infradead.org>
  139. Description:
  140. The amount of data this volume contains. This value makes sense
  141. only for static volumes, and for dynamic volume it equivalent
  142. to the total volume size in bytes.
  143. What: /sys/class/ubi/ubiX/ubiX_Y/dev
  144. Date: July 2006
  145. KernelVersion: 2.6.22
  146. Contact: Artem Bityutskiy <dedekind@infradead.org>
  147. Description:
  148. Major and minor numbers of the character device corresponding
  149. to this UBI volume (in <major>:<minor> format).
  150. What: /sys/class/ubi/ubiX/ubiX_Y/name
  151. Date: July 2006
  152. KernelVersion: 2.6.22
  153. Contact: Artem Bityutskiy <dedekind@infradead.org>
  154. Description:
  155. Volume name.
  156. What: /sys/class/ubi/ubiX/ubiX_Y/reserved_ebs
  157. Date: July 2006
  158. KernelVersion: 2.6.22
  159. Contact: Artem Bityutskiy <dedekind@infradead.org>
  160. Description:
  161. Count of physical eraseblock reserved for this volume.
  162. Equivalent to the volume size in logical eraseblocks.
  163. What: /sys/class/ubi/ubiX/ubiX_Y/type
  164. Date: July 2006
  165. KernelVersion: 2.6.22
  166. Contact: Artem Bityutskiy <dedekind@infradead.org>
  167. Description:
  168. Volume type. Contains ASCII "dynamic\n" for dynamic volumes and
  169. "static\n" for static volumes.
  170. What: /sys/class/ubi/ubiX/ubiX_Y/upd_marker
  171. Date: July 2006
  172. KernelVersion: 2.6.22
  173. Contact: Artem Bityutskiy <dedekind@infradead.org>
  174. Description:
  175. Contains ASCII "0\n" if the update marker is not set for this
  176. volume, and "1\n" if it is set. The update marker is set when
  177. volume update starts, and cleaned when it ends. So the presence
  178. of the update marker indicates that the volume is being updated
  179. at the moment of the update was interrupted. The later may be
  180. checked using the "corrupted" sysfs file.
  181. What: /sys/class/ubi/ubiX/ubiX_Y/usable_eb_size
  182. Date: July 2006
  183. KernelVersion: 2.6.22
  184. Contact: Artem Bityutskiy <dedekind@infradead.org>
  185. Description:
  186. Logical eraseblock size of this volume. Equivalent to logical
  187. eraseblock size of the device aligned on the volume alignment
  188. value.