title: Fuse File System- general input/output error while accessing office files
body: <p>I have written a fuse mirror file system using FUSE-JNA, Which mirror local directory. </p>
  
  <p>This Mirror file system allow me to open all types of files correctly with no issue but it does not open all types of office files e.g. .docs , .xls etc. And give me be below error while opening any office file. </p>
  
  <p><img src="https://i.stack.imgur.com/795St.png" alt="http://i61.tinypic.com/2wd4j9c.png"></p>
  
  <p>Note: 
  I thought its LibreOffice issue, so I removed it and installed OpenOffice. But get the same issue.
  Secondly, the errors only pops up when I try to access an office file from my MirrorFileSystem. Office files opens correctly if accessed normally via ubuntu default file system.</p>
  
  <p>So its some thing wrong with my File system.</p>
  
  <p>Finally, (i don't know whether its related to the question or not but) in my mirror file system when I Right Click on a file>Properties> Permission   its shows all the fields disabled, as below </p>
  
  <p><img src="https://i.stack.imgur.com/t4Esi.png" alt="enter image description here"></p>
  
  <p>This is my getatt() method:</p>
  
  <pre><code>public int getattr(final String path, final StatWrapper stat)
  {
  ....
  if (f.isFile())
      {
          stat.setMode(NodeType.FILE,true,true,true,true,true,true,true,true,true);
          stat.size(f.length());
          stat.atime(f.lastModified()/ 1000L);
          stat.mtime(0);
          stat.nlink(1);
          stat.uid(0);
          stat.gid(0);
          stat.blocks((int) ((f.length() + 511L) / 512L));
          return 0;
      }
  ...
  }
  </code></pre>
  
  <p>Please guide me how to fix general input/output error while office files?</p>