#5101 Add cases for ENOSPC and EROFS to display user-friendly error message.