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

Check for filesystem existence only, not its type #3193

Merged
merged 1 commit into from
May 6, 2023

Conversation

zedi-pramodh
Copy link

If no filesystem exists create ext4 fs instead of ext2

Testing done

  1. Assigned a raw block device to container and verified that ext4 is created on that and mounted at the requested mount point.

  2. Assigned a raw block device which already has a ext4 filesystem and verified that contents on it are intact, ie filesystem is not recreated.

If no filesystem exists create ext4 fs instead of ext2

Signed-off-by: Pramodh Pallapothu <pramodh@zededa.com>
Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rouming
Copy link
Contributor

rouming commented May 5, 2023

@zedi-pramodh can you please describe the background of this PR? this is the fix for some bug?

@zedi-pramodh
Copy link
Author

@rouming customer reported an issue where we are creating ext2 filesystem on their raw devices. If you need more info we can discuss internally since its a customer issue.

@eriknordmark eriknordmark added the stable Should be backported to stable release(s) label May 5, 2023
@eriknordmark
Copy link
Contributor

I think this needs to be patched in LTS releases so I added the stable label.

@eriknordmark eriknordmark merged commit b3e4475 into lf-edge:master May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stable Should be backported to stable release(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants