Whamcloud - gitweb
LU-1830 quota: fix ldiskfs quota accouning iterator
authorNiu Yawei <niu@whamcloud.com>
Wed, 5 Sep 2012 08:58:33 +0000 (16:58 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 10 Sep 2012 02:35:14 +0000 (22:35 -0400)
commit2eeb94d018a1ace05443e5349a29eb00f7090107
tree9d819b25a32c5e0d1477ea991367eca041b73d38
parentca09276f2cb850d4dbd599c74a3e61873ffbc991
LU-1830 quota: fix ldiskfs quota accouning iterator

There were defects in the ldiskfs quota accounting iterator:
- leaf blocks could be re-processed;
- entry index was updated incorrectly, so some entries could be
  skipped;

Fix the defect in osd_diskfs_read(), the 32bit 'size' could be
overflowed.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: Icfd96fdaf38c57bc63a5fcfd1f96c02d0ddeb74d
Reviewed-on: http://review.whamcloud.com/3877
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_io.c
lustre/osd-ldiskfs/osd_quota.c
lustre/osd-ldiskfs/osd_quota_fmt.c