hetznercloud / csi-driver

Kubernetes Container Storage Interface driver for Hetzner Cloud Volumes
MIT License
620 stars 102 forks source link

fix: xfs options compatibility between alpine and node kernel #689

Closed jooola closed 1 month ago

jooola commented 1 month ago

By default, the hcloud-csi-driver:2.8.0 (alpine 3.20) formats the file system with the nrext64=1 flag.

But the mismatch between the supported XFS options between the csi-driver container and the node kernel (5.15 on ubuntu 22.04) prevent the XFS file system to be mounted with:

Superblock has unknown incompatible features (0x20) enabled

This change disable the nrext64 flag when formatting new XFS file systems.

Closes #648

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 33.94%. Comparing base (a9a9b6f) to head (0e349e4). Report is 13 commits behind head on main.

Files Patch % Lines
internal/volumes/mount.go 0.00% 4 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #689 +/- ## ========================================== - Coverage 34.01% 33.94% -0.07% ========================================== Files 19 19 Lines 1623 1626 +3 ========================================== Hits 552 552 - Misses 1037 1040 +3 Partials 34 34 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.