Messages in this thread | | | Date | Wed, 20 Jul 2005 14:52:48 -0400 | From | Peter Staubach <> | Subject | Re: [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/
| |