Re: Creating Compressed Loop FS from stdin

From: Peter Pentchev (roam_at_ringlet.net)
Date: 12/30/04

  • Next message: Matteo Riondato: "Creating Compressed Loop FS from stdin"
    Date: Thu, 30 Dec 2004 16:59:49 +0200
    To: Maxim Sobolev <sobomax@portaone.com>
    
    
    

    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
    > > probably leads to creation of seemingly valid loop fs (i.e. with valid
    > > header), but filled with zeroes or some random junk.
    >
    > 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

    -- 
    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
    
    



  • Next message: Matteo Riondato: "Creating Compressed Loop FS from stdin"

    Relevant Pages

    • Re: I really enjoyed the show!
      ... The 4th Pipe Making Seminar was, for me, a really enjoyable time. ... The instructor's this year were Ed Jurkiewicz, Brian Ruthenburg, Kirk ... We had a total of 13 attendees across the ... block and then lighting them up for the first time once they were ...
      (alt.smokers.pipes)
    • Re: Strange behaviour of simple code
      ... I'm reading a Little Endian file. ... between reading and writing files, ... You never set it to false after the first time it gets set to ... I'm writing a pipe. ...
      (comp.lang.cpp)
    • Re: The Boys First Smoke
      ... > wants to smoke a pipe with his buddies at college. ... Not bad for a first time. ... you gave the boy Borkum Riff. ...
      (alt.smokers.pipes)
    • Re: Thursday Evening Pleasures
      ... Looking forward to trying Bayou Morning Flake for the first time. ... > with PETA please note that I too belong to PETA (people eating tasty ... > Wot's in YOUR pipe tonight? ...
      (alt.smokers.pipes)
    • Re: Morning Smoke, Tuesday 10/17/06
      ... Raining this AM in Phila, mid 50s, promise of warmup and then cooling. ... little decaf from BJs and the pipe was an LJ pot w/ DGTed Morley's ... First time for this, but might not be the last. ...
      (alt.smokers.pipes)