mbox series

[0/2] xfs: always init fdblocks in mount and avoid f_bfree overflow

Message ID 1584364028-122886-1-git-send-email-zhengbin13@huawei.com (mailing list archive)
Headers show
Series xfs: always init fdblocks in mount and avoid f_bfree overflow | expand

Message

Zheng Bin March 16, 2020, 1:07 p.m. UTC
Use buffer io to test xfs mount point:
cp file1M /mnt  -->just check fdblocks
sync            -->find suiteable AG, agf->agf_freeblks & agf->agf_longest

fdblocks may not be correct, if hackers use xfs_db to modify it, always
init fdblocks in mount, also avoid f_bfree overflow.

Zheng Bin (2):
  xfs: always init fdblocks in mount
  xfs: avoid f_bfree overflow

 fs/xfs/xfs_mount.c | 39 ++++++---------------------------------
 fs/xfs/xfs_super.c |  3 ++-
 2 files changed, 8 insertions(+), 34 deletions(-)

--
2.7.4