impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Impala Public Jenkins (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-7138: detect devicemapper volumes correctly
Date Thu, 02 Apr 2020 11:11:02 GMT
Impala Public Jenkins has submitted this change and it was merged. (

Change subject: IMPALA-7138: detect devicemapper volumes correctly

IMPALA-7138: detect devicemapper volumes correctly

This is a more general fix for device detection that
disables the digit-stripping heuristic if a device
with the same name as a partition already exists.

E.g. for device-mapper devices, /proc/partitions might
include a partition called "dm-0" that maps directly
to the block device "dm-0" (i.e. /sys/block/dm-0).
Before this fix, we looked for a device called "dm-",
which did not exist.

Created a dummy device-mapper device with the following command:

  sudo dmsetup create 1gb-zero --table '0 1953125 zero'

Then confirmed that the device name in the logs was correct

    dm-0 (rotational=true)

Other devices - sda, sda1, sda2, sdb, sdb1, etc on my system
were still detected the same as before.

Change-Id: I9d231bcf9105db8d4ab03586eab74e0644337a6f
Reviewed-by: Impala Public Jenkins <>
Tested-by: Impala Public Jenkins <>
M be/src/util/
M be/src/util/
M be/src/util/
M be/src/util/filesystem-util.h
4 files changed, 74 insertions(+), 15 deletions(-)

  Impala Public Jenkins: Looks good to me, approved; Verified

To view, visit
To unsubscribe, visit

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I9d231bcf9105db8d4ab03586eab74e0644337a6f
Gerrit-Change-Number: 15631
Gerrit-PatchSet: 4
Gerrit-Owner: Tim Armstrong <>
Gerrit-Reviewer: Impala Public Jenkins <>
Gerrit-Reviewer: Joe McDonnell <>
Gerrit-Reviewer: Tim Armstrong <>

  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message