From 6a176c26c7a302ec6723f2f89cfa17613bd95865 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Thu, 14 Aug 2014 10:01:21 +0200 Subject: [PATCH] light: fix propagation of maxnr --- kernel/sy_old/mars_light.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/kernel/sy_old/mars_light.c b/kernel/sy_old/mars_light.c index 6d40bc83..1b2d3005 100644 --- a/kernel/sy_old/mars_light.c +++ b/kernel/sy_old/mars_light.c @@ -481,6 +481,7 @@ enum { CL_LOG, CL_REPLAYSTATUS, CL_DEVICE, + CL_MAXNR, }; /////////////////////////////////////////////////////////////////////// @@ -5018,6 +5019,17 @@ static const struct light_class light_classes[] = { #endif .cl_backward = kill_dev, }, + + /* Quirk: when dead resources are recreated during a network partition, + * this is used to void version number clashes in the + * partitioned cluster. + */ + [CL_MAXNR] = { + .cl_name = "maxnr", + .cl_len = 5, + .cl_type = 'l', + .cl_father = CL_RESOURCE, + }, {} };