Displaying 8 results from an estimated 8 matches for "dm_device".
Did you mean:
drm_device
2010 Mar 10
0
[PATCH node] Improve performance of multipath translations
...local mpath_device=$(multipath -ll $dev |grep -n . | \
- grep "^1:" |awk '{print $1}' | sed 's/^1:/\/dev\/mapper\//g')
+ local dm_dev=/dev/$(multipath -ll $dev | egrep dm-[0-9]+ | sed -r 's/^.& (dm-[0-9]+) .*$/\1/')
+
+ local mpath_device=
+ get_dm_device $dm_dev $mpath_device
if [ -z "$mpath_device" ]; then
mpath_device=$dev
diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions
index 6839614..5661bee 100644
--- a/scripts/ovirt-functions
+++ b/scripts/ovirt-functions
@@ -765,6 +765,28 @@ test_ntp_configuration () {...
2010 Mar 17
1
[PATCH][node REPOST] Improve performance of multipath translations
...local mpath_device=$(multipath -ll $dev |grep -n . | \
- grep "^1:" |awk '{print $1}' | sed 's/^1:/\/dev\/mapper\//g')
+ local dm_dev=/dev/$(multipath -ll $dev | egrep dm-[0-9]+ | sed -r 's/^.& (dm-[0-9]+) .*$/\1/')
+
+ local mpath_device=
+ get_dm_device $dm_dev $mpath_device
if [ -z "$mpath_device" ]; then
mpath_device=$dev
@@ -152,12 +164,12 @@ check_partition_sizes()
printf "\n"
if [ "$OVIRT_ISCSI_ENABLED" == "y" ]; then
- get_drive_size $BOOTDRIVE BOOTDRIVESPACE
+ g...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...ot;
return
fi
- local dm_dev=/dev/$(multipath -ll $dev | egrep dm-[0-9]+ | sed -r 's/^.& (dm-[0-9]+) .*$/\1/')
+ local dm_dev=/dev/$(multipath -ll "$dev" | egrep dm-[0-9]+ | sed -r 's/^.& (dm-[0-9]+) .*$/\1/')
local mpath_device=
- get_dm_device $dm_dev mpath_device
+ get_dm_device "$dm_dev" mpath_device
if [ -z "$mpath_device" ]; then
- mpath_device=$dev
+ mpath_device="$dev"
fi
- eval $mpath_var=$mpath_device
+ eval $mpath_var="$mpath_device"
}
get_drive_size(...
2006 Aug 21
1
[PATCH 3 of 6] dm-userspace internal libdmu support for userspace tool
...WR);
+}
+
+int dmu_map_is_write(struct dmu_map_data *data)
+{
+ return dmu_get_flag(&data->flags, DMU_FLAG_WR);
+}
+
+void dmu_map_set_sync(struct dmu_map_data *data)
+{
+ dmu_set_flag(&data->flags, DMU_FLAG_SYNC);
+}
+
+/*
+ * Get the major/minor of the character control device that @dm_device
+ * has exported for us. We do this by looking at the device status
+ * string.
+ */
+static int get_dm_control_dev(char *dm_device,
+ unsigned *maj, unsigned *min)
+{
+ struct dm_task *task;
+ int ret;
+ void *next = NULL;
+ uint64_t start, length;
+ char *ttype = NULL, *params = NULL;
+...
2020 Sep 08
0
[PATCH v1 5/5] hv_balloon: try to merge system ram resources
...a665a..49a6305f0fb73 100644
>> --- a/drivers/hv/hv_balloon.c
>> +++ b/drivers/hv/hv_balloon.c
>> @@ -745,6 +745,9 @@ static void hv_mem_hot_add(unsigned long start, unsigned long size,
>> has->covered_end_pfn -= processed_pfn;
>> spin_unlock_irqrestore(&dm_device.ha_lock, flags);
>> break;
>> + } else {
>> + /* Try to reduce the number of system ram resources. */
>> + merge_system_ram_resources(&iomem_resource);
>> }
>
> You don't need to put the call under the "else" branch. It will have
&g...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...t;ntpdate %s > /dev/null 2>&1") % server
+ if ret > 0:
+ print "\n Unable to verify NTP server: %s \n" % server
+ else:
+ log("\n Verified NTP server: %s \n") % server
+ os.system("service ntpd start")
+
+def get_dm_device(device):
+ dev_path = os.path.abspath(device)
+ major_cmd = "ls -al %s|awk {'print $5'}" % dev_path
+ major = subprocess.Popen("major_dev_cmd", shell=True, stdout=PIPE, stderr=STDOUT)
+ major = major.stdout.read()
+ minor_cmd = "ls -al %s|awk {'pr...
2020 Aug 21
8
[PATCH v1 0/5] mm/memory_hotplug: selective merging of system ram resources
This is the follow-up of "[PATCH RFCv1 0/5] mm/memory_hotplug: selective
merging of memory resources" [1]
Some add_memory*() users add memory in small, contiguous memory blocks.
Examples include virtio-mem, hyper-v balloon, and the XEN balloon.
This can quickly result in a lot of memory resources, whereby the actual
resource boundaries are not of interest (e.g., it might be relevant
2020 Jul 31
6
[PATCH RFCv1 0/5] mm/memory_hotplug: selective merging of memory resources
Some add_memory*() users add memory in small, contiguous memory blocks.
Examples include virtio-mem, hyper-v balloon, and the XEN balloon.
This can quickly result in a lot of memory resources, whereby the actual
resource boundaries are not of interest (e.g., it might be relevant for
DIMMs, exposed via /proc/iomem to user space). We really want to merge
added resources in this scenario where