From: Piter PUNK <piterpunk@unitednerds.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: [PATCH] Add compressed ID database support to (usb|pci)-db
Date: Wed, 23 Sep 2009 04:33:11 +0000 [thread overview]
Message-ID: <4AB9A507.5010006@unitednerds.org> (raw)
In-Reply-To: <4AB83999.1060004@unitednerds.org>
Ozan Çağlayan wrote:
> Piter PUNK wrote:
>
>> This patch add support to gzip'ed database files to usb-db.c and add
>> the option
>> --disable-zlib to configure.ac. Most of code here come from usbutils
>> names.c
>> file with little modifications to work with udev.
>>
> Looking at the code it seems that enabling zlib support sets HAVE_ZLIB
> which assumes that the DBs are always compressed with gzip which removes
> the support for uncompressed db files. Logically, both should be
> supported with some kind of file format detection.
>
zlib functions can read compressed and uncompressed files. That's why I
try to
open DATABASE.gz first and, if failed, open DATABASE when zlib support is
enabled. The support of both file formats is OK when zlib is enabled.
When disabled, only uncompressed files are supported. Almost no changes
there. The only drawback of enable zlib support is the need of zlib shared
library. But, who are using gzip'ed ID db files already needs zlib to have
working lsusb and lspci.
> Ignore this if I wrongly understand the intention :)
>
Oh, i think is better to explain. Maybe someone else have the same doubt.
Hope it's all OK now -:)
Piter Punk
next prev parent reply other threads:[~2009-09-23 4:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-22 2:42 [PATCH] Add compressed ID database support to (usb|pci)-db Piter PUNK
2009-09-22 22:28 ` Ozan Çağlayan
2009-09-23 4:33 ` Piter PUNK [this message]
2009-09-29 22:48 ` Lennart Poettering
2009-09-29 23:04 ` David Zeuthen
2009-09-29 23:31 ` Lennart Poettering
2009-09-29 23:41 ` Piter PUNK
2009-09-29 23:43 ` Piter PUNK
2009-09-30 0:03 ` Lennart Poettering
2009-09-30 0:08 ` Lennart Poettering
2009-09-30 1:16 ` Piter PUNK
2009-09-30 1:56 ` Greg KH
2009-09-30 2:50 ` Piter PUNK
2009-09-30 9:10 ` Frederic Crozat
2009-09-30 14:39 ` Greg KH
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=4AB9A507.5010006@unitednerds.org \
--to=piterpunk@unitednerds.org \
--cc=linux-hotplug@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).