Advertisement
gusibsd

Untitled

Mar 4th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. diff --git a/tools/libxl/libxl_freebsd.c b/tools/libxl/libxl_freebsd.c
  2. index 86adee7..4a37537 100644
  3. --- a/tools/libxl/libxl_freebsd.c
  4. +++ b/tools/libxl/libxl_freebsd.c
  5. @@ -167,6 +167,7 @@ static int libxl__hotplug_disk(libxl__gc *gc, libxl__device *dev,
  6. libxl__device_action action)
  7. {
  8. char *be_path = libxl__device_backend_path(gc, dev);
  9. + const char *type = libxl__device_kind_to_string(dev->backend_kind);
  10. char *script;
  11. int nr = 0, rc;
  12.  
  13. @@ -178,11 +179,16 @@ static int libxl__hotplug_disk(libxl__gc *gc, libxl__device *dev,
  14. goto error;
  15. }
  16.  
  17. - const int arraysize = 4;
  18. + LOG(ERROR, "type: %s\n",type);
  19. + LOG(ERROR, "path: %s\n",GCSPRINTF("backend/%s/%u/%d", type, dev->domid, dev->devid));
  20. +
  21. + const int arraysize = 6;
  22. GCNEW_ARRAY(*args, arraysize);
  23. (*args)[nr++] = script;
  24. (*args)[nr++] = be_path;
  25. (*args)[nr++] = (char *) libxl__device_action_to_string(action);
  26. + (*args)[nr++] = (char *) type;
  27. + (*args)[nr++] = GCSPRINTF("backend/%s/%u/%d", type, dev->domid, dev->devid);
  28. (*args)[nr++] = NULL;
  29. assert(nr == arraysize);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement