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 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()
|
D | Ext4.h | 33 status_t Format(const std::string& source, unsigned long numSectors, 35 status_t Resize(const std::string& source, unsigned long numSectors);
|
D | Vfat.cpp | 172 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()
|
D | Vfat.h | 34 status_t Format(const std::string& source, unsigned long numSectors);
|
/system/vold/ |
D | Loop.h | 34 static int createImageFile(const char *file, unsigned long numSectors); 35 static int resizeImageFile(const char *file, unsigned long numSectors);
|
D | Loop.cpp | 256 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()
|
D | VolumeManager.cpp | 120 static unsigned long adjustSectorNumExt4(unsigned long numSectors) { in adjustSectorNumExt4() argument 125 unsigned long reservedSectors = (numSectors * 2)/100 + (numSectors % 50 > 0); in adjustSectorNumExt4() 126 …numSectors += 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 …]
|
D | Devmapper.h | 28 unsigned long numSectors, char *buffer, size_t len);
|
D | VolumeManager.h | 146 int createAsec(const char *id, unsigned long numSectors, const char *fstype, 148 int resizeAsec(const char *id, unsigned long numSectors, const char *key);
|
D | Devmapper.cpp | 167 unsigned long numSectors, char *ubuffer, size_t len) { in create() argument 229 tgt->length = numSectors; in create()
|
D | CommandListener.cpp | 415 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()
|