1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-10 05:18:36 +03:00

Fix hardcoded page size, fixing test fails with 8k page and new kernel.

This commit is contained in:
Milan Broz 2011-03-06 16:47:43 +00:00
parent 40c79aba89
commit 03a1410b12
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.85 -
===================================
Use system page size and not hardcoded value in locking code check.
Fix reading of released memory for printing segment type.
Fix syslog initialisation in clvmd to respect lvm.conf setting.
Fix possible overflow in maximum stripe size and physical extent size.

View File

@ -344,7 +344,7 @@ static void _unlock_mem(struct cmd_context *cmd)
dm_free(_maps_buffer);
_maps_buffer = NULL;
if (_mstats < unlock_mstats) {
if ((_mstats + 4096) < unlock_mstats)
if ((_mstats + getpagesize()) < unlock_mstats)
log_error(INTERNAL_ERROR
"Maps lock %ld < unlock %ld",
(long)_mstats, (long)unlock_mstats);