]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/dmu_objset.c
Illumos #3522
authorGeorge Wilson <george.wilson@delphix.com>
Mon, 11 Feb 2013 06:21:05 +0000 (22:21 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 30 Oct 2013 21:51:27 +0000 (14:51 -0700)
commita117a6d66e5cf1e9d4f173bccc786a169e9a8e04
tree26f5e36ff44a6f4977a34d66b528892560b74185
parenta35beedfb3f25596b4ec9122742c1337083118f5
Illumos #3522

3522 zfs module should not allow uninitialized variables
Reviewed by: Sebastien Roy <seb@delphix.com>
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Approved by: Garrett D'Amore <garrett@damore.org>

References:
  https://www.illumos.org/issues/3522
  illumos/illumos-gate@d5285cae913f4e01ffa0e6693a6d8ef1fbea30ba

Ported-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Porting notes:

1. ZFSOnLinux had already addressed many of these issues because of
   its use of -Wall. However, the manner in which they were addressed
   differed. The illumos fixes replace the ones previously made in
   ZFSOnLinux to reduce code differences.

2. Part of the upstream patch made a small change to arc.c that might
   address zfsonlinux/zfs#1334.

3. The initialization of aclsize in zfs_log_create() differs because
   vsecp is a NULL pointer on ZFSOnLinux.

4. The changes to zfs_register_callbacks() were dropped because it
   has diverged and needs to be resynced.
12 files changed:
module/zfs/arc.c
module/zfs/dmu.c
module/zfs/dmu_objset.c
module/zfs/dsl_dataset.c
module/zfs/dsl_scan.c
module/zfs/lzjb.c
module/zfs/sa.c
module/zfs/spa.c
module/zfs/vdev_raidz.c
module/zfs/zfs_fuid.c
module/zfs/zfs_log.c
module/zfs/zfs_vnops.c