• R
    storage: zfs: flexible use of 'volmode' option · c94f6d4d
    Roman Bogorodskiy 提交于
    There are slight differences in various ZFS implementations.
    Specifically, ZFS on FreeBSD requires to set value of 'volmode'
    option to 'dev' to expose volumes as raw disk device (that's what
    we need) rather than geom provides, for example.
    
    With ZFS on Linux, however, such option is not available and
    volumes exposed like we need by default.
    
    To make our implementation more flexible, only pass 'volmode'
    when it's supported. Support is checked by parsing usage
    information of the 'zfs get' command.
    c94f6d4d
storage_backend_zfs.c 11.9 KB