{"id":2197756,"url":"http://patchwork.ozlabs.org/api/1.0/patches/2197756/?format=json","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.0/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260218132633.29748-5-hreitz@redhat.com>","date":"2026-02-18T13:26:13","name":"[v4,04/24] fuse: Explicitly set inode ID to 1","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"4dc1d84d1e4ec9a7c59c2c18e0fa5fbab55c1fb6","submitter":{"id":82279,"url":"http://patchwork.ozlabs.org/api/1.0/people/82279/?format=json","name":"Hanna Czenczek","email":"hreitz@redhat.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260218132633.29748-5-hreitz@redhat.com/mbox/","series":[{"id":492547,"url":"http://patchwork.ozlabs.org/api/1.0/series/492547/?format=json","date":"2026-02-18T13:26:09","name":"export/fuse: Use coroutines and multi-threading","version":4,"mbox":"http://patchwork.ozlabs.org/series/492547/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2197756/checks/","tags":{},"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=X8Kqqtp3;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=google header.b=H2BcJRU6;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fGHZT6Q9wz1xwr\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 19 Feb 2026 00:35:29 +1100 (AEDT)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1vshfe-0004Er-LZ; Wed, 18 Feb 2026 08:32:50 -0500","from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <hreitz@redhat.com>) id 1vshfT-0003yk-O0\n for qemu-devel@nongnu.org; Wed, 18 Feb 2026 08:32:40 -0500","from us-smtp-delivery-124.mimecast.com ([170.10.133.124])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <hreitz@redhat.com>) id 1vshfA-00053d-NF\n for qemu-devel@nongnu.org; Wed, 18 Feb 2026 08:32:37 -0500","from mail-wm1-f69.google.com (mail-wm1-f69.google.com\n [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-410-AcYpjjHsOu6HxrSpHx-wQw-1; Wed, 18 Feb 2026 08:26:54 -0500","by mail-wm1-f69.google.com with SMTP id\n 5b1f17b1804b1-4837b7903f3so47974845e9.2\n for <qemu-devel@nongnu.org>; Wed, 18 Feb 2026 05:26:54 -0800 (PST)","from localhost\n (p200300cfd737d029edef7b8da7441ac2.dip0.t-ipconnect.de.\n [2003:cf:d737:d029:edef:7b8d:a744:1ac2])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-43796acffcesm38829881f8f.37.2026.02.18.05.26.51\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 18 Feb 2026 05:26:51 -0800 (PST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1771421521;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=OSXZAuWYpAshM63pW80TanRP4MfbiawAfcaxsHKGA1o=;\n b=X8Kqqtp3U+OR89948qfu3+Ic+L8i7cj1A0hfcjBU12GY88r5ocDCs8hixkKMGZmOX6xTJ7\n fCdSP+LMj1hbVyz25G+JyLlONCo6JEIdIFURlcwmpQznEzDjuo1HeknV8incBs/smqzGdK\n ykjuYYCo2pxazFkY/eE1uWdVq2mtYss=","v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=redhat.com; s=google; t=1771421213; x=1772026013; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=OSXZAuWYpAshM63pW80TanRP4MfbiawAfcaxsHKGA1o=;\n b=H2BcJRU6SFOe03Z00NrLZcPhhjAJ61rq8D3QxIf4yA7QYXtSSTQ06sUr+0GOIWHxfg\n P8hSed0UgFFbIyTNeuJeeMBkVEdI+V3kh2l9nuK0VduoAtbwW0uCk3JOhnovjR7Hcge+\n P6nbIyYxCqzHKKwp0mAys1t8LGa8Em2dfzT1sD83U7lgaNrTPg5/TunXFrXgY1hvklOz\n kagaK11axt9cWtAh+uKGwKsGZcGPbsQR/78XSq6sqPZBd4Y7ht/nOVBMrYXpNEQDYkS4\n 8pTnretYyhJP+O7jB7DkrTi8crJNx+gNyXfaietA/rH+gmlk9xja30f3Mx7pUaHSoyIy\n hsHA=="],"X-MC-Unique":"AcYpjjHsOu6HxrSpHx-wQw-1","X-Mimecast-MFC-AGG-ID":"AcYpjjHsOu6HxrSpHx-wQw_1771421213","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1771421213; x=1772026013;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=OSXZAuWYpAshM63pW80TanRP4MfbiawAfcaxsHKGA1o=;\n b=uivkX7QZExNSJ38dBQK+A/cMNYqpl+SjB3DEWbC4rN4KNPrvzmYUYEMGuZclcEKdx9\n uMpsKB0wNm8P22lH86YV9cDMsveLn261aAGT1kcTTZmF9lQzI49PoNbJe+mbSjNWyHSm\n Kx+BKFjmua4kv4qSrnSQm0MFZNKEBpSovaLy6JfdUupkAShBB/eJ8WEkW+kXBSc6S+Lz\n pK8yYK1rrQsp5gz9A30KPyd5Af52dLru6il5p2ORyMjsZFapg8QDGuFiPxeYjwz5phMa\n wN6idSQ0YX9LMlgDJoRHeo7zaa0IgjoE4DHxAKHtn1ml2MYpD0Zmc124bJUKAf1DBX4B\n M55g==","X-Gm-Message-State":"AOJu0YzswJTshlEbQwWZHsn6eIocU9V6oPtaaKeAhOwG83Gn7dWmYbwu\n VDLOwVq4eD+cILvKS6EK/eKIPpF0+nRa6FubPoykq5GupJdL6r3PmjJgFxN9xj0O5I8O9nrDs4u\n t0rrB4F3S1Hi1K2M0sDiHYGV418vhPjte9KXpubZ/h1M77MiYUjUicXin","X-Gm-Gg":"AZuq6aI4Bnl5xjp+/y+naqWbexd+bHuCFYCF+YZkWGl00TYEqLmGEe9H5dGYWBN1H0K\n Aet4aOnuYHYa1O0KMOQwSM4YB/lTlE6LptkQpiV7f6XpLwm+VPEtsBGkpFtZOPj/URndtoRgz5t\n faCCFGwVRTFxQ40Uoa0YiGs4/2WijcEH93H1DP1CShqC/XFqmqEj882/YTJXDkDwSqCllfsJGhb\n /yXQOIOFCRKmXbVYwPRZkX6TWMvwQhY0iSs38tAqwm5h/WUppFDMIAF7+aqGefKntRRnDS/QNpN\n PiIWyCFs38tGZZ0QxTXugr5t/6xvCX6bOUIR9QoZUnAqVqM8RUDEeTLPUqejsulOz0RtL768Zlg\n e8MskazLy9Iwk9bITurZapYQBX40WRYQHX8kyLUalABbw9WSsVkpe1MqISy6+ldGFscSJa6ssCF\n FnIddu","X-Received":["by 2002:a05:600c:19c6:b0:480:3bba:1ca9 with SMTP id\n 5b1f17b1804b1-48398a65e5cmr33300645e9.4.1771421213161;\n Wed, 18 Feb 2026 05:26:53 -0800 (PST)","by 2002:a05:600c:19c6:b0:480:3bba:1ca9 with SMTP id\n 5b1f17b1804b1-48398a65e5cmr33300315e9.4.1771421212695;\n Wed, 18 Feb 2026 05:26:52 -0800 (PST)"],"From":"Hanna Czenczek <hreitz@redhat.com>","To":"qemu-block@nongnu.org","Cc":"qemu-devel@nongnu.org, Hanna Czenczek <hreitz@redhat.com>,\n Kevin Wolf <kwolf@redhat.com>, Brian Song <hibriansong@gmail.com>","Subject":"[PATCH v4 04/24] fuse: Explicitly set inode ID to 1","Date":"Wed, 18 Feb 2026 14:26:13 +0100","Message-ID":"<20260218132633.29748-5-hreitz@redhat.com>","X-Mailer":"git-send-email 2.53.0","In-Reply-To":"<20260218132633.29748-1-hreitz@redhat.com>","References":"<20260218132633.29748-1-hreitz@redhat.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","Received-SPF":"pass client-ip=170.10.133.124; envelope-from=hreitz@redhat.com;\n helo=us-smtp-delivery-124.mimecast.com","X-Spam_score_int":"-20","X-Spam_score":"-2.1","X-Spam_bar":"--","X-Spam_report":"(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.043,\n DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,\n SPF_HELO_PASS=-0.001,\n SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no","X-Spam_action":"no action","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"qemu development <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"},"content":"Setting .st_ino to the FUSE inode ID is kind of arbitrary.  While in\npractice it is going to be fixed (to FUSE_ROOT_ID, which is 1) because\nwe only have the root inode, that is not obvious in fuse_getattr().\n\nJust explicitly set it to 1 (i.e. no functional change).\n\nReviewed-by: Stefan Hajnoczi <stefanha@redhat.com>\nSigned-off-by: Hanna Czenczek <hreitz@redhat.com>\n---\n block/export/fuse.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/block/export/fuse.c b/block/export/fuse.c\nindex 4cdf527d69..a56f645c05 100644\n--- a/block/export/fuse.c\n+++ b/block/export/fuse.c\n@@ -432,7 +432,7 @@ static void fuse_getattr(fuse_req_t req, fuse_ino_t inode,\n     }\n \n     statbuf = (struct stat) {\n-        .st_ino     = inode,\n+        .st_ino     = 1,\n         .st_mode    = exp->st_mode,\n         .st_nlink   = 1,\n         .st_uid     = exp->st_uid,\n","prefixes":["v4","04/24"]}