Misc. bug fixes & restructuring.

This commit is contained in:
srs5694
2011-03-01 22:03:54 -05:00
parent f2efa7defc
commit 64cbd17106
25 changed files with 742 additions and 1413 deletions

View File

@@ -348,7 +348,7 @@ uint64_t DiskIO::DiskSize(int *err) {
if (*err) {
sectors = sz = 0;
} // if
if ((errno == EFBIG) || (!*err)) {
if ((!*err) || (errno == EFBIG)) {
*err = ioctl(fd, BLKGETSIZE64, &b);
if (*err || b == 0 || b == sz)
sectors = sz;