Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-1869

mkdirs should use the supplied permission for all of the created directories

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.0
    • Fix Version/s: 0.23.0
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Hide
      A multi-level mkdir is now POSIX compliant. Instead of creating intermediate directories with the permissions of the parent directory, intermediate directories are created with permission bits of rwxrwxrwx (0777) as modified by the current umask, plus write and search permission for the owner.
      Show
      A multi-level mkdir is now POSIX compliant. Instead of creating intermediate directories with the permissions of the parent directory, intermediate directories are created with permission bits of rwxrwxrwx (0777) as modified by the current umask, plus write and search permission for the owner.

      Description

      Mkdirs only uses the supplied FsPermission for the last directory of the path. Paths 0..N-1 will all inherit the parent dir's permissions even if inheritPermission is false. This is a regression from somewhere around 0.20.9 and does not follow posix semantics.

      1. HDFS-1869-4.patch
        18 kB
        Daryn Sharp
      2. HDFS-1869-3.patch
        17 kB
        Daryn Sharp
      3. HDFS-1869-2.patch
        17 kB
        Daryn Sharp
      4. HDFS-1869.patch
        2 kB
        Daryn Sharp

        Issue Links

          Activity

            People

            • Assignee:
              Daryn Sharp
              Reporter:
              Daryn Sharp
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development