From 9fb63e797e546478bc3341746b3d633396e160dd Mon Sep 17 00:00:00 2001 From: cha0smaster Date: Thu, 27 Oct 2005 11:37:49 +0000 Subject: [PATCH] Pass use_ino to fuse_new if named data streams access is not 'windows'. --- ntfsprogs/ntfsmount.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ntfsprogs/ntfsmount.c b/ntfsprogs/ntfsmount.c index cdb35de4..0c39f49f 100644 --- a/ntfsprogs/ntfsmount.c +++ b/ntfsprogs/ntfsmount.c @@ -1536,9 +1536,12 @@ int main(int argc, char *argv[]) } free(parsed_options); #ifndef DEBUG - fh = fuse_new(ffd, NULL, &ntfs_fuse_oper, sizeof(ntfs_fuse_oper)); + fh = fuse_new(ffd, (ctx->streams == NF_STREAMS_INTERFACE_WINDOWS) ? + NULL : "use_ino", &ntfs_fuse_oper, + sizeof(ntfs_fuse_oper)); #else - fh = fuse_new(ffd, "debug", &ntfs_fuse_oper, + fh = fuse_new(ffd, (ctx->streams == NF_STREAMS_INTERFACE_WINDOWS) ? + "debug" : "debug,use_ino" , &ntfs_fuse_oper, sizeof(ntfs_fuse_oper)); #endif if (!fh) {