One more comment:
dfsGetPathInfo serves two purposes: fstat and readdir.
It's hard to get the status of a single directory - you'd need to call
dfsGetPathInfo for the parent directory and filter out everything but the
directory you want.

Perhaps the more common approach of separate calls is better. getFileStat
would return more information per file, possibly everything fstat returns,
future proofing it for a time HDFS supports things like modification time,
and will not return a file name, allowing the memory for dfsFileInfo to be
allocated by the client, while dfsReadDir would return a list of just names
and types.

Yoram

-----Original Message-----
From: Devaraj Das [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 27, 2006 4:41 AM
To: [email protected]
Subject: RE: C API for Hadoop DFS

Thanks all for the feedback. I have incorporated most of them. Attached is
the revised C API.
Thanks
Devaraj.

Reply via email to