Lines Matching +full:- +full:i
103 size = lfs_min(lfs.cfg->cache_size, sizeof(buffer)/2);
120 lfs_size_t trunc = size - qsize;
135 trunc -= qsize;
141 lfs_file_read(&lfs, &file, rb, size) => trunc - qsize;
142 memcmp(rb, wb + qsize, trunc - qsize) => 0;
298 // mid-file shrinking truncate
303 // mid-file expanding truncate
318 for (unsigned i = 0; i < COUNT; i++) {
319 sprintf(path, "hairyhead%d", i);
325 for (lfs_off_t j = 0; j < startsizes[i]; j += size) {
328 lfs_file_size(&lfs, &file) => startsizes[i];
330 if (startseeks[i] != startsizes[i]) {
332 startseeks[i], LFS_SEEK_SET) => startseeks[i];
335 lfs_file_truncate(&lfs, &file, hotsizes[i]) => 0;
336 lfs_file_size(&lfs, &file) => hotsizes[i];
345 for (unsigned i = 0; i < COUNT; i++) {
346 sprintf(path, "hairyhead%d", i);
348 lfs_file_size(&lfs, &file) => hotsizes[i];
352 for (; j < startsizes[i] && j < hotsizes[i]; j += size) {
357 for (; j < hotsizes[i]; j += size) {
362 lfs_file_truncate(&lfs, &file, coldsizes[i]) => 0;
363 lfs_file_size(&lfs, &file) => coldsizes[i];
372 for (unsigned i = 0; i < COUNT; i++) {
373 sprintf(path, "hairyhead%d", i);
375 lfs_file_size(&lfs, &file) => coldsizes[i];
379 for (; j < startsizes[i] && j < hotsizes[i] && j < coldsizes[i];
385 for (; j < coldsizes[i]; j += size) {