On Sunday 12 April 2009 18:23:43 Bart Van Assche wrote:
Without comments and boilerplate, drbd_config.h has 7 defines.
REL_VERSION and API_VERSION are used by the kernel code and drbdsetup,
the others are used only by the kernel.
Ack, I have removed it from drbd.h
Right. Changed.
Comment adjusted. New error codes should be appended to enum. When a
old userspace programm sees an error code greater than AfterLastRetCode
it suggests the user that he should update the userspace tools.
The comment might be strange, but the content is true.
Well, we actually compile and link the same source file (drbd_strings.c)
into the kernel code and into unser space (drbdsetup). It just has
functions to map those numbers to strings. -- Nothing fancy.
So yes, you are right, they are not part of the interface, they are
just used in both contexts. It just seemed ridiculous to me to have
even a dedicated header file defining those 4 external functions.
As usual, I have pushed the changes to git.drbd.org
-Phil
--
: Dipl-Ing Philipp Reisner
: LINBIT | Your Way to High Availability
: Tel: +43-1-8178292-50, Fax: +43-1-8178292-82
: http://www.linbit.com
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
--