From: Sage Weil Date: Thu, 1 Oct 2015 19:01:59 +0000 (-0400) Subject: osd: return -EDQUOT instead of -ENOSPC if it is a pool quota X-Git-Tag: v9.1.0~35^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ea93ead2ab62583c2054e56039bb7c681357255c;p=ceph.git osd: return -EDQUOT instead of -ENOSPC if it is a pool quota The pool quota error should return EDQUOT intead of ENOSPC. Signed-off-by: Sage Weil --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 857ed09b38af..124b150c55e0 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -6149,7 +6149,7 @@ int ReplicatedPG::prepare_transaction(OpContext *ctx) } else if (m->has_flag(CEPH_OSD_FLAG_FULL_TRY)) { // they tried, they failed. dout(20) << __func__ << " full, replying to FULL_TRY op" << dendl; - return -ENOSPC; + return pool.info.has_flag(pg_pool_t::FLAG_FULL) ? -EDQUOT : -ENOSPC; } else { // drop request dout(20) << __func__ << " full, dropping request (bad client)" << dendl;