Just to clarify, what we want to know is if 2 bytes (65536) blocks is enough for NAND flash?
That document from Intel says "*Blocks per LUN* is configurable" but not clear about the amount. Should we use 4 bytes (32-bit) to represent the amount of blocks instead of only 2 bytes? BR, Alan On Thu, Jun 27, 2024 at 10:35 AM Saurav Pal <resyfer....@gmail.com> wrote: > Hi all, > > I would love to receive your suggestions on the number of bytes required > for a field storing the number of blocks in the journal of a file system? > > The journal starts with a 8 byte magic sequence, then stores the number of > blocks used by the journal, and then an array for storing the block numbers > of those blocks, and then the logs in the rest of the area. The blocks may > not be contiguous. The target device is a NAND flash, and the journal uses > ` > n` number of blocks (erase blocks) to store logs. The logs themselves take > (12 > B + 4 B * (number of fs objects in the path)) size. > > The block sizes (number of pages in a block * page size) can be found in > this > document > < > https://www.intel.com/content/www/us/en/docs/programmable/786901/24-1/onfi-nand-memory-device.html > > > . > > Thanks in advance. > Best Regards, > Saurav. >