summaryrefslogtreecommitdiffstats
path: root/TODO
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-03-20 09:11:16 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-03-20 09:11:29 +0000
commitb8fc61bd9b87f9d55d37cd52f584f7706b2af078 (patch)
tree99ad5d553db49c8af5d27b1eeee747a626bc156c /TODO
parente1ffb1011566ec68246df33ca42774b44ad5006c (diff)
downloadlibguestfs-b8fc61bd9b87f9d55d37cd52f584f7706b2af078.tar.gz
libguestfs-b8fc61bd9b87f9d55d37cd52f584f7706b2af078.tar.xz
libguestfs-b8fc61bd9b87f9d55d37cd52f584f7706b2af078.zip
todo: Document proposed attach-method fd:N
Diffstat (limited to 'TODO')
-rw-r--r--TODO20
1 files changed, 20 insertions, 0 deletions
diff --git a/TODO b/TODO
index 10faf2d4..d23fd486 100644
--- a/TODO
+++ b/TODO
@@ -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.