I'm trying to get programmatic access to ZFS quotas, and I'm not finding my questions answered by what seem to be the relevant manpages -- specifically quotactl(2) on 14.0.
Though the manpage says that quotactl is supported only on UFS, it (now) works on ZFS filesystems, too. The response from a
Is there a manpage I'm missing?
I've put in a docbug report, and I did previously ask on a userland programming forum, but if there's a better place to ask than here, I'd welcome being pointed towards it.
Though the manpage says that quotactl is supported only on UFS, it (now) works on ZFS filesystems, too. The response from a
Q_GETQUOTA
call produces numbers in units of blocks, according to ufs/ufs/quota.h
internal comments, but without documenting what size those blocks are. I get the right numbers (in the sense of matching the results from zfs userspace
) if I assume a block is 512B, but I can't see that written down anywhere, so don't in principle know if that's always true, or if it's something dependent on, for example, the pool's ashift value.Is there a manpage I'm missing?
I've put in a docbug report, and I did previously ask on a userland programming forum, but if there's a better place to ask than here, I'd welcome being pointed towards it.