search for: dm_dev

Displaying 20 results from an estimated 71 matches for "dm_dev".

Did you mean: drm_dev
2010 Mar 18
1
[PATCH node] cleanup a couple small issues
...age | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage index 34e84e5..4f3f174 100755 --- a/scripts/ovirt-config-storage +++ b/scripts/ovirt-config-storage @@ -96,7 +96,7 @@ translate_multipath_device() { 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 @@ -580,7 +580,7 @@ wip...
2011 Aug 17
0
[PATCH node] cciss autoinstall fix
...rt-config-storage index c8fb049..46f7e19 100755 --- a/scripts/ovirt-config-storage +++ b/scripts/ovirt-config-storage @@ -83,6 +83,7 @@ get_multipath_deps() { translate_multipath_device() { #trim so that only sdX is stored, but support passing /dev/sdX local dev="$1" + local dm_dev if [ -z "$dev" ]; then return 1 @@ -90,15 +91,23 @@ translate_multipath_device() { if [[ "$dev" =~ "/dev/mapper" ]]; then echo "$dev" return 0 - fi + elif [[ "$dev" =~ "/dev/cciss" ]]; then +...
2019 Jun 10
2
[PATCH v11 4/7] dm: enable synchronous dax
...file changed, 14 insertions(+) > > diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c > index 350cf0451456..c5160d846fe6 100644 > --- a/drivers/md/dm-table.c > +++ b/drivers/md/dm-table.c > @@ -890,10 +890,17 @@ static int device_supports_dax(struct dm_target *ti, struct dm_dev *dev, > start, len); > } > > +static int device_synchronous(struct dm_target *ti, struct dm_dev *dev, > + sector_t start, sector_t len, void *data) > +{ > + return dax_synchronous(dev->dax_dev); > +} > + > bool dm_table_supports_dax(struct dm_table...
2019 Jun 11
0
[PATCH v12 4/7] dm: enable synchronous dax
...rivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -881,7 +881,7 @@ void dm_table_set_type(struct dm_table *t, enum dm_queue_mode type) EXPORT_SYMBOL_GPL(dm_table_set_type); /* validate the dax capability of the target device span */ -static int device_supports_dax(struct dm_target *ti, struct dm_dev *dev, +int device_supports_dax(struct dm_target *ti, struct dm_dev *dev, sector_t start, sector_t len, void *data) { int blocksize = *(int *) data; @@ -890,7 +890,15 @@ static int device_supports_dax(struct dm_target *ti, struct dm_dev *dev, start, len); } -bool dm_table_suppo...
2019 Jun 11
0
[Qemu-devel] [PATCH v11 4/7] dm: enable synchronous dax
...drivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -881,7 +881,7 @@ void dm_table_set_type(struct dm_table *t, enum dm_queue_mode type) EXPORT_SYMBOL_GPL(dm_table_set_type); /* validate the dax capability of the target device span */ -static int device_supports_dax(struct dm_target *ti, struct dm_dev *dev, +int device_supports_dax(struct dm_target *ti, struct dm_dev *dev, sector_t start, sector_t len, void *data) { int blocksize = *(int *) data; @@ -890,7 +890,15 @@ static int device_supports_dax(struct dm_target *ti, struct dm_dev *dev,...
2019 Jun 01
1
[PATCH v10 4/7] dm: enable synchronous dax
...1 file changed, 14 insertions(+) > > diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c > index cde3b49b2a91..1cce626ff576 100644 > --- a/drivers/md/dm-table.c > +++ b/drivers/md/dm-table.c > @@ -886,10 +886,17 @@ static int device_supports_dax(struct dm_target *ti, struct dm_dev *dev, > return bdev_dax_supported(dev->bdev, PAGE_SIZE); > } > > +static int device_synchronous(struct dm_target *ti, struct dm_dev *dev, > + sector_t start, sector_t len, void *data) > +{ > + return dax_synchronous(dev->dax_dev...
2019 May 14
0
[PATCH v9 4/7] dm: enable synchronous dax
...table.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index cde3b49b2a91..1cce626ff576 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -886,10 +886,17 @@ static int device_supports_dax(struct dm_target *ti, struct dm_dev *dev, return bdev_dax_supported(dev->bdev, PAGE_SIZE); } +static int device_synchronous(struct dm_target *ti, struct dm_dev *dev, + sector_t start, sector_t len, void *data) +{ + return dax_synchronous(dev->dax_dev); +} + static bool dm_table_supports_dax(struct dm_table *t) {...
2019 May 21
0
[PATCH v10 4/7] dm: enable synchronous dax
...table.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index cde3b49b2a91..1cce626ff576 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -886,10 +886,17 @@ static int device_supports_dax(struct dm_target *ti, struct dm_dev *dev, return bdev_dax_supported(dev->bdev, PAGE_SIZE); } +static int device_synchronous(struct dm_target *ti, struct dm_dev *dev, + sector_t start, sector_t len, void *data) +{ + return dax_synchronous(dev->dax_dev); +} + static bool dm_table_supports_dax(struct dm_table *t) {...
2019 Jun 10
0
[PATCH v11 4/7] dm: enable synchronous dax
...table.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index 350cf0451456..c5160d846fe6 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -890,10 +890,17 @@ static int device_supports_dax(struct dm_target *ti, struct dm_dev *dev, start, len); } +static int device_synchronous(struct dm_target *ti, struct dm_dev *dev, + sector_t start, sector_t len, void *data) +{ + return dax_synchronous(dev->dax_dev); +} + bool dm_table_supports_dax(struct dm_table *t, int blocksize) { struct dm_target *ti; u...
2010 Mar 10
0
[PATCH node] Improve performance of multipath translations
...ev =~ "/dev/mapper" ]]; then + eval $mpath_var=$dev + return + fi + local basedev=$(basename $dev) - 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...
2010 Mar 23
1
[PATCH node] Filter out /dev/dm-* devices from device list
...nfig-storage +++ b/scripts/ovirt-config-storage @@ -307,14 +307,15 @@ get_dev_name() devices="$devices /dev/mapper/$dev" local sd_devs="" get_multipath_devices $dev sd_devs - devs_to_remove="${devs_to_remove} ${sd_devs}" + local dm_dev=$(multipath -ll $dev | grep $dev | sed -r 's/^.*(dm-[0-9]+ ).*$/\1/') + devs_to_remove="${devs_to_remove} ${sd_devs} $dm_dev" done # Remove /dev/sd* devices that are part of a multipath device local dev_list for dev in $devices do - if [[ !...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...then if [ -n "$mpath_var" ]; then @@ -89,36 +89,36 @@ translate_multipath_device() { return fi if [[ "$dev" =~ "/dev/mapper" ]]; then - eval $mpath_var=$dev + eval $math_var="$dev" 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_dev...
2010 Mar 17
1
[PATCH][node REPOST] Improve performance of multipath translations
...t; =~ "/dev/mapper" ]]; then + eval $mpath_var=$dev + return + fi + local basedev=$(basename $dev) - 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 &qu...
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 {'...
2019 Jun 21
7
[PATCH v14 0/7] virtio pmem driver
This patch series is ready to be merged via nvdimm tree as discussed with Dan. We have ack/review on XFS, EXT4 device mapper & VIRTIO patches. This version has fix for test bot build failure. Keeping all the existing r-o-bs. Jakob CCed also tested the patch series and confirmed the working of v9. --- This patch series has implementation for "virtio pmem". "virtio
2019 Jul 05
8
[PATCH v15 0/7] virtio pmem driver
Hi Dan, This series has only change in patch 2 for linux-next build failure. There is no functional change. Keeping all the existing review/acks and reposting the patch series for merging via libnvdimm tree. --- This patch series has implementation for "virtio pmem". "virtio pmem" is fake persistent memory(nvdimm) in guest which allows to bypass the guest page
2019 Jun 12
8
[PATCH v13 0/7] virtio pmem driver
This patch series is ready to be merged via nvdimm tree as discussed with Dan. We have ack/review on XFS, EXT4 device mapper & VIRTIO patches. This version has minor changes in patch 2. Keeping all the existing r-o-bs. Jakob CCed also tested the patch series and confirmed the working of v9. --- This patch series has implementation for "virtio pmem". "virtio pmem"
2019 Jun 11
9
[PATCH v12 0/7] virtio pmem driver
This patch series is ready to be merged via nvdimm tree as discussed with Dan. We have ack/review on XFS, EXT4 & VIRTIO patches. Device mapper change is also reviewed. Mike, Can you please provide ack for device mapper change i.e patch4. This version has changed implementation for patch 4 as suggested by 'Mike'. Keeping all the existing r-o-bs. Jakob CCed also tested the
2019 Jun 10
8
[PATCH v11 0/7] virtio pmem driver
This patch series is ready to be merged via nvdimm tree as discussed with Dan. We have ack/review on XFS, EXT4 & VIRTIO patches. Need an ack on device mapper change in patch 4. Mike, Can you please review and ack patch4. This version does not has any additonal code change from v10 and is only rebase of v10 on Linux 5.2-rc4 which is required for patch4. Keeping all the existing
2019 May 21
9
[PATCH v10 0/7] virtio pmem driver
This patch series is ready to be merged via nvdimm tree as discussed with Dan. We have ack/review on XFS, EXT4 & VIRTIO patches. Need an ack on device mapper change in patch 4. Mike, Can you please review patch 4 which has change for dax with device mapper. Incorporated all the changes suggested in v9. This version has minor changes in patch 2(virtio) and does not change the