Merge r1480838 and r1480840 from trunk for merging HDFS Snapshot feature.


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1488089 13f79535-47bb-0310-9956-ffa450edef68