• Home
  • Raw
  • Download

Lines Matching refs:v

133   const FstabEntry* v = android::fs_mgr::GetEntryForPath(&fstab, volume);  in format_volume()  local
134 if (v == nullptr) { in format_volume()
138 if (v->fs_type == "ramdisk") { in format_volume()
142 if (v->mount_point != volume) { in format_volume()
147 LOG(ERROR) << "format_volume: Failed to unmount \"" << v->mount_point << "\""; in format_volume()
150 if (v->fs_type != "ext4" && v->fs_type != "f2fs") { in format_volume()
151 LOG(ERROR) << "format_volume: fs_type \"" << v->fs_type << "\" unsupported"; in format_volume()
157 if (!v->key_loc.empty() && v->key_loc[0] == '/') { in format_volume()
158 LOG(INFO) << "Wiping " << v->key_loc; in format_volume()
159 int fd = open(v->key_loc.c_str(), O_WRONLY | O_CREAT, 0644); in format_volume()
161 PLOG(ERROR) << "format_volume: Failed to open " << v->key_loc; in format_volume()
169 if (v->length > 0) { in format_volume()
170 length = v->length; in format_volume()
171 } else if (v->length < 0 || v->key_loc == "footer") { in format_volume()
172 android::base::unique_fd fd(open(v->blk_device.c_str(), O_RDONLY)); in format_volume()
174 PLOG(ERROR) << "format_volume: failed to open " << v->blk_device; in format_volume()
177 length = get_file_size(fd.get(), v->length ? -v->length : CRYPT_FOOTER_OFFSET); in format_volume()
179 LOG(ERROR) << "get_file_size: invalid size " << length << " for " << v->blk_device; in format_volume()
184 if (v->fs_type == "ext4") { in format_volume()
190 int raid_stride = v->logical_blk_size / kBlockSize; in format_volume()
191 int raid_stripe_width = v->erase_blk_size / kBlockSize; in format_volume()
193 if (v->logical_blk_size != 0 && v->logical_blk_size < 8192) { in format_volume()
196 if (v->erase_blk_size != 0 && v->logical_blk_size != 0) { in format_volume()
201 mke2fs_args.push_back(v->blk_device); in format_volume()
209 "/system/bin/e2fsdroid", "-e", "-f", directory, "-a", volume, v->blk_device, in format_volume()
215 PLOG(ERROR) << "format_volume: Failed to make ext4 on " << v->blk_device; in format_volume()
227 v->blk_device, in format_volume()
234 PLOG(ERROR) << "format_volume: Failed to make_f2fs on " << v->blk_device; in format_volume()
239 "/system/bin/sload_f2fs", "-f", directory, "-t", volume, v->blk_device, in format_volume()
242 PLOG(ERROR) << "format_volume: Failed to sload_f2fs on " << v->blk_device; in format_volume()