shirsch@adelphia.net (Steven N. Hirsch) writes:
> On Mon, 17 Aug 1998, Maciej W. Rozycki wrote:
>> UFS (Ultrix and Digital Unix) CD-ROMs worked perfectly with the previous
>> read-only implementation of the filesystem. E.g. using 2.1.106.
>
> Can someone familiar with UFS internals take a look and see what's broken?
>
> Even if it is no longer possible (for whatever reason) to read DEC CDs, a
> kernel lockup is not acceptable.
Would you perchance be mounting a little-endian FS (DEC stuff looks like so)
on a big-endian machine? By proof-reading the driver, I found that Daniel
inserted an "optimization" that turns out to be a bad lack-of-swab bug
in that case.
My patch follows in .gz.uu; should be available as
http://www.tunes.org/~fare/files/bu-2.1.116.patch.gz
Most of it is just facelift: comments added or spell-checked.
The only real code change is a bug fix in fs/ufs/super.c,
at the place the variable swab is initialized (look for `UFS_MAGIC').
I hope this fixes your problem.
I'm not really proficient enough in UFS to otherwise correct deep semantic
bugs in Daniel's code, but at least it *looks* quite cleanly written to me.
NB: Cc: to linux-kernel and u2fs mailing lists...
Bestest regards,
## Faré | VN: Уng-Vû Bân | Join the TUNES project! http://www.tunes.org/ ##
## FR: François-René Rideau | TUNES is a Useful, Not Expedient System ##
## Reflection&Cybernethics | Project for a Free Reflective Computing System ##
As far as natural selection applies to the human world, we don't ever get to
"let nature decide", because we ARE part of that nature that decides. Hence,
any claim to "let the nature decide" is just a fallacy to promote one point
of view against others, or to ignore one's responsibilities.
begin 664 bu.patch.gz
M'XL(`*#HVC4"`]U;>W?:R)+_&W^*GMRS"<0"`\;8)HG'SR2>FS@YQMYX=N\>
MCD`-*!825RT%,S/9S[Z_JE8+"80?F=FS>ZXG`WIT55=7U[L:QQT.136^$*X_
M\&)';GFN']]MQ4/5&ZK:6&S%*MQ2X2!Y7CQJHUJMKD%0^B(=<12/1&-?-)J=
M[?U.LXWK_;V-S<W-QV'/H6AW6HU.(T%Q>"BJ;6M7;-+'X>&&$"_%![L?A'84
MA',Q#$)Q$DRF<21#T1VXTA](<2F5M,/!.'GC^B/QUAZXGAO-&?XRCD8R5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-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html