From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 21 22:47:25 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8AA4C1065676 for ; Sun, 21 Feb 2010 22:47:25 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id 2763E8FC12 for ; Sun, 21 Feb 2010 22:47:24 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id e12so459447fga.13 for ; Sun, 21 Feb 2010 14:47:12 -0800 (PST) Received: by 10.87.66.14 with SMTP id t14mr14392544fgk.60.1266792431948; Sun, 21 Feb 2010 14:47:11 -0800 (PST) Received: from localhost (61-186-132-95.pool.ukrtel.net [95.132.186.61]) by mx.google.com with ESMTPS id 13sm1135046fxm.14.2010.02.21.14.47.09 (version=SSLv3 cipher=RC4-MD5); Sun, 21 Feb 2010 14:47:10 -0800 (PST) Date: Mon, 22 Feb 2010 00:46:56 +0200 From: Alex RAY To: Tim Kientzle Message-Id: <20100222004656.3dd2acfe.ray@ddteam.net> In-Reply-To: <4B80C7E7.1090303@freebsd.org> References: <4B80C7E7.1090303@freebsd.org> Organization: DDTeam.net X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: bf1783@gmail.com, freebsd-hackers@freebsd.org Subject: Re: GEOM_ULZMA X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Feb 2010 22:47:25 -0000 On Sat, 20 Feb 2010 21:43:03 -0800 Tim Kientzle wrote: > b. f. wrote: > >>> The code organization depends on what you want to do with it and how you > >>> want to update the code in the future, if your lzma library is third party. > >> LZMA made by Igor Pavlov, and since 4.62 it licensed under Public Domain. > >> So we can use it, if we need. > >> > >>> If you never intend to update the lzma code then I guess it's fine to > >>> embed it in a big .c file. For a port, it doesn't matter much since it > >>> is your own thing. There are stricter rules on maintainability and style > >>> if you want it in the base system. > >> So, I think right place for lzma library under sys/contrib directory, if I "promise" >maintain it? > > > > There are already long-standing plans to import lzma compression > > libraries into the base system, by the libarchive maintainers. > > Libarchive has hooks to support the liblzma library > from Lasse Collin's "xz utils" package. When linked > against this library, libarchive (and hence bsdtar) > has full support for "bare" lzma streams and for > Collin's "xz" format (which is a big improvement over > bare lzma streams). Like Igor Pavlov's original > code, the "xz utils" code is in the public domain. > > Officially, xz utils is in version 4.999.8beta; Collin > has promised to bump the version to 5.0 once he feels > the code is sufficiently stable. As far as I can > tell, it's actually in pretty good shape now; the > changes going in seem to mostly be minor portability > fixes. I see no reason to not import the current > version into the FreeBSD base system. I plan > to do so but may not get to it very soon; I > certainly would not complain if someone else > beat me to it. ;-) > > There are other lzma libraries around, of course. > In particular, I've seen references to the lzma libraries > distributed with lzip. Unfortunately, lzip is GPLv3 > so is not a candidate for inclusion in FreeBSD's base > system. > > Tim > Thanks for that info. GEOM_ULZMA contain two parts mkulzma and GEOM module. libarchive can help for mkulzma utility, but how they can help for GEOM module? I need to know, where correct place for lzma code in kernel tree? -- Alex RAY