dorimanx / exfat-nofuse

Android ARM Linux non-fuse read/write kernel driver for exFat and VFat Android file systems
GNU General Public License v2.0
707 stars 326 forks source link

Undefined symbol wait_on_page_writeback_range (Kernel 2.6.31.8) #104

Open jefflessard opened 7 years ago

jefflessard commented 7 years ago

Hi

I am trying to use your module on an Iomega ix2-200 NAS which runs kernel version 2.6.31.8 (this is the latest firmware available from manufacturer). At compile time (make), I get a warning because of undefined 'wait_on_page_writeback_range". When trying to load the module using insmod, it fails and I get dmesg error : "exfat: Unknown symbol wait_on_page_writeback_range".

After reviewing kernel source code (from kernel.org) for this specific version, I found that this function is defined into mm/filemap.c but that the symbol is not exported such as the other functions are.

I also observed that in file exfat_super.c you call filemap_fdatawait_range for kernels greater than 2.6.32. The problem is that neither functions are available for kernels version 2.6.31.8.

Do you think this could be workarounded?

Thank you

Jeff

dorimanx commented 7 years ago

Hmm, export the function in your source, so module will use it.

jefflessard commented 7 years ago

I would prefer not to rely on an incomplete kernel. I do not have kernel sources from the manufacturer nor their patches.

As the function is just not exported into mainstream kernel source, I guess that anyone running the same version as me will get this problem.

Do you think a fix in exfat-nofuse is possible?

Le 3 févr. 2017 05:04, "Yuri.Sh" notifications@github.com a écrit :

Hmm, export the function in your source, so module will use it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dorimanx/exfat-nofuse/issues/104#issuecomment-277209750, or mute the thread https://github.com/notifications/unsubscribe-auth/AYVj-5MQw23G9-YIaHGQpkQBL2JNRnyVks5rYvu6gaJpZM4L13YL .

jefflessard commented 6 years ago

I have no much time available so I gave up using exfat on this device.

Le 4 août 2017 04:04, "Timofonic" notifications@github.com a écrit :

@jefflessard https://github.com/jefflessard Did you fix it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dorimanx/exfat-nofuse/issues/104#issuecomment-320185039, or mute the thread https://github.com/notifications/unsubscribe-auth/AYVj-6pQpzCnMdM7hMyg9NDNgnmZ1CTfks5sUtCEgaJpZM4L13YL .