All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][TRIVIAL] ceph: Add comments for ENOENT which returned from osd.
@ 2013-07-26  2:52 majianpeng
  0 siblings, 0 replies; only message in thread
From: majianpeng @ 2013-07-26  2:52 UTC (permalink / raw)
  To: sage; +Cc: ceph-devel

The error ENOENT from osd has special meaning.It means the data of
read-area are all-zero.In order to reduce the flow between client and
osd, it used this method.

Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
---
 fs/ceph/file.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index 2ddf061..81a9dfc 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -342,6 +342,11 @@ more:
 				  ci->i_truncate_seq,
 				  ci->i_truncate_size,
 				  page_pos, pages_left, page_align);
+	/*
+	 * This error is return from osd.It means the read-area is allzero.
+	 * So in order to reduce the flow,it return this value the reciver
+	 * should fill zero.
+	 */
 	if (ret == -ENOENT)
 		ret = 0;
 	hit_stripe = this_len < left;
-- 
1.8.1.2

Thanks!
Jianpeng Ma

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-07-26  2:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-26  2:52 [PATCH][TRIVIAL] ceph: Add comments for ENOENT which returned from osd majianpeng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.