libzfs_path_contains
if (!libzfs_path_contains(parent, child))
if (!libzfs_path_contains(mountpoint, child))