Home
last modified time | relevance | path

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

/aosp12/system/vold/
H A DLoop.cpp174 int Loop::createImageFile(const char* file, unsigned long numSectors) { in createImageFile() argument
180 if (fallocate(fd.get(), 0, 0, numSectors * 512) == -1) { in createImageFile()
182 if (ftruncate(fd, numSectors * 512) == -1) { in createImageFile()
190 int Loop::resizeImageFile(const char* file, unsigned long numSectors) { in resizeImageFile() argument
198 LOG(DEBUG) << "Attempting to increase " << file << " to " << numSectors; in resizeImageFile()
200 if (fallocate(fd, 0, 0, numSectors * 512)) { in resizeImageFile()
203 if (ftruncate(fd, numSectors * 512) < 0) { in resizeImageFile()
H A DLoop.h32 static int createImageFile(const char* file, unsigned long numSectors);
33 static int resizeImageFile(const char* file, unsigned long numSectors);
H A DDevmapper.cpp45 unsigned long numSectors, char* ubuffer, size_t len) { in create() argument
50 table.Emplace<DmTargetCrypt>(0, numSectors, "twofish", key, 0, loopFile, 0); in create()
H A DDevmapper.h26 unsigned long numSectors, char* buffer, size_t len);
/aosp12/system/vold/fs/
H A DExt4.cpp151 status_t Resize(const std::string& source, unsigned long numSectors) { in Resize() argument
156 cmd.push_back(StringPrintf("%lu", numSectors)); in Resize()
161 status_t Format(const std::string& source, unsigned long numSectors, const std::string& target) { in Format() argument
207 if (numSectors) { in Format()
208 cmd.push_back(StringPrintf("%lu", numSectors * (4096 / 512))); in Format()
H A DExt4.h33 status_t Format(const std::string& source, unsigned long numSectors, const std::string& target);
34 status_t Resize(const std::string& source, unsigned long numSectors);
H A DVfat.cpp155 status_t Format(const std::string& source, unsigned long numSectors) { in Format() argument
162 if (numSectors) { in Format()
164 cmd.push_back(StringPrintf("%lu", numSectors)); in Format()
H A DVfat.h33 status_t Format(const std::string& source, unsigned long numSectors);