On Sat, Jan 29, 2000 at 10:46:00AM +0100, Jim Meyering wrote:
> "H . J . Lu" <[EMAIL PROTECTED]> writes:
> | I don't know how important it is. I have a damanged partition under
> | Linux. There are some wild files under /lost+found. All of them are
> | device files with strange values in st_size and st_blocks. As the
> | result, du gives some wild numbers on them, something like "216T".
> | Here is a klude I use. I am not very sure if it is 100% correct.
> 
> Thanks for the suggestion.
> 
> Your corrupted files are all device files.
> What if some had been files or directories?
> I'm not convinced that patch would be generally useful.

I can live with files or directories.

> 
> Does anyone know if a non-regular, non-directory, non-symlink
> may have nonzero size st_size?

According to the Unix standard, st_size is only meaningful for
files.


-- 
H.J. Lu ([EMAIL PROTECTED])

Reply via email to