search for: frontend_perm

Displaying 2 results from an estimated 2 matches for "frontend_perm".

Did you mean: frontend_perms
2010 Aug 13
0
[PATCH 1 of 4] libxl_device_generic_add: handle NULL fents or bents
...d check state before removing stuff */ - xs_rm(ctx->xsh, t, frontend_path); - xs_rm(ctx->xsh, t, backend_path); + if (fents) { + xs_rm(ctx->xsh, t, frontend_path); + xs_mkdir(ctx->xsh, t, frontend_path); + xs_set_permissions(ctx->xsh, t, frontend_path, frontend_perms, ARRAY_SIZE(frontend_perms)); + xs_write(ctx->xsh, t, libxl_sprintf(&gc, "%s/backend", frontend_path), backend_path, strlen(backend_path)); + libxl_xs_writev(&gc, t, frontend_path, fents); + } - xs_mkdir(ctx->xsh, t, frontend_path); - xs_set_permiss...
2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
...ds[] = { int libxl_device_generic_add(libxl_ctx *ctx, libxl_device *device, char **bents, char **fents) { + libxl_gc gc = LIBXL_INIT_GC(ctx); char *dom_path_backend, *dom_path, *frontend_path, *backend_path; xs_transaction_t t; struct xs_permissions frontend_perms[2]; struct xs_permissions backend_perms[2]; + int rc; - if (!is_valid_device_kind(device->backend_kind) || !is_valid_device_kind(device->kind)) - return ERROR_INVAL; + if (!is_valid_device_kind(device->backend_kind) || !is_valid_device_kind(device->kind)) { +...