Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/iscsi/dist/src/lib disk_write: report an error ...
details: https://anonhg.NetBSD.org/src/rev/020bc47d39a5
branches: trunk
changeset: 750962:020bc47d39a5
user: yamt <yamt%NetBSD.org@localhost>
date: Wed Jan 20 00:50:09 2010 +0000
description:
disk_write: report an error from target_transfer_data instead of
silently write garbage to the storage.
diffstat:
external/bsd/iscsi/dist/src/lib/disk.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 532f4bd5f96b -r 020bc47d39a5 external/bsd/iscsi/dist/src/lib/disk.c
--- a/external/bsd/iscsi/dist/src/lib/disk.c Wed Jan 20 00:39:30 2010 +0000
+++ b/external/bsd/iscsi/dist/src/lib/disk.c Wed Jan 20 00:50:09 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disk.c,v 1.2 2009/06/30 02:44:52 agc Exp $ */
+/* $NetBSD: disk.c,v 1.3 2010/01/20 00:50:09 yamt Exp $ */
/*-
* Copyright (c) 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -1398,6 +1398,7 @@
if (target_transfer_data(sess, args, &sg, 1) != 0) {
iscsi_err(__FILE__, __LINE__,
"target_transfer_data() failed\n");
+ return -1;
}
/* Finish up write */
if (de_lseek(&disks.v[sess->d].lunv->v[lun].de, (off_t)byte_offset,
Home |
Main Index |
Thread Index |
Old Index