On 2008-10-24 22:07, Scott Neugroschl wrote:
> Jefferson Ogata wrote [attribution restored]:
>> The only properties in a directory entry are a name, entry type
>> (regular
>> file, directory, block device, etc.), and an inode number.

> No, the only properties in a directory entry are the name and inode
> number.
> The rest of the information comes from the inode (that's what stat(2) is
> for).

Of course the type comes originally from the inode. But on some systems
there is a copy of it in struct dirent (see on Linux).
The on-disk format depends on the filesystem.

Jefferson Ogata
NOAA Computer Incident Response Team (N-CIRT)
"Never try to retrieve anything from a bear."--National Park Service
openssh-unix-dev mailing list