Project

General

Profile

Feature #12273

Apply scrub tag to objects during forward scrub

Added by John Spray over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
fsck/damage handling
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
Labels (FS):
Pull request ID:

Description

Where a tag was specified (#12258), write this into an xattr of the objects touched by the scrub (inode headers in the data pool, directory fragments in the metadata pool).

It should be done in the same RADOS op as scrub reads where possible. Overwrite any tag that was already present. Do not do a write if no tag was specified (writes are costly and not desired for background scrubs).

This tag becomes the cue for backward scrub on whether something is an orphan or not.

History

#1 Updated by John Spray over 8 years ago

  • Status changed from New to Resolved
commit 19300836921265a2becf81a1c35ee95f36bd53a4
Author: John Spray <john.spray@redhat.com>
Date:   Thu Jul 16 13:45:45 2015 +0100

    mds: write scrub tag during validation

    Signed-off-by: John Spray <john.spray@redhat.com>

Also available in: Atom PDF