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

build failed on linux-5.12.11 #2

Open
ivagulin opened this issue Jun 26, 2021 · 4 comments
Open

build failed on linux-5.12.11 #2

ivagulin opened this issue Jun 26, 2021 · 4 comments

Comments

@ivagulin
Copy link

ivagulin commented Jun 26, 2021

Hi there! Great project. Is there are any plans to support 5.12? ntfs-3g is so slooooow.

[root@ivagulin-pc ntfs3]# make
make -C /lib/modules/5.12.11-300.fc34.x86_64/build M=/root/ntfs3 modules
make[1]: Entering directory '/usr/src/kernels/5.12.11-300.fc34.x86_64'
CC [M] /root/ntfs3/fsntfs.o
/root/ntfs3/fsntfs.c: In function ‘ntfs_bio_fill_1’:
/root/ntfs3/fsntfs.c:1620:38: error: ‘BIO_MAX_PAGES’ undeclared (first use in this function); did you mean ‘BIO_MAX_VECS’?
1620 | new = ntfs_alloc_bio(BIO_MAX_PAGES);
| ^~~~~~~~~~~~~
| BIO_MAX_VECS
/root/ntfs3/fsntfs.c:1620:38: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:271: /root/ntfs3/fsntfs.o] Error 1
make[1]: *** [Makefile:1857: /root/ntfs3] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.12.11-300.fc34.x86_64'
make: *** [Makefile:46: all] Error 2

@ksofix
Copy link

ksofix commented Aug 29, 2021

Update your kernel to 5.13 and try to use this patch.

BIO_MAX_PAGES was renamed to BIO_MAX_VECS here. There are list of versions where this patch was applied.

@rmnscnce could you update the kernel version in Readme.md? This driver can't be build with 5.8 kernel. I think it must be 5.14.

@tmm1
Copy link

tmm1 commented Oct 11, 2021

There's a backport patch for 5.12 at the same location now: https://aur.archlinux.org/cgit/aur.git/tree/kernel-5.12-backport.patch?h=ntfs3-dkms-git

I would like to do the same with 5.10 if anyone is aware of changes or patches needed.

@tmm1
Copy link

tmm1 commented Oct 11, 2021

I was able to build for 5.10 by combining the patches from that AUR repo

master...tmm1:fancybits/5.10

@antonio-petricca
Copy link

Hi, how to recompile it on kernel 5.4 (the latest supported by Ubuntu 18,04)?

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

4 participants