pub(crate) fn create_dir_with_perms( new_etc_fd: &Dir, dir_name: &PathBuf, stat: &Stat, new_inode: Option<&Inode<CustomMetadata>>, ) -> Result<()>