[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH -V2 1/6] hw/9pfs: Add V9fsfidmap in preparation
From: |
Aneesh Kumar K. V |
Subject: |
[Qemu-devel] Re: [PATCH -V2 1/6] hw/9pfs: Add V9fsfidmap in preparation for adding fd reclaim |
Date: |
Tue, 01 Mar 2011 14:58:59 +0530 |
User-agent: |
Notmuch/0.5-66-g70c5e2c (http://notmuchmail.org) Emacs/23.1.1 (i686-pc-linux-gnu) |
On Tue, 1 Mar 2011 12:08:49 +0530, "Aneesh Kumar K.V" <address@hidden> wrote:
> diff --git a/hw/9pfs/virtio-9p.h b/hw/9pfs/virtio-9p.h
> index 2ae4ce7..2f49641 100644
> --- a/hw/9pfs/virtio-9p.h
> +++ b/hw/9pfs/virtio-9p.h
> @@ -101,7 +101,10 @@ enum p9_proto_version {
> #define P9_NOTAG (u16)(~0)
> #define P9_NOFID (u32)(~0)
> #define P9_MAXWELEM 16
> +#define P9_FD_RECLAIM_THRES 100
before merge we should change that to 1000. I have updated my local
tree. I kept it at 100 to make sure code path get tested when running
most of the test case.
>
> +#define FID_REFERENCED 0x1
> +#define FID_NON_RECLAIMABLE 0x2
> /*
> * ample room for Twrite/Rread header
> * size[4] Tread/Twrite tag[2] fid[4] offset[8] count[4]
> @@ -185,17 +188,22 @@ typedef struct V9fsXattr
> int flags;
> } V9fsXattr;
>
> +typedef struct V9fsfidmap {
> + union {
> + int fd;
> + DIR *dir;
> + V9fsXattr xattr;
> + } fs;
> + int fid_type;
> + V9fsString path;
> + int flags;
> +} V9fsFidMap;
> +
> struct V9fsFidState
> {
> - int fid_type;
> int32_t fid;
> - V9fsString path;
> - union {
> - int fd;
> - DIR *dir;
> - V9fsXattr xattr;
> - } fs;
> uid_t uid;
> + V9fsFidMap fsmap;
> V9fsFidState *next;
> };
>
-aneesh
- Re: [Qemu-devel] [PATCH -V2 4/6] hw/9pfs: Implement syncfs, (continued)
- Re: [Qemu-devel] [PATCH -V2 4/6] hw/9pfs: Implement syncfs, Aneesh Kumar K. V, 2011/03/01
- Re: [Qemu-devel] [PATCH -V2 4/6] hw/9pfs: Implement syncfs, Stefan Hajnoczi, 2011/03/01
- Re: [Qemu-devel] [PATCH -V2 4/6] hw/9pfs: Implement syncfs, Aneesh Kumar K. V, 2011/03/01
- Re: [Qemu-devel] [PATCH -V2 4/6] hw/9pfs: Implement syncfs, Stefan Hajnoczi, 2011/03/01
- Re: [Qemu-devel] [PATCH -V2 4/6] hw/9pfs: Implement syncfs, Aneesh Kumar K. V, 2011/03/02
- Re: [Qemu-devel] [PATCH -V2 4/6] hw/9pfs: Implement syncfs, Stefan Hajnoczi, 2011/03/02
- Re: [Qemu-devel] [PATCH -V2 4/6] hw/9pfs: Implement syncfs, Aneesh Kumar K. V, 2011/03/02
[Qemu-devel] [PATCH -V2 5/6] hw/9pfs: Add open flag to fid, Aneesh Kumar K.V, 2011/03/01
[Qemu-devel] [PATCH -V2 6/6] hw/9pfs: Add directory reclaim support, Aneesh Kumar K.V, 2011/03/01
[Qemu-devel] [PATCH -V2 2/6] hw/9pfs: Add file descriptor reclaim support, Aneesh Kumar K.V, 2011/03/01
[Qemu-devel] Re: [PATCH -V2 1/6] hw/9pfs: Add V9fsfidmap in preparation for adding fd reclaim,
Aneesh Kumar K. V <=