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

Reconsider "Sparse files SHOULD NOT be used" restriction? #733

Closed
AkihiroSuda opened this issue Sep 21, 2017 · 8 comments
Closed

Reconsider "Sparse files SHOULD NOT be used" restriction? #733

AkihiroSuda opened this issue Sep 21, 2017 · 8 comments

Comments

@AkihiroSuda
Copy link
Member

f5a91ff added the following sentence to layer.md:

[Sparse files](https://en.wikipedia.org/wiki/Sparse_file) SHOULD NOT be used because they lack consistent support across tar implementations.

GIven that most implementations use Go and now Go supports sparse files (golang/go#13548), can we reconsider this?

@vbatts @stevvooe

@wking
Copy link
Contributor

wking commented Sep 21, 2017

In #255, @vbatts made this an implementation-support issue instead of a filesystem-support issue, because he wasn't aware of many filesystems that didn't support sparse files. The recent Go support for sparse files has turned up a number of cases that don't support sparse files (e.g. see golang/go@718d9de giving up on trying to parameterize this, with the previous parameterization suggesting FFS and HFS+ lack support, and AUFS has only partial support). However, if that's the argument we want to make, we'd still want to adjust the spec to mention inconsistent OS/FS support instead of inconsistent tool support.

@vbatts
Copy link
Member

vbatts commented Sep 21, 2017 via email

@wking
Copy link
Contributor

wking commented Sep 21, 2017 via email

@stevvooe
Copy link
Contributor

In general, sparse files should not be used. You're still welcome to use them but I don't see the benefit, especially with compression.

@AkihiroSuda Is there are particular use case that you had in mind?

@AkihiroSuda
Copy link
Member Author

@stevvooe
Copy link
Contributor

@AkihiroSuda What if we added a section that says implementations should be able to consume them?

Considering the sparse support of sparse files, I'm a little reticent to remove this from the specification. It doesn't say you can't use them, but generating them may come with consequences.

@AkihiroSuda
Copy link
Member Author

OK, closing this issue.

However, if we encounter real compatibility problem across different implementations, I'd like to reopen this issue with some new annotation convention (org.opencontainers.image.has-sparse-tar-layer-blah-blah-blah)

@vbatts
Copy link
Member

vbatts commented Sep 26, 2017 via email

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

No branches or pull requests

4 participants