Displaying 20 results from an estimated 37 matches for "bfree".
Did you mean:
free
2017 Nov 06
2
[PATCH] v2v: rework free space check in guest mountpoints
...y install some packages, and they would usually go
+ * on the root filesystem.
+ *)
+ 20_000_000L
+ | _ ->
+ (* For everything else, just make sure there is some free space. *)
+ 10_000_000L
+ in
+
List.iter (
- fun { mp_path = mp;
- mp_statvfs = { G.bfree; blocks; bsize } } ->
- (* Ignore small filesystems. *)
- let total_size = blocks *^ bsize in
- if total_size > 100_000_000L then (
- (* bfree = free blocks for root user *)
- let free_bytes = bfree *^ bsize in
- let needed_bytes =
- match mp with...
2019 Nov 28
1
[v2v PATCH v2] v2v: require 100 available inodes on each filesystem
...ge (f_"Checking for sufficient free disk space in the guest");
@@ -399,14 +401,21 @@ and check_guest_free_space mpstats =
10_000_000L
in
+ (* Reasonable headroom for conversion operations. *)
+ 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_...
2019 Nov 27
3
[v2v PATCH] v2v: require 100 availabe inodes on each filesystem (RHBZ#1764569)
...ge (f_"Checking for sufficient free disk space in the guest");
@@ -399,14 +401,21 @@ and check_guest_free_space mpstats =
10_000_000L
in
+ (* Reasonable headroom for conversion operations. *)
+ 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_...
2017 Nov 06
0
Re: [PATCH] v2v: rework free space check in guest mountpoints
...+ * on the root filesystem.
> + *)
> + 20_000_000L
> + | _ ->
> + (* For everything else, just make sure there is some free space. *)
> + 10_000_000L
> + in
> +
> List.iter (
> - fun { mp_path = mp;
> - mp_statvfs = { G.bfree; blocks; bsize } } ->
> - (* Ignore small filesystems. *)
> - let total_size = blocks *^ bsize in
> - if total_size > 100_000_000L then (
> - (* bfree = free blocks for root user *)
> - let free_bytes = bfree *^ bsize in
> - let needed_byt...
2006 Jun 08
7
Wrong reported free space over NFS
NFS server (b39):
bash-3.00# zfs get quota nfs-s5-s8/d5201 nfs-s5-p0/d5110
NAME PROPERTY VALUE SOURCE
nfs-s5-p0/d5110 quota 600G local
nfs-s5-s8/d5201 quota 600G local
bash-3.00#
bash-3.00# df -h | egrep "d5201|d5110"
nfs-s5-p0/d5110 600G 527G 73G 88% /nfs-s5-p0/d5110
2018 Jan 04
2
virtdf outputs on host differs from df in guest
...s/cgroup
/dev/sda1 508588 133328 375260 27% /boot
tmpfs 188376 0 188376 0% /run/user/0
using scripts:
python -c 'import os; s = os.statvfs ("/"); print s'
posix.statvfs_result(f_bsize=4096, f_frsize=4096, f_blocks=5886149,
f_bfree=4802342, f_bavail=4802342, f_files=23556096, f_ffree=23435372,
f_favail=23435372, f_flag=4096, f_namemax=255)
python -c 'import os; s = os.statvfs ("/boot"); print s'
posix.statvfs_result(f_bsize=4096, f_frsize=4096, f_blocks=127147,
f_bfree=93815, f_bavail=93815, f_files=51200...
2018 Jan 04
2
Re: virtdf outputs on host differs from df in guest
...hard W.M. Jones" <rjones@redhat.com> wrote:
>On Thu, Jan 04, 2018 at 12:58:40PM +0800, Chen Fan wrote:
>[In guest]
>> python -c 'import os; s = os.statvfs ("/"); print s'
>> posix.statvfs_result(f_bsize=4096, f_frsize=4096, f_blocks=5886149,
>> f_bfree=4802342, f_bavail=4802342, f_files=23556096,
>> f_ffree=23435372, f_favail=23435372, f_flag=4096, f_namemax=255)
>>
>> python -c 'import os; s = os.statvfs ("/boot"); print s'
>> posix.statvfs_result(f_bsize=4096, f_frsize=4096, f_blocks=127147,
>> f...
2011 Nov 11
1
virt-df: ext2/3/4 statvfs(2) output changed between two recent Linux kernels (3.2.0)
...between:
Fedora kernel 3.2.0-0.rc0.git4.1.fc17 (3rd Nov)
Fedora kernel 3.2.0-0.rc1.git2.1.fc17 (11th Nov)
With 3.2.0-0.rc0.git4.1.fc17, and all earlier versions, the output of
statvfs(2) on a freshly created 20M ext2 filesystem is:
bsize: 1024
frsize: 1024
blocks: 19827 <-- NB
bfree: 19655
bavail: 18631
files: 5136
ffree: 5125
favail: 5125
fsid: 1411286354856931562
flag: 4096
namemax: 255
With 3.2.0-0.rc1.git2.1.fc17, it changed to:
bsize: 1024
frsize: 1024
blocks: 19939 <-- NB
bfree: 19655
bavail: 18631
files: 5136
ffree: 5125
favail: 51...
2015 Oct 20
1
[PATCH v3 04/13] v2v: factor out size checks
...#1139543). To avoid this situation, check there is some
* headroom. Mainly we care about the root filesystem.
*)
and check_free_space mpstats =
+ message (f_"Checking for sufficient free disk space in the guest");
List.iter (
fun { mp_path = mp;
mp_statvfs = { G.bfree = bfree; blocks = blocks; bsize = bsize } } ->
@@ -816,6 +811,14 @@ and estimate_target_size mpstats targets =
targets
)
+and check_target_free_space mpstats source targets output =
+
+ (* Estimate space required on target for each disk. Note this is a max. *)
+ message (f_"Est...
2018 Aug 14
2
[PATCH] v2v: Add --print-estimate option to print source size estimate.
...+ exit 0
+ );
+
(* Inspection - this also mounts up the filesystems. *)
(match conversion_mode with
| Copying _ -> message (f_"Inspecting the overlay")
@@ -371,6 +377,48 @@ and print_mpstat chan { mp_dev = dev; mp_path = path;
fprintf chan " bsize=%Ld blocks=%Ld bfree=%Ld bavail=%Ld\n"
s.Guestfs.bsize s.Guestfs.blocks s.Guestfs.bfree s.Guestfs.bavail
+(* Print the estimated size of the source disk(s).
+ *
+ * These are somewhat related to mpstats above, except that
+ * we must also collect information about devices which do
+ * not contain mountable...
2017 Oct 03
0
[PATCH v2 1/2] daemon: Reimplement statvfs API in OCaml.
...e
@@ -207,20 +216,129 @@ guestfs_int_mllib_realpath (value pathv)
}
value
-guestfs_int_mllib_statvfs_free_space (value pathv)
+guestfs_int_mllib_statvfs_statvfs (value pathv)
{
CAMLparam1 (pathv);
- CAMLlocal1 (rv);
+ int64_t f_bsize;
+ int64_t f_frsize;
+ int64_t f_blocks;
+ int64_t f_bfree;
+ int64_t f_bavail;
+ int64_t f_files;
+ int64_t f_ffree;
+ int64_t f_favail;
+ int64_t f_fsid;
+ int64_t f_flag;
+ int64_t f_namemax;
+ CAMLlocal2 (rv, v);
+
+#ifdef HAVE_STATVFS
struct statvfs buf;
- int64_t free_space;
- if (statvfs (String_val (pathv), &buf) == -1) {
- pe...
2018 Aug 14
0
Re: [PATCH] v2v: Add --print-estimate option to print source size estimate.
...(* Inspection - this also mounts up the filesystems. *)
> (match conversion_mode with
> | Copying _ -> message (f_"Inspecting the overlay")
> @@ -371,6 +377,48 @@ and print_mpstat chan { mp_dev = dev; mp_path = path;
> fprintf chan " bsize=%Ld blocks=%Ld bfree=%Ld bavail=%Ld\n"
> s.Guestfs.bsize s.Guestfs.blocks s.Guestfs.bfree s.Guestfs.bavail
>
> +(* Print the estimated size of the source disk(s).
> + *
> + * These are somewhat related to mpstats above, except that
> + * we must also collect information about devices which d...
2018 Jan 07
2
Re: virtdf outputs on host differs from df in guest
...t 2018-01-05 00:22:46, "Richard W.M. Jones" <rjones@redhat.com> wrote:
>To summarise:
>
>>[In guest]
>> python -c 'import os; s = os.statvfs ("/boot"); print s'
>> posix.statvfs_result(f_bsize=4096, f_frsize=4096, f_blocks=127147,
>> f_bfree=93815, f_bavail=93815, f_files=512000, f_ffree=511626,
>> f_favail=511626, f_flag=4096, f_namemax=255)
>
>>[From the host via libguestfs]
>> # sudo guestfish --ro -d rpm-build-for-7.2 -i statvfs /boot
>> bsize: 4096
>> frsize: 4096
>> blocks: 127147
>> b...
2018 Jan 04
0
Re: virtdf outputs on host differs from df in guest
On Thu, Jan 04, 2018 at 12:58:40PM +0800, Chen Fan wrote:
[In guest]
> python -c 'import os; s = os.statvfs ("/"); print s'
> posix.statvfs_result(f_bsize=4096, f_frsize=4096, f_blocks=5886149,
> f_bfree=4802342, f_bavail=4802342, f_files=23556096,
> f_ffree=23435372, f_favail=23435372, f_flag=4096, f_namemax=255)
>
> python -c 'import os; s = os.statvfs ("/boot"); print s'
> posix.statvfs_result(f_bsize=4096, f_frsize=4096, f_blocks=127147,
> f_bfree=93815, f_bava...
2018 Jan 04
0
Re: virtdf outputs on host differs from df in guest
To summarise:
>[In guest]
> python -c 'import os; s = os.statvfs ("/boot"); print s'
> posix.statvfs_result(f_bsize=4096, f_frsize=4096, f_blocks=127147,
> f_bfree=93815, f_bavail=93815, f_files=512000, f_ffree=511626,
> f_favail=511626, f_flag=4096, f_namemax=255)
>[From the host via libguestfs]
> # sudo guestfish --ro -d rpm-build-for-7.2 -i statvfs /boot
> bsize: 4096
> frsize: 4096
> blocks: 127147
> bfree: 100215
> bavail: 100215...
2017 Dec 12
2
[PATCH] df: Handle block sizes smaller than 1024 bytes (RHBZ#1525241).
.../* 1K blocks */
if (!human) {
- factor = stat->bsize / 1024;
-
- v = stat->blocks * factor;
+ v = scale (stat->blocks, stat->bsize, 1024);
snprintf (buf[0], MAX_LEN, "%" PRIi64, v);
cols[0] = buf[0];
- v = (stat->blocks - stat->bfree) * factor;
+ v = scale (stat->blocks - stat->bfree, stat->bsize, 1024);
snprintf (buf[1], MAX_LEN, "%" PRIi64, v);
cols[1] = buf[1];
- v = stat->bavail * factor;
+ v = scale (stat->bavail, stat->bsize, 1024);
snprintf (buf[2], MAX_LEN,...
2017 Oct 04
2
[PATCH v3 0/2] builder: Choose better weights in the planner.
v2 -> v3:
- Drop gnulib fallback.
2017 Oct 02
3
[PATCH 0/2] builder: Choose better weights in the planner.
It started out as "this'll be just a simple fix ..."
and turned into something a bit over-engineered in the end.
Here it is anyway.
Rich.
2017 Oct 03
4
[PATCH v2 0/2] builder: Choose better weights in the planner.
v1 -> v2:
- Removed the f_type field from StatVFS.statvfs structure.
- New function StatVFS.filesystem_is_remote, written in C.
[Thinking about it, this should probably be called
?is_network_filesystem?, but I can change that before
pushing].
- Use statvfs instead of fstatvfs, and statfs instead of fstatfs.
- Rejigged the comments in builder/builder.ml to make them simpler
2018 Aug 16
0
[PATCH v2] v2v: Add --print-estimate option to print copy size estimate.
...exit 0
+ );
+
message (f_"Assigning disks to buses");
let target_buses =
Target_bus_assignment.target_bus_assignment source guestcaps in
@@ -371,6 +377,26 @@ and print_mpstat chan { mp_dev = dev; mp_path = path;
fprintf chan " bsize=%Ld blocks=%Ld bfree=%Ld bavail=%Ld\n"
s.Guestfs.bsize s.Guestfs.blocks s.Guestfs.bfree s.Guestfs.bavail
+(* Print the estimated size that will be copied for each disk. *)
+and print_copy_size_estimate cmdline overlays =
+ let json = cmdline.machine_readable in
+ if json then printf "{ \"disks\&...