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

mds: catch damage to dentry's first field #49773

Merged
merged 9 commits into from
Mar 29, 2023
Merged

Commits on Mar 29, 2023

  1. mds: cleanup code

    Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
    batrick committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    17d8265 View commit details
    Browse the repository at this point in the history
  2. mds: add debugging for pre_cow_old_inode

    Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
    batrick committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    c9d3605 View commit details
    Browse the repository at this point in the history
  3. mds: catch damage to dentry's first field

    When possible. Abort the MDS before it can be written to the
    journal/directory.
    
    This is part of a series to address corruption first observed in [1].
    How the corruption is introduced is yet unknown.
    
    [1] https://tracker.ceph.com/issues/38452#note-10
    
    Fixes: http://tracker.ceph.com/issues/58482
    Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
    batrick committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    0340752 View commit details
    Browse the repository at this point in the history
  4. mds: provide test configs for creating first corruption

    Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
    batrick committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    fe258dc View commit details
    Browse the repository at this point in the history
  5. qa/tasks: allow specifying timeout command prefix to ceph

    Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
    batrick committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    dbf1a40 View commit details
    Browse the repository at this point in the history
  6. qa/tasks/cephfs: use rank_asok and allow specifying rank

    This will use the more efficient:
    
        ceph tell mds.<fsname>:<rank> ...
    
    Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
    batrick committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    3ba1739 View commit details
    Browse the repository at this point in the history
  7. qa/tasks/cephfs: test damage to dentry's first is caught

    Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
    batrick committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    293b90f View commit details
    Browse the repository at this point in the history
  8. qa: add missing scan_links step for data scan recovery

    Without, the first field remains corrupt (HEAD).
    
    Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
    batrick committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    1b4d907 View commit details
    Browse the repository at this point in the history
  9. mds: add config to decide whether to mark dentry bad

    So admin can restore access to files if necessary.
    
    Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
    batrick committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    7ffa065 View commit details
    Browse the repository at this point in the history