mirror of
https://github.com/littlefs-project/littlefs.git
synced 2025-11-16 12:34:34 +00:00
Mention that shrinking is unlikely to work
This commit is contained in:
6
lfs.h
6
lfs.h
@@ -766,11 +766,11 @@ int lfs_fs_gc(lfs_t *lfs);
|
||||
// Grows the filesystem to a new size, updating the superblock with the new
|
||||
// block count.
|
||||
//
|
||||
// if LFS_SHRINKIFCHEAP is defined, this function will also accept
|
||||
// If LFS_SHRINKIFCHEAP is defined, this function will also accept
|
||||
// block_counts smaller than the current configuration, after checking
|
||||
// that none of the blocks that are being removed are in use.
|
||||
//
|
||||
// Note: This is irreversible.
|
||||
// Note that littlefs's pseudorandom block allocation means that
|
||||
// this is very unlikely to work in the general case.
|
||||
//
|
||||
// Returns a negative error code on failure.
|
||||
int lfs_fs_grow(lfs_t *lfs, lfs_size_t block_count);
|
||||
|
||||
Reference in New Issue
Block a user