Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clonexfs could not handle big fs(over several T) correctly. #161

Open
Finix1979 opened this issue Apr 3, 2021 · 0 comments
Open

clonexfs could not handle big fs(over several T) correctly. #161

Finix1979 opened this issue Apr 3, 2021 · 0 comments

Comments

@Finix1979
Copy link

Hi, Maintainer

I create a sparse disk (30T) and create an XFS on it by default setting(blocksize=4k). With this empty fs, xfsclone could not figure out the correct dirty bitmap.

The root cause is function addtohist should convert mp->m_sb.sb_agblocks from uint32 to uint64. like this:

start_block = (agno* (unsigned long long)mp->m_sb.sb_agblocks) + agbno;

BTW, after calling libxfs_readbuf, libxfs_putbuf is needed.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant