gfs2-utils: master - libgfs2: Set errno in dirent_alloc and use dir_add consistently