opensea-transport
opensea-transport copied to clipboard
get_Partition_Count may not be all that useful on Solaris and Derivatives using ZFS
Problem
This function pays attention to the /etc/mnttab
file, looking for information about mounted partitions, but quite commonly, on systems where ZFS is the dominant filesystem, which is likely to be majority of Solaris, illumos and derivatives, there won't be anything referring to individual drives or partitions in mnttab
, instead there will be ZFS mountpoints. Indeed a given drive may be in a pool and in use, but won't be seen in mnttab
.
Expected behavior
I think, if this functionality is to exist on Solaris and friends, it might be necessary to enhance it with checks for ZFS labels. I am not sure about the best approach here, haven't had time to think about. Just wanted to raise this in case it was not already considered.
How to reproduce
NA
Deployment information
Anything with ZFS, which at this point would include Linux, BSD, Solaris, illumos, etc.
Additional information
No response