Module Name:    src
Committed By:   christos
Date:           Mon Sep 23 20:41:19 UTC 2013

Modified Files:
        src/external/cddl/osnet/dist/uts/common/fs/zfs: vdev_file.c

Log Message:
not nice to play with resid before checking for error, but this is how they
fixed it, and I am following suit. I would have preferred if (error && resid)
instead.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \
    src/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_file.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_file.c
diff -u src/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_file.c:1.1.1.2 src/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_file.c:1.2
--- src/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_file.c:1.1.1.2	Sat Feb 27 17:31:11 2010
+++ src/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_file.c	Mon Sep 23 16:41:19 2013
@@ -131,7 +131,7 @@ vdev_file_io_start(zio_t *zio)
 {
 	vdev_t *vd = zio->io_vd;
 	vdev_file_t *vf = vd->vdev_tsd;
-	ssize_t resid;
+	ssize_t resid = 0;
 
 	if (zio->io_type == ZIO_TYPE_IOCTL) {
 		/* XXPOLICY */

Reply via email to