OpenSolaris

Printable Version Enter a New Search
Bug ID 6431277
Synopsis want filesystem-only quotas
State 10-Fix Delivered (Fix available in build)
Category:Subcategory kernel:zfs
Keywords
Responsible Engineer Christopher Kirby
Reported Against 5.10
Duplicate Of
Introduced In
Commit to Fix snv_77
Fixed In snv_77
Release Fixed solaris_nevada(snv_77) , solaris_10u6(s10u6_01) (Bug ID:2160862)
Related Bugs 6612707 , 4180362
Submit Date 27-May-2006
Last Update Date 8-November-2007
Description
Currently, ZFS quotas apply to a dataset and all children.  For filesystems,
this includes all snapshots as well.  Unfortunately, there are two different
but equally valid uses for quotas:

1. For billing purposes, where the physical disk space consumed must be kept
   in check in order for the system to function properly.  The user has
   administrative control (directly or indirectly) over snapshots, and
   understand the ramifications of frequent snapshots on their quota.  This
   case is handled by the existing ZFS quotas.

2. To prevent 'runaway users' from consuming all disk space, typically found
   in university settings.  In this case, the snapshot policy is controlled
   by a different authority, and the user probably doesn't know that 
   snapshots exist, let alone how they affect their quota.  Under the existing
   scheme, the user may get a message that they've exceeded their quota, but
   can't delete any files of significance because a rolling snapshot happened
   to be taken recently.  The issue is not so much the physical space they're
   consuming, but that they're logically limited in relation to other users
   of the system.

We need a way to support #2, if only for the university setting.  This might
best be expressed as an "immediate quota", and could be inheritable (though
validating that an immediate quota can be set could be an expensive operation).
Work Around
N/A
Comments
N/A