Lines Matching refs:metadata

151                 if (instance->metadata.mtime == USEC_INFINITY)  in resource_load_from_directory()
152 instance->metadata.mtime = timespec_load(&st.st_mtim) ?: USEC_INFINITY; in resource_load_from_directory()
154 if (instance->metadata.mode == MODE_INVALID) in resource_load_from_directory()
155 …instance->metadata.mode = st.st_mode & 0775; /* mask out world-writability and suid and stuff, for… in resource_load_from_directory()
220 if (!instance->metadata.partition_uuid_set) { in resource_load_from_blockdev()
221 instance->metadata.partition_uuid = instance->partition_info.uuid; in resource_load_from_blockdev()
222 instance->metadata.partition_uuid_set = true; in resource_load_from_blockdev()
225 if (!instance->metadata.partition_flags_set) { in resource_load_from_blockdev()
226 instance->metadata.partition_flags = instance->partition_info.flags; in resource_load_from_blockdev()
227 instance->metadata.partition_flags_set = true; in resource_load_from_blockdev()
230 if (instance->metadata.read_only < 0) in resource_load_from_blockdev()
231 instance->metadata.read_only = instance->partition_info.read_only; in resource_load_from_blockdev()
422 assert(hlen == sizeof(instance->metadata.sha256sum)); in resource_load_from_web()
424 if (instance->metadata.sha256sum_set) { in resource_load_from_web()
425 if (memcmp(instance->metadata.sha256sum, h, hlen) != 0) in resource_load_from_web()
428 memcpy(instance->metadata.sha256sum, h, hlen); in resource_load_from_web()
429 instance->metadata.sha256sum_set = true; in resource_load_from_web()
457 assert((*a)->metadata.version); in instance_cmp()
458 assert((*b)->metadata.version); in instance_cmp()
461 r = strverscmp_improved((*a)->metadata.version, (*b)->metadata.version); in instance_cmp()
509 .metadata.version = (char*) version, in resource_find_instance()