title: Original Filename of a block in HDFS
body: <p>Does anyone know how I can get the original filename of a block in hdfs? I'm trying to write a BlockReplacementPolicy. When the file is being written for the first time, I can use srcPath parameter to get the filename. However, when under replicated blocks are being replicated again, I believe srcPath is not going to solve my problem. </p>
  
  <p>Do you know any class that I can use to get the filename for a block (and/or block collection)?</p>
  
  <p>Thanks a lot in advance!</p>