From: Brian Norris It is a form of specifying file-system size. But instead of specifying the
exact file-system size, this option defines the maximum file-system
size (more strictly, maximum UBI volume size). For example, if you use
-df
reports too few free space?df
report too little free space?--max-leb-cnt=200
mkfs.ubifs
option, than it will be
+--max-leb-cnt=200
mkfs.ubifs
option, then it will be
possible to put the resulting image to smaller UBI volume and mount it. But if
the image is put to a larger UBI volume, the file-system will anyway take only
first 200 LEBs, and the rest of the volume will be wasted.mkfs.ubifs
just writes the --max-leb-cnt
value to the file-system superblocks.
This feature is quite handy on NAND flashes, because they have random amount -of initial bad eraseblocks (marked as bad in production). This means, that +
This feature is quite handy on NAND flashes, because they have a random amount +of initial bad eraseblocks (marked as bad in production). This means that different devices may have slightly different volume sizes (especially if the UBI auto-resize feature is used). So you may specify the maximum possible volume size and this will guarantee that @@ -669,7 +669,7 @@ eraseblocks. -
df
reports too few free space?df
report too little free space?UBIFS flash space accounting is quite challenging and it is not always
possible to report accurate amount of free space. The df
utility