rmnscnce / ntfs3

ntfs3 Linux kernel module by Paragon Software
GNU General Public License v2.0
62 stars 13 forks source link

build failed on linux-5.12.11 #2

Open ivagulin opened 3 years ago

ivagulin commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

https://github.com/rmnscnce/ntfs3/compare/master...tmm1:fancybits/5.10

antonio-petricca commented 3 years ago

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