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

fetcher: Always open tmpfiles in repo location #2875

Merged
merged 1 commit into from
Jun 7, 2023

Conversation

cgwalters
Copy link
Member

In an installation environment (like a live ISO) we may not have significant space outside of the target installation repository.

There's no reason not to always open a linkable tempfile. In the future we should fix the pull path to verify the checksum and then just directly link in the object instead of copying.

Closes: #2571

In an installation environment (like a live ISO) we may
not have significant space outside of the target installation
repository.

There's no reason not to always open a linkable tempfile.  In
the future we should fix the pull path to verify the checksum
and then just directly link in the object instead of copying.

Closes: ostreedev#2571
@cgwalters
Copy link
Member Author

(Only compile tested locally)

Copy link
Member

@dbnicholson dbnicholson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Feel free to pickup the comment or not.

@@ -35,14 +35,8 @@ static inline gboolean
_ostree_fetcher_tmpf_from_flags (OstreeFetcherRequestFlags flags, int dfd, GLnxTmpfile *tmpf,
GError **error)
{
if ((flags & OSTREE_FETCHER_REQUEST_LINKABLE) > 0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this is a dead flag with this removal. Since this is internal API (I think), can it be removed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I felt it was clearer to keep the flag even if unused just to clarify the simplicity of the change.

May do some other cleanup though after this.

@cgwalters cgwalters merged commit 59a653c into ostreedev:main Jun 7, 2023
19 checks passed
@cgwalters
Copy link
Member Author

This was reverted in 4e61e6f

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

Successfully merging this pull request may close these issues.

pull_with_options uses /var/tmp as tmp space, preventing pulling big files during kickstart installs
2 participants