Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
On 01/02/2012 14:42, Lars Ellenberg wrote: > On Wed, Feb 01, 2012 at 12:48:18PM +0100, Seblu wrote: >> On 30/01/2012 17:14, Lars Ellenberg wrote: >>> On Mon, Jan 30, 2012 at 09:52:57AM +0100, Seblu wrote: >>>> Hello, >>>> >>>> i'm working on adding drbd userspace tools to archlinux distribution. >>>> >>>> When i load linux 3.2 drbd kernel module, it is recognised as 8.3.11. >>>> 3.3-rc seems to be the same. >>>> >>>> # uname -r >>>> 3.2.2-1-ARCH >>>> # cat /proc/drbd >>>> version: 8.3.11 (api:88/proto:86-96) >>>> >>>> 8.4.1 userland tool suggest me to use older version, matching to >>>> kernel one (8.3.11). >>>> >>>> # drbdadm sh-nop >>>> DRBD module version: 8.3.11 >>>> userland version: 8.4.1 >>>> preferably kernel and userland versions should match. >>>> >>>> So i try to switch to 8.3.11 userland but i got and error when i make >>>> >>>> $ cd /tmp/drbd-8.3.11/drbd >>>> $ make >>>> Makefile:95: *** "won't compile with this kernel version". Stop. >>> >>> You have seen: >>> http://git.drbd.org/gitweb.cgi?p=drbd-8.3.git;a=commitdiff;h=790c26b09519b9e02b3a7cf7897fb17c2ae339bf >>> http://www.gossamer-threads.com/lists/drbd/users/22508 >> >> Ok i will apply your patch unless your release a 8.3.13 soon? >> >>> >>> Besides, you as you already have the in-tree drbd module, >>> and you want the drbd *userland* only, why are you trying >>> to build the out-of-tree *module* now? >> I doesn't try to build module! Unfortunatly, building userland check >> kernel version. > > I somehow doubt that? > >> i run ./configure --without-km. That should suffice to build userland >> only, no? > > Yes. I think that would even be the default, so: > ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc http://pastebin.com/PC51e60R > > But you did "cd drbd && make", > which starts the module build anyways. > So don't do that if you don't mean it. I do this to have a shorter message to show you, but it's the same as you can see in pastebin. You can view here the full configure like and make as it is builded for archlinux: http://projects.archlinux.org/svntogit/community.git/tree/drbd/trunk/PKGBUILD > >> >>> >>> If you want to build out-of-tree everything, then go with 8.3.12. >>> http://git.drbd.org/gitweb.cgi?p=drbd-8.3.git;a=shortlog >>> >>>> So my main question is, which userland version is recommended to be >>>> used with linux 3.2 upstream drbd module? >>> >>> 8.3.11 (or 8.3.12, does not make a real difference here). >> ok thanks! >> There is a small difference between 8.3.11 and 8.3.12, it's a warning message about bad userland version. :/ DRBD module version: 8.3.11 userland version: 8.3.12 preferably kernel and userland versions should match. So i introduce again my question about userland versionning in kernel: Why there is a global version and not only api and proto version in module? This would let userland be improved while compatibility with api/proto doesn't change. Is there a way to disable it? -- Sébastien Luttringer