From: Abhishek Lekshmanan Date: Tue, 19 Apr 2016 13:20:07 +0000 (+0200) Subject: rgw: add errno entry for -ENOTEMPTY X-Git-Tag: v10.2.1~37^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1527b56a888a65fa28223cd9c9cdb06d1575973c;p=ceph.git rgw: add errno entry for -ENOTEMPTY currently if master returns an -ENOTEMTPY, we return a -EIO as we dont have an entry for this Signed-off-by: Abhishek Lekshmanan (cherry picked from commit 40c3bfef8cc3bce7d15fbb0e135c1a909ee59368) --- diff --git a/src/rgw/rgw_http_errors.h b/src/rgw/rgw_http_errors.h index 04500eeed63..aebf801234a 100644 --- a/src/rgw/rgw_http_errors.h +++ b/src/rgw/rgw_http_errors.h @@ -153,6 +153,8 @@ static inline int rgw_http_error_to_errno(int http_err) return -EACCES; case 404: return -ENOENT; + case 409: + return -ENOTEMPTY; default: return -EIO; }