Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1510719 > unrolled thread

[PATCH 25/29] staging: lustre: llite: Inform copytool of dataversion changes

Started byJames Simmons <jsimmons@infradead.org>
First post2016-10-28 00:20 +0200
Last post2016-10-28 00:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 25/29] staging: lustre: llite: Inform copytool of dataversion changes James Simmons <jsimmons@infradead.org> - 2016-10-28 00:20 +0200

#1510719 — [PATCH 25/29] staging: lustre: llite: Inform copytool of dataversion changes

FromJames Simmons <jsimmons@infradead.org>
Date2016-10-28 00:20 +0200
Subject[PATCH 25/29] staging: lustre: llite: Inform copytool of dataversion changes
Message-ID<sx1bJ-7Qv-59@gated-at.bofh.it>
From: Henri Doreau <henri.doreau@cea.fr>

Notify copytool that a file could not be archived due to dataversion
change. This does not introduce any functional change but ensures
that errors are consistently reported in copytool logs.

Signed-off-by: Henri Doreau <henri.doreau@cea.fr>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5683
Reviewed-on: http://review.whamcloud.com/14377
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Robert Read <robert.read@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
---
 drivers/staging/lustre/lustre/llite/dir.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/lustre/lustre/llite/dir.c b/drivers/staging/lustre/lustre/llite/dir.c
index 64a32d5..ce05493 100644
--- a/drivers/staging/lustre/lustre/llite/dir.c
+++ b/drivers/staging/lustre/lustre/llite/dir.c
@@ -837,10 +837,10 @@ static int ll_ioc_copy_end(struct super_block *sb, struct hsm_copy *copy)
 			 * when the file will not be modified for some tunable
 			 * time
 			 */
-			/* we do not notify caller */
 			hpk.hpk_flags &= ~HP_FLAG_RETRY;
+			rc = -EBUSY;
 			/* hpk_errval must be >= 0 */
-			hpk.hpk_errval = EBUSY;
+			hpk.hpk_errval = -rc;
 		}
 	}
 
-- 
1.7.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web