WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [PATCH] xen: add xenfs to allow usermode <-> Xen interac

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: [Xen-devel] Re: [PATCH] xen: add xenfs to allow usermode <-> Xen interaction
From: Ingo Molnar <mingo@xxxxxxx>
Date: Tue, 16 Dec 2008 21:46:16 +0100
Cc: Alex Zeffertt <alex.zeffertt@xxxxxxxxxxxxx>, Ian Campbell <Ian.Campbell@xxxxxxxxxx>, Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, Christoph Hellwig <hch@xxxxxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Al Viro <viro@xxxxxxxxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 16 Dec 2008 12:47:04 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49480F39.2010102@xxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <49480F39.2010102@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
* Jeremy Fitzhardinge <jeremy@xxxxxxxx> wrote:

> [ Reviewers: This is in drivers/xen to keep it close to the code it is 
>   and will be using.  Would people prefer to see it in fs/xenfs? -J ]

> +config XENFS
> +     tristate "Xen filesystem"

there's about two dozen filesystems that live not in fs/*:

./net/socket.c: register_filesystem(&sock_fs_type);
./net/sunrpc/rpc_pipe.c:        err = register_filesystem(&rpc_pipe_fs_type);
./security/selinux/selinuxfs.c: err = register_filesystem(&sel_fs_type);
./security/inode.c:     retval = register_filesystem(&fs_type);
./security/smack/smackfs.c:     err = register_filesystem(&smk_fs_type);
./drivers/usb/core/inode.c:     retval = register_filesystem(&usb_fs_type);
./drivers/usb/gadget/inode.c:   status = register_filesystem (&gadgetfs_type);
./drivers/oprofile/oprofilefs.c:        return 
register_filesystem(&oprofilefs_type);
./drivers/misc/ibmasm/ibmasmfs.c:       return 
register_filesystem(&ibmasmfs_type);
./drivers/isdn/capi/capifs.c:   err = register_filesystem(&capifs_fs_type);
./drivers/infiniband/hw/ipath/ipath_fs.c:       return 
register_filesystem(&ipathfs_fs_type);
./drivers/infiniband/core/uverbs_main.c:        ret = 
register_filesystem(&uverbs_event_fs);
./mm/shmem.c:   error = register_filesystem(&tmpfs_fs_type);
./mm/tiny-shmem.c:      BUG_ON(register_filesystem(&tmpfs_fs_type) != 0);
./ipc/mqueue.c: error = register_filesystem(&mqueue_fs_type);
./kernel/cpuset.c:      err = register_filesystem(&cpuset_fs_type);
./kernel/cgroup.c:      err = register_filesystem(&cgroup_fs_type);
./include/linux/fs.h:extern int register_filesystem(struct file_system_type *);
./arch/s390/hypfs/inode.c:      rc = register_filesystem(&hypfs_type);
./arch/ia64/kernel/perfmon.c:   int err = register_filesystem(&pfm_fs_type);
./arch/powerpc/platforms/cell/spufs/inode.c:    ret = 
register_filesystem(&spufs_type);

by the looks of it it wants to live in drivers/xen/. It's a minimalistic 
API-only filesystem.

Nevertheless it would be nice to have Acks from FS experts. Security, 
races, obsoleteness of approach, etc.

        Ingo

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel