linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Quota Implementation
@ 2011-06-03 16:24 Arne Jansen
  2011-06-03 16:47 ` Hugo Mills
  2011-06-03 21:18 ` Johannes Hirte
  0 siblings, 2 replies; 7+ messages in thread
From: Arne Jansen @ 2011-06-03 16:24 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Chris Mason, hch, ricwheeler

Hi,

If no one is already working on it, I'd like to take the Quota lock and
see how far I come.
Let me sketch out in short what I'm planning to do:

  - Quota will be subvolume based. Only the FS-trees and data extents
    will be accounted.
  - Quota Groups can be defined. Every quota group can comprise any
    number of subvolumes. A subvolume can be assigned to any number
    of quota groups.
  - A Quota Group can account/limit the total amount of space that is
    referenced by it and/or the amount of space that is exclusively
    referenced (i.e. referenced by no other quota group).
  - With this it is possible to define a hierarchical quota that need
    not necessarily reflect the filesystem hierarchy.
  - It is also possible to decide for each snapshot if it should be
    accounted into the parent group. So in a scenario where each
    subvolume reflect a user home, it's possible to have some snapshots
    accounted to the user and others not (e.g. the ones needed for system
    backups).
  - Quota information will be stored in new records, possibly in a
    separate tree.
  - It should be possible to change the Quota config and group
    assignments online, though this might need a full re-scan of the fs.
  - It does NOT include any kind of user/group (UID/GID) quota.

Any addenda or arguments why it's impossible or insane welcome.

-Arne

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-06-04  8:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-03 16:24 Quota Implementation Arne Jansen
2011-06-03 16:47 ` Hugo Mills
2011-06-03 20:44   ` Andrey Kuzmin
2011-06-04  6:36     ` Arne Jansen
2011-06-04  8:04   ` Arne Jansen
2011-06-03 21:18 ` Johannes Hirte
2011-06-04  6:25   ` Arne Jansen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).