Hi Raghu, Can you pl explain what curFile and backupFile refer to in this context? Are you referring to the block data file and the metafile?
Thanks, dhruba -----Original Message----- From: Raghu Angadi [mailto:[EMAIL PROTECTED] Sent: Friday, November 30, 2007 4:05 PM To: hadoop-dev@lucene.apache.org Subject: Re: hard link count for a file I am back to writing this code as part of periodic block verification. Another approach I am thinking of is to check curFile.lastModified() and backupFile.lastModified(). As long as these two are different, we could assume they are different files. This is simpler than trying to lock the files. Raghu. Raghu Angadi wrote: > > Thanks Nigel. > > Another hack I can think of is, if DataNode is not finalized we can try > to lock current/subdir.../blk_id and previous/subdir../blk_id. If second > lock fails, we can assume they are the same. > > Raghu. > > Nigel Daley wrote: >> Raghu, >> >> LGPL not allowed in distro: >> http://people.apache.org/~cliffs/3party.html >> >> Nige >> >> On Nov 6, 2007, at 11:32 PM, Raghu Angadi wrote: >> >