File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ let attach_helper ~__context ~uuid ~vdi ~use_localhost_proxy =
291
291
" /dev/" ^ Client.VBD. get_device ~rpc ~session_id ~self: vbd
292
292
)
293
293
in
294
- with_api_errors (mount device) mount_point ;
294
+ with_api_errors (mount ~ty: ( Some " iso9660 " ) device) mount_point ;
295
295
debug " pool_update.attach_helper Mounted %s" mount_point
296
296
) ;
297
297
let ip =
Original file line number Diff line number Diff line change @@ -2465,9 +2465,8 @@ module VM = struct
2465
2465
| true ->
2466
2466
Unixext. with_file path [Unix. O_RDONLY ] 0o600 f_synced
2467
2467
| false ->
2468
- with_mounted_dir_ro path @@ fun dir ->
2469
- let filename = Filename. concat dir " suspend-image" in
2470
- Unixext. with_file filename [Unix. O_RDONLY ] 0o600 f_synced
2468
+ error " %s: can't mount %s" __FUNCTION__ path ;
2469
+ internal_error " can't mount %s (not a file or block dev)" path
2471
2470
)
2472
2471
2473
2472
let wait_ballooning task vm =
You can’t perform that action at this time.
0 commit comments