From: Zdenek Kabelac <zkabelac@redhat.com>
To: lvm-devel@redhat.com
Subject: LVM2 ./WHATS_NEW_DM libdm/ioctl/libdm-iface.c ...
Date: Wed, 02 Jun 2010 11:11:01 +0200 [thread overview]
Message-ID: <4C062025.8020201@redhat.com> (raw)
In-Reply-To: <20100601160814.13230.qmail@sourceware.org>
Dne 1.6.2010 18:08, prajnoha at sourceware.org napsal(a):
> CVSROOT: /cvs/lvm2
> Module name: LVM2
> Changes by: prajnoha at sourceware.org 2010-06-01 16:08:14
>
> Modified files:
> . : WHATS_NEW_DM
> libdm/ioctl : libdm-iface.c
> libdm/misc : dm-ioctl.h
>
> Log message:
> Add support for dm-mod module autoload.
> /*
> @@ -279,7 +304,8 @@
> * Assume 2.4 kernels are patched not to.
> * FIXME Check _dm_version and _dm_version_minor if 2.6 changes this.
> */
> - if (!strncmp(uts.release, "2.6.", 4))
> + if (KERNEL_VERSION(_kernel_major, _kernel_minor, _kernel_release)>=
> + KERNEL_VERSION(2, 6, 0))
> _dm_multiple_major_support = 0;
>
I think slightly better API would be here - to call some function like:
int is_kernel_version_higher(major, minor,relase);
Returns 1 if the kernel version is > than given argument.
And keep _kernel_major local static in this function.
Zdenek
next prev parent reply other threads:[~2010-06-02 9:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-01 16:08 LVM2 ./WHATS_NEW_DM libdm/ioctl/libdm-iface.c prajnoha
2010-06-02 9:11 ` Zdenek Kabelac [this message]
2010-06-02 9:22 ` Peter Rajnoha
-- strict thread matches above, loose matches on Subject: below --
2010-04-07 15:57 mbroz
2010-03-23 14:38 prajnoha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C062025.8020201@redhat.com \
--to=zkabelac@redhat.com \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.