Searched defs:numSectors (Results 1 - 5 of 5) sorted by relevance

/system/vold/
H A DFat.cpp154 int Fat::format(const char *fsPath, unsigned int numSectors) { argument
167 if (numSectors) {
169 snprintf(tmp, sizeof(tmp), "%u", numSectors);
H A DDevmapper.cpp167 unsigned int numSectors, char *ubuffer, size_t len) {
229 tgt->length = numSectors;
166 create(const char *name, const char *loopFile, const char *key, unsigned int numSectors, char *ubuffer, size_t len) argument
H A DLoop.cpp235 int Loop::createImageFile(const char *file, unsigned int numSectors) { argument
243 if (ftruncate(fd, numSectors * 512) < 0) {
H A DCommandListener.cpp326 unsigned int numSectors = (atoi(argv[3]) * (1024 * 1024)) / 512; local
328 rc = vm->createAsec(argv[2], numSectors, argv[4], argv[5], atoi(argv[6]), isExternal);
H A DVolumeManager.cpp240 int VolumeManager::createAsec(const char *id, unsigned int numSectors, const char *fstype, argument
261 if (numSectors < ((1024*1024)/512)) {
262 SLOGE("Invalid container size specified (%d sectors)", numSectors);
296 unsigned fatSize = (((numSectors * 4) / 512) + 1) * 2;
297 unsigned numImgSectors = numSectors + fatSize + 2;

Completed in 58 milliseconds