containerd / accelerated-container-image

A production-ready remote container image format (overlaybd) and snapshotter based on block-device.
Apache License 2.0
409 stars 75 forks source link

Set the correct fsType for erofs when prefetching through the file list #299

Closed salvete closed 2 months ago

salvete commented 3 months ago

What this PR does / why we need it:

When prefetching using the file list, the default fsType is ext4, even if the file system on the virtual block device is actually erofs. This sets the correct fsType based on the file system type present on the virtual block device.

The corresponding overlaybd PR: https://github.com/containerd/overlaybd/pull/344

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged): Fixes #

Please check the following list:

salvete commented 3 months ago

OverlayBDBlobFsType shouldn't be used for turboOCI due to multiple fsmeta cases.

Done. Now for erofs, the fsType is determined by the superblock of the virtual block device.

BigVan commented 3 months ago

LGTM