• Christian Brauner's avatar
    orangefs: rework posix acl handling when creating new filesystem objects · 4053d250
    Christian Brauner authored
    When creating new filesytem objects orangefs used to create posix acls
    after it had created and inserted a new inode. This made it necessary to
    all posix_acl_chmod() on the newly created inode in case the mode of the
    inode would be changed by the posix acls.
    
    Instead of doing it this way calculate the correct mode directly before
    actually creating the inode. So we first create posix acls, then pass
    the mode that posix acls mandate into the orangefs getattr helper and
    calculate the correct mode. This is needed so we can simply change
    posix_acl_chmod() to take a dentry instead of an inode argument in the
    next patch.
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarChristian Brauner (Microsoft) <brauner@kernel.org>
    4053d250
orangefs-utils.c 15.5 KB