Whamcloud - gitweb
LU-13519 osd-ldiskfs: expand inode project quota for upgrading 04/40404/10
authorWang Shilong <wshilong@ddn.com>
Wed, 6 May 2020 04:45:25 +0000 (12:45 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 7 Nov 2020 17:47:08 +0000 (17:47 +0000)
commit6655fbfbf3169a5670666544a2688f8c0ba39a5a
tree2c32f4d48dc7d033f7d38636d0ede80d2c7abf1d
parent1148c1f738c388428a9c8f0a5bb6870eac0b1cf9
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.

Lustre-change: https://review.whamcloud.com/38505
Lustre-commit: 57108489a3eb2ff6fc3994dbda0649ae445d6cb7

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