lkml.org 
[lkml]   [2005]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ramfs: pretend dirent sizes
Chris Wedgwood wrote:
>
> Why bother at all?
>
> I don't see why zero sizes are a problem. We've had them for year
> without complaints.

I'm using the i_size of directories in my patches. When reading from a
union directory, I'm using the i_size to seek to the right offset in the
union stack. Therefore I need values of dirent->d_off which are smaller
than the i_size of the directory.
Altogether, it doesn't make sense to me to seek to an offset which is
greater than the i_size and let the dirent read succeed.

Jan
-
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-19 11:30    [W:0.187 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site