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

tune2fs has inconsistent output when setting different fs options #195

Open
drws opened this issue Sep 18, 2024 · 0 comments
Open

tune2fs has inconsistent output when setting different fs options #195

drws opened this issue Sep 18, 2024 · 0 comments

Comments

@drws
Copy link

drws commented Sep 18, 2024

Consider the following console output with 3 examples for setting several fs options:

# tune2fs -e remount-ro /dev/sda
tune2fs 1.47.1 (20-May-2024)
Setting error behavior to 2
# tune2fs -o journal_data /dev/sda
tune2fs 1.47.1 (20-May-2024)
# tune2fs -O metadata_csum /dev/sda
tune2fs 1.47.1 (20-May-2024)

The three operations are very similar, -e is option-specific while the other two are general option-setting operations. The issue is that -o/-O don't produce any output to indicate what was done. So the output is inconsistent between more or less equal operations.

The second issue is that if the same set of commands is ran again, the output is completely the same - while the fs options were already set before. tune2fs could tell the user an option was already set. For example printing Setting error behavior to... is somewhat misleading.

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