Home
last modified time | relevance | path

Searched refs:numSectors (Results 1 – 11 of 11) sorted by relevance

/system/vold/fs/
DExt4.cpp154 status_t Resize(const std::string& source, unsigned int numSectors) { in Resize() argument
159 cmd.push_back(StringPrintf("%u", numSectors)); in Resize()
164 status_t Format(const std::string& source, unsigned int numSectors, in Format() argument
173 if (numSectors) { in Format()
175 cmd.push_back(StringPrintf("%u", numSectors * 512)); in Format()
DExt4.h33 status_t Format(const std::string& source, unsigned int numSectors,
35 status_t Resize(const std::string& source, unsigned int numSectors);
DVfat.cpp181 status_t Format(const std::string& source, unsigned int numSectors) { in Format() argument
192 if (numSectors) { in Format()
194 cmd.push_back(StringPrintf("%u", numSectors)); in Format()
DVfat.h34 status_t Format(const std::string& source, unsigned int numSectors);
/system/vold/
DLoop.h34 static int createImageFile(const char *file, unsigned int numSectors);
35 static int resizeImageFile(const char *file, unsigned int numSectors);
DLoop.cpp255 int Loop::createImageFile(const char *file, unsigned int numSectors) { in createImageFile() argument
263 if (ftruncate(fd, numSectors * 512) < 0) { in createImageFile()
272 int Loop::resizeImageFile(const char *file, unsigned int numSectors) { in resizeImageFile() argument
280 SLOGD("Attempting to increase size of %s to %d sectors.", file, numSectors); in resizeImageFile()
282 if (fallocate(fd, 0, 0, numSectors * 512)) { in resizeImageFile()
285 if (ftruncate(fd, numSectors * 512) < 0) { in resizeImageFile()
DVolumeManager.cpp118 static int adjustSectorNumExt4(unsigned numSectors) { in adjustSectorNumExt4() argument
123 unsigned reservedSectors = (numSectors * 2)/100 + (numSectors % 50 > 0); in adjustSectorNumExt4()
124numSectors += reservedSectors > (4096 * clusterSectors) ? (4096 * clusterSectors) : reservedSector… in adjustSectorNumExt4()
125 return ROUND_UP_POWER_OF_2(numSectors, 3); in adjustSectorNumExt4()
128 static int adjustSectorNumFAT(unsigned numSectors) { in adjustSectorNumFAT() argument
132 unsigned fatSize = (((numSectors * 4) / 512) + 1) * 2; in adjustSectorNumFAT()
133 numSectors += fatSize + 2; in adjustSectorNumFAT()
137 return ROUND_UP_POWER_OF_2(numSectors, 6); in adjustSectorNumFAT()
770 int VolumeManager::createAsec(const char *id, unsigned int numSectors, const char *fstype, in createAsec() argument
797 if (numSectors < ((1024*1024)/512)) { in createAsec()
[all …]
DDevmapper.h28 unsigned int numSectors, char *buffer, size_t len);
DVolumeManager.h146 int createAsec(const char *id, unsigned numSectors, const char *fstype,
148 int resizeAsec(const char *id, unsigned numSectors, const char *key);
DDevmapper.cpp167 unsigned int numSectors, char *ubuffer, size_t len) { in create() argument
229 tgt->length = numSectors; in create()
DCommandListener.cpp410 unsigned int numSectors = (atoi(argv[3]) * (1024 * 1024)) / 512; in runCommand() local
412 rc = vm->createAsec(argv[2], numSectors, argv[4], argv[5], atoi(argv[6]), isExternal); in runCommand()
419 unsigned int numSectors = (atoi(argv[3]) * (1024 * 1024)) / 512; in runCommand() local
420 rc = vm->resizeAsec(argv[2], numSectors, argv[4]); in runCommand()