search for: total_number_of_bytes

Displaying 5 results from an estimated 5 matches for "total_number_of_bytes".

2017 Oct 03
0
[PATCH v2 1/2] daemon: Reimplement statvfs API in OCaml.
...= buf.f_bavail; + f_files = buf.f_files; + f_ffree = buf.f_ffree; + f_favail = buf.f_favail; + f_fsid = buf.f_fsid; + f_flag = buf.f_flag; + f_namemax = buf.f_namemax; + +#else /* !HAVE_STATVFS */ +# if WIN32 + ULONGLONG free_bytes_available; /* for user - similar to bavail */ + ULONGLONG total_number_of_bytes; + ULONGLONG total_number_of_free_bytes; /* for everyone - bfree */ + + if (!GetDiskFreeSpaceEx (String_val (pathv), + (PULARGE_INTEGER) &free_bytes_available, + (PULARGE_INTEGER) &total_number_of_bytes, + (PULA...
2015 Jul 17
1
[PATCH] daemon: add a space after func/macro to fit code-style
...t a/daemon/statvfs.c b/daemon/statvfs.c index a1f2f08..987537d 100644 --- a/daemon/statvfs.c +++ b/daemon/statvfs.c @@ -113,13 +113,13 @@ do_statvfs (const char *path) * the version of Windows. So this code assumes the disk is NTFS * and the version of Windows is >= Win2K. */ - if (total_number_of_bytes < UINT64_C(16) * 1024 * 1024 * 1024 * 1024) + if (total_number_of_bytes < UINT64_C (16) * 1024 * 1024 * 1024 * 1024) ret->bsize = 4096; - else if (total_number_of_bytes < UINT64_C(32) * 1024 * 1024 * 1024 * 1024) + else if (total_number_of_bytes < UINT64_C (32) * 1024 * 1024...
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