qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Akihiko Odaki <akihiko.odaki@daynix.com>
To: Stefan Hajnoczi <stefanha@redhat.com>
Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org,
	virtio-fs@redhat.com, Yuval Shaia <yuval.shaia.ml@gmail.com>,
	Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,
	Konstantin Kostiuk <kkostiuk@redhat.com>,
	Michael Roth <michael.roth@amd.com>,
	Paolo Bonzini <pbonzini@redhat.com>, Fam Zheng <fam@euphon.net>,
	"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
	Gerd Hoffmann <kraxel@redhat.com>, Stefan Weil <sw@weilnetz.de>,
	Yan Vugenfirer <yan@daynix.com>
Subject: Re: [PATCH v2 07/10] virtiofsd: Use qemu_get_runtime_dir()
Date: Thu, 21 Sep 2023 22:56:38 +0900	[thread overview]
Message-ID: <32d74d08-f6f1-4958-aab7-03144efcbc82@daynix.com> (raw)
In-Reply-To: <20230921125828.GA3860191@fedora>

On 2023/09/21 21:58, Stefan Hajnoczi wrote:
> On Thu, Nov 10, 2022 at 07:06:26PM +0900, Akihiko Odaki wrote:
>> qemu_get_runtime_dir() is used to construct the path to a lock file.
>>
>> Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
>> ---
>>   tools/virtiofsd/fuse_virtio.c | 6 +++---
>>   1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/tools/virtiofsd/fuse_virtio.c b/tools/virtiofsd/fuse_virtio.c
>> index 9368e292e4..b9eeed85e6 100644
>> --- a/tools/virtiofsd/fuse_virtio.c
>> +++ b/tools/virtiofsd/fuse_virtio.c
>> @@ -901,12 +901,12 @@ static bool fv_socket_lock(struct fuse_session *se)
>>   {
>>       g_autofree gchar *sk_name = NULL;
>>       g_autofree gchar *pidfile = NULL;
>> -    g_autofree gchar *state = NULL;
>> +    g_autofree gchar *run = NULL;
>>       g_autofree gchar *dir = NULL;
>>       Error *local_err = NULL;
>>   
>> -    state = qemu_get_local_state_dir();
>> -    dir = g_build_filename(state, "run", "virtiofsd", NULL);
>> +    run = qemu_get_runtime_dir();
>> +    dir = g_build_filename(run, "virtiofsd", NULL);
>>   
>>       if (g_mkdir_with_parents(dir, S_IRWXU) < 0) {
>>           fuse_log(FUSE_LOG_ERR, "%s: Failed to create directory %s: %s\n",
> 
> tools/virtiofsd/ no longer exists. Which version of QEMU did you develop against?
> 
> commit e0dc2631ec4ac718ebe22ddea0ab25524eb37b0e
> Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
> Date:   Wed Jan 18 12:11:51 2023 +0000
> 
>      virtiofsd: Remove source
> 
> Stefan

It is an old version of the series. You can find the latest version at:
https://patchew.org/QEMU/20230921075425.16738-1-akihiko.odaki@daynix.com/

Regards,
Akihiko Odaki


  reply	other threads:[~2023-09-21 13:58 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-10 10:06 [PATCH v2 00/10] util: Introduce qemu_get_runtime_dir() Akihiko Odaki
2022-11-10 10:06 ` [PATCH v2 01/10] qga: Remove platform GUID definitions Akihiko Odaki
2022-11-17  9:45   ` Konstantin Kostiuk
2023-09-21  7:58     ` Akihiko Odaki
2023-09-21  9:52       ` Konstantin Kostiuk
2022-11-10 10:06 ` [PATCH v2 02/10] util: Introduce qemu_get_runtime_dir() Akihiko Odaki
2022-11-10 10:06 ` [PATCH v2 03/10] ivshmem-server: Use qemu_get_runtime_dir() Akihiko Odaki
2022-11-10 10:06 ` [PATCH v2 04/10] contrib/rdmacm-mux: " Akihiko Odaki
2022-11-10 10:06 ` [PATCH v2 05/10] qga: " Akihiko Odaki
2022-11-10 10:06 ` [PATCH v2 06/10] scsi: " Akihiko Odaki
2022-11-10 10:06 ` [PATCH v2 07/10] virtiofsd: " Akihiko Odaki
2023-09-21 12:58   ` Stefan Hajnoczi
2023-09-21 13:56     ` Akihiko Odaki [this message]
2022-11-10 10:06 ` [PATCH v2 08/10] module: " Akihiko Odaki
2022-11-10 10:06 ` [PATCH v2 09/10] util: Remove qemu_get_local_state_dir() Akihiko Odaki
2022-11-10 10:06 ` [PATCH v2 10/10] spice-app: Use qemu_get_runtime_dir() Akihiko Odaki

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=32d74d08-f6f1-4958-aab7-03144efcbc82@daynix.com \
    --to=akihiko.odaki@daynix.com \
    --cc=dgilbert@redhat.com \
    --cc=fam@euphon.net \
    --cc=kkostiuk@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=marcel.apfelbaum@gmail.com \
    --cc=michael.roth@amd.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=sw@weilnetz.de \
    --cc=virtio-fs@redhat.com \
    --cc=yan@daynix.com \
    --cc=yuval.shaia.ml@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).