linux-apfs / linux-apfs-rw

APFS module for linux, with experimental write support
GNU General Public License v2.0
510 stars 34 forks source link

Changes needed to build on kernel 6.3 #38

Closed terraluna977 closed 1 year ago

terraluna977 commented 1 year ago

Changes for kernel 6.3

eafer commented 1 year ago

Thanks, this is very helpful. You made a copy-paste mistake in two of the macros:

#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 12, 0)
    err = setattr_prepare(dentry, iattr);
#elif LINUX_VERSION_CODE < KERNEL_VERSION(5, 12, 0)
    err = setattr_prepare(&init_user_ns, dentry, iattr);
#else
    err = setattr_prepare(&nop_mnt_idmap, dentry, iattr);
#endif

Do you want to fix this yourself or should I do it?

terraluna977 commented 1 year ago

Fixed the macro typos. Yep, looking at the git diff between branches helps :-)

eafer commented 1 year ago

Great, this patch is applied now.