Home
last modified time | relevance | path

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

/system/vold/
DLoop.cpp172 int Loop::createImageFile(const char* file, unsigned long numSectors) { in createImageFile() argument
178 if (fallocate(fd.get(), 0, 0, numSectors * 512) == -1) { in createImageFile()
180 if (ftruncate(fd, numSectors * 512) == -1) { in createImageFile()
188 int Loop::resizeImageFile(const char* file, unsigned long numSectors) { in resizeImageFile() argument
196 LOG(DEBUG) << "Attempting to increase " << file << " to " << numSectors; in resizeImageFile()
198 if (fallocate(fd, 0, 0, numSectors * 512)) { in resizeImageFile()
201 if (ftruncate(fd, numSectors * 512) < 0) { in resizeImageFile()
DLoop.h32 static int createImageFile(const char* file, unsigned long numSectors);
33 static int resizeImageFile(const char* file, unsigned long numSectors);
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()
DDevmapper.h26 unsigned long numSectors, char* buffer, size_t len);
/system/vold/fs/
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()
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);
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()
DVfat.h33 status_t Format(const std::string& source, unsigned long numSectors);