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

Fix for timestamp seconds count on 4.20 kernel. #139

Open terraluna977 opened 5 years ago

terraluna977 commented 5 years ago

Signed-off-by: Woody Suwalski terraluna977@gmail.com

tommyjcarpenter commented 5 years ago

I tried building your local branch @terraluna977 on arch 4.20 and it still fails to compile with many errors like the below

    /home/tommy/exfat-nofuse/exfat_super.c: In function ‘exfat_read_root’:
/home/tommy/exfat-nofuse/exfat_super.c:2425:18: error: wrong type argument to increment
  inode->i_version++;
jamesan commented 5 years ago

Duplicate of #137.

Also, this doesn't address the root issue, which is updating to current time interfaces. The relevant deprecated time interfaces were finally removed from the Linux kernel on Aug 14, 2018 to address the Year 2038 problem by moving from 32- to 64-bit data types.

The official direct replacements for the timespec type and the ktime_get_real_ts() function are, respectively, timespec64 and ktime_get_real_ts64(), as found in Documentation/core-api/timekeeping.rst.