Hi All,
I would like to use OMV with a ZFS storage array. As has been mentioned (many times) before, OMV will not have official ZFS support, so the recommendation was to write a plugin to support it. So I've started looking into doing that. However I don't see how this can be done.
Setting up ZFS on the command line is trivial enough that I would leave that part for later. What's not trivial is adding ZFS filesystems to the rest of the system, to allow for setting up sharing etc. Looking at the code it seems that for the FSs to be recognized I need to extend OMVFilesystem, OMVFilesystems and OMVRpcServiceFileSystemMgmt (and probably a lot of other pieces). However, none of these seem to allow any kind of extensibility, i don't see any way to add anything to them except for adding code to the methods. I could extend the classes to include ZFS support (once I understand classes in PHP ;), even though I'm not sure if that would really work as most of the methods in question are static. But even if that worked, I don't see how I would make the system use my extended classes instead of the original ones.
Any ideas?
Thanks!