Home | History | Annotate | Download | only in tf_daemon

Lines Matching refs:g_nSectorSize

368 static uint32_t g_nSectorSize;
616 *pnPartitionSize = ftell(g_pPartitionFiles[nPartitionID]) / g_nSectorSize;
620 ((*pnPartitionSize) * g_nSectorSize) / 1024,
621 ((*pnPartitionSize) * g_nSectorSize));
667 if (fseek(pFile, nSectorIndex*g_nSectorSize, SEEK_SET) != 0)
674 g_nSectorSize, 1,
711 if (fseek(pFile, nSectorIndex*g_nSectorSize, SEEK_SET) != 0)
718 g_nSectorSize, 1,
753 nCurrentSectorCount = ftell(pFile) / g_nSectorSize;
763 nAddedBytesCount = (nNewSectorCount-nCurrentSectorCount)*g_nSectorSize;
778 result = ftruncate(fileno(pFile),nNewSectorCount * g_nSectorSize);
784 result = _chsize(_fileno(pFile),nNewSectorCount * g_nSectorSize);
1129 g_nSectorSize = pOperation->params[0].value.a;
1130 LogInfo("Sector Size: %d bytes", g_nSectorSize);
1133 if (!(g_nSectorSize == 512 || g_nSectorSize == 1024 || g_nSectorSize == 2048 || g_nSectorSize == 4096))
1140 if (g_nWorkspaceSize < 8 * g_nSectorSize)
1142 g_nWorkspaceSize = 8 * g_nSectorSize;
1379 TRACE_INFO("Sector size is %d", g_nSectorSize);