Home | History | Annotate | Download | only in gptfdisk

Lines Matching defs:numBlocks

298    int blockSize, numBlocks, retval = 0;
310 numBlocks = 1;
313 numBlocks = numBytes / blockSize;
315 numBlocks++;
316 tempSpace = new char [numBlocks * blockSize];
324 retval = read(fd, tempSpace, numBlocks * blockSize);
328 if (((numBlocks * blockSize) != numBytes) && (retval > 0))
341 int blockSize = 512, i, numBlocks, retval = 0;
353 numBlocks = 1;
356 numBlocks = numBytes / blockSize;
357 if ((numBytes % blockSize) != 0) numBlocks++;
358 tempSpace = new char [numBlocks * blockSize];
367 for (i = numBytes; i < numBlocks * blockSize; i++) {
370 retval = write(fd, tempSpace, numBlocks * blockSize);
373 if (((numBlocks * blockSize) != numBytes) && (retval > 0))