dError("free disk size: %f GB, too little, quit",tsDataSpace.size.avail);
dError("free disk size: %f GB, too little, require %f GB at least at least , quit",(double)tsDataSpace.size.avail/1024.0/1024.0/1024.0,(double)tsDataSpace.reserved/1024.0/1024.0/1024.0);
returnfalse;
returnfalse;
}
}
if(osLogSpaceAvailable()){
if(!osLogSpaceAvailable()){
dError("free disk size: %f GB, too little, quit",tsLogSpace.size.avail);
dError("free disk size: %f GB, too little, require %f GB at least at least, quit",(double)tsLogSpace.size.avail/1024.0/1024.0/1024.0,(double)tsLogSpace.reserved/1024.0/1024.0/1024.0);
returnfalse;
returnfalse;
}
}
if(osTempSpaceAvailable()){
if(!osTempSpaceAvailable()){
dError("free disk size: %f GB, too little, quit",tsTempSpace.size.avail);
dError("free disk size: %f GB, too little, require %f GB at least at least, quit",(double)tsTempSpace.size.avail/1024.0/1024.0/1024.0,(double)tsTempSpace.reserved/1024.0/1024.0/1024.0);
uError("Write log file failed, since log disk spase is not enough.\n %f GB, too little, require %f GB at least at least.",(double)tsLogSpace.size.avail/1024.0/1024.0/1024.0,(double)tsLogSpace.reserved/1024.0/1024.0/1024.0);