We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb63e8c commit 148f064Copy full SHA for 148f064
ocaml/xapi/xapi_pool_update.ml
@@ -347,8 +347,10 @@ let create_update_record ~__context ~update ~update_info ~vdi =
347
~vdi:vdi
348
349
let introduce ~__context ~vdi =
350
- let update_info = extract_update_info ~__context ~vdi ~verify in
351
ignore(Unixext.mkdir_safe Xapi_globs.host_update_dir 0o755);
+ (*If current disk free space is smaller than 1MB raise exception*)
352
+ assert_space_available ~multiplier:1L Xapi_globs.host_update_dir (Int64.mul 1024L 1024L);
353
+ let update_info = extract_update_info ~__context ~vdi ~verify in
354
ignore(assert_space_available Xapi_globs.host_update_dir update_info.installation_size);
355
try
356
let update = Db.Pool_update.get_by_uuid ~__context ~uuid:update_info.uuid in
0 commit comments