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.