Re: Msdos name alias patch for 2.1.49

Linus Torvalds (torvalds@transmeta.com)
Thu, 14 Aug 1997 12:54:12 -0700 (PDT)


On Thu, 14 Aug 1997, Alain.Knaff@poboxes.com wrote:
>
> >Mathematical rules for d_hash and d_compare:
> >
> > d_compare(a,a) = 1 for all a
> > d_compare(a,b) => d_hash(a) == d_hash(b)
> > d_compare(a,b) <=> d_compare(b,a)
>
> ok, except that d_compare values are 0 for equivalence, and 1 for
> difference in order to match memcmp's behavior. If this is a problem,
> I'll gladly supply a patch where the return values of d_compare have
> the polarity that you outlined above.

No, this is fine.

> Comments?

Ok, we'll try this. I think I'll make some cosmetic changes, but this is
basically fine.

Linus