Home | History | Annotate | Download | only in vold

Lines Matching full:numsectors

120 static unsigned long adjustSectorNumExt4(unsigned long numSectors) {
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) {
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, const char *fstype,
791 if (numSectors < ((1024*1024)/512)) {
792 SLOGE("Invalid container size specified (%lu sectors)", numSectors);
823 numImgSectors = adjustSectorNumExt4(numSectors);
825 numImgSectors = adjustSectorNumFAT(numSectors);
958 int VolumeManager::resizeAsec(const char *id, unsigned long numSectors, const char *key) {
1006 numImgSectors = adjustSectorNumExt4(numSectors);
1008 numImgSectors = adjustSectorNumFAT(numSectors);