recursively mounting ZFS filesystems?

I'm aware this more of a beginners question, but manpages, google and FreeBSD Handbook provided no solution.

I'm using ZFS Version 28 on a 8.2 Stable FreeBSD and my problem is the following: When I mount a ZFS filesystem (zfs mount ) the filesystem is mounted as expected, however child filesystems are not mounted.

Is there a builtin way to recursively mount a zfs filesystem AND it's children?

Thanks in advance for your help.

flexy


This works for me (tested on FreeBSD 9.2):

zfs list -rH -o name pool/path/dir | xargs -L 1 zfs mount

How does it work:

zfs list -rH -o name pool/path/dir – display name of each dataset in pool/path/dir (-H to omit header)
xargs -L 1 zfs mount – run mount for each line (separately)