Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/dist/uts/common/fs/zfs not nice to play ...



details:   https://anonhg.NetBSD.org/src/rev/78455ad92770
branches:  trunk
changeset: 790178:78455ad92770
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Sep 23 20:41:19 2013 +0000

description:
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.

diffstat:

 external/cddl/osnet/dist/uts/common/fs/zfs/vdev_file.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 68b911f64355 -r 78455ad92770 external/cddl/osnet/dist/uts/common/fs/zfs/vdev_file.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_file.c    Mon Sep 23 19:44:21 2013 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_file.c    Mon Sep 23 20:41:19 2013 +0000
@@ -131,7 +131,7 @@
 {
        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 */



Home | Main Index | Thread Index | Old Index