]>
git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common/blkdev: remove double _'s from device_id
For some unknown reason some devices have double spaces in their
ID_MODEL_ENC string from udev:
cpach:build (devid-underscores) 03:10 PM $ udevadm info /dev/sdt | grep ID_MODEL_ENC
E: ID_MODEL_ENC=WDC\x20\x20WDS400T2B0A-00SM50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
cpach:build (devid-underscores) 03:10 PM $ udevadm info /dev/sdn | grep ID_MODEL_ENC
E: ID_MODEL_ENC=WDC\x20WDS200T2B0A-00SM50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
It's not clear why this only happens on some devices and not others,
especially when they are the same model of device. Regardless, removing
the duplicate ' '/'_' is straightforward.
Signed-off-by: Sage Weil <sage@newdream.net>