Export/import ZFS ACL's

I've been wondering about this one, is there any way to do the following with ZFS ACL's (i.e. "copy" the ACL over to another file)?

getfacl /bla/dir1 | setfacl -f - /bla/dir2

I know about inheritence on dirs, it doesn't work in this scenario I'm working on. Just looking to copy the ACL's.

Any one know how to do this?

to copy an acl from one file or directory to another;
setfacl($target_file, getfacl($source_file));

Is that shell code you're writing?

Anyway, getfacl doesn't work on ZFS filesystems.

File system doesn't support aclent_t style ACL's.
See acl(5) for more information on Solaris ACL support.

What I'm looking for is the equivalent of the getfacl/setfacl mechanism, but for ZFS filesystems.

The NFSv4/ZFS ACLs equivalent commands are:

getfacl -> ls -v
setfacl -> chmod