alperakcan / fuse-ext2

Fuse-ext2 is a multi OS FUSE module to mount ext2, ext3 and ext4 file system devices and/or images with read write support.
GNU General Public License v2.0
804 stars 130 forks source link

Fix struct fuse_operations compatibility with libfuse version >= 3.0. #99

Closed congma closed 5 years ago

congma commented 5 years ago

In commit d7c145c0, the structure struct fuse_operations ext2fs_ops has bit-field member flag_utime_omit_ok initialized. This field has been removed since libfuse version 3.0 (see libfuse/libfuse@4496de19). As a result, compiling fuse-ext2 with the newer libfuse fails.

This patch fixes this problem by selectively initialize the flag_utime_omit_ok field with an #if guard.

congma commented 5 years ago

It would also be very helpful if @asomers could review and check if anything could get broken by this.

alperakcan commented 5 years ago

thank you for your support