Don't replace "!" with "/" for cciss until after size calculation
We use /sys/class/block/${tgtdrive}/size to calculate target drive size.
Unlike device files in /dev, paths in /sys have "!" instead of "/", so
the substitution should not be made until we're done with /sys.
Reviewed: https:/ /review. openstack. org/90201 /git.openstack. org/cgit/ stackforge/ fuel-main/ commit/ ?id=220e09073f7 5809ceae38a1de9 828aee3835b10c
Committed: https:/
Submitter: Jenkins
Branch: stable/4.1
commit 220e09073f75809 ceae38a1de9828a ee3835b10c
Author: Dmitry Borodaenko <email address hidden>
Date: Thu Apr 24 12:03:37 2014 -0700
Don't replace "!" with "/" for cciss until after size calculation
We use /sys/class/ block/$ {tgtdrive} /size to calculate target drive size.
Unlike device files in /dev, paths in /sys have "!" instead of "/", so
the substitution should not be made until we're done with /sys.
Change-Id: If88c311ceb41e6 e3e00ef7e536329 477d4243ea7
Closes-bug: #1312311