There is no need to store file name in the block. Given block you can get BlockInfo, which has INodeFile. From this you can get the corresponding file name. As Dhruba said, I am interested in the use-case as well.
On 12/3/09 1:25 AM, "Dhruba Borthakur" <dhr...@gmail.com> wrote: I think that if we add the filename of a file to each block, it adds additional complexity to the implementation of the filesystem. what is the use-case that you have in mind? thanks, dhruba On Wed, Dec 2, 2009 at 11:30 PM, Jack Li <jack...@duke.edu> wrote: > > I am trying to add functionality so that a block can store the name of the > file it is associated with. Having looked at the HDFS source code, would > this implementation be added correctly by make some modifications to the > INodeFile.java and Block.java files? Are there some more modifications I am > missing that need to be added for this functionality to be possible? Thanks > > Jack > -- Connect to me at http://www.facebook.com/dhruba