@danare found a wrong text in error message in #212.
The error DirPathAlreadyMountedToWrongDevice message was included the variable type. For example : "devices=[]string{"/dev/mapper/mpathv", "/dev/mapper/mpathv2"}".
So this PR fixs the text so it will be "devices=[/dev/mapper/mpathv /dev/mapper/mpathv2]"
In addition, I saw that I didn't align the a fake file with renamed interface isDirAMountPoint. So used this PR to fix that as well, so the UT should pass OK now.
Coverage decreased (-0.07%) to 53.75% when pulling d931ba3119147b7806aa9440c1a8d58b948ae251 on fix/UB_1230_prevent_doublemounting_fix_error into 1eecd5f25441f76659af26cab9cdefd3f09a4129 on dev.
@danare found a wrong text in error message in #212. The error DirPathAlreadyMountedToWrongDevice message was included the variable type. For example : "devices=[]string{"/dev/mapper/mpathv", "/dev/mapper/mpathv2"}". So this PR fixs the text so it will be "devices=[/dev/mapper/mpathv /dev/mapper/mpathv2]"
In addition, I saw that I didn't align the a fake file with renamed interface isDirAMountPoint. So used this PR to fix that as well, so the UT should pass OK now.
This change is