New API: list-filesystems: list filesystems
authorRichard Jones <rjones@redhat.com>
Wed, 15 Sep 2010 16:22:29 +0000 (17:22 +0100)
committerRichard Jones <rjones@redhat.com>
Wed, 15 Sep 2010 18:42:23 +0000 (19:42 +0100)
commit000c4a82fbd78667849551114b6d08f391324796
tree552a804d675573b0e975b44896cdf14bdab7cb14
parentffd4820ffe953b0583e3a9357e37d74bed3a2320
New API: list-filesystems: list filesystems

This API is a simpler replacement for the guestfish commands
list-devices / list-partitions / lvs, in the case where you are
just examining a guest by hand to see what it contains.

Typical usage and output in guestfish is like this:

$ guestfish --ro -a /dev/vg_trick/F13x64
><fs> run
><fs> list-filesystems
/dev/vda1: ext4
/dev/vg_f13x64/lv_root: ext4
/dev/vg_f13x64/lv_swap: swap

It can also be used to replace programs that try to mount
devices to determine if they are mountable filesystems.
generator/generator_actions.ml
src/inspect.c