Linux-kernel mailing list archive 1999-23,: Re: isofs patch for (bad?) CD-R's

# Re: isofs patch for (bad?) CD-R's

Eric Lammerts (eric@scintilla.utwente.nl)
Fri, 11 Jun 1999 22:59:18 +0200 (CEST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Tony Preston: "Question: Porting a Driver to 2.2"
- Previous message: Brian K. White: "iBCS2"
- In reply to: Humberto Ortiz Zuazaga: "isofs patch for (bad?) CD-R's"

This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--655616-308274562-929134758=:2354
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Fri, 11 Jun 1999, Humberto Ortiz Zuazaga wrote:

> With the stock isofs module in redhat 5.2, upgraded with kernel
> 2.0.36, listing certain directories with large (25MB) files resulted
> in a bunch of:
>
> isofs_read_level3_size: More than 100 file sections ?!?, aborting...
>
> messages. The reported file sizes for these files were also too low.
> Copying the files also generate the same errors, and the resulting
> files are too short.

I wrote that code. I put the threshold in as a sanity check while I
was debugging the stuff but it's not necessary because even with bad
CDs infinite loops are not possible. The best thing to do is to remove
the check altogether. I've attached a patch against 2.3.6 that does
this.

Eric

    --
    Eric Lammerts <eric@scintilla.utwente.nl>

    Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!

    --655616-308274562-929134758=:2354
    Content-Type: TEXT/PLAIN; charset=US-ASCII; name=iso9660-filesections-patch
    Content-Transfer-Encoding: BASE64
    Content-ID: <Pine.LNX.4.02.9906112259180.2354@adriaan.korenvliet>
    Content-Description:
    Content-Disposition: attachment; filename=iso9660-filesections-patch

    LS0tIGlub2RlLmMub3JpZwlGcmkgSnVuIDExIDIyOjU1OjM3IDE5OTkNCisr
    KyBpbm9kZS5jCUZyaSBKdW4gMTEgMjI6NTU6NTggMTk5OQ0KQEAgLTk3NSwx
    MyArOTc1LDYgQEANCiAjZW5kaWYNCiAJCQluZXh0aW5vID0gaW5vLT51Lmlz
    b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    aV9pbm8sIGlubyk7DQotCWdvdG8gb3V0Ow0KIH0NCiANCiB2b2lkIGlzb2Zz
    X3JlYWRfaW5vZGUoc3RydWN0IGlub2RlICogaW5vZGUpDQo=
    --655616-308274562-929134758=:2354--

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/

- Next message: Tony Preston: "Question: Porting a Driver to 2.2"
- Previous message: Brian K. White: "iBCS2"
- In reply to: Humberto Ortiz Zuazaga: "isofs patch for (bad?) CD-R's"