dragonflyoss / Dragonfly

This repository has be archived and moved to the new repository https://github.com/dragonflyoss/Dragonfly2.
https://d7y.io
Apache License 2.0
6k stars 774 forks source link

Will HTTP range requests lead to many small files on disk? #1334

Open sequix opened 4 years ago

sequix commented 4 years ago

I am trying to integrate stargz-snapshotter with dragonfly. It works.

stargz-snapshotter mounts a special image format stargz (which compatible with original OCI image, but with additional index info for fuse mounting), and convert read()/write() call to HTTP range requests to registry. So I wonder will HTTP range requests lead to many small files on disk?

Related: https://github.com/containerd/stargz-snapshotter/issues/92

lowzj commented 4 years ago

No, dfdaemon will delete the temporary file on disk when transferring its content.