104
104
QFile file(TEST_RESTORE_FILE_PATH);
105
105
file.open(QIODevice::WriteOnly);
107
108
// Read data into buffer. We may not have enough to fill up buffer, so we
108
109
// store how many bytes were actually read in bytes_read.
109
110
int bytes_read = read(fd, buffer, sizeof(buffer));