lkml.org 
[lkml]   [2004]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Fw: [POSSIBLE-BUG] telldir() broken on ext3 dir_index'd directories just after the first entry.
>> >So instead what we need to do is wire '.' and '..' to have hash values
>> >of (0,0) and (2,0), respectively, without ignoring other existing
>> >dirents with colliding hashes. (In those cases the programs will
>> >break, but they are statistically rare, and there's not much we can do
>> >in those cases anyway.)
>>
>> IMO it's better to fix the mess all at once to have it weeded out for some
>> months.
>
>Programs that assume that '.' and '..' are the first and second [...]
>But there's really not much we can do.
>
>Before, we hard-wired '.' and '..' to always be first [...]
>We don't really have a choice here.
>
>(Actually, I guess we could define a new hash function [...]
>So again, making a best effort, but breaking programs
>that are fundamentally broken is the best we can do.)

Looks like there's only way -- or: two ways and one choice:

- Either leave it all as it is ATM (kind of unsatisfying) or

- (unintentionally) break all apps now, or announce that they could brake if they
relied on special features (as outlined above), and at the same time implement
proper directory traversal.



Jan Engelhardt
--
Gesellschaft für Wissenschaftliche Datenverarbeitung
Am Fassberg, 37077 Göttingen, www.gwdg.de
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.191 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site