Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mounts don't fail when the block size changes #583

Closed
colin-foster-in-advantage opened this issue Jul 20, 2021 · 1 comment
Closed

Mounts don't fail when the block size changes #583

colin-foster-in-advantage opened this issue Jul 20, 2021 · 1 comment

Comments

@colin-foster-in-advantage
Copy link
Contributor

This was mentioned in #238 and #279. Basically changing block size doesn't trigger a mount failure.

Is there any reason to not say that "lfs_mount" will fail if the config->block_count != superblock->block_count?

If the first mount fails, then there could be two options:

  1. Attempt to resize LFS and remount (if lfs_resize gets implemented per question: is it possible to "grow" the filesystem? #279)
  2. Reformat with the new file size

A quick test shows this doesn't have any negative effects on our system. I can't imagine it would affect anyone else negatively...

@colin-foster-in-advantage
Copy link
Contributor Author

Pull request created in #584

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant