diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-03-20 09:11:16 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-03-20 09:11:29 +0000 |
commit | b8fc61bd9b87f9d55d37cd52f584f7706b2af078 (patch) | |
tree | 99ad5d553db49c8af5d27b1eeee747a626bc156c /TODO | |
parent | e1ffb1011566ec68246df33ca42774b44ad5006c (diff) | |
download | libguestfs-b8fc61bd9b87f9d55d37cd52f584f7706b2af078.tar.gz libguestfs-b8fc61bd9b87f9d55d37cd52f584f7706b2af078.tar.xz libguestfs-b8fc61bd9b87f9d55d37cd52f584f7706b2af078.zip |
todo: Document proposed attach-method fd:N
Diffstat (limited to 'TODO')
-rw-r--r-- | TODO | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -620,3 +620,23 @@ TMPDIR should be checked to ensure that we won't run out of space during the conversion, since current behaviour is very bad when this happens (it usually causes virt-sparsify to hang). This requires writing a small C binding to statvfs for OCaml. + +Passing file descriptors using attach-method fd:N +------------------------------------------------- + +The idea is that you can pass a file descriptor to the appliance to +another process, which can then attach to it by setting +'attach-method' to 'fd:N' (where N = file descriptor). + +The process(es) cooperating like this would have to arrange for mutual +exclusion on the file descriptor, since the protocol itself does not +and cannot support this. + +One issue with this is whether just passing the fd is sufficient, or +if other fields in the guestfs_h struct need to be passed too. +Another issue is that the parent process still has to handle +verbose/debug messages, and has to remain around to regain and kill +off the appliance at the end. Thus the parent cannot do much more +than wait(2) and at the same time select(2) on g->fd. + +Virt tools would have to have a new --attach-fd=N option. |