linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Aditya Kali <adityakali@google.com>
To: linux-ext4@vger.kernel.org
Subject: [PATCH 0/5] e2fsprogs: support quota as first class feature in ext4
Date: Wed, 20 Jul 2011 11:40:01 -0700	[thread overview]
Message-ID: <1311187206-30553-1-git-send-email-adityakali@google.com> (raw)

This patch set is a step towards making quotas as a first class
supported feature in ext4 in addition to the separately sent
kernel patches. This idea is proposed at:
https://ext4.wiki.kernel.org/index.php/Design_For_1st_Class_Quota_in_Ext4.

This patch set only provides some basic functionality in e2fsprogs
to set quota feature and fix quotas during e2fsck on ext4 filesystem.
This patch set:
1) ports the quota library written by Jan Kara for quota-tools to
e2fsprogs. I have ported most of the quota-library by Jan Kara as-is
(except some readability changes and use of ext2fs library).
2) adds wrapper over the quota library (lib/quota/mkquota.[c|h]) that
provides an interface that can be used by e2fsprogs tools.
3) adds support to mke2fs and tune2fs to enable the quota feature
on ext4 superblock and create user/group quota inodes using the quota
library.
4) adds support for doing quota accounting during full e2fsck scan and
fix the quota inodes.

Following features still need to be implemented:
1) allow support for reading existing quota files
2) allow debugfs to view quota information in the quota inodes
3) report mismatch in existing quotas and computed quotas after
   e2fsck scan (currently, the existing quota inodes are simply
   overwritten with new inodes).

Thanks,
	-Aditya

Aditya Kali (5):
 e2fsprogs: add quota library to e2fsprogs
 e2fsprogs: Make quota as a supported feature
 mke2fs: support creation of filesystem with quota feature
 tune2fs: Add support for turning on quota feature
 e2fsck: check quota accounting during fsck

 MCONFIG.in               |    6 +
 Makefile.in              |    3 +-
 configure                |   32 +++
 configure.in             |   51 ++++
 e2fsck/Makefile.in       |   43 +++--
 e2fsck/e2fsck.h          |    9 +
 e2fsck/message.c         |    2 +
 e2fsck/pass1.c           |   34 +++
 e2fsck/pass1b.c          |    6 +-
 e2fsck/pass2.c           |   16 +-
 e2fsck/pass3.c           |    3 +
 e2fsck/pass4.c           |    1 +
 e2fsck/problem.c         |   20 ++
 e2fsck/problem.h         |    9 +
 e2fsck/quota.c           |   88 +++++++
 e2fsck/super.c           |    5 +
 e2fsck/unix.c            |   17 ++
 lib/ext2fs/ext2fs.h      |    3 +-
 lib/quota/Makefile.in    |  127 ++++++++++
 lib/quota/common.c       |   63 +++++
 lib/quota/common.h       |   78 +++++++
 lib/quota/dqblk_v2.h     |   43 ++++
 lib/quota/mkquota.c      |  400 ++++++++++++++++++++++++++++++++
 lib/quota/mkquota.h      |   66 ++++++
 lib/quota/quota.h        |  190 +++++++++++++++
 lib/quota/quota.pc.in    |   11 +
 lib/quota/quotaio.c      |  359 +++++++++++++++++++++++++++++
 lib/quota/quotaio.h      |  163 +++++++++++++
 lib/quota/quotaio_tree.c |  574 ++++++++++++++++++++++++++++++++++++++++++++++
 lib/quota/quotaio_tree.h |   63 +++++
 lib/quota/quotaio_v2.c   |  314 +++++++++++++++++++++++++
 lib/quota/quotaio_v2.h   |  103 +++++++++
 misc/Makefile.in         |   28 ++-
 misc/mke2fs.8.in         |    5 +
 misc/mke2fs.c            |   21 ++-
 misc/tune2fs.8.in        |   15 ++
 misc/tune2fs.c           |  148 ++++++++++++-
 37 files changed, 3081 insertions(+), 38 deletions(-)


             reply	other threads:[~2011-07-20 18:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-20 18:40 Aditya Kali [this message]
2011-07-20 18:40 ` [PATCH 1/5] e2fsprogs: add quota library to e2fsprogs Aditya Kali
2011-09-09 22:53   ` Andreas Dilger
2011-09-10  3:31     ` Aditya Kali
2011-07-20 18:40 ` [PATCH 2/5] e2fsprogs: Make quota as a supported feature Aditya Kali
2011-07-20 18:40 ` [PATCH 3/5] mke2fs: support creation of filesystem with quota feature Aditya Kali
2011-07-20 18:40 ` [PATCH 4/5] tune2fs: Add support for turning on " Aditya Kali
2011-09-09 22:39   ` Andreas Dilger
2011-09-09 23:41     ` Aditya Kali
2011-07-20 18:40 ` [PATCH 5/5] e2fsck: check quota accounting during fsck Aditya Kali
2011-07-20 22:03   ` Aditya Kali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1311187206-30553-1-git-send-email-adityakali@google.com \
    --to=adityakali@google.com \
    --cc=linux-ext4@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).