mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 18:14:24 +08:00
determine to where pass kernel_cache option without #if's
This commit is contained in:
parent
9d6a1cd081
commit
de23d9f540
@ -1766,13 +1766,13 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
free(parsed_options);
|
||||
if (!ctx->debug) {
|
||||
#if FUSE_MINOR_VERSION >= 4
|
||||
fh = fuse_new(ffd, "use_ino,kernel_cache", &ntfs_fuse_oper,
|
||||
sizeof(ntfs_fuse_oper));
|
||||
#else
|
||||
fh = fuse_new(ffd, "use_ino", &ntfs_fuse_oper,
|
||||
sizeof(ntfs_fuse_oper));
|
||||
#endif
|
||||
if (fuse_is_lib_option("kernel_cache"))
|
||||
fh = fuse_new(ffd, "use_ino,kernel_cache",
|
||||
&ntfs_fuse_oper,
|
||||
sizeof(ntfs_fuse_oper));
|
||||
else
|
||||
fh = fuse_new(ffd, "use_ino", &ntfs_fuse_oper,
|
||||
sizeof(ntfs_fuse_oper));
|
||||
} else
|
||||
fh = fuse_new(ffd, "debug,use_ino" , &ntfs_fuse_oper,
|
||||
sizeof(ntfs_fuse_oper));
|
||||
|
Loading…
Reference in New Issue
Block a user