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

Fix restoring filesystem commit interval #189

Open
wants to merge 1 commit into
base: lmt-upstream
Choose a base branch
from

Commits on Sep 25, 2022

  1. laptop_mode: fix restoring filesystem commit interval

    grep without "-E" option uses basic regular expressions, where "+"
    repetition operator needs to be backslashed as "\+", but
    replace_numeric_mount_option() function used just a plain "+".
    
    This resulted in this function being unable to find a commit interval
    option in the saved mount options and so substituting it with the default
    "commit=0" instead.
    
    Due to this mistake any non-default commit interval would get reset to the
    filesystem-specific default value (as provided by "commit=0") when laptop
    mode was deactivated (like when the AC supply was plugged).
    maciejsszmigiero committed Sep 25, 2022
    Configuration menu
    Copy the full SHA
    8c5996a View commit details
    Browse the repository at this point in the history