Lines Matching full:info
79 RootInfo *info = &g_roots[i];
80 if (strncmp(info->name, root_path, len) == 0) {
81 return info;
110 const RootInfo *info = get_root_info_for_path(root_path);
111 return info != NULL && info->filesystem == g_package_file;
118 const RootInfo *info = get_root_info_for_path(root_path);
119 if (info == NULL || info->filesystem != g_package_file) {
125 size_t root_len = strlen(info->name);
148 const RootInfo *info = get_root_info_for_path(root_path);
149 if (info == NULL || info->mount_point == NULL) {
155 root_path += strlen(info->name); // strip off the "root:"
160 size_t mp_len = strlen(info->mount_point);
168 memcpy(out_buf, info->mount_point, mp_len);
178 internal_root_mounted(const RootInfo *info)
180 if (info->mount_point == NULL) {
192 volume = find_mounted_volume_by_mount_point(info->mount_point);
204 const RootInfo *info = get_root_info_for_path(root_path);
205 if (info == NULL) {
208 return internal_root_mounted(info) >= 0;
214 const RootInfo *info = get_root_info_for_path(root_path);
215 if (info == NULL) {
219 int ret = internal_root_mounted(info);
228 if (info->device == g_mtd_device) {
229 if (info->partition_name == NULL) {
235 partition = mtd_find_partition_by_name(info->partition_name);
239 return mtd_mount_partition(partition, info->mount_point,
240 info->filesystem, 0);
243 if (info->device == NULL || info->mount_point == NULL ||
244 info->filesystem == NULL ||
245 info->filesystem == g_raw ||
246 info->filesystem == g_package_file) {
250 mkdir(info->mount_point, 0755); // in case it doesn't already exist
251 if (mount(info->device, info->mount_point, info->filesystem,
253 if (info->device2 == NULL) {
254 LOGE("Can't mount %s\n(%s)\n", info->device, strerror(errno));
256 } else if (mount(info->device2, info->mount_point, info->filesystem,
259 info->device, info->device2, strerror(errno));
269 const RootInfo *info = get_root_info_for_path(root_path);
270 if (info == NULL) {
273 if (info->mount_point == NULL) {
287 volume = find_mounted_volume_by_mount_point(info->mount_point);
300 const RootInfo *info = get_root_info_for_path(root_path);
301 if (info == NULL || info->device != g_mtd_device ||
302 info->partition_name == NULL)
307 return mtd_find_partition_by_name(info->partition_name);
325 const RootInfo *info = get_root_info_for_path(root);
326 if (info == NULL || info->device == NULL) {
330 if (info->mount_point != NULL) {
342 if (info->device == g_mtd_device) {
345 partition = mtd_find_partition_by_name(info->partition_name);
348 info->partition_name);
351 if (info->filesystem == g_raw || !strcmp(info->filesystem, "yaffs2")) {