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(backup): skip loading the backingFile when doing backup or when user requests exporting the volume without backingFile (backport #1187) #1190

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Aug 13, 2024

@ChanYiLin has awesome analysis that sometime we are still loading backing file layer on sle-micro ARM64 when doing backup link. This is not correct because we should skip loading backing file when doing backup

The current implementation relies on the assumption that file descriptor of backingFile is always 0 and uses it to skip loading the backingFile layer: link . However, this assumption is not always correct. For example, with RAW backing image, fd is not 0. See more details at link . For qcow backing image, that assumption is correct because qcow image has hard coded to have FD 0 here https://github.com/longhorn/longhorn-engine/blob/04c645097a4a93e46f0f0391222895ea06b25456/pkg/qcow/libqcow.go#L84-L87

This PR propose a this fix which always skip loading backingFile and doesn't rely on the assumption that backing file has fd as 0

longhorn/longhorn#9209


This is an automatic backport of pull request #1187 done by [Mergify](https://mergify.com).

…ser request

exporting the volume without backingFile

longhorn-9209

Signed-off-by: Phan Le <phan.le@suse.com>
(cherry picked from commit 449c3bd)
@ChanYiLin
Copy link
Contributor

ref: longhorn/longhorn#9228

@ChanYiLin ChanYiLin self-assigned this Aug 13, 2024
@ChanYiLin ChanYiLin requested a review from derekbit August 13, 2024 09:21
@derekbit derekbit merged commit 5eac2b1 into v1.5.x Aug 14, 2024
8 checks passed
@derekbit derekbit deleted the mergify/bp/v1.5.x/pr-1187 branch August 14, 2024 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants