longhorn-manager icon indicating copy to clipboard operation
longhorn-manager copied to clipboard

v2 volume: always set unmapMarkSnapChainRemoved to disabled

Open derekbit opened this issue 1 year ago • 4 comments
trafficstars

Which issue(s) this PR fixes:

Issue https://github.com/longhorn/longhorn/issues/7534

What this PR does / why we need it:

The field is not meaningful for v2 volumes.

Special notes for your reviewer:

Additional documentation or context

derekbit avatar Feb 26 '24 05:02 derekbit

For v2 volumes, it seems that we cannot do snapshot auto deletion together with unmap without modifying spdk_tgt. Is asking users to set up a snapshot deletion recurring job an alternative?

shuo-wu avatar Feb 26 '24 10:02 shuo-wu

For v2 volumes, it seems that we cannot do snapshot auto deletion together with unmap without modifying spdk_tgt. Is asking users to set up a snapshot deletion recurring job an alternative?

Yes, the alternative solution sounds feasible. snapshot auto deletion together with unmap -> I think we can improve it in the future if users request the feature. WDYT?

derekbit avatar Feb 26 '24 17:02 derekbit

I think we can improve it in the future if users request the feature. WDYT?

This feature is for Longhorn only. Should we modify spdk code for it? I think the alternative solution is good enough.

shuo-wu avatar Feb 27 '24 08:02 shuo-wu

I think we can improve it in the future if users request the feature. WDYT? This feature is for Longhorn only. Should we modify spdk code for it?

No.

I think the alternative solution is good enough.

I agree that the alternative solution is enough.

derekbit avatar Feb 27 '24 08:02 derekbit

This pull request is now in conflict. Could you fix it @derekbit? 🙏

mergify[bot] avatar Apr 09 '24 16:04 mergify[bot]

Reviewd in https://github.com/longhorn/longhorn-manager/pull/2642/commits

derekbit avatar Apr 16 '24 07:04 derekbit