• Linus Torvalds's avatar
    Merge tag 'vfs-6.7.fsid' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs · 13d88ac5
    Linus Torvalds authored
    Pull vfs fanotify fsid updates from Christian Brauner:
     "This work is part of the plan to enable fanotify to serve as a drop-in
      replacement for inotify. While inotify is availabe on all filesystems,
      fanotify currently isn't.
    
      In order to support fanotify on all filesystems two things are needed:
    
       (1) all filesystems need to support AT_HANDLE_FID
    
       (2) all filesystems need to report a non-zero f_fsid
    
      This contains (1) and allows filesystems to encode non-decodable file
      handlers for fanotify without implementing any exportfs operations by
      encoding a file id of type FILEID_INO64_GEN from i_ino and
      i_generation.
    
      Filesystems that want to opt out of encoding non-decodable file ids
      for fanotify that don't support NFS export can do so by providing an
      empty export_operations struct.
    
      This also partially addresses (2) by generating f_fsid for simple
      filesystems as well as freevxfs. Remaining filesystems ...
    13d88ac5
super.c 44.8 KB