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 long numSectors) { in Resize() argument
159 cmd.push_back(StringPrintf("%lu", numSectors)); in Resize()
164 status_t Format(const std::string& source, unsigned long numSectors, in Format() argument
173 if (numSectors) { in Format()
175 cmd.push_back(StringPrintf("%lu", numSectors * 512)); in Format()
DExt4.h33 status_t Format(const std::string& source, unsigned long numSectors,
35 status_t Resize(const std::string& source, unsigned long numSectors);
DVfat.cpp172 status_t Format(const std::string& source, unsigned long numSectors) { in Format() argument
183 if (numSectors) { in Format()
185 cmd.push_back(StringPrintf("%lu", numSectors)); in Format()
DVfat.h34 status_t Format(const std::string& source, unsigned long numSectors);
/system/vold/
DLoop.h34 static int createImageFile(const char *file, unsigned long numSectors);
35 static int resizeImageFile(const char *file, unsigned long numSectors);
DLoop.cpp256 int Loop::createImageFile(const char *file, unsigned long numSectors) { in createImageFile() argument
264 if (ftruncate(fd, numSectors * 512) < 0) { in createImageFile()
273 int Loop::resizeImageFile(const char *file, unsigned long numSectors) { in resizeImageFile() argument
281 SLOGD("Attempting to increase size of %s to %lu sectors.", file, numSectors); in resizeImageFile()
283 if (fallocate(fd, 0, 0, numSectors * 512)) { in resizeImageFile()
286 if (ftruncate(fd, numSectors * 512) < 0) { in resizeImageFile()
DVolumeManager.cpp120 static unsigned long adjustSectorNumExt4(unsigned long numSectors) { in adjustSectorNumExt4() argument
125 unsigned long reservedSectors = (numSectors * 2)/100 + (numSectors % 50 > 0); in adjustSectorNumExt4()
126numSectors += reservedSectors > (4096 * clusterSectors) ? (4096 * clusterSectors) : reservedSector… in adjustSectorNumExt4()
127 return ROUND_UP_POWER_OF_2(numSectors, 3); in adjustSectorNumExt4()
130 static unsigned long adjustSectorNumFAT(unsigned long numSectors) { in adjustSectorNumFAT() argument
134 unsigned long fatSize = (((numSectors * 4) / 512) + 1) * 2; in adjustSectorNumFAT()
135 numSectors += fatSize + 2; in adjustSectorNumFAT()
139 return ROUND_UP_POWER_OF_2(numSectors, 6); in adjustSectorNumFAT()
764 int VolumeManager::createAsec(const char *id, unsigned long numSectors, const char *fstype, in createAsec() argument
791 if (numSectors < ((1024*1024)/512)) { in createAsec()
[all …]
DDevmapper.h28 unsigned long numSectors, char *buffer, size_t len);
DVolumeManager.h146 int createAsec(const char *id, unsigned long numSectors, const char *fstype,
148 int resizeAsec(const char *id, unsigned long numSectors, const char *key);
DDevmapper.cpp167 unsigned long numSectors, char *ubuffer, size_t len) { in create() argument
229 tgt->length = numSectors; in create()
DCommandListener.cpp415 unsigned long numSectors = (atoi(argv[3]) * (1024 * 1024)) / 512; in runCommand() local
417 rc = vm->createAsec(argv[2], numSectors, argv[4], argv[5], atoi(argv[6]), isExternal); in runCommand()
424 unsigned long numSectors = (atoi(argv[3]) * (1024 * 1024)) / 512; in runCommand() local
425 rc = vm->resizeAsec(argv[2], numSectors, argv[4]); in runCommand()