search for: needed_bytes_for_mp

Displaying 4 results from an estimated 4 matches for "needed_bytes_for_mp".

2017 Nov 06
2
[PATCH] v2v: rework free space check in guest mountpoints
...; mp_path = path; *) and check_guest_free_space mpstats = message (f_"Checking for sufficient free disk space in the guest"); + + (* Check whether /boot has its own mount point. *) + let has_boot = List.exists (fun { mp_path } -> mp_path = "/boot") mpstats in + + let needed_bytes_for_mp = function + | "/boot" + | "/" when not has_boot -> + (* We usually regenerate the initramfs, which has a + * typical size of 20-30MB. Hence: + *) + 50_000_000L + | "/" -> + (* We may install some packages, and they would usua...
2017 Nov 06
0
Re: [PATCH] v2v: rework free space check in guest mountpoints
...eck_guest_free_space mpstats = > message (f_"Checking for sufficient free disk space in the guest"); > + > + (* Check whether /boot has its own mount point. *) > + let has_boot = List.exists (fun { mp_path } -> mp_path = "/boot") mpstats in > + > + let needed_bytes_for_mp = function > + | "/boot" > + | "/" when not has_boot -> > + (* We usually regenerate the initramfs, which has a > + * typical size of 20-30MB. Hence: > + *) > + 50_000_000L > + | "/" -> > + (* We may in...
2019 Nov 28
1
[v2v PATCH v2] v2v: require 100 available inodes on each filesystem
...*) + let needed_inodes = 100L in + List.iter ( - fun { mp_path; mp_statvfs = { G.bfree; bsize } } -> + fun { mp_path; mp_statvfs = { G.bfree; bsize; files; ffree } } -> (* bfree = free blocks for root user *) let free_bytes = bfree *^ bsize in let needed_bytes = needed_bytes_for_mp mp_path in if free_bytes < needed_bytes then error (f_"not enough free space for conversion on filesystem ā€˜%sā€™. %Ld bytes free < %Ld bytes needed") - mp_path free_bytes needed_bytes + mp_path free_bytes needed_bytes; + (* Not all the filesyste...
2019 Nov 27
3
[v2v PATCH] v2v: require 100 availabe inodes on each filesystem (RHBZ#1764569)
...*) + let needed_inodes = 100L in + List.iter ( - fun { mp_path; mp_statvfs = { G.bfree; bsize } } -> + fun { mp_path; mp_statvfs = { G.bfree; bsize; files; ffree } } -> (* bfree = free blocks for root user *) let free_bytes = bfree *^ bsize in let needed_bytes = needed_bytes_for_mp mp_path in if free_bytes < needed_bytes then error (f_"not enough free space for conversion on filesystem ā€˜%sā€™. %Ld bytes free < %Ld bytes needed") - mp_path free_bytes needed_bytes + mp_path free_bytes needed_bytes; + (* Not all the filesyste...