Map NFS3ERR_NOTEMPTY to ENOTEMPTY rather than EEXIST. POSIX allows
either EEXIST or ENOTEMPTY for rmdir on a non-empty directory but
ENOTEMPTY is more explicit and in line with Linux, OS X, FreeBSD and
OpenBSD's behavior.
Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
case NFS3ERR_ROFS: return -EROFS; break;
case NFS3ERR_MLINK: return -EMLINK; break;
case NFS3ERR_NAMETOOLONG: return -ENAMETOOLONG; break;
- case NFS3ERR_NOTEMPTY: return -EEXIST; break;
+ case NFS3ERR_NOTEMPTY: return -ENOTEMPTY; break;
case NFS3ERR_DQUOT: return -ERANGE; break;
case NFS3ERR_STALE: return -EIO; break;
case NFS3ERR_REMOTE: return -EIO; break;