Provided by: libguestfs-tools_1.36.13-1ubuntu3.3_amd64 bug

НАЗВА

       virt-filesystems — програма для показу списку файлових систем, розділів, блокових пристроїв, LVM у
       віртуальних машинах або образах дисків

КОРОТКИЙ ОПИС

        virt-filesystems [--параметри] -d назва_домену

        virt-filesystems [--параметри] -a диск.img [-a диск.img ...]

ОПИС

       This tool allows you to discover filesystems, partitions, logical volumes, and their sizes in a disk
       image or virtual machine.  It is a replacement for virt-list-filesystems(1) and virt-list-partitions(1).

       One use for this tool is from shell scripts to iterate over all filesystems from a disk image:

        for fs in $(virt-filesystems -a disk.img); do
          # ...
        done

       Another use is to list partitions before using another tool to modify those partitions (such as
       virt-resize(1)).  If you are curious about what an unknown disk image contains, use this tool along with
       virt-inspector(1).

       Various command line options control what this program displays.  You need to give either -a or -d
       options to specify the disk image or libvirt guest respectively.  If you just specify that then the
       program shows filesystems found, one per line, like this:

        $ virt-filesystems -a disk.img
        /dev/sda1
        /dev/vg_guest/lv_root

       Якщо ви додасте -l або --long, у виведених даних буде показано додаткову інформацію:

        $ virt-filesystems -a disk.img -l
        Назва                  Тип          ВФС   Мітка  Розмір
        /dev/sda1              filesystem   ext4  boot   524288000
        /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664

       If you add --extra then non-mountable (swap, unknown) filesystems are shown as well:

        $ virt-filesystems -a disk.img --extra
        /dev/sda1
        /dev/vg_guest/lv_root
        /dev/vg_guest/lv_swap
        /dev/vg_guest/lv_data

       If you add --partitions then partitions are shown instead of filesystems:

        $ virt-filesystems -a disk.img --partitions
        /dev/sda1
        /dev/sda2

       Similarly you can use --logical-volumes, --volume-groups, --physical-volumes, --block-devices to list
       those items.

       You can use these options in combination as well (if you want a combination including filesystems, you
       have to add --filesystems).  Notice that some items fall into several categories (eg. /dev/sda1 might be
       both a partition and a filesystem).  These items are listed several times.  To get a list which includes
       absolutely everything that virt-filesystems knows about, use the --all option.

       UUIDs (because they are quite long) are not shown by default.  Add the --uuid option to display device
       and filesystem UUIDs in the long output.

       --all --long --uuid is a useful combination to display all possible information about everything.

        $ virt-filesystems -a win.img --all --long --uuid -h
        Name      Type       VFS  Label           Size Parent   UUID
        /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C
        /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B
        /dev/sda1 partition  -    -               100M /dev/sda -
        /dev/sda2 partition  -    -               20G  /dev/sda -
        /dev/sda  device     -    -               20G  -        -

       For machine-readable output, use --csv to get Comma-Separated Values.

ПАРАМЕТРИ

       --help
           Показати коротку довідку.

       -a файл
       --add файл
           Add  file  which  should be a disk image from a virtual machine.  If the virtual machine has multiple
           block devices, you must supply all of them with separate -a options.

           Формат образу диска визначається автоматично. Щоб перевизначити його і примусово  використати  певний
           формат, скористайтеся параметром --format=...

       -a адреса
       --add адреса
           Додати віддалений диск. Див. "ДОДАВАННЯ ВІДДАЛЕНОГО СХОВИЩА" in guestfish(1).

       --all
           Display  everything.  This is currently the same as specifying these options: --filesystems, --extra,
           --partitions, --block-devices, --logical-volumes, --volume-groups, --physical-volumes.  (More may  be
           added to this list in future).

           Див. також --long.

       --blkdevs
       --block-devices
           Показати список блокових пристроїв.

       -c адреса
       --connect адреса
           Якщо  використовується  libvirt,  встановити з’єднання з вказаним URI. Якщо пропущено, з’єднання буде
           встановлено з типовим гіпервізором libvirt.

           Якщо вказати блокові пристрої гостьових систем безпосередньо (-a), libvirt не буде  використовуватися
           взагалі.

       --csv
           Write  out  the  results  in CSV format (comma-separated values).  This format can be imported easily
           into databases and spreadsheets, but read "NOTE ABOUT CSV FORMAT" below.

       -d гість
       --domain гість
           Додати всі диски з вказаної гостьової системи libvirt. UUID  доменів  можна  використовувати  замість
           назв.

       --echo-keys
           When  prompting  for  keys and passphrases, virt-filesystems normally turns echoing off so you cannot
           see what you are typing.  If you are not worried about Tempest attacks and there is no  one  else  in
           the room you can specify this flag to see what you are typing.

       --extra
           This  causes filesystems that are not ordinary, mountable filesystems to be displayed.  This category
           includes swapspace, and filesystems that are empty or contain unknown data.

           Цей параметр автоматично встановлює параметр --filesystems.

       --filesystems
           Показати список придатних до монтування систем. Якщо параметр показу не було визначено, цей  параметр
           буде додано до команди.

           Якщо було використано параметр --extra, буде показано і непридатні до монтування файлові системи.

       --format=raw|qcow2|..
       --format
           Типовим  значенням для параметра -a є автоматичне визначення формату образу диска. Використання цього
           параметра примусово визначає значення  параметрів  -a  формату  диска  у  наступному  рядку  команди.
           Використання  параметра  --format без аргументу перемикає програму у режим автоматичного визначення у
           наступних параметрах -a.

           Приклад:

            virt-filesystems --format=raw -a диск.img

           примусове встановлення формату без обробки (без автоматичного визначення) для disk.img.

            virt-filesystems --format=raw -a диск.img --format -a інший_диск.img

           примусове встановлення формату без обробки (без автоматичного визначення) для diskimg і повернення до
           автоматичного визначення для another.img.

           Якщо ви користуєтеся  ненадійними  образами  гостьових  систем  у  необробленому  форматі,  вам  слід
           скористатися цим параметром для визначення формату диска. Таким чином можна уникнути можливих проблем
           з захистом для сформованих зловмисниками гостьових систем (CVE-2010-3851).

       -h
       --human-readable
           У режимі --long показувати розміри у зручному для читання форматі.

       --keys-from-stdin
           Read  key  or  passphrase  parameters from stdin.  The default is to try to read passphrases from the
           user by opening /dev/tty.

       -l
       --long
           Показувати додаткові стовпчики даних («довгий формат»).

           A title row is added unless you also specify --no-title.

           The extra columns displayed depend on what output you select, and the ordering of columns may  change
           in  future  versions.   Use the title row, --csv output and/or csvtool(1) to match columns to data in
           external programs.

           Use -h if you want sizes to be displayed in human-readable  format.   The  default  is  to  show  raw
           numbers of bytes.

           Скористайтеся параметром --uuid, щоб було показано також UUID.

       --lvs
       --logvols
       --logical-volumes
           Display  LVM  logical  volumes.   In  this  mode, these are displayed irrespective of whether the LVs
           contain filesystems.

       --no-title
           У режимі --long не додавати рядок заголовків.

           Note that the order of the columns is  not  fixed,  and  may  change  in  future  versions  of  virt-
           filesystems, so using this option may give you unexpected surprises.

       --parts
       --partitions
           Display partitions.  In this mode, these are displayed irrespective of whether the partitions contain
           filesystems.

       --pvs
       --physvols
       --physical-volumes
           Показати фізичні томи LVM.

       --uuid
       --uuids
           In --long mode, display UUIDs as well.

       -v
       --verbose
           Увімкнути докладний показ повідомлень з метою діагностики.

       -V
       --version
           Показати дані щодо версії і завершити роботу.

       --vgs
       --volgroups
       --volume-groups
           Показати групи томів LVM.

       -x  Увімкнути трасування викликів програмного інтерфейсу libguestfs.

