Lines Matching refs:node

1554                 const char *node,  in context_load_partition_table()  argument
1569 assert(node); in context_load_partition_table()
1584 r = fdisk_assign_device(c, node, arg_dry_run); in context_load_partition_table()
1594 r = stat(node, &st); in context_load_partition_table()
1598 return log_error_errno(errno, "Failed to stat block device '%s': %m", node); in context_load_partition_table()
1610 return log_error_errno(r, "Failed to open device '%s': %m", node); in context_load_partition_table()
1645 …tice_errno(SYNTHETIC_ERRNO(EHWPOISON), "Disk %s has no GPT disk label, not repartitioning.", node); in context_load_partition_table()
1653 … return log_error_errno(r, "Failed to determine whether disk %s has a disk label: %m", node); in context_load_partition_table()
1655 … log_notice_errno(SYNTHETIC_ERRNO(EHWPOISON), "Disk %s already has a disk label, refusing.", node); in context_load_partition_table()
1664 … return log_error_errno(r, "Failed to determine whether disk %s has a disk label: %m", node); in context_load_partition_table()
1667 …ice_errno(SYNTHETIC_ERRNO(EHWPOISON), "Disk %s has non-GPT disk label, not repartitioning.", node); in context_load_partition_table()
1986 static int context_dump_partitions(Context *context, const char *node) { in context_dump_partitions() argument
2031 partname = p->partno != UINT64_MAX ? fdisk_partname(node, p->partno+1) : NULL; in context_dump_partitions()
2135 static int partition_hint(const Partition *p, const char *node, char **ret) { in partition_hint() argument
2154 buf = fdisk_partname(node, p->partno+1); in partition_hint()
2175 static int context_dump_partition_bar(Context *context, const char *node) { in context_dump_partition_bar() argument
2251 (void) partition_hint(p, node, &hint); in context_dump_partition_bar()
2556 const char *node, in partition_encrypt() argument
2601 r = sym_crypt_init(&cd, node); in partition_encrypt()
2663 … return log_error_errno(keyslot, "Failed to add new TPM2 key to %s: %m", node); in partition_encrypt()
2710 static int deactivate_luks(struct crypt_device *cd, const char *node) { in deactivate_luks() argument
2717 assert(node); in deactivate_luks()
2722 r = sym_crypt_deactivate_by_name(cd, basename(node), CRYPT_DEACTIVATE_FORCE); in deactivate_luks()
2771 … r = partition_encrypt(context, p, d->node, &cd, &encrypted, &encrypted_dev_fd); in context_copy_blocks()
2929 static int partition_populate(Partition *p, const char *node) { in partition_populate() argument
2933 assert(node); in partition_populate()
2957 …if (mount_nofollow_verbose(LOG_ERR, node, fs, p->format, MS_NOATIME|MS_NODEV|MS_NOEXEC|MS_NOSUID, … in partition_populate()
3021 … r = partition_encrypt(context, p, d->node, &cd, &encrypted, &encrypted_dev_fd); in context_mkfs()
3030 fsdev = d->node; in context_mkfs()
3448 const char *node, in context_write_partition_table() argument
3460 (void) context_dump_partitions(context, node); in context_write_partition_table()
3465 (void) context_dump_partition_bar(context, node); in context_write_partition_table()
4647 … const char *node, /* The primary way we access the disk image to operate on */ in resize_backing_fd() argument
4657 assert(node); in resize_backing_fd()
4666 *fd = open(node, O_RDONLY|O_CLOEXEC); in resize_backing_fd()
4668 … return log_error_errno(errno, "Failed to open '%s' in order to adjust size: %m", node); in resize_backing_fd()
4672 return log_error_errno(errno, "Failed to stat '%s': %m", node); in resize_backing_fd()
4676 … return log_error_errno(SYNTHETIC_ERRNO(EBADF), "Cannot resize block device '%s'.", node); in resize_backing_fd()
4681 … return log_error_errno(errno, "Failed to determine size of block device %s: %m", node); in resize_backing_fd()
4685 …(r, "Specified path '%s' is not a regular file or loopback block device, cannot resize: %m", node); in resize_backing_fd()
4694 node, FORMAT_BYTES(current_size), FORMAT_BYTES(arg_size)); in resize_backing_fd()
4718 node, backing_file); in resize_backing_fd()
4729 … return log_error_errno(writable_fd, "Failed to reopen backing file '%s' writable: %m", node); in resize_backing_fd()
4736node, FORMAT_BYTES(current_size), FORMAT_BYTES(arg_size)); in resize_backing_fd()
4742 log_info("Allocated %s for '%s'.", FORMAT_BYTES(arg_size), node); in resize_backing_fd()
4745 node, FORMAT_BYTES(current_size), FORMAT_BYTES(arg_size)); in resize_backing_fd()
4753 node, FORMAT_BYTES(current_size), FORMAT_BYTES(arg_size)); in resize_backing_fd()
4756 log_info("Sized '%s' to %s.", node, FORMAT_BYTES(arg_size)); in resize_backing_fd()
4759 node, FORMAT_BYTES(current_size), FORMAT_BYTES(arg_size)); in resize_backing_fd()
4813 _cleanup_free_ char *node = NULL; in run() local
4862 arg_node = strdup(loop_device->node); in run()
4885 r = find_root(&node, &backing_fd); in run()
4891 node, in run()
4899 r = context_load_partition_table(context, node, &backing_fd); in run()
4928 r = context_load_partition_table(context, node, &backing_fd); in run()
4934 (void) context_dump_partitions(context, node); in run()
4962 node, in run()
4969 r = context_load_partition_table(context, node, &backing_fd); in run()
5003 r = context_write_partition_table(context, node, from_scratch); in run()