From: Peter Rajnoha <prajnoha@redhat.com>
To: lvm-devel@redhat.com
Subject: LVM2 ./WHATS_NEW_DM libdm/ioctl/libdm-iface.c ...
Date: Wed, 02 Jun 2010 11:22:02 +0200 [thread overview]
Message-ID: <4C0622BA.90801@redhat.com> (raw)
In-Reply-To: <4C062025.8020201@redhat.com>
On 06/02/2010 11:11 AM, Zdenek Kabelac wrote:
>> + 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.
Yeah, exactly, I have this in my mind too :) I'll just gather all uses of
uname throughout the code and see what else we need and then I'll probably
try to export it, so it's central and we don't need to do these uname calls
and checks here and there...
Peter
next prev parent reply other threads:[~2010-06-02 9:22 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
2010-06-02 9:22 ` Peter Rajnoha [this message]
-- 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=4C0622BA.90801@redhat.com \
--to=prajnoha@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.