OSDN Git Service

Add inherit flags for project quota
authorLi Xi <pkuelelixi@gmail.com>
Tue, 1 Mar 2016 04:18:05 +0000 (23:18 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 6 Mar 2016 22:33:45 +0000 (17:33 -0500)
commite1cec4464bdaf93ea609de43c5cdeb6a1f553483
treebd1ce9aa32ca71a300f4e60e84ef691b6decd515
parent080e09b46ff1f6b00b26231868002e781e98adf2
Add inherit flags for project quota

This patch add EXT4_PROJINHERIT_FL to enable inherit feature for
project ID. If an directory has its inherit flag set, all its
newly created children will inherit its project ID. Conversely,
new inodes will get a default project ID (i.e. zero). Also, no
hard link or rename is permitted if the directory and child has
different project ID.

Signed-off-by: Li Xi <lixi@ddn.com>
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/e2p/pf.c
lib/ext2fs/ext2_fs.h
misc/chattr.c