Searched refs:numSectors (Results 1 – 11 of 11) sorted by relevance
/system/vold/fs/ |
D | Ext4.cpp | 154 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()
|
D | Ext4.h | 33 status_t Format(const std::string& source, unsigned int numSectors, 35 status_t Resize(const std::string& source, unsigned int numSectors);
|
D | Vfat.cpp | 181 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()
|
D | Vfat.h | 34 status_t Format(const std::string& source, unsigned int numSectors);
|
/system/vold/ |
D | Loop.h | 34 static int createImageFile(const char *file, unsigned int numSectors); 35 static int resizeImageFile(const char *file, unsigned int numSectors);
|
D | Loop.cpp | 255 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()
|
D | VolumeManager.cpp | 118 static int adjustSectorNumExt4(unsigned numSectors) { in adjustSectorNumExt4() argument 123 unsigned reservedSectors = (numSectors * 2)/100 + (numSectors % 50 > 0); in adjustSectorNumExt4() 124 …numSectors += 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 …]
|
D | Devmapper.h | 28 unsigned int numSectors, char *buffer, size_t len);
|
D | VolumeManager.h | 146 int createAsec(const char *id, unsigned numSectors, const char *fstype, 148 int resizeAsec(const char *id, unsigned numSectors, const char *key);
|
D | Devmapper.cpp | 167 unsigned int numSectors, char *ubuffer, size_t len) { in create() argument 229 tgt->length = numSectors; in create()
|
D | CommandListener.cpp | 410 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()
|