RE: [PATCH V6 2/2] common/populate: Ensure that S_IFDIR.FMT_BTREE is in btree format

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



On 2023/1/3 17:58, xuyang2018.jy@xxxxxxxxxxx wrote:
> on  2023/01/03 17:29, Ziyang Zhang wrote

> Hi Yang,

> Could you please try this patch:

> diff --git a/common/populate b/common/populate index 44b4af16..bedcdc41 100644
> --- a/common/populate
> +++ b/common/populate
> @@ -81,7 +81,7 @@ __populate_xfs_create_btree_dir() {
>         # btree format.  Cycling the mount to use xfs_db is too slow, so
>         # watch for when the extent count exceeds the space after the
>         # inode core.
> -       local max_nextents="$(((isize - icore_size) / 16))"
> +       local max_nextents="$(((isize - icore_size) / 16 + 1))"
>         local nr=0
> 
>         mkdir -p "${name}"
>
> This will add 1 to max_nextents. Then xfs/083 will pass on my env(6.1 kernel,
> 6.0.0 xfsprogs, selinux disabled)

Yes, this can solve this problem.


Best Regards
Yang Xu

> Regards,
> Zhang




[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux