There was a conflict in INodeFile when merging HDFS-4143 so that I keep INodeFile.blocks as protected. Otherwise, some code cannot be compiled. It needs some more works.
h4146_20121104.patch: use getter and setter in INodeFileWithLink to access blocks. Also initialize root directory as snapshottable since it cannot be replaced.
+1 for the change.
Suresh, thanks for the review.
I have committed this.