1. 28 Oct, 2015 1 commit
  2. 22 Oct, 2015 1 commit
    • Jakob Unterwurzacher's avatar
      nodefs: do not overwrite the "out.Ino" inode number · 1b3f7953
      Jakob Unterwurzacher authored
      ...if it has already been set by the filesystem.
      
      "out.Ino" is the user-facing inode number that is displayed by "ls -li".
      
      This change allows loopback filesystems to expose the inode number of
      the underlying filesystem.
      As a "real" inode number, this one is stable for the lifetime of the file,
      even across remounts.
      
      libfuse has the `use_ino` option that allows the inode numbers to be set
      arbitrarily as well. This has been used by EncFS for years.
      
      The Linux kernel stores the inode number in `orig_ino`. Grepping in
      `fs/fuse` shows that it is only read once in `fuse_update_attributes`,
      and only if the `stat` argument is not NULL. There is only one caller
      that passes that argument: `fuse_getattr`.
      
      In short, the kernel does not use the inode number for anything but
      reporting it via `stat()`, hence setting the inode number is safe.
      
      This functionality will be used for improving log output in gocryptfs,
      where file names cannot be used because they are encrypted.
      1b3f7953
  3. 11 Oct, 2015 4 commits
  4. 30 Sep, 2015 1 commit
  5. 29 Sep, 2015 5 commits
  6. 24 Sep, 2015 4 commits
  7. 27 Jun, 2015 1 commit
  8. 22 Apr, 2015 7 commits
  9. 21 Apr, 2015 1 commit
  10. 03 Apr, 2015 3 commits
  11. 18 Mar, 2015 2 commits
  12. 04 Mar, 2015 3 commits
  13. 17 Dec, 2014 1 commit
  14. 12 Aug, 2014 4 commits
  15. 11 Aug, 2014 2 commits