Home
last modified time | relevance | path

Searched refs:sb (Results 1 – 4 of 4) sorted by relevance

/bootable/recovery/uncrypt/
Duncrypt.cpp191 struct stat sb; in produce_block_map() local
192 int ret = stat(path, &sb); in produce_block_map()
198 ALOGI(" block size: %ld bytes\n", (long)sb.st_blksize); in produce_block_map()
200 int blocks = ((sb.st_size-1) / sb.st_blksize) + 1; in produce_block_map()
201 ALOGI(" file size: %lld bytes, %d blocks\n", (long long)sb.st_size, blocks); in produce_block_map()
209 fprintf(mapf, "%s\n%lld %lu\n", blk_dev, (long long)sb.st_size, (unsigned long)sb.st_blksize); in produce_block_map()
214 buffers[i] = reinterpret_cast<unsigned char*>(malloc(sb.st_blksize)); in produce_block_map()
237 while (pos < sb.st_size) { in produce_block_map()
239 int progress = static_cast<int>(100 * (double(pos) / double(sb.st_size))); in produce_block_map()
255 if (write_at_offset(buffers[head], sb.st_blksize, wfd, in produce_block_map()
[all …]
/bootable/recovery/
Dfuse_sdcard_provider.c72 struct stat sb; in run_sdcard_fuse() local
73 if (stat(t->path, &sb) < 0) { in run_sdcard_fuse()
88 fd.file_size = sb.st_size; in run_sdcard_fuse()
Dscreen_ui.cpp563 struct stat sb; in ShowFile() local
564 fstat(fileno(fp), &sb); in ShowFile()
570 static_cast<int>(100 * (double(ftell(fp)) / double(sb.st_size))), in ShowFile()
571 static_cast<int>(sb.st_size)); in ShowFile()
/bootable/recovery/updater/
Dinstall.c872 struct stat sb; in SetMetadataFn() local
885 if (lstat(args[0], &sb) == -1) { in SetMetadataFn()
899 bad += ApplyParsedPerms(state, args[0], &sb, parsed); in SetMetadataFn()