Whamcloud - gitweb
LU-13519 osd-ldiskfs: expand inode project quota for upgrading 05/38505/8
authorWang Shilong <wshilong@ddn.com>
Wed, 6 May 2020 04:45:25 +0000 (12:45 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 4 Jul 2020 03:04:15 +0000 (03:04 +0000)
commit57108489a3eb2ff6fc3994dbda0649ae445d6cb7
tree759a3582180301593f321c73ef56135fd461f043
parentc4ed9b0fb10132a9683362ae90caf4c64a29062c
LU-13519 osd-ldiskfs: expand inode project quota for upgrading

When upgrading filesystem, it is possible that inode
it not big enough to hold project id field, and in that case
set project ID will return EOVERFLOW error.

Since ldiskfs have the logic to expand inode size automatically,
we could add similar logic for project quota.

Considering this as an rare case, we just call
ldiskfs_mark_inode_dirty() which will try to expand instead
of exporting more functions.

Change-Id: I941f33ce8f45d2015acc0a33c5b54cf3a771a452
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/38505
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osd-ldiskfs/osd_handler.c
lustre/tests/conf-sanity.sh