From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:55576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QowOu-0003WB-2v for qemu-devel@nongnu.org; Thu, 04 Aug 2011 07:47:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QowOs-0008GI-TH for qemu-devel@nongnu.org; Thu, 04 Aug 2011 07:47:44 -0400 Received: from mail-gx0-f173.google.com ([209.85.161.173]:55056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QowOs-0008G5-Qp for qemu-devel@nongnu.org; Thu, 04 Aug 2011 07:47:42 -0400 Received: by gxk26 with SMTP id 26so1164158gxk.4 for ; Thu, 04 Aug 2011 04:47:42 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <87hb5x1kyw.fsf@skywalker.in.ibm.com> References: <1312452371-10375-1-git-send-email-harsh@linux.vnet.ibm.com> <1312452371-10375-3-git-send-email-harsh@linux.vnet.ibm.com> <87hb5x1kyw.fsf@skywalker.in.ibm.com> Date: Thu, 4 Aug 2011 12:47:42 +0100 Message-ID: From: Stefan Hajnoczi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 2/2] i_generation / st_gen support for handle based fs driver List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Aneesh Kumar K.V" Cc: Harsh Prateek Bora , qemu-devel@nongnu.org On Thu, Aug 4, 2011 at 12:20 PM, Aneesh Kumar K.V wrote: > On Thu, 4 Aug 2011 11:21:05 +0100, Stefan Hajnoczi w= rote: >> On Thu, Aug 4, 2011 at 11:06 AM, Harsh Prateek Bora >> wrote: >> > This patch provides support for st_gen for handle based fs type server= . >> > Currently the support is provided for ext4, btrfs, reiserfs and xfs. >> > >> > Signed-off-by: Harsh Prateek Bora >> > --- >> > =A0hw/9pfs/virtio-9p-handle.c | =A0 30 ++++++++++++++++++++++++++++++ >> > =A01 files changed, 30 insertions(+), 0 deletions(-) >> >> Does handle-based file I/O really need to duplicate all this code? =A0Is >> it possible to use either regular open or handle-based open from a >> single local fs codebase? > > The only details common between handle based and local based getversion > callback is the ioctl. Moving that into a helper may not really help in > this case ?. Aneesh, do you have a public virtfs tree that I can look at? In qemu.git we don't have virtio-9p-handle.c yet, so I can't give any specific feedback. Stefan