lkml.org 
[lkml]   [2005]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ramfs: pretend dirent sizes
Jan Blunck wrote:

>
> I don't want to tell where these are in general, I need an easy way to
> seek to the m'th directory + offset position without reading every
> single dirent. With i_sizes != 0 it is straight forward to use "the
> sum of the m directory's i_sizes + offset" as the f_pos to seek to.
> For this purpose it is not necessary to have a "honest" i_size as long
> as the i_size is bigger than the offset of the last dirent in the
> directory.
>

You are not going to get this functionality. It is simply not how
directories
work nowadays. Very few file systems are going to be usable if you insist
upon this semantic. It is simply not possible to guess, with variable sized
entries and with distributed directory structures.

ps
-
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-07-20 21:00    [W:0.061 / U:0.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site