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

CA-403700 use iso9660 file system for updates #6216

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lindig
Copy link
Contributor

@lindig lindig commented Jan 9, 2025

Be explicit about the file system of an update ISO. Remove dead code.

Be explicit about the file system of an update ISO. Remove dead code.

Signed-off-by: Christian Lindig <[email protected]>
@lindig lindig requested review from robhoes and edwintorok January 9, 2025 14:02
Comment on lines -2468 to +2469
with_mounted_dir_ro path @@ fun dir ->
let filename = Filename.concat dir "suspend-image" in
Unixext.with_file filename [Unix.O_RDONLY] 0o600 f_synced
error "%s: can't mount %s" __FUNCTION__ path ;
internal_error "can't mount %s (not a file or block dev)" path
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are you sure you modified the hunk you wanted? This code is supposed to call f using f_synced on a file, which is what it was doing before this change.

with_api_errors (mount device) mount_point ;
with_api_errors (mount ~ty:(Some "iso9660") device) mount_point ;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not against, but what the advantage of doing this? A different error in some cases? What if in the future we want to change file system?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This encodes our expectations. Any other format should be rejected; if we want to change the format we will change the code.

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.

2 participants