mirror of
				https://github.com/eledio-devices/thirdparty-littlefs.git
				synced 2025-10-31 00:32:38 +01:00 
			
		
		
		
	Added file list for tracking in flight allocations
Needed primarily for tracking block allocations, unfortunately this prevents the freedom for the user to bitwise copy files.
This commit is contained in:
		
							
								
								
									
										2
									
								
								lfs.h
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								lfs.h
									
									
									
									
									
								
							| @@ -145,6 +145,7 @@ typedef struct lfs_entry { | ||||
| } lfs_entry_t; | ||||
|  | ||||
| typedef struct lfs_file { | ||||
|     struct lfs_file *next; | ||||
|     lfs_block_t pair[2]; | ||||
|     lfs_off_t off; | ||||
|     lfs_block_t head; | ||||
| @@ -194,6 +195,7 @@ typedef struct lfs { | ||||
|     lfs_size_t words;       // number of 32-bit words that can fit in a block | ||||
|  | ||||
|     lfs_block_t root[2]; | ||||
|     lfs_file_t *files; | ||||
|  | ||||
|     struct { | ||||
|         lfs_block_t block; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user