uffs_TreeInit(uffs_Device *dev)

54 views
Skip to first unread message

Aash Mohd

unread,
Jun 15, 2019, 4:54:48 AM6/15/19
to UFFS
In functions uffs_TreeInit(uffs_Device *dev),

dev->tree.erased_count = 0;

dev->cfg.reserved_free_blocks=MINIMUN_ERASED_BLOCK 
and 
MINIMUN_ERASED_BLOCK= 2

so that this condions (if (obj->dev->tree.erased_count < obj->dev->cfg.reserved_free_blocks) ) is true and showing error
 
so can we change,  dev->tree.erased_count = 0; to dev->tree.erased_count = 3;
???

Also,  for (i = 0; i < FILE_NODE_ENTRY_LEN; i++) {
dev->tree.file_entry[i] = EMPTY_NODE;
}
where   EMPTY_NODE=0xffff
and functions uffs_TreeFindFileNodeByName returning NULL bcz   

what should can i do
???



Reply all
Reply to author
Forward
0 new messages