Whamcloud - gitweb
LU-4017 e2fsprogs: add project quota support 62/15762/22
authorLi Xi <lixi@ddn.com>
Fri, 20 Mar 2015 04:46:25 +0000 (12:46 +0800)
committerAndreas Dilger <andreas.dilger@intel.com>
Tue, 19 Jul 2016 09:55:36 +0000 (09:55 +0000)
commit79a4709b30487d533eca12889704f6d7f62140d0
tree457cc73e8ba7551283f2548cb77898a0bc1ce8bb
parent2a6d0ebb428b79563a9723c4143c3bb14001d94a
LU-4017 e2fsprogs: add project quota support

Adds project ID support for ext4, this patch implement
it by adding a new internal field of ext4 inode to save
project identifier.

Project inode number is allocated dynamically, to fix
compatibility, project feature is disabled in default.

If users want to use project quota, they can do it by:

mkfs.ext4 -O quota,project <dev>

or enable project later by:

tune2fs -O project <dev>
tune2fs -Q prjquota <dev>

Signed-off-by: Li Xi <lixi@ddn.com>
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Change-Id: I2497c56802f0ab155b16908012a2e83beb70f9cd
Reviewed-on: http://review.whamcloud.com/15762
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
19 files changed:
debugfs/set_fields.c
e2fsck/pass1.c
e2fsck/pass4.c
lib/e2p/ls.c
lib/ext2fs/ext2_fs.h
lib/ext2fs/swapfs.c
lib/ext2fs/tst_inode_size.c
lib/ext2fs/tst_super_size.c
lib/quota/mkquota.c
lib/quota/quotaio.c
lib/quota/quotaio.h
misc/mke2fs.c
misc/tune2fs.8.in
misc/tune2fs.c
tests/f_expisize_ea_del/expect.1
tests/m_bigjournal/expect.1
tests/m_large_file/expect.1
tests/m_quota/expect.1
tests/m_quota/script