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-changelog

[Xen-changelog] [xen-unstable] libxenlight: minimal vfs support

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libxenlight: minimal vfs support
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 08 Dec 2009 06:20:14 -0800
Delivery-date: Tue, 08 Dec 2009 06:20:14 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1260258285 0
# Node ID 696f94dfad26ca79f9d7b952df50e5d768339ea4
# Parent  0fb962a5dad34cb2fd20b7c76aab73c21e2cf992
libxenlight: minimal vfs support

This patch adds minimal support for fs-backend and minios' fs-front
to libxenlight:

- it creates a vfs directory on the stubdom's xenstore
device path and allows the stubdom to write to it;

- it doesn't try to cleany shutdown the vfs backend.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---
 tools/libxl/libxl.c        |    2 ++
 tools/libxl/libxl_device.c |    2 ++
 2 files changed, 4 insertions(+)

diff -r 0fb962a5dad3 -r 696f94dfad26 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c       Mon Dec 07 14:10:27 2009 +0000
+++ b/tools/libxl/libxl.c       Tue Dec 08 07:44:45 2009 +0000
@@ -875,6 +875,8 @@ retry_transaction:
     t = xs_transaction_start(ctx->xsh);
     xs_mkdir(ctx->xsh, t, libxl_sprintf(ctx, 
"/local/domain/0/device-model/%d", info->domid));
     xs_set_permissions(ctx->xsh, t, libxl_sprintf(ctx, 
"/local/domain/0/device-model/%d", info->domid), perm, ARRAY_SIZE(perm));
+    xs_mkdir(ctx->xsh, t, libxl_sprintf(ctx, "/local/domain/%d/device/vfs", 
domid));
+    xs_set_permissions(ctx->xsh, t, libxl_sprintf(ctx, 
"/local/domain/%d/device/vfs",domid), perm, ARRAY_SIZE(perm));
     if (!xs_transaction_end(ctx->xsh, t, 0))
         if (errno == EAGAIN)
             goto retry_transaction;
diff -r 0fb962a5dad3 -r 696f94dfad26 tools/libxl/libxl_device.c
--- a/tools/libxl/libxl_device.c        Mon Dec 07 14:10:27 2009 +0000
+++ b/tools/libxl/libxl_device.c        Tue Dec 08 07:44:45 2009 +0000
@@ -254,6 +254,8 @@ int libxl_devices_destroy(struct libxl_c
         return -1;
     }
     for (i = 0; i < num1; i++) {
+        if (!strcmp("vfs", l1[i]))
+            continue;
         path = libxl_sprintf(&clone, "/local/domain/%d/device/%s", domid, 
l1[i]);
         l2 = libxl_xs_directory(&clone, XBT_NULL, path, &num2);
         if (!l2)

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] libxenlight: minimal vfs support, Xen patchbot-unstable <=