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 vdev_inuse might ...
details: https://anonhg.NetBSD.org/src/rev/26e89102167f
branches: trunk
changeset: 365502:26e89102167f
user: christos <christos%NetBSD.org@localhost>
date: Sat Aug 18 11:58:59 2018 +0000
description:
vdev_inuse might not be called and spare_guid contains random stuff.
diffstat:
external/cddl/osnet/dist/uts/common/fs/zfs/vdev_label.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 37b268c5a857 -r 26e89102167f external/cddl/osnet/dist/uts/common/fs/zfs/vdev_label.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_label.c Sat Aug 18 11:57:57 2018 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_label.c Sat Aug 18 11:58:59 2018 +0000
@@ -648,7 +648,7 @@
char *buf;
size_t buflen;
int error;
- uint64_t spare_guid, l2cache_guid;
+ uint64_t spare_guid = 0, l2cache_guid;
int flags = ZIO_FLAG_CONFIG_WRITER | ZIO_FLAG_CANFAIL;
ASSERT(spa_config_held(spa, SCL_ALL, RW_WRITER) == SCL_ALL);
Home |
Main Index |
Thread Index |
Old Index