From 65fc4dae3aa55101025fcc8f88ef26235ecfb8be Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 28 Jan 2011 10:14:08 +0000 Subject: [PATCH] Avoid rebuilding of uuid validation table Small CPU relax... --- WHATS_NEW | 1 + lib/uuid/uuid.c | 1 + 2 files changed, 2 insertions(+) diff --git a/WHATS_NEW b/WHATS_NEW index 1ab991b16..cbebc88f1 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.83 - =================================== + Avoid rebuilding of uuid validation table. Always use O_DIRECT when opening block devices to check for partitioning. Improve lvcreate "insufficient extents" errors to "insufficient free space". diff --git a/lib/uuid/uuid.c b/lib/uuid/uuid.c index e85e852c4..edcb1ba30 100644 --- a/lib/uuid/uuid.c +++ b/lib/uuid/uuid.c @@ -125,6 +125,7 @@ static void _build_inverse(void) if (_built_inverse) return; + _built_inverse = 1; memset(_inverse_c, 0, sizeof(_inverse_c)); for (ptr = _c; *ptr; ptr++)