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

[1.3] backport failpoints(resizeFileError, lackOfDiskSpace) and dmflakey on XFS #816

Merged
merged 4 commits into from
Aug 9, 2024

Commits on Aug 9, 2024

  1. add failpoint 'resizeFileError' to simulate file.Truncate error

    Signed-off-by: Benjamin Wang <wachao@vmware.com>
    (cherry picked from commit 465077b)
    Signed-off-by: Wei Fu <fuweid89@gmail.com>
    ahrtr authored and fuweid committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    ec68f06 View commit details
    Browse the repository at this point in the history
  2. tests: add failpoint to simulate lack of disk space

    Signed-off-by: Marcondes Viana <marju10@gmail.com>
    (cherry picked from commit 5ddbd0c)
    Signed-off-by: Wei Fu <fuweid89@gmail.com>
    vianamjr authored and fuweid committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    79bcca0 View commit details
    Browse the repository at this point in the history
  3. tests: Update TestRestartFromPowerFailure

    Update case with a combination of EXT4 filesystem's commit setting and
    unexpected exit event. That EXT4 filesystem's commit is to sync all its data
    and metadata every seconds. The kernel can help us sync even if that
    process has been killed. With different commit setting, we can simulate
    that case that kernel syncs half part of dirty pages before power
    failure. And for unexpected exit event, we can kill that process
    randomly or panic at failpoint instead of fixed code path.
    
    Signed-off-by: Wei Fu <fuweid89@gmail.com>
    (cherry picked from commit 4c3a80b)
    Signed-off-by: Wei Fu <fuweid89@gmail.com>
    fuweid committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    0719297 View commit details
    Browse the repository at this point in the history
  4. Add basic XFS powerfailure tests

    This also introduces mkfs options, in case we need to accomodate for
    non-default parameters here in the future.
    
    Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
    (cherry picked from commit c27eedc)
    Signed-off-by: Wei Fu <fuweid89@gmail.com>
    tjungblu authored and fuweid committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    70ab151 View commit details
    Browse the repository at this point in the history