Displaying 20 results from an estimated 93 matches for "list_devices".
2018 Jan 23
2
Re: [RFC PATCH v1 3/3] daemon: list-filesystems: Don't list partitioned md devices
.../listfs.ml b/daemon/listfs.ml
> index 370ffb4..dc424f5 100644
> --- a/daemon/listfs.ml
> +++ b/daemon/listfs.ml
> @@ -24,24 +24,20 @@ let rec list_filesystems () =
> let has_lvm2 = Lvm.available () in
> let has_ldm = Ldm.available () in
>
> - let devices = Devsparts.list_devices () in
> let partitions = Devsparts.list_partitions () in
> - let mds = Md.list_md_devices () in
>
> (* Look to see if any devices directly contain filesystems
> - * (RHBZ#590167). However vfs-type will fail to tell us anything
> + * (RHBZ#590167). However vfs-type wi...
2013 Mar 05
0
Fwd: [Bug 916990] inspect_os: mount_ro: /dev/sda on / (options: 'ro'): mount: /dev/sda is already mounted or /sysroot busy
...trace: set_network true
libguestfs: trace: set_network = 0
libguestfs: trace: launch
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: trace: launch = 0
libguestfs: trace: list_devices
libguestfs: trace: list_devices = ["/dev/sda", "/dev/sdb"]
libguestfs: trace: inspect_os
libguestfs: trace: umount_all
libguestfs: trace: umount_all = 0
libguestfs: trace: list_devices
libguestfs: trace: list_devices = ["/dev/sda", "/dev/sdb"]
libguestfs: tra...
2011 Dec 26
1
Another virt-p2v blew up
...n: 8 bytes: 00 00 00 00 | 00 00 00 00 |
libguestfs: trace: download = 0
hivex_open: successfully read Windows Registry hive file:
pages: 1179 [sml: 4096, lge: 20480]
blocks: 80149 [sml: 8, avg: 65, lge: 16352]
blocks used: 77155
bytes used: 4254352
libguestfs: trace: list_devices
libguestfs: send_to_daemon: 44 bytes: 00 00 00 28 | 20 00 f5 f5 | 00 00 00 04 |
00 00 00 07 | 00 00 00 00 | ...
guestfsd: main_loop: proc 67 (download) took 0.71 seconds
guestfsd: main_loop: new request, len 0x28
libguestfs: recv_from_daemon: 68 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 07
| 00 0...
2009 Jul 29
2
[PATCH] Fix broken qemu <= 0.10 which randomly adds a CD-ROM device to the appliance
...this before - it seems like
this code didn't exist in the versions of qemu that were in Fedora, or
somehow this code only runs some of the time. But anyway, this breaks
the tests in Fedora 11 and RHEL 5.3 right now.
The attached code attempts to work around this stupidity by adding
checks in list_devices and list_partitions to see if the device is
openable, and ignoring any which aren't. These fake, empty CD drives
fail this extra check with error "No medium found", so they get
ignored.
[I'm still running all the tests with this patch, so not quite sure if
it's correct.]
Ri...
2018 Jan 22
8
[RFC] Inconsistent output of guestfs_list_filesystems
Before I rush to change something I request your comments on the subject.
Let me know what do you think and if it does make sense.
The issue: guesfs_list_filesystems is inconsistent in its output.
For, example, it filters out partitioned physical devices but doesn't do the same for MD devices.
More over, according to its name and API documentation guestfs_list_filesystem should return
2017 Jul 14
0
[PATCH 05/27] daemon: Reimplement several devsparts APIs in OCaml.
The reimplemented APIs are:
* list_devices
* list_partitions
* part_to_dev
* part_to_partnum
* is_whole_device
---
daemon/Makefile.am | 2 +
daemon/daemon.h | 3 -
daemon/devsparts.c | 257 ----------------------------------------------
daemon/devsparts.ml | 109 ++++++++++++++++++++
daemon/devsparts.mli...
2018 Jan 22
0
[RFC PATCH v1 3/3] daemon: list-filesystems: Don't list partitioned md devices
...+), 13 deletions(-)
diff --git a/daemon/listfs.ml b/daemon/listfs.ml
index 370ffb4..dc424f5 100644
--- a/daemon/listfs.ml
+++ b/daemon/listfs.ml
@@ -24,24 +24,20 @@ let rec list_filesystems () =
let has_lvm2 = Lvm.available () in
let has_ldm = Ldm.available () in
- let devices = Devsparts.list_devices () in
let partitions = Devsparts.list_partitions () in
- let mds = Md.list_md_devices () in
(* Look to see if any devices directly contain filesystems
- * (RHBZ#590167). However vfs-type will fail to tell us anything
+ * (RHBZ#590167). However vfs-type will fail to tell us anything...
2018 Jan 23
0
Re: [RFC PATCH v1 3/3] daemon: list-filesystems: Don't list partitioned md devices
...>> index 370ffb4..dc424f5 100644
>> --- a/daemon/listfs.ml
>> +++ b/daemon/listfs.ml
>> @@ -24,24 +24,20 @@ let rec list_filesystems () =
>> let has_lvm2 = Lvm.available () in
>> let has_ldm = Ldm.available () in
>>
>> - let devices = Devsparts.list_devices () in
>> let partitions = Devsparts.list_partitions () in
>> - let mds = Md.list_md_devices () in
>>
>> (* Look to see if any devices directly contain filesystems
>> - * (RHBZ#590167). However vfs-type will fail to tell us anything
>> + * (RHBZ#590167...
2011 Apr 21
1
[PATCH] v2v: Filter out the transfer iso if it's returned by inspect_os()
...--- a/v2v/virt-v2v.pl
+++ b/v2v/virt-v2v.pl
@@ -496,11 +496,18 @@ my $g = new Sys::VirtConvert::GuestfsHandle(
$output_method eq 'rhev'
);
+# Get the name of the appliance's transfer device, if it has one
+my $transferdev;
+if (defined($transferiso)) {
+ my @devices = $g->list_devices();
+ $transferdev = pop(@devices);
+}
+
my $guestcaps;
my $desc;
eval {
# Inspect the guest
- $desc = inspect_guest($g);
+ $desc = inspect_guest($g, $transferdev);
# Modify the guest and its metadata
$guestcaps =
@@ -559,9 +566,18 @@ sub signal_exit
sub inspect_guest...
2013 Sep 06
1
答复: python-guestfs
trace:
>>> g.inspect_os()
libguestfs: trace: inspect_os
libguestfs: trace: umount_all
libguestfs: trace: umount_all = 0
libguestfs: trace: list_devices
libguestfs: trace: list_devices = ["/dev/vda"]
libguestfs: trace: vfs_type "/dev/vda"
libguestfs: trace: vfs_type = ""
libguestfs: trace: mount_ro "/dev/vda" "/"
libguestfs: trace: mount_ro = -1 (error)
libguestfs: trace: list_partitions
libguestfs:...
2010 May 26
1
[PATCH] Fix error in Converter::Windows when there is no transfer iso
...te the transfer mount point
+ $self->{transfer_mount} = $g->mkdtemp("/tmp/transferXXXXXX");
+
+ # Only mount the transfer iso if there is one
+ if (defined($self->get_transfer_iso())) {
+ # Find the transfer device
+ my @devices = $g->list_devices();
+ my $transfer = $devices[$#devices];
+
+ $g->mount_ro($transfer, $self->{transfer_mount});
+ $self->{transfer_mounted} = 1;
+
+ # We'll need this to unmount in DESTROY
+ $self->{g} = $g;
+ }
+ }
+
+ return File:...
2020 Feb 20
1
[PATCH] lib: Move guestfs_device_index impl from daemon to library.
Although the commit message ties this to
https://bugzilla.redhat.com/1804207, in fact I believe this commit
could be applied independently. It's a simple optimization.
Rich.
2013 Sep 04
2
python-guestfs
I use python-guestfs to mount windows image it have some problems .Here is my code:
[root@mfsdata1 ~]# python
Python 2.6.6 (r266:84292, Sep 11 2012, 08:34:23)
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> sheepfs_dir="/tmp/sheepfs"
2020 Feb 19
2
Poor write performance with golang binding
...rite_device opts.dev, buf, off
if siz != buf.size
raise "short write at offset #{off} (wanted #{buf.size}, done #{siz})"
end
off += buf.size
end
end
end
module Ls
include BaseOp
@readonly = 1
def perform gu, opts
puts gu.list_devices
end
end
end
def main
opts = OpenStruct.new offset: 0, bs: 1<<20
optp = OptionParser.new
optp.banner << " [op] [diskimage]
op = [#{OPS.names.join ?|}]
options:"
optp.on("-d", "--guestdevice DEV", "guest device") { |c| opts.de...
2020 Jan 22
3
[PATCH 1/1] sparsify: support LUKS-encrypted partitions
...9,7 @@
open Printf
open Std_utils
+open Utils
(* Enumerate block devices (including MD, LVM, LDM and partitions) and use
* vfs-type to check for filesystems on devices. Some block devices cannot
@@ -30,6 +31,7 @@ let rec list_filesystems () =
(* Devices. *)
let devices = Devsparts.list_devices () in
+
let devices = List.filter is_not_partitioned_device devices in
let ret = List.filter_map check_with_vfs_type devices in
@@ -144,9 +146,20 @@ and check_with_vfs_type device =
else if String.is_suffix vfs_type "_member" then
None
- (* Ignore LUKS-encrypted partiti...
2011 Dec 07
2
failure converting Linux ESX guest to KVM hypervisor
...guestfs: trace: add_drive_ro_with_if = 0
libguestfs: trace: set_network true
libguestfs: trace: set_network = 0
libguestfs: trace: launch
Using CPU model "cpu64-rhel6"
libguestfs: trace: launch = 0
libguestfs: trace: set_autosync true
libguestfs: trace: set_autosync = 0
libguestfs: trace: list_devices
libguestfs: trace: list_devices = ["/dev/sda", "/dev/sdb"]
libguestfs: trace: mount_ro "/dev/sda" "/"
libguestfs: trace: mount_ro = -1 (error)
libguestfs: trace: umount_all
libguestfs: trace: umount_all = 0
libguestfs: trace: mount_ro "/dev/sdb" &qu...
2018 Jan 25
0
[PATCH v2 2/3] daemon: list-filesystems: Don't list partitions which cannot hold file system.
...1 +
daemon/listfs.ml | 105 +++++++++++++++++++++++++++------------------------
3 files changed, 70 insertions(+), 49 deletions(-)
diff --git a/daemon/devsparts.ml b/daemon/devsparts.ml
index 54108bb..42dc78d 100644
--- a/daemon/devsparts.ml
+++ b/daemon/devsparts.ml
@@ -71,6 +71,19 @@ let list_devices () =
map_block_devices ~return_md:false ((^) "/dev/") in
sort_device_names devices
+let is_partitioned_device device =
+ assert (String.is_prefix device "/dev/");
+ let device = String.sub device 5 (String.length device - 5) in
+ let dir = "/sys/block/" ^...
2020 Feb 19
0
Re: Poor write performance with golang binding
...raise "short write at offset #{off} (wanted #{buf.size}, done #{siz})"
> end
> off += buf.size
> end
> end
> end
>
> module Ls
> include BaseOp
>
> @readonly = 1
>
> def perform gu, opts
> puts gu.list_devices
> end
> end
>
> end
>
> def main
> opts = OpenStruct.new offset: 0, bs: 1<<20
> optp = OptionParser.new
> optp.banner << " [op] [diskimage]
>
> op = [#{OPS.names.join ?|}]
>
> options:"
>
> optp.on("-d&qu...
2011 Oct 08
2
guestmount issues with --live, but guestfish works just fine
.....
libguestfs: recv_from_daemon: 96 bytes: 20 00 f5 f5 | 00 00 00 04 | 00
00 00 4a | 00 00 00 01 | 00 12 34 00 | ...
libguestfs: trace: mount_options = -1 (error)
libguestfs: error: mount_options: mount_options_stub: /dev/vda3: device
not found
libguestfs: trace: list_filesystems
libguestfs: trace: list_devices
libguestfs: send_to_daemon: 44 bytes: 00 00 00 28 | 20 00 f5 f5 | 00 00
00 04 | 00 00 00 07 | 00 00 00 00 | ...
libguestfs: recv_from_daemon: 168 bytes: 20 00 f5 f5 | 00 00 00 04 | 00
00 00 4a | 00 00 00 01 | 00 12 34 00 | ...
libguestfs: error: unexpected procedure number (74/7)
libguestfs: trace:...
2020 Jan 21
12
[PATCH 0/1] WIP: Support LUKS-encrypted partitions
The following patch attempts to implement sparsification of
LUKS-encrypted partitions. It uses lsblk to pair the underlying LUKS
block device with its mapped name. Also, --allow-discards was added
by default to luks_open().
There are several potential issues that I can think of:
1) If and entire device is encrypted (not just one of more partitions),
the lsblk trick might not work.
2) The