Re: [PATCH 06/14] DRBD: userspace_interface

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Philipp Reisner
Date: Friday, April 17, 2009 - 6:24 am

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.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 01/14] DRBD: major.h, Philipp Reisner, (Fri Apr 10, 5:12 am)
[PATCH 02/14] DRBD: lru_cache, Philipp Reisner, (Fri Apr 10, 5:12 am)
[PATCH 03/14] DRBD: activity_log, Philipp Reisner, (Fri Apr 10, 5:12 am)
[PATCH 04/14] DRBD: bitmap, Philipp Reisner, (Fri Apr 10, 5:12 am)
[PATCH 05/14] DRBD: request, Philipp Reisner, (Fri Apr 10, 5:12 am)
[PATCH 06/14] DRBD: userspace_interface, Philipp Reisner, (Fri Apr 10, 5:12 am)
[PATCH 07/14] DRBD: internal_data_structures, Philipp Reisner, (Fri Apr 10, 5:12 am)
[PATCH 08/14] DRBD: main, Philipp Reisner, (Fri Apr 10, 5:12 am)
[PATCH 09/14] DRBD: receiver, Philipp Reisner, (Fri Apr 10, 5:12 am)
[PATCH 10/14] DRBD: proc, Philipp Reisner, (Fri Apr 10, 5:12 am)
[PATCH 11/14] DRBD: worker, Philipp Reisner, (Fri Apr 10, 5:12 am)
[PATCH 12/14] DRBD: variable_length_integer_encoding, Philipp Reisner, (Fri Apr 10, 5:12 am)
[PATCH 13/14] DRBD: misc, Philipp Reisner, (Fri Apr 10, 5:12 am)
[PATCH 14/14] DRBD: final, Philipp Reisner, (Fri Apr 10, 5:12 am)
Re: [PATCH 02/14] DRBD: lru_cache, Bart Van Assche, (Fri Apr 10, 5:24 am)
Re: [PATCH 07/14] DRBD: internal_data_structures, Bart Van Assche, (Sat Apr 11, 12:18 am)
Re: [PATCH 06/14] DRBD: userspace_interface, Bart Van Assche, (Sun Apr 12, 9:23 am)
Re: [PATCH 07/14] DRBD: internal_data_structures, Bart Van Assche, (Sun Apr 12, 9:44 am)
Re: [PATCH 06/14] DRBD: userspace_interface, Kyle Moffett, (Mon Apr 13, 7:33 pm)
Re: [PATCH 02/14] DRBD: lru_cache, Nikanth Karthikesan, (Tue Apr 14, 4:54 am)
Re: [PATCH 07/14] DRBD: internal_data_structures, Philipp Reisner, (Tue Apr 14, 6:53 am)
Re: [PATCH 02/14] DRBD: lru_cache, Philipp Reisner, (Wed Apr 15, 8:29 am)
Re: [PATCH 05/14] DRBD: request, Bart Van Assche, (Thu Apr 16, 12:06 am)
Re: [PATCH 07/14] DRBD: internal_data_structures, Philipp Reisner, (Thu Apr 16, 6:35 am)
Re: [PATCH 05/14] DRBD: request, Philipp Reisner, (Thu Apr 16, 8:32 am)
Re: [PATCH 06/14] DRBD: userspace_interface, Philipp Reisner, (Fri Apr 17, 6:24 am)
Re: [PATCH 06/14] DRBD: userspace_interface, Philipp Reisner, (Wed Apr 22, 3:31 am)