Define the constraints of "THAT" bad. AFS was able to scale notoriously well even on low-end server hardware because of aggressive client side caching and the native ability to replicate volumes across a footprint of fileservers and then have clients selectively choose closest server. It's typical to have dozens upon dozens of Fileserver machines and just Three database servers for a Cell of 100,000+ clients. Performance experience is mainly reported on the client, with its local disk cache. AFS on FreeNAS would probably perform exceedingly well. It's a matter of determining if the Overhead induced by bhyve containers is a tolerable use of resources. Otherwise, you'd have AFS appliance servers running elsewhere using FreeNAS over iSCSI on dedicated storage networks....
AFS file (and databases) servers on FreeNAS is absolutely doable and done-able. Create a bhyve VM with Linux, install OpenAFS database and fileserver RPMs and proceed. The AFS /vicepx partitions for the fileserver element will be mapped to raw device ZFS zvols mapped to the VM. Linux will lay down its filesystem on the mapped block device zvol and AFS will manage the inode structure.
AFS administration is a world and skillset unto itself. It would not be practical to try to integrate this into FreeNAS UI as the procedures for maintaining a cell depend very much on its geographical layout (where you place replica databases and where you plant fileserver machines is network and site specific). Further, AFS requires that you nuture and manage its Protection, Volume Location and Backup databases.
An AFS fileserver partition would be mapped to a zvol. However, an AFS fileserver partition contains hundred to possibly thousands of AFS volumes and those AFS volumes are the granularity level of backup not the partition zvol. In order to backup an AFS volume, it must be quiesced - i.e. you can only stably backup and restore a BK or RO volume, not a RW volume unless that volume is offline. Using ZFS snapshots against an AFS fileserver partition that is active is searching for trouble. So, forget about using ZFS snapshots on the /vicepx partitions.
You'd have to create a ZFS volume that would receive the AFS volume dumpstreams (i.e. vos dump or backup). That ZFS receiver volume should be snapshotted and forwarded offline for storage. But not the /vicepx partitions. This is the only plausible value add of FreeNAS for AFS - stable backing storage and storing/forwarding AFS volume dumps as part of the standard AFS backup process.
In any large AFS cell, you need processes and automation to regularly push replicas where needed (vos addsite / vos release), automation to create and BK volumes, automation to dump and export the BK volumes to a place where those dumps will be safely carted off to backup vaulting, etc. It would be a fools errand to try to UI this - as the needs and process vary widely from user to user. For small cells - perhaps a UI with automation for a recommended backup process would help, but it would never suffice for a large, production cell.
-- Jim