[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [V4 PATCH 6/8] Support for creating special files
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [V4 PATCH 6/8] Support for creating special files |
Date: |
Tue, 1 Feb 2011 14:29:39 +0000 |
On Tue, Feb 1, 2011 at 5:27 AM, M. Mohan Kumar <address@hidden> wrote:
> +static int passthrough_mknod(FsContext *fs_ctx, const char *path, FsCred
> *credp)
> +{
> + V9fsFileObjectRequest request;
> + int retval, error = 0;
> +
> + fill_request(&request, path, credp);
> + request.data.type = T_MKNOD;
> +
> + retval = v9fs_create_special(fs_ctx, &request, &error);
> + if (retval < 0) {
> + errno = error;
> + }
> + return retval;
> +}
It would be nice to avoid duplicating all these wrappers. Would it be
possible to write one generic function which takes the request type
and some optional arguments and runs the request?
Stefan
- Re: [Qemu-devel] [V4 PATCH 2/8] Provide chroot environment server side interfaces, (continued)
[Qemu-devel] [V4 PATCH 3/8] Add client side interfaces for chroot environment, M. Mohan Kumar, 2011/02/01
[Qemu-devel] [V4 PATCH 4/8] Add support to open a file in chroot environment, M. Mohan Kumar, 2011/02/01
[Qemu-devel] [V4 PATCH 5/8] Create support in chroot environment, M. Mohan Kumar, 2011/02/01
[Qemu-devel] [V4 PATCH 6/8] Support for creating special files, M. Mohan Kumar, 2011/02/01
- Re: [Qemu-devel] [V4 PATCH 6/8] Support for creating special files,
Stefan Hajnoczi <=
[Qemu-devel] [V4 PATCH 7/8] Move file post creation changes to none security model, M. Mohan Kumar, 2011/02/01
[Qemu-devel] [V4 PATCH 8/8] Chroot environment for other functions, M. Mohan Kumar, 2011/02/01