ocfs2: Implementation of local and global quota file handling
authorJan Kara <jack@suse.cz>
Mon, 25 Aug 2008 17:56:50 +0000 (19:56 +0200)
committerMark Fasheh <mfasheh@suse.com>
Mon, 5 Jan 2009 16:40:23 +0000 (08:40 -0800)
commit9e33d69f553aaf11377307e8d6f82deb3385e351
treeded5f48f6cf82db976f30d5f0f4d44b941f60f44
parentbbbd0eb34bf801dee01e345785959a75258f6567
ocfs2: Implementation of local and global quota file handling

For each quota type each node has local quota file. In this file it stores
changes users have made to disk usage via this node. Once in a while this
information is synced to global file (and thus with other nodes) so that
limits enforcement at least aproximately works.

Global quota files contain all the information about usage and limits. It's
mostly handled by the generic VFS code (which implements a trie of structures
inside a quota file). We only have to provide functions to convert structures
from on-disk format to in-memory one. We also have to provide wrappers for
various quota functions starting transactions and acquiring necessary cluster
locks before the actual IO is really started.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
13 files changed:
fs/ocfs2/Makefile
fs/ocfs2/cluster/masklog.h
fs/ocfs2/dlmglue.c
fs/ocfs2/dlmglue.h
fs/ocfs2/file.c
fs/ocfs2/file.h
fs/ocfs2/inode.h
fs/ocfs2/ocfs2_fs.h
fs/ocfs2/ocfs2_lockid.h
fs/ocfs2/quota.h [new file with mode: 0644]
fs/ocfs2/quota_global.c [new file with mode: 0644]
fs/ocfs2/quota_local.c [new file with mode: 0644]
fs/ocfs2/super.c