Dave Vasilevsky
2013-May-09 02:01 UTC
[Libguestfs] PATCH: Allow specifying the filesystem driver for guestmount
Currently guestfish has mount-vfs, and the libguestfs API has guestfs_mount_vfs(), but guestmount doesn't allow the user to specify a filesystem. This patch extends the --mount argument, so you can force an ext2 partition to mount as ext4: guestmount -a mydisk.img -m /dev/vda:/:defaults:ext4 mountpoint You could also use it to choose between ntfs and ntfs-3g, or between hfsplus and the commercial ufsd. Finally, it could be useful if blkid misidentifies the filesystem. GitHub compare doodad: https://github.com/vasi/libguestfs/compare/fuse-fstype Patch: https://github.com/vasi/libguestfs/compare/fuse-fstype.patch Thanks for making such a useful utility! -V
Richard W.M. Jones
2013-May-09 07:49 UTC
[Libguestfs] PATCH: Allow specifying the filesystem driver for guestmount
On Wed, May 08, 2013 at 10:01:26PM -0400, Dave Vasilevsky wrote:> Currently guestfish has mount-vfs, and the libguestfs API has > guestfs_mount_vfs(), but guestmount doesn't allow the user to specify > a filesystem. This patch extends the --mount argument, so you can > force an ext2 partition to mount as ext4: > > guestmount -a mydisk.img -m /dev/vda:/:defaults:ext4 mountpoint > > You could also use it to choose between ntfs and ntfs-3g, or between > hfsplus and the commercial ufsd. Finally, it could be useful if blkid > misidentifies the filesystem. > > GitHub compare doodad: https://github.com/vasi/libguestfs/compare/fuse-fstype > Patch: https://github.com/vasi/libguestfs/compare/fuse-fstype.patchACK. I'll push this later on today after I've done a few tests. In answer to your other question about the incompatible protocol between libguestfs 1.18 on the host and 1.21 in the appliance, I realized why this was happening. It's because of the changes that were made in libguestfs 1.20 where we reimplemented various calls to avoid protocol limits. This means these calls are no longer implemented in the daemon, but instead are emulated on the library side. The calls affected were: guestfs_cat, guestfs_find, guestfs_read_file, guestfs_read_lines, guestfs_write, guestfs_write_append, guestfs_lstatlist, guestfs_lxattrlist, guestfs_readlinklist, guestfs_ls Which means that these calls would break, whereas others would still work fine. In any case, I believe it'll be better for you to upgrade the host side to at least libguestfs 1.20. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
Maybe Matching Threads
- [PATCH 0/6] Update the way that API versions are generated for the man page.
- xsl, xml, ARRGH!
- RSS Feed / xml.link problem?
- network automatically connecting on boot after new service installation
- network automatically connecting on boot after new service installation