gnop(8): add the ability to set a nop provider's physical path
While I'm here, expand the existing tests a bit.
Differential D13579
gnop(8): add the ability to set a nop provider's physical path asomers on Dec 21 2017, 10:58 PM. Authored by Tags None Referenced Files
Details
gnop(8): add the ability to set a nop provider's physical path While I'm here, expand the existing tests a bit. ATF tests added
Diff Detail
Event TimelineComment Actions @brd this enhancement should allow us to replace all of the SAS phy stuff in the ZFS test suite. After that, the test suite won't require a SAS expander, or even physical hardware. It should be able to run in a VM.
Comment Actions @mav this is the first GEOM class that needs to be changed in order to fix physpath handling, as we discussed. The tests for every other GEOM class will depend on this. Comment Actions I don't understand the G_NOP_PHYSPATH_PASSTHROUGH stuff. Can't you just check for non-NULL or non-empty 'physpath' being passed in? Comment Actions I tried that first. The problem is that it prevents you from creating a gnop device with a blank physical path on top of a device with a non-blank physical path. I needed some non-NULL sentinel. |