Open
Conversation
Add support to littlefs VFS layer to choose the driver based on INODE. For MTD driver select the MTD defined functions otherwise use block device.
Register dhara as block driver on top of MTD device. This block device is used to mount littlfs on /mnt.
Dhara documentation shows that in case of successful read 0 should be returned. But current TizeRT code returns numnber of read.
These changes modifies the format_filesystem function to add support for formatting LittleFS over Dhara (MTD-based filesystem) in addition to the existing block device formatting capabilities.
autoformat not working in case mount fails. memory corruption due to wrong assignment for dhara. causing corruption of dhara structure.
in case nand erase encounter bad block, return eagain and continue erasing other blocks. Also fix return for nand_bread
Two changes are done for this to sync the behaviour between Dhara and littleFS 1) We change littlefs_blocksize from fs->geo.erasesize (128 KB) to fs->geo.blocksize(2 KB). 2) As we are reserving some sectors (pages) for dhara inside files os/fs/driver/mtd/dhara/journal.c and os/fs/driver/mtd/dhara/map.c so we are going to give total pages - reserved pages as available blocks to Littlefs. Signed-off-by: Aditya Singh <aditya.s4@samsung.com> Signed-off-by: Aashish Lakhwara <aashish.l@samsung.com>
We have varified dhara itself manages bad block checking so we do not need mtd to manage bad block checking as it increases flash read operations. Signed-off-by: Aditya Singh <aditya.s4@samsung.com> Signed-off-by: Aashish Lakhwara <aashish.l@samsung.com>
A Metadata Cache based on Most Recently Used Metadata Page has been implemented inside file dhara.c that can be useful for faster page reads. Signed-off-by: Aditya Singh <aditya.s4@samsung.com> Signed-off-by: Aashish Lakhwara <aashish.l@samsung.com>w
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.