Removed fsinfo.disk_version

With rcompat/wcompat flags, on-disk minor version bumps will hopefully
not be needed for a long time (ever?). And if the on-disk version never
changes, why was a word to report it every lfsr_fs_stat call?

But this may be something to listen to user feedback on. Worst case we
can always readd fsinfo.disk_version if users find it useful.

Code changes:

           code          stack
  before: 33922           2592
  after:  33918 (-0.0%)   2592 (+0.0%)
This commit is contained in:
Christopher Haster
2024-06-12 12:25:01 -05:00
parent 687641533c
commit 2425b0f89b
4 changed files with 0 additions and 66 deletions
-1
View File
@@ -8994,7 +8994,6 @@ static int lfs_alloc(lfs_t *lfs, lfs_block_t *block, bool erase) {
/// Other filesystem things ///
int lfsr_fs_stat(lfs_t *lfs, struct lfs_fsinfo *fsinfo) {
fsinfo->disk_version = LFS_DISK_VERSION;
fsinfo->block_size = lfs->cfg->block_size;
fsinfo->block_count = lfs->block_count;
fsinfo->name_limit = lfs->name_limit;