• Linus Torvalds's avatar
    Merge tag 'vfs-6.9-rc6.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs · 52034cae
    Linus Torvalds authored
    Pull vfs fixes from Christian Brauner:
     "This contains a few small fixes for this merge window and the attempt
      to handle the ntfs removal regression that was reported a little while
      ago:
    
       - After the removal of the legacy ntfs driver we received reports
         about regressions for some people that do mount "ntfs" explicitly
         and expect the driver to be available. Since ntfs3 is a drop-in for
         legacy ntfs we alias legacy ntfs to ntfs3 just like ext3 is aliased
         to ext4.
    
         We also enforce legacy ntfs is always mounted read-only and give it
         custom file operations to ensure that ioctl()'s can't be abused to
         perform write operations.
    
       - Fix an unbalanced module_get() in bdev_open().
    
       - Two smaller fixes for the netfs work done earlier in this cycle.
    
       - Fix the errno returned from the new FS_IOC_GETUUID and
         FS_IOC_GETFSSYSFSPATH ioctls. Both commands just pull information
         out of the superblock so there's no need to call into the actual
         ioctl handlers.
    
         So instead of returning ENOIOCTLCMD to indicate to fallback we just
         return ENOTTY directly avoiding that indirection"
    
    * tag 'vfs-6.9-rc6.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs:
      netfs: Fix the pre-flush when appending to a file in writethrough mode
      netfs: Fix writethrough-mode error handling
      ntfs3: add legacy ntfs file operations
      ntfs3: enforce read-only when used as legacy ntfs driver
      ntfs3: serve as alias for the legacy ntfs driver
      block: fix module reference leakage from bdev_open_by_dev error path
      fs: Return ENOTTY directly if FS_IOC_GETUUID or FS_IOC_GETFSSYSFSPATH fail
    52034cae
bdev.c 32.2 KB