СТОВПЧИКИ

       Note that columns in the output are subject to reordering and change in future versions of this tool.

       Назва
           Назва файлової системи, розділу, блокового пристрою або LVM.

           For device and partition names these are displayed as canonical libguestfs names, so that for example
           /dev/sda2 is the second partition on the first device.

           If the --long option is not specified, then only the name column is shown in the output.

       Тип The object type, for example "filesystem", "lv", "device" etc.

       VFS If there is a filesystem, then this column displays the filesystem type if one could be detected, eg.
           "ext4".

       Мітка
           If  the  object has a label (used for identifying and mounting filesystems) then this column contains
           the label.

       MBR The partition type byte, displayed as a two  digit  hexadecimal  number.   A  comprehensive  list  of
           partition types can be found here: http://www.win.tue.nl/~aeb/partitions/partition_types-1.html

           Це стосується лише розділів DOS (MBR).

       Розмір
           The  size  of  the  object  in  bytes.  If the --human option is used then the size is displayed in a
           human-readable form.

       Основа
           The parent column records the parent relationship between objects.

           For example, if the object is a partition, then this column  contains  the  name  of  the  containing
           device.  If the object is a logical volume, then this column is the name of the volume group.

           If  there  is  more  than  one parent, then this column is (internal to the column) a comma-separated
           list, eg. "/dev/sda,/dev/sdb".

       UUID
           If the object has a UUID (used for identifying and mounting filesystems and block devices) then  this
           column contains the UUID as a string.

           UUID буде показано, лише якщо вказано параметр --uuid.

ЗАУВАЖЕННЯ ЩОДО ФОРМАТУ CSV

       Comma-separated  values (CSV) is a deceptive format.  It seems like it should be easy to parse, but it is
       definitely not easy to parse.

       Myth: Just split fields at commas.  Reality: This does not work reliably.  This example has two columns:

        "foo,bar",baz

       Myth: Read the file one line at a time.  Reality: This does not work reliably.  This example has one row:

        "foo
        bar",baz

       For shell scripts, use "csvtool"  (https://github.com/Chris00/ocaml-csv  also  packaged  in  major  Linux
       distributions).

       For  other  languages,  use  a  CSV processing library (eg. "Text::CSV" for Perl or Python's built-in csv
       library).

       Most spreadsheets and databases can import CSV directly.

СТАН ВИХОДУ

       Ця програма повертає значення 0 у разі успішного завершення і ненульове значення, якщо сталася помилка.

ТАКОЖ ПЕРЕГЛЯНЬТЕ

       guestfs(3), guestfish(1),  virt-cat(1),  virt-df(1),  virt-list-filesystems(1),  virt-list-partitions(1),
       csvtool(1), http://libguestfs.org/.

АВТОР

       Richard W.M. Jones http://people.redhat.com/~rjones/

АВТОРСЬКІ ПРАВА

       © Red Hat Inc., 2010–2012

LICENSE

BUGS

       To      get      a      list      of      bugs      against      libguestfs,      use      this     link:
       https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools

       To      report      a      new       bug       against       libguestfs,       use       this       link:
       https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools

       When reporting a bug, please supply:

       •   The version of libguestfs.

       •   Where you got libguestfs (eg. which Linux distro, compiled from source, etc)

       •   Describe the bug accurately and give a way to reproduce it.

       •   Run libguestfs-test-tool(1) and paste the complete, unedited output into the bug report.

libguestfs-1.36.13                                 2018-01-25                                virt-filesystems(1)