Darren J Moffat wrote: > Chris Kirby wrote: >> Setting both quota and refquota would be useful in a university >> environment, where refquota is what limits a user's active dataset, >> and the (presumably larger) quota limits the dataset+snapshots. >> >> One way to think of this is that quota/reservation are for sysadmins >> and refquota/refreservation are for end users. > > > Could you provide an example please.
Sure (and I'll add something more detailed to the man page): # zfs create tank/fs1 # zfs set quota=30m tank/fs1 # zfs set refquota=10m tank/fs1 Now there's room for the sysadmin to take a couple of snapshots, and the user can hit the refquota and remove files even if there is a snapshot. > > Is it an error to set refquota higher than quota ? Not really, but the over-quota check would never fail against refquota since we'd hit quota first. Perhaps I should add a note to the Best Practices Guide. -Chris
