2015-10-30 03:42:30

by Wang Shilong

[permalink] [raw]
Subject: Fwd: [v1 0/4] Add project quota support for e2fsprogs

re-cc to linux-ext4 due to plain/text policy.

---------- Forwarded message ----------
From: Shilong Wang <[email protected]>
Date: Fri, Oct 30, 2015 at 11:16 AM
Subject: Re: [v1 0/4] Add project quota support for e2fsprogs
To: Li Xi <[email protected]>
Cc: [email protected], Theodore Ts'o <[email protected]>,
[email protected], Jan Kara <[email protected]>, [email protected],
[email protected], Dmitry Monakhov <[email protected]>


2015-10-28 23:42 GMT+08:00 Li Xi <[email protected]>:
>
> The following patches adds project quota support for e2fsprogs. The
> first patch cleans up current codes to prepare for adding project
> quota support. And other patches adds project ID as well as
> project feature support for e2fsprogs.
>
> Li Xi (4):
> clean up codes for adding new quota type
> Add project quota support
> Add project feature
> Add inherit flags for project quota
>
> debugfs/quota.c | 2 +-
> debugfs/set_fields.c | 2 +
> e2fsck/pass1.c | 35 +++++++++++--
> e2fsck/quota.c | 28 ++++------
> e2fsck/unix.c | 26 +++++-----
> lib/e2p/feature.c | 2 +
> lib/e2p/ls.c | 29 ++++++++---
> lib/e2p/pf.c | 1 +
> lib/ext2fs/ext2_fs.h | 12 +++-
> lib/ext2fs/ext2fs.h | 3 +-
> lib/ext2fs/swapfs.c | 2 +
> lib/ext2fs/tst_inode_size.c | 1 +
> lib/ext2fs/tst_super_size.c | 3 +-
> lib/support/mkquota.c | 105 ++++++++++++++++++++++-----------------
> lib/support/quotaio.c | 80 ++++++++++++++++++++----------
> lib/support/quotaio.h | 74 ++++++++++++++++++++--------
> lib/support/quotaio_tree.c | 2 +-
> misc/chattr.c | 3 +-
> misc/ext4.5.in | 5 ++
> misc/mke2fs.c | 19 +++++--
> misc/tune2fs.c | 89 +++++++++++++++++++--------------
> tests/d_fallocate_blkmap/expect | 4 +-
> tests/f_create_symlinks/expect | 8 ++--
> tests/m_bigjournal/expect.1 | 4 +-
> tests/m_large_file/expect.1 | 4 +-
> tests/m_quota/expect.1 | 15 +++---
> 26 files changed, 356 insertions(+), 202 deletions(-)


BTW, here is a drafted xfstests to verify kernel work, to run it you need.

git clone https://github.com/wangshilong/{quota-tools, xfstests,
e2fsprogs} && git checkout project

and run xfstests with following commands:

[root@vm7-2 xfstests-dev]# ./check ext4/050 ext4/106 ext4/107 ext4/108
ext4/196 ext4/244 ext4/299 ext4/400 ext4/401

....
....

Ran: ext4/050 ext4/106 ext4/107 ext4/108 ext4/196 ext4/244 ext4/299
ext4/400 ext4/401

Passed all 9 tests



>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html