LU-4017 ldiskfs: add project quota support
Pick following patchs from upstream: commit 847aac644e92e5624f2c153bab409bf713d5ff9a vfs: Add general support to enforce project quota limits This patch adds support for a new quota type PRJQUOTA for project quota enforcement. Also a new method get_projid() is added into dquot_operations structure. Signed-off-by:Li Xi <lixi@ddn.com> Signed-off-by:
Dmitry Monakhov <dmonakhov@openvz.org> Reviewed-by:
Jan Kara <jack@suse.cz> Signed-off-by:
Jan Kara <jack@suse.cz> commit 334e580a6f97e2e84d1c19a8679603956acaa622 fs: XFS_IOC_FS[SG]SETXATTR to FS_IOC_FS[SG]ETXATTR promotion Hoist the ioctl definitions for the XFS_IOC_FS[SG]SETXATTR API from fs/xfs/libxfs/xfs_fs.h to include/uapi/linux/fs.h so that the ioctls can be used by all filesystems, not just XFS. This enables (initially) ext4 to use the ioctl to set project IDs on inodes. Based-on-patch-from: Li Xi <lixi@ddn.com> Signed-off-by:
Dave Chinner <dchinner@redhat.com> Above two chages are wrapped into vfs-project-quotas-rhel7.patch commit 040cb3786d9b25293b8b0b05b90da0f871e1eb9b ext4: adds project ID support Signed-off-by:
Li Xi <lixi@ddn.com> Signed-off-by:
Theodore Ts'o <tytso@mit.edu> Reviewed-by:
Andreas Dilger <adilger@dilger.ca> Reviewed-by:
Jan Kara <jack@suse.cz> commit 689c958cbe6be4f211b40747951a3ba2c73b6715 ext4: add project quota support This patch adds mount options for enabling/disabling project quota accounting and enforcement. A new specific inode is also used for project quota accounting. [Includes fix from Dan Carpenter to correct error checking from dqget(). ] Signed-off-by:
Li Xi <lixi@ddn.com> Signed-off-by:
Dmitry Monakhov <dmonakhov@openvz.org> Signed-off-by:
Theodore Ts'o <tytso@mit.edu> Reviewed-by:
Andreas Dilger <adilger@dilger.ca> Reviewed-by:
Jan Kara <jack@suse.cz> commit 9b7365fc1c82038faa52d56173b20221cf422cbe ext4: add FS_IOC_FSSETXATTR/FS_IOC_FSGETXATTR interface support This patch adds FS_IOC_FSSETXATTR/FS_IOC_FSGETXATTR ioctl interface support for ext4. The interface is kept consistent with XFS_IOC_FSGETXATTR/XFS_IOC_FSGETXATTR. Signed-off-by:
Li Xi <lixi@ddn.com> Signed-off-by:
Theodore Ts'o <tytso@mit.edu> Reviewed-by:
Andreas Dilger <adilger@dilger.ca> Reviewed-by:
Jan Kara <jack@suse.cz> This patch add ldiskfs project quota support Did following adjustment from original patches: 1.adds padding structure to superblock, so that @s_prj_num is in the same position of superblock from upstream. 2.Patch aslo disable kabi check for rhel7, since any of vfs patch's include files change will break the check Also fix conf-sanity: test_55, because now debugfs output Project ID, we should output file size. Signed-off-by:
Li Xi <lixi@ddn.com> Signed-off-by:
Wang Shilong <wshilong@ddn.com> Change-Id: I2392f402d9853af969e4cd37318a83f2c4941c3e Reviewed-on: https://review.whamcloud.com/17770 Reviewed-by:
Niu Yawei <yawei.niu@intel.com> Tested-by: Jenkins Tested-by:
Maloo <hpdd-maloo@intel.com> Reviewed-by:
Oleg Drokin <oleg.drokin@intel.com>
Showing
- contrib/lbuild/lbuild-rhel7 1 addition, 1 deletioncontrib/lbuild/lbuild-rhel7
- ldiskfs/kernel_patches/patches/rhel7/ext4-projid-feature-support.patch 238 additions, 0 deletions...l_patches/patches/rhel7/ext4-projid-feature-support.patch
- ldiskfs/kernel_patches/patches/rhel7/ext4-projid-ignore-maxquotas.patch 141 additions, 0 deletions..._patches/patches/rhel7/ext4-projid-ignore-maxquotas.patch
- ldiskfs/kernel_patches/patches/rhel7/ext4-projid-quotas.patch 144 additions, 0 deletions...kfs/kernel_patches/patches/rhel7/ext4-projid-quotas.patch
- ldiskfs/kernel_patches/patches/rhel7/ext4-projid-xfs-ioctls.patch 446 additions, 0 deletions...kernel_patches/patches/rhel7/ext4-projid-xfs-ioctls.patch
- ldiskfs/kernel_patches/series/ldiskfs-3.10-rhel7.2.series 4 additions, 0 deletionsldiskfs/kernel_patches/series/ldiskfs-3.10-rhel7.2.series
- ldiskfs/kernel_patches/series/ldiskfs-3.10-rhel7.3.series 4 additions, 0 deletionsldiskfs/kernel_patches/series/ldiskfs-3.10-rhel7.3.series
- ldiskfs/kernel_patches/series/ldiskfs-3.10-rhel7.series 4 additions, 0 deletionsldiskfs/kernel_patches/series/ldiskfs-3.10-rhel7.series
- lustre/kernel_patches/patches/vfs-project-quotas-rhel7.patch 199 additions, 0 deletionslustre/kernel_patches/patches/vfs-project-quotas-rhel7.patch
- lustre/kernel_patches/series/3.10-rhel7.series 1 addition, 1 deletionlustre/kernel_patches/series/3.10-rhel7.series
- lustre/tests/conf-sanity.sh 2 additions, 1 deletionlustre/tests/conf-sanity.sh
Loading
Please register or sign in to comment