Received: from eggs.gnu.org ([209.51.188.92]:39927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hItr7-0001ep-M2 for qemu-devel@nongnu.org; Tue, 23 Apr 2019 07:44:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hItr6-0003Ve-Ef for qemu-devel@nongnu.org; Tue, 23 Apr 2019 07:44:57 -0400 Received: from 4.mo1.mail-out.ovh.net ([46.105.76.26]:37449) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hItr6-0003RB-8u for qemu-devel@nongnu.org; Tue, 23 Apr 2019 07:44:56 -0400 Received: from player793.ha.ovh.net (unknown [10.109.143.24]) by mo1.mail-out.ovh.net (Postfix) with ESMTP id EE1BB16BC21 for ; Tue, 23 Apr 2019 13:44:46 +0200 (CEST) Date: Tue, 23 Apr 2019 13:44:42 +0200 From: Greg Kurz Message-ID: <20190423134442.0549f427@bahia.lan> In-Reply-To: <1736754.y8mDa9Bjs0@silver> References: <3205397.r2gctG0f81@silver> <20190330174751.1eb8e298@bahia.lan> <3754934.J2WuGLFlGG@silver> <1736754.y8mDa9Bjs0@silver> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] virtfs/9p duplicate inodes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Schoenebeck Cc: qemu-devel@nongnu.org, Antonios Motakis Hi Christian, Sorry for the late response. I'm quite busy on other topics these days... On Sun, 21 Apr 2019 00:41:01 +0200 Christian Schoenebeck wrote: > On Samstag, 30. M=C3=A4rz 2019 21:01:28 CEST Christian Schoenebeck wrote: > > On Samstag, 30. M=C3=A4rz 2019 17:47:51 CET Greg Kurz wrote: =20 > > > Maybe have a look at this tentative to fix QID collisions: > > >=20 > > > https://lists.gnu.org/archive/html/qemu-devel/2018-02/msg02283.html = =20 > [snip] > > Question: so far I just had a look at that patch set, but haven't tried= it > > yet. Am I correct that the inode numbers (of the same file) would actua= lly > > change on guest side with every reboot (i.e. depending on the precise > > sequence individual files would be accessed by guest after each reboot)= ? =20 >=20 I have not checked. > I intended to extend Antonios' patch set regarding 9p QID collisions with= the=20 > goal to make the ids constant beyond reboots by storing the qpp_table as = fs=20 > xattr. >=20 Hmm... why would you do that ? Even if some filesystems do have persistant inode numbers, it isn't mandatory AFAIK. > My plan was to load the qpp_table in v9fs_device_realize_common() and sav= e the=20 > table only once in v9fs_device_unrealize_common(), instead of storing the= =20 > table on every new insertion. The problem though is that none of the 9p=20 > unrealize functions is called on guest shutdowns. >=20 The unrealize function is called when the device is unplugged from it's parent bus. It isn't related to guest shutdown. > Is there any callback that is guaranteed to be called on guest shutdowns? >=20 There's no such thing. > Best regards, > Christian Schoenebeck Cheers, -- Greg