1. 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
  2. 11 Oct, 2015 4 commits
  3. 30 Sep, 2015 1 commit
  4. 29 Sep, 2015 5 commits
  5. 24 Sep, 2015 4 commits
  6. 27 Jun, 2015 1 commit
  7. 22 Apr, 2015 7 commits
  8. 21 Apr, 2015 1 commit
  9. 03 Apr, 2015 3 commits
  10. 18 Mar, 2015 2 commits
  11. 04 Mar, 2015 3 commits
  12. 17 Dec, 2014 1 commit
  13. 12 Aug, 2014 4 commits
  14. 11 Aug, 2014 3 commits