[Linux-ha-dev] LRM Op Userdata
Andrew Beekhof
lists at beekhof.net
Fri Oct 22 10:08:59 MDT 2004
I have come across a problem with the LRM API...
lrm_op_t allows the caller to specify a blob of "user data". This is
not in itself a bad thing, the problem is when the caller (such as the
CRM) exits and restarts and then tries to access the user data blob
which is pointing at god knows what now. Obviously not good.
I spoke with lmb on IRC and his suggestion was to require a
user_data_len field so that the LRM can copy the blob. However this
still wont solve the problem if the object is not a basic C type.
The way I wish to use the user_data field is to carry a string, or an
int which I can map to said string (I know the full set of strings I
will use).
My preference would be to either make the type of user_data an int, or
alternatively a char* and have the LRM make a copy it. Of course you
guys know the code best so maybe there is an even better option.
Andrew
--
Andrew Beekhof
"If it weren't for my horse, I wouldn't have spent that year in
college" - Unknown, courtesy of Lewis Black
More information about the Linux-HA-Dev
mailing list