Corrected free capacity measurement of stdio: drives in regular files

This commit is contained in:
Thomas Schmitt 2010-01-12 16:50:44 +00:00
parent a88745c82e
commit 2ff03841d7
5 changed files with 5 additions and 5 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2010.01.09.142642"
#define Cdrskin_timestamP "2010.01.12.165214"

View File

@ -268,7 +268,7 @@ int burn_os_stdio_capacity(char *path, off_t *bytes)
if (statvfs(testpath, &vfsbuf) == -1)
return -2;
*bytes = add_size + ((off_t) vfsbuf.f_bsize) *
*bytes = add_size + ((off_t) vfsbuf.f_frsize) *
(off_t) vfsbuf.f_bavail;
#else /* Libburn_os_has_statvfS */

View File

@ -696,7 +696,7 @@ int burn_os_stdio_capacity(char *path, off_t *bytes)
if (testpath[0]) {
if (statvfs(testpath, &vfsbuf) == -1)
return -2;
*bytes = add_size + ((off_t) vfsbuf.f_bsize) *
*bytes = add_size + ((off_t) vfsbuf.f_frsize) *
(off_t) vfsbuf.f_bavail;
}
return 1;

View File

@ -753,7 +753,7 @@ int burn_os_stdio_capacity(char *path, off_t *bytes)
if (statvfs(testpath, &vfsbuf) == -1)
return -2;
*bytes = add_size + ((off_t) vfsbuf.f_bsize) *
*bytes = add_size + ((off_t) vfsbuf.f_frsize) *
(off_t) vfsbuf.f_bavail;
#else /* Libburn_os_has_statvfS */

View File

@ -2101,7 +2101,7 @@ int burn_os_stdio_capacity(char *path, off_t *bytes)
if (testpath[0]) {
if (statvfs(testpath, &vfsbuf) == -1)
return -2;
*bytes = add_size + ((off_t) vfsbuf.f_bsize) *
*bytes = add_size + ((off_t) vfsbuf.f_frsize) *
(off_t) vfsbuf.f_bavail;
}
return 1;