From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 30 14:59:51 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 529C416A4CE for ; Thu, 30 Dec 2004 14:59:51 +0000 (GMT) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id 437F543D49 for ; Thu, 30 Dec 2004 14:59:50 +0000 (GMT) (envelope-from roam@ringlet.net) Received: (qmail 25661 invoked from network); 30 Dec 2004 14:59:46 -0000 Received: from unknown (HELO straylight.ringlet.net) (213.16.36.84) by gandalf.online.bg with SMTP; 30 Dec 2004 14:59:46 -0000 Received: (qmail 10618 invoked by uid 1000); 30 Dec 2004 14:59:49 -0000 Date: Thu, 30 Dec 2004 16:59:49 +0200 From: Peter Pentchev To: Maxim Sobolev Message-ID: <20041230145949.GK830@straylight.m.ringlet.net> Mail-Followup-To: Maxim Sobolev , Matteo Riondato , freebsd-hackers@FreeBSD.ORG References: <1104358540.2895.10.camel@kaiser.sig11.org> <20041230103433.GB830@straylight.m.ringlet.net> <1104409708.6657.1.camel@kaiser.sig11.org> <20041230123116.GE830@straylight.m.ringlet.net> <41D4036B.1060600@portaone.com> <20041230140007.GH830@straylight.m.ringlet.net> <41D40EA0.2060009@portaone.com> <20041230145543.GJ830@straylight.m.ringlet.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9/GiYV45wF7IL3Iq" Content-Disposition: inline In-Reply-To: <20041230145543.GJ830@straylight.m.ringlet.net> User-Agent: Mutt/1.5.6i cc: freebsd-hackers@FreeBSD.ORG cc: Matteo Riondato Subject: Re: Creating Compressed Loop FS from stdin X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Dec 2004 14:59:51 -0000 --9/GiYV45wF7IL3Iq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 30, 2004 at 04:55:43PM +0200, Peter Pentchev wrote: > On Thu, Dec 30, 2004 at 04:20:16PM +0200, Maxim Sobolev wrote: > > You don't check return code of the second lseek - I bet it fails. This= =20 > > probably leads to creation of seemingly valid loop fs (i.e. with valid= =20 > > header), but filled with zeroes or some random junk. >=20 > I said I'd tested it before posting it the first time. It works. > It creates a valid loop fs, containing exactly the files that are in > the input ISO image. Errr. Oops. Sorry everyone - the patch does not really work. I keep testing it with a *file* passed on mkuzip's stdin, all the while feeling surprised that lseek() works on the pipe... when there is no pipe at all :( I just tested it with a real pipe, and of course, it failed. Again, sorry for wasting your time; I guess it'd be best if I tucked in for the holidays now :( G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@cnsys.bg roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 The rest of this sentence is written in Thailand, on --9/GiYV45wF7IL3Iq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB1Bfk7Ri2jRYZRVMRAtTsAKCX3XQ6sGIKifE0+u478mdDWTQK7QCgp8f+ vzbE8dAaD85Q963ZxkiDFYQ= =9zP0 -----END PGP SIGNATURE----- --9/GiYV45wF7IL3Iq--