Re: Creating Compressed Loop FS from stdin

From: Maxim Sobolev (sobomax_at_portaone.com)
Date: 12/30/04

  • Next message: Erik Udo: "Asus a7v880 mobo integrated sound not working"
    Date: Thu, 30 Dec 2004 17:08:10 +0200
    To: Peter Pentchev <roam@ringlet.net>
    
    

    Never mind - people are inheretedly error prone creatures. ;-)

    In your case shell has been passing file descriptor of the open file,
    not pipe, so that seeking has been working properly.

    Anyway, I think that your patch is useful, since it should allow using
    disk devices.

    -Maxim

    Peter Pentchev wrote:
    > 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
    >

    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Erik Udo: "Asus a7v880 mobo integrated sound not working"

    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: [PATCH] 2.6.13: POSIX violation in pipes on ia64 for kernels > 2.6.10
      ... last buffer in use. ... > How empty the pipe has to be for a write to be able to do so is outside ... > the spec, and any code that depends on it is broken. ... I will give one more reason to consider the patch. ...
      (Linux-Kernel)
    • Re: [PATCH] core_pattern: Add ability for core_pattern to parse arguments when pattern is a pipe
      ... local testing) as a patch sequence, with all my screw-ups properly fixed, ... and with an appropriate changelog describing the whole sequence. ... the pipe will cause a deadlock in the do_coredump path. ... the output desitination of a core dump be a pipe to a user space process, ...
      (Linux-Kernel)
    • 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)