All of lore.kernel.org
 help / color / mirror / Atom feed
From: Motohiro Kawahito <JL25131@jp.ibm.com>
To: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Error ret=-1 with EINTR in nbd_connect_systemd_socket_activation()
Date: Mon, 11 Jul 2022 06:38:14 +0000	[thread overview]
Message-ID: <DM6PR15MB2635A63B1B5F9F204E08BBEED5879@DM6PR15MB2635.namprd15.prod.outlook.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 753 bytes --]

Hi, I'd like to connect to an encrypted QCOW2 file by nbd_connect_systemd_socket_activation(), but I got ret=-1 with EINTR.
The arg parameter I used is
qemu-nbd --object secret,id=sec0,data=abc123 --image-opts driver=qcow2,encrypt.format=luks,encrypt.key-secret=sec0,file.filename=/tmp/empty.qcow2

Can you find what a problem is? The version of qemu-nbd is
$ qemu-nbd -V
qemu-nbd 4.2.1 (Debian 1:4.2-3ubuntu6.23)

I created this encrypted QCOW2 image by the following command.
qemu-img create --object secret,id=sec0,data=abc123 -f qcow2 -o encrypt.format=luks,encrypt.key-secret=sec0 /tmp/empty.qcow2 8539292672

Note that I can connect to a normal QCOW2 file by this function without any error. (arg: qemu-nbd -f qcow2 /tmp/normal.qcow2)

[-- Attachment #2: Type: text/html, Size: 3497 bytes --]

             reply	other threads:[~2022-07-11 13:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-11  6:38 Motohiro Kawahito [this message]
2022-07-11 16:25 ` Error ret=-1 with EINTR in nbd_connect_systemd_socket_activation() Philippe Mathieu-Daudé via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DM6PR15MB2635A63B1B5F9F204E08BBEED5879@DM6PR15MB2635.namprd15.prod.outlook.com \
    --to=jl25131@jp.ibm.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.