Preload libc.mo file for localized lvm before taking memory lock - this way
we prevent disk access for some error paths in libdm, that prints localized
errno messages while they are still in memory locked state.
Version 2.02.69 -
================================
+ Preload libc locale messages to prevent reading it in memory locked state.
Fix handling of simultaneous mirror image and mirrored log image failure.
Version 2.02.68 - 23rd June 2010
#endif
}
+ /* Force libc.mo load */
+ if (lock == LVM_MLOCK)
+ (void)strerror(0);
/* Reset statistic counters */
*mstats = 0;
rewind(_mapsh);