Displaying 4 results from an estimated 4 matches for "device_without_partitions".
2018 Jan 23
2
Re: [RFC PATCH v1 3/3] daemon: list-filesystems: Don't list partitioned md devices
....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) in
> +
> + let devices = Devsparts.list_devices () in
> + let devices = List.filter device_without_partitions devices in
> + let mds = Md.list_md_devices () in
> + let mds = List.filter device_without_partitions mds...
2018 Jan 22
0
[RFC PATCH v1 3/3] daemon: list-filesystems: Don't list partitioned md 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) in
+
+ let devices = Devsparts.list_devices () in
+ let devices = List.filter device_without_partitions devices in
+ let mds = Md.list_md_devices () in
+ let mds = List.filter device_without_partitions mds in
(* Use vfs-type to che...
2018 Jan 23
0
Re: [RFC PATCH v1 3/3] daemon: list-filesystems: Don't list partitioned md devices
...et 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) in
>> +
>> + let devices = Devsparts.list_devices () in
>> + let devices = List.filter device_without_partitions devices in
>> + let mds = Md.list_md_devices () in
>> + let mds = List.filter device...
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