#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
+#include <sys/sendfile.h>
/// structure definition for a key value item
int pclRecoverFromBackup(int backupFd, const char* original)
{
int handle = 0;
- int readSize = 0;
- char buffer[RDRWBufferSize];
handle = open(original, O_TRUNC | O_RDWR);
if(handle != -1)
{
int dstFd = 0, csfd = 0;
int readSize = -1;
- char buffer[RDRWBufferSize];
if(access(dstPath, F_OK) != 0)
{