Searched refs:numSectors (Results 1 - 11 of 11) sorted by relevance
/system/vold/ |
H A D | Loop.h | 34 static int createImageFile(const char *file, unsigned long numSectors); 35 static int resizeImageFile(const char *file, unsigned long numSectors);
|
H A D | Devmapper.h | 28 unsigned long numSectors, char *buffer, size_t len);
|
H A D | Loop.cpp | 256 int Loop::createImageFile(const char *file, unsigned long numSectors) { argument 264 if (ftruncate(fd, numSectors * 512) < 0) { 273 int Loop::resizeImageFile(const char *file, unsigned long numSectors) { argument 281 SLOGD("Attempting to increase size of %s to %lu sectors.", file, numSectors); 283 if (fallocate(fd, 0, 0, numSectors * 512)) { 286 if (ftruncate(fd, numSectors * 512) < 0) {
|
H A D | VolumeManager.cpp | 120 static unsigned long adjustSectorNumExt4(unsigned long numSectors) { argument 125 unsigned long reservedSectors = (numSectors * 2)/100 + (numSectors % 50 > 0); 126 numSectors += reservedSectors > (4096 * clusterSectors) ? (4096 * clusterSectors) : reservedSectors; 127 return ROUND_UP_POWER_OF_2(numSectors, 3); 130 static unsigned long adjustSectorNumFAT(unsigned long numSectors) { argument 134 unsigned long fatSize = (((numSectors * 4) / 512) + 1) * 2; 135 numSectors += fatSize + 2; 139 return ROUND_UP_POWER_OF_2(numSectors, 6); 764 int VolumeManager::createAsec(const char *id, unsigned long numSectors, cons argument 958 resizeAsec(const char *id, unsigned long numSectors, const char *key) argument [all...] |
H A D | Devmapper.cpp | 167 unsigned long numSectors, char *ubuffer, size_t len) { 229 tgt->length = numSectors; 166 create(const char *name, const char *loopFile, const char *key, unsigned long numSectors, char *ubuffer, size_t len) argument
|
H A 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);
|
H A D | CommandListener.cpp | 415 unsigned long numSectors = (atoi(argv[3]) * (1024 * 1024)) / 512; local 417 rc = vm->createAsec(argv[2], numSectors, argv[4], argv[5], atoi(argv[6]), isExternal); 424 unsigned long numSectors = (atoi(argv[3]) * (1024 * 1024)) / 512; local 425 rc = vm->resizeAsec(argv[2], numSectors, argv[4]);
|
/system/vold/fs/ |
H A 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);
|
H A D | Vfat.h | 34 status_t Format(const std::string& source, unsigned long numSectors);
|
H A D | Ext4.cpp | 154 status_t Resize(const std::string& source, unsigned long numSectors) { argument 159 cmd.push_back(StringPrintf("%lu", numSectors)); 164 status_t Format(const std::string& source, unsigned long numSectors, argument 173 if (numSectors) { 175 cmd.push_back(StringPrintf("%lu", numSectors * 512));
|
H A D | Vfat.cpp | 172 status_t Format(const std::string& source, unsigned long numSectors) { argument 183 if (numSectors) { 185 cmd.push_back(StringPrintf("%lu", numSectors));
|
Completed in 3364 milliseconds