Displaying 20 results from an estimated 71 matches for "part_to_dev".
2017 Mar 13
2
virt-customize fail to inject firstboot script when running it from script.
...fs: trace: list_devices
libguestfs: trace: list_devices = ["/dev/sda"]
libguestfs: trace: list_partitions
libguestfs: trace: list_partitions = ["/dev/sda1", "/dev/sda2"]
libguestfs: trace: list_md_devices
libguestfs: trace: list_md_devices = []
libguestfs: trace: part_to_dev "/dev/sda1"
libguestfs: trace: part_to_dev = "/dev/sda"
libguestfs: trace: part_to_dev "/dev/sda2"
libguestfs: trace: part_to_dev = "/dev/sda"
libguestfs: trace: vfs_type "/dev/sda1"
libguestfs: trace: vfs_type = "ext4"
libguestfs: t...
2020 Feb 20
0
buffer overflow detected in collectd using libguestfs
...4689]: libguestfs: trace: list_partitions =
["/dev/sda1", "/dev/sda15"]
Feb 20 15:58:11 tve50 collectd[4689]: libguestfs: trace: list_md_devices
Feb 20 15:58:11 tve50 collectd[4689]: libguestfs: trace: list_md_devices =
[]
Feb 20 15:58:11 tve50 collectd[4689]: libguestfs: trace: part_to_dev
"/dev/sda1"
Feb 20 15:58:11 tve50 collectd[4689]: libguestfs: trace: part_to_dev =
"/dev/sda"
Feb 20 15:58:11 tve50 collectd[4689]: libguestfs: trace: part_to_dev
"/dev/sda15"
Feb 20 15:58:11 tve50 collectd[4689]: libguestfs: trace: part_to_dev =
"/dev/sda"
F...
2017 Mar 14
0
Re: virt-customize fail to inject firstboot script when running it from script.
...libguestfs: trace: list_devices = ["/dev/sda"]
> libguestfs: trace: list_partitions
> libguestfs: trace: list_partitions = ["/dev/sda1", "/dev/sda2"]
> libguestfs: trace: list_md_devices
> libguestfs: trace: list_md_devices = []
> libguestfs: trace: part_to_dev "/dev/sda1"
> libguestfs: trace: part_to_dev = "/dev/sda"
> libguestfs: trace: part_to_dev "/dev/sda2"
> libguestfs: trace: part_to_dev = "/dev/sda"
> libguestfs: trace: vfs_type "/dev/sda1"
> libguestfs: trace: vfs_type = "...
2017 Mar 14
2
Re: virt-customize fail to inject firstboot script when running it from script.
...ce: list_devices = ["/dev/sda"]
>> libguestfs: trace: list_partitions
>> libguestfs: trace: list_partitions = ["/dev/sda1", "/dev/sda2"]
>> libguestfs: trace: list_md_devices
>> libguestfs: trace: list_md_devices = []
>> libguestfs: trace: part_to_dev "/dev/sda1"
>> libguestfs: trace: part_to_dev = "/dev/sda"
>> libguestfs: trace: part_to_dev "/dev/sda2"
>> libguestfs: trace: part_to_dev = "/dev/sda"
>> libguestfs: trace: vfs_type "/dev/sda1"
>> libguestfs: trace: vf...
2018 Jan 25
0
[PATCH v2 2/3] daemon: list-filesystems: Don't list partitions which cannot hold file system.
...k_devices ~return_md:true add_partitions in
let partitions = List.flatten partitions in
diff --git a/daemon/devsparts.mli b/daemon/devsparts.mli
index 7b669c2..d3224a1 100644
--- a/daemon/devsparts.mli
+++ b/daemon/devsparts.mli
@@ -21,5 +21,6 @@ val list_partitions : unit -> string list
val part_to_dev : string -> string
val part_to_partnum : string -> int
val is_whole_device : string -> bool
+val is_partitioned_device : string -> bool
val nr_devices : unit -> int
val device_index : string -> int
diff --git a/daemon/listfs.ml b/daemon/listfs.ml
index 370ffb4..1349ae0 100644...
2018 May 02
6
[PATCH v7 0/6] daemon: list_filesystems: filter out block devices which cannot hold filesystem.
This patch series addresses comments after v6 series review.
Mykola Ivanets (6):
daemon: Changing the way that we detect if a device contains
partitions.
daemon: list-filesystems: Ignore partitioned MD devices.
tests: list-filesystems command ignores partitioned MD devices.
daemon: list-filesystems: Change the way we filter out LDM partitions.
daemon: list-filesystems: Filter out
2018 May 01
9
[PATCH v6 0/7] daemon: list_filesystems: filter out block devices which cannot hold filesystem
This patch series:
1. Addresses comments from v5 series review
2. Large commit is splitted to more granular commits for better code review.
Mykola Ivanets (6):
daemon: Changing the way that we detect if a device contains
partitions.
daemon: list-filesystems: Ignore partitioned MD devices.
tests: list-filesystems command ignores partitioned MD devices.
daemon: list-filesystems: Change
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 | 25 +++++
daemon/guestfsd...
2018 Jun 01
7
[PATCH v8 0/6] daemon: list_filesystems: filter out block devices which cannot hold filesystem.
v8: - Rebased on top of master.
v7: - Addresses comments after v6 series review.
v6: - Addresses comments after v5 series review.
- Large commit is splitted to more granular commits for better code review.
v5: - Addresses comments after v4 series review (part_get_mbr_part_type doesn't break original implementation in C).
- Rebased on top of master and little bit refactored for
2018 Sep 19
2
virt-customize is very slow in ubuntu 18.04/centos 7.5
...4",
"/dev/sda15"]
libguestfs: trace: list_md_devices
guestfsd: main_loop: proc 8 (list_partitions) took 0.03 seconds
guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 300 (list_md_devices) took 0.00 seconds
libguestfs: trace: list_md_devices = []
libguestfs: trace: part_to_dev "/dev/sda1"
guestfsd: main_loop: new request, len 0x38
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/sda1
calling: settle
libguestfs: trace: part_to_dev = "/dev/sda"
libguestfs: trace: part_to_dev "/dev/sda14"
guestfsd: main_loop: p...
2020 Jun 30
2
[PATCH] daemon: inspect_fs_windows: Handle parted errors
..., _) -> false
) devices in
(* Next 8 bytes are the offset of the partition in bytes(!) given as
@@ -402,7 +404,10 @@ and map_registry_disk_blob_gpt partitions blob =
fun part ->
let partnum = Devsparts.part_to_partnum part in
let device = Devsparts.part_to_dev part in
- let typ = Parted.part_get_parttype device in
+ let typ =
+ try
+ Parted.part_get_parttype device
+ with Unix.Unix_error (Unix.EINVAL, _, _) -> "unknown" in
if typ <> "gpt" then false
el...
2018 Apr 27
0
[PATCH v5 2/3] daemon: list-filesystems: Don't list partitions which cannot hold file system.
...us anything
- * useful about devices which just contain partitions, so we also
- * get the list of partitions and exclude the corresponding devices
- * by using part-to-dev.
- *)
- let devices_containing_partitions = List.fold_left (
- fun set part ->
- StringSet.add (Devsparts.part_to_dev part) set
- ) StringSet.empty partitions in
- let devices = List.filter (
- fun dev ->
- not (StringSet.mem dev devices_containing_partitions)
- ) devices in
+ let mds = List.filter check_device mds in
(* Use vfs-type to check for filesystems on devices. *)
let ret = List.fil...
2018 Jan 23
2
Re: [RFC PATCH v1 3/3] daemon: list-filesystems: Don't list partitioned md devices
...f partitions and exclude the corresponding devices
> - * by using part-to-dev.
> + * get the list of partitions and exclude the corresponding devices.
> *)
> - let devices_containing_partitions = List.fold_left (
> - fun set part ->
> - StringSet.add (Devsparts.part_to_dev part) set
> - ) StringSet.empty partitions in
> - let devices = List.filter (
> - fun dev ->
> - not (StringSet.mem dev devices_containing_partitions)
> - ) devices in
> + let device_without_partitions device =
> + not (Devsparts.is_partitioned_device device)...
2018 Jun 01
0
[PATCH v8 1/6] daemon: Changing the way that we detect if a device contains partitions.
Instead of using part_to_dev to find such devices we open the device's
directory under /sys/block/<dev_name> and look for entries starting with
<dev_name>, eg. /sys/block/sda/sda1.
---
daemon/listfs.ml | 41 ++++++++++++++++++++++-------------------
1 file changed, 22 insertions(+), 19 deletions(-)
diff --git...
2018 May 01
0
[PATCH v6 2/7] daemon: Changing the way that we detect if a device contains partitions.
Instead of using part_to_dev to find such devices we open the device's
directory under /sys/block/<device> and look for entries starting with
<device>, eg. /sys/block/sda/sda1.
---
daemon/listfs.ml | 40 +++++++++++++++++++++-------------------
1 file changed, 21 insertions(+), 19 deletions(-)
diff --git a/da...
2018 Jan 28
9
guestfs_list_filesystems: skip block devices which cannot hold file system
Initial discussion is here: https://www.redhat.com/archives/libguestfs/2018-January/msg00188.html.
v2 was posted here: https://www.redhat.com/archives/libguestfs/2018-January/msg00246.html.
v3 comparing to v2 is just a rebase with slightly changed commits comments.
2018 Jan 25
2
[PATCH v2 1/3] daemon: Reimplement 'part_get_mbr_part_type' API in OCaml.
Instead of parsing 'parted' output OCaml implementation relies on the following facts:
1. The function is applicable for MBR partitions only (as noted in documentation and as function name suggests).
2. An attempt to call the function for non-MBR partition fails with "part_get_mbr_part_type can only be used on MBR Partitions" error and NULL is returned.
3. MBR partition table
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.
2020 Jun 30
1
Re: [PATCH] daemon: inspect_fs_windows: Handle parted errors
...ation that 7b4d13626ff878 checks,
> handling this issue as well.
>
> > @@ -402,7 +404,10 @@ and map_registry_disk_blob_gpt partitions blob =
> > fun part ->
> > let partnum = Devsparts.part_to_partnum part in
> > let device = Devsparts.part_to_dev part in
> > - let typ = Parted.part_get_parttype device in
> > + let typ =
> > + try
> > + Parted.part_get_parttype device
> > + with Unix.Unix_error (Unix.EINVAL, _, _) -> "unknown" in
> >...
2013 Jan 22
1
APIs affected by btrfs subvolumes
...that this would also affect other subvolumes
vfs_label
vfs_type
vfs_uuid
Device name mangling:
These apis are used to return sanitised device names. I'm not 100%
convinced we need to modify them. However, we may want additional apis
which handle filesystem descriptors.
canonical_device_name
part_to_dev
Misc:
zerofree: only actually supports ext2 and ext3, but the operation makes
sense for any filesystem. We should update the api and consider the
implementation later.
findfs_label
findfs_uuid: These return a device which contains the btrfs filesystem.
This device will be mountable, even if the...