Corrected free capacity measurement of stdio: drives in regular files
This commit is contained in:
parent
f99ac9e7ef
commit
9e5c7cc141
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2010.01.09.142642"
|
#define Cdrskin_timestamP "2010.01.12.165214"
|
||||||
|
@ -268,7 +268,7 @@ int burn_os_stdio_capacity(char *path, off_t *bytes)
|
|||||||
|
|
||||||
if (statvfs(testpath, &vfsbuf) == -1)
|
if (statvfs(testpath, &vfsbuf) == -1)
|
||||||
return -2;
|
return -2;
|
||||||
*bytes = add_size + ((off_t) vfsbuf.f_bsize) *
|
*bytes = add_size + ((off_t) vfsbuf.f_frsize) *
|
||||||
(off_t) vfsbuf.f_bavail;
|
(off_t) vfsbuf.f_bavail;
|
||||||
|
|
||||||
#else /* Libburn_os_has_statvfS */
|
#else /* Libburn_os_has_statvfS */
|
||||||
|
@ -696,7 +696,7 @@ int burn_os_stdio_capacity(char *path, off_t *bytes)
|
|||||||
if (testpath[0]) {
|
if (testpath[0]) {
|
||||||
if (statvfs(testpath, &vfsbuf) == -1)
|
if (statvfs(testpath, &vfsbuf) == -1)
|
||||||
return -2;
|
return -2;
|
||||||
*bytes = add_size + ((off_t) vfsbuf.f_bsize) *
|
*bytes = add_size + ((off_t) vfsbuf.f_frsize) *
|
||||||
(off_t) vfsbuf.f_bavail;
|
(off_t) vfsbuf.f_bavail;
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -753,7 +753,7 @@ int burn_os_stdio_capacity(char *path, off_t *bytes)
|
|||||||
|
|
||||||
if (statvfs(testpath, &vfsbuf) == -1)
|
if (statvfs(testpath, &vfsbuf) == -1)
|
||||||
return -2;
|
return -2;
|
||||||
*bytes = add_size + ((off_t) vfsbuf.f_bsize) *
|
*bytes = add_size + ((off_t) vfsbuf.f_frsize) *
|
||||||
(off_t) vfsbuf.f_bavail;
|
(off_t) vfsbuf.f_bavail;
|
||||||
|
|
||||||
#else /* Libburn_os_has_statvfS */
|
#else /* Libburn_os_has_statvfS */
|
||||||
|
@ -2101,7 +2101,7 @@ int burn_os_stdio_capacity(char *path, off_t *bytes)
|
|||||||
if (testpath[0]) {
|
if (testpath[0]) {
|
||||||
if (statvfs(testpath, &vfsbuf) == -1)
|
if (statvfs(testpath, &vfsbuf) == -1)
|
||||||
return -2;
|
return -2;
|
||||||
*bytes = add_size + ((off_t) vfsbuf.f_bsize) *
|
*bytes = add_size + ((off_t) vfsbuf.f_frsize) *
|
||||||
(off_t) vfsbuf.f_bavail;
|
(off_t) vfsbuf.f_bavail;
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user