Whamcloud - gitweb
LU-1182 ldiskfs-osd: space accounting support
authorMikhail Pershin <tappro@whamcloud.com>
Tue, 19 Jun 2012 19:49:35 +0000 (23:49 +0400)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 29 Jun 2012 18:45:42 +0000 (14:45 -0400)
commit57df6353ca590f32a32c0f0dc4a1d10a86a027ec
tree47c446e27cc37dc307eaaef35d0c3d853ab319de
parent353e3c2f8d9f195c0f87a16259f22b2f84de11d4
LU-1182 ldiskfs-osd: space accounting support

Add space accounting support to ldiskfs OSD.

This patch also sets initial attributes in do_create().
mdd_attr_set_internal() from mdd_object_initialize() is kept until
EDQUOT is returned in lquota itself.
Attributes of new inodes are now initialized in osd_object_create().
All LA_MODE bits are now passed to ldiskfs_create_inode().
(original patch from LiWei, see ORI-46)

Signed-off-by: Johann Lombardi <johann@whamcloud.com>
Change-Id: I77a621c76343c2633810bb3cef9859ee30b7b23a
Reviewed-on: http://review.whamcloud.com/3160
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
15 files changed:
ldiskfs/kernel_patches/patches/ext4-quota-dont-update-cmtime.patch [new file with mode: 0644]
ldiskfs/kernel_patches/patches/ext4-quota-first-class.patch [new file with mode: 0644]
ldiskfs/kernel_patches/patches/ext4-quota-force-block-alloc-quotaoff.patch [new file with mode: 0644]
ldiskfs/kernel_patches/patches/ext4-quota-minimal-rhel5.patch [new file with mode: 0644]
ldiskfs/kernel_patches/series/ldiskfs-2.6-rhel5-ext4.series
ldiskfs/kernel_patches/series/ldiskfs-2.6-rhel6.series
lustre/osd-ldiskfs/Makefile.in
lustre/osd-ldiskfs/autoMakefile.am
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_oi.c
lustre/osd-ldiskfs/osd_quota.c [new file with mode: 0644]
lustre/osd-ldiskfs/osd_quota_fmt.c [new file with mode: 0644]
lustre/osd-ldiskfs/osd_quota_fmt.h [new file with mode: 0644]
lustre/quota/lquota_lib.c