Go to file
Nikolay Borisov 67d6082494 Refactor spa_load_l2cache to make build happy
In case sav->sav_config was NULL the body of the function
would skip the iteration of the l2 cache devices and will
just cleanup the old devices. However, this wasn't very obvious
since the null check was performed after the loop body and after
the old devices were cleaned. Refactor the code so that it's now
obvious when the iteration of the l2cache devices is skipped.

This fixes the following cppcheck warning:

[module/zfs/spa.c:1552]: (error) Possible null pointer dereference: newvdevs

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Nikolay Borisov <n.borisov.lkml@gmail.com>
Closes #5087
2016-09-12 12:40:03 -07:00
cmd Fix memory/fd leak in check_file() and is_spare() 2016-09-12 09:44:26 -07:00
config OpenZFS - Performance regression suite for zfstest 2016-09-08 16:18:28 -07:00
contrib zfs dracut module should not assume systemd presence 2016-09-09 10:17:27 -07:00
etc Set proper dependency for string replacement targets 2016-08-02 10:28:29 -07:00
include Bring over illumos ZFS FMA logic -- phase 1 2016-09-01 11:39:45 -07:00
lib Bring over illumos ZFS FMA logic -- phase 1 2016-09-01 11:39:45 -07:00
man Add zfs_arc_meta_limit_percent tunable 2016-08-23 13:03:01 -07:00
module Refactor spa_load_l2cache to make build happy 2016-09-12 12:40:03 -07:00
rpm OpenZFS - Performance regression suite for zfstest 2016-09-08 16:18:28 -07:00
scripts OpenZFS - Performance regression suite for zfstest 2016-09-08 16:18:28 -07:00
tests OpenZFS - Performance regression suite for zfstest 2016-09-08 16:18:28 -07:00
udev Set proper dependency for string replacement targets 2016-08-02 10:28:29 -07:00
.gitignore Illumos Crypto Port module added to enable native encryption in zfs 2016-07-20 10:43:30 -07:00
.gitmodules Add zimport.sh compatibility test script 2014-02-21 12:10:31 -08:00
AUTHORS Add a missing > to AUTHORS 2014-09-02 14:18:53 -07:00
autogen.sh build: do not call boilerplate ourself 2013-04-02 10:55:20 -07:00
configure.ac OpenZFS - Performance regression suite for zfstest 2016-09-08 16:18:28 -07:00
copy-builtin Illumos Crypto Port module added to enable native encryption in zfs 2016-07-20 10:43:30 -07:00
COPYRIGHT Update ZED copyright boilerplate 2015-05-11 15:07:00 -07:00
DISCLAIMER Fix minor typos and update marketing copy. 2013-03-21 12:51:06 -07:00
Makefile.am Fix make lint target 2016-09-09 11:24:54 -07:00
META Tag 0.7.0-rc1 2016-09-07 10:31:23 -07:00
OPENSOLARIS.LICENSE Add CDDL license file 2008-12-01 14:49:34 -08:00
README.markdown Fix minor typos and update marketing copy. 2013-03-21 12:51:06 -07:00
TEST Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
zfs-script-config.sh.in Illumos Crypto Port module added to enable native encryption in zfs 2016-07-20 10:43:30 -07:00
zfs.release.in Move zfs.release generation to configure step 2012-07-12 12:22:51 -07:00

Native ZFS for Linux!

ZFS is an advanced file system and volume manager which was originally developed for Solaris and is now maintained by the Illumos community.

ZFS on Linux, which is also known as ZoL, is currently feature complete. It includes fully functional and stable SPA, DMU, ZVOL, and ZPL layers.

Full documentation for installing ZoL on your favorite Linux distribution can be found at: http://zfsonlinux.org