X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=TODO;h=3b3a1f8641edd0a77bb24fd8c5cd0b20b51ff578;hp=3d60f1d9ba5e0b899bd40337cd6788ca7aa6d3c0;hb=13229b1d54c03be098ab75e6d451b5b46a98550d;hpb=05712b2457a44ee0f0020eced77db03c2aa419a1 diff --git a/TODO b/TODO index 3d60f1d..3b3a1f8 100644 --- a/TODO +++ b/TODO @@ -1,28 +1,167 @@ -/tmp/libguestfs temporary directory is not cleaned up. +Ideas for the Python bindings: +https://www.redhat.com/archives/fedora-virt/2009-April/msg00114.html ---------------------------------------------------------------------- We badly need to actually implement the FTP server mentioned in the documentation. +Or: Implement a FUSE-based filesystem. See the FUSE mountlo +project which does something similar, albeit only to single +filesystems: + +http://sourceforge.net/project/showfiles.php?group_id=121684&package_id=150116 + +---------------------------------------------------------------------- + +BufferIn and BufferOut should turn into and simple +strings in other languages that can handle 8 bit clean strings. +Limit on transfers would still be 2MB for these types. + - then implement write-file properly + - and implement read-file + +---------------------------------------------------------------------- + +Implement febootstrap command. + +---------------------------------------------------------------------- + +Complete the Haskell bindings (see discussion on haskell-cafe). + +---------------------------------------------------------------------- + +Complete the bindings tests - must test the return values and +error cases. + +---------------------------------------------------------------------- + +For virt-inspector: + + - Make a libvirt XML config + + - Test over available OSes + + - Add 'reged' / NT registry support. + +---------------------------------------------------------------------- + +Use virtio_blk by default. It's faster and more natural. +Unfortunately it seems like this will rename all devices - see next +item. + +Note: virtio_blk *IS* supported by all our minimum platforms, +ie. CentOS 5.3, Fedora 11, Debian. + ---------------------------------------------------------------------- -(From Ján ONDREJ (SAL)) +"Standalone/local mode" -We should provide a way to stream partitions in and out. +Instead of running guestfsd (the daemon) inside qemu, there should be +an option to just run guestfsd directly. -Thus: +The architecture in this mode would look like: -dd-out /dev/sda1 > [some file] + +------------------+ + | main program | + |------------------| + | libguestfs | + +--------^---------+ + | | reply + cmd | | + +----v-------------+ + | guestfsd | + +------------------+ -dd-in /dev/sda1 < [some file] +Notes: -Along with this, we need to be able to call the resize2fs program to -resize the filesystem in case it is larger or smaller than the target -partition. +(1) This only makes sense if we are running as root. -Another useful feature would be to allow rsync to/from a stream for -whole filesystems and subdirectories. +(2) There is no console / kernel messages in this configuration, but +we might consider capturing stderr from the daemon. + +(3) guestfs_config and guestfs_add_drive become no-ops. + +Obviously in this configuration, commands are run directly on the +local machine's disks. You could just run the commands themselves +directly, but libguestfs provides a convenient API and language +bindings. Also deals with tricky stuff like parsing the output of the +LVM commands. Also we get to leverage other code such as +virt-inspector. + +This is mainly useful from live CDs, ie. virt-p2v. + +Should we bother having the daemon at all and just link the guestfsd +code directly into libguestfs? + +---------------------------------------------------------------------- + +PPC problems: + + ppc (32 bit) works with qemu from git, however there is no serial console + + ppc64 requires extra parameters: + -M mac99 -cpu ppc64 + however it still fails: + invalid/unsupported opcode: 01 - 01 - 1a (06301e83) 00000000018c2738 1 + invalid bits: 00400000 for opcode: 0b - 19 - 15 (2d746572) 0000000000009230 + + no serial console in ppc or ppc64 because no one can tell us what + console=ttyXX option to use + +---------------------------------------------------------------------- + +Supermin appliance should be moved into febootstrap. + +---------------------------------------------------------------------- + +Extra commands / functionality: + + General glibc / core programs: + chgrp + head, tail + grep (do it locally using pipe?) + dd (?) + du + ln / ln -s + mknod + readlink + utime / utimes / futimes / futimens / l.. + mkfifo + more mk*temp calls + readdir / readdir-and-stat + some sort of alloc/fallocate/posix_fallocate call to create empty space + realpath + trunc[ate??] + + ext2 properties: + chattr + lsattr + badblocks + blkid + debugfs + dumpe2fs + e2image + e2undo + filefrag + findfs + logsave + mklost+found + + SELinux: + chcat + restorecon + ch??? + + Oddball: + pivot_root + fts(3) / ftw(3) + + guestfish only: + more/less (like cat, but pipes it through $PAGER) + cmd | pipe + cat file | pipe-cmd should have a generic form? like + 'file | less' or 'file | sort'? + +---------------------------------------------------------------------- -The current protocol is message-oriented and doesn't support -streaming. But it's simple enough that we could add this. +Allow swap space from the guest to be used. Is it a good idea?