Skip to content

Commit

Permalink
CA-403700 use iso9660 file system for updates (#6216)
Browse files Browse the repository at this point in the history
Be explicit about the file system of an update ISO. Remove dead code.
  • Loading branch information
robhoes authored Jan 13, 2025
2 parents f2f6d20 + 5689150 commit d8ac4d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ocaml/xapi/xapi_pool_update.ml
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ let attach_helper ~__context ~uuid ~vdi ~use_localhost_proxy =
"/dev/" ^ Client.VBD.get_device ~rpc ~session_id ~self:vbd
)
in
with_api_errors (mount device) mount_point ;
with_api_errors (mount ~ty:(Some "iso9660") device) mount_point ;
debug "pool_update.attach_helper Mounted %s" mount_point
) ;
let ip =
Expand Down
5 changes: 2 additions & 3 deletions ocaml/xenopsd/xc/xenops_server_xen.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2465,9 +2465,8 @@ module VM = struct
| true ->
Unixext.with_file path [Unix.O_RDONLY] 0o600 f_synced
| false ->
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
)

let wait_ballooning task vm =
Expand Down

0 comments on commit d8ac4d9

Please sign in to comment.