Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-8115

Make PermissionStatusFormat public

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      implementations of INodeAttributeProvider are required to provide an implementation of getPermissionLong() method. Unfortunately, the long permission format is an encoding of the user, group and mode with each field converted to int using SerialNumberManager which is package protected.

      Thus it would be nice to make the PermissionStatusFormat enum public (and also make the toLong() static method public) so that user specified implementations of INodeAttributeProvider may use it.

      This would also make it more consistent with AclStatusFormat which I guess has been made public for the same reason.

      Attachments

        1. HDFS-8115.1.patch
          7 kB
          Arun Suresh

        Activity

          People

            asuresh Arun Suresh
            asuresh Arun Suresh
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: