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

Introduce a flag to skip comparing the local mac when raw sending #12981

Merged
merged 1 commit into from
Jan 21, 2022

Commits on Jan 19, 2022

  1. Introduce a flag to skip comparing the local mac when raw sending

    Raw receiving a snapshot back to the originating dataset is currently
    impossible because of user accounting being present in the originating
    dataset.
    
    One solution would be resetting user accounting when raw receiving on
    the receiving dataset. However, to recalculate it we would have to dirty
    all dnodes, which may not be preferrable on big datasets.
    
    Instead, we rely on the os_phys flag
    OBJSET_FLAG_USERACCOUNTING_COMPLETE to indicate that user accounting is
    incomplete when raw receiving. Thus, on the next mount of the receiving
    dataset the local mac protecting user accounting is zeroed out.
    The flag is then cleared when user accounting of the raw received
    snapshot is calculated.
    
    Signed-off-by: George Amanakis <gamanakis@gmail.com>
    gamanakis committed Jan 19, 2022
    Configuration menu
    Copy the full SHA
    ef9d2d5 View commit details
    Browse the repository at this point in the history