zpool create -n shows log devices in the dry-run output, but not cache devices. Steps to reproduce: # truncate -s 1g disk1 # truncate -s 1g disk2 This output is correct: # zpool create -n apool `pwd`/disk1 log `pwd`/disk2 would create 'apool' with the following layout: apool /home/bcr/disk1 logs /home/bcr/disk2 The same command with cache instead of log produces output that is missing the cache device. # zpool create -n apool `pwd`/disk1 cache `pwd`/disk2 would create 'apool' with the following layout: apool /home/bcr/disk1 The behavior is the same with physical devices, too. Tested on FreeBSD 11.1 and on 12-CURRENT-r334665.
^Triage: I'm sorry that this PR did not get addressed in a timely fashion. By now, the version that it was created against is long out of support. As well, many newer versions of ZFS have been imported. Please re-open if it is still a problem on a supported version.