Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • include
  • uapi
  • linux
  • stat.h
Find file BlameHistoryPermalink
  • Miklos Szeredi's avatar
    add unique mount ID · 98d2b430
    Miklos Szeredi authored Oct 25, 2023
    
    
    If a mount is released then its mnt_id can immediately be reused.  This is
    bad news for user interfaces that want to uniquely identify a mount.
    
    Implementing a unique mount ID is trivial (use a 64bit counter).
    Unfortunately userspace assumes 32bit size and would overflow after the
    counter reaches 2^32.
    
    Introduce a new 64bit ID alongside the old one.  Initialize the counter to
    2^32, this guarantees that the old and new IDs are never mixed up.
    
    Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
    Link: https://lore.kernel.org/r/20231025140205.3586473-2-mszeredi@redhat.com
    
    
    Reviewed-by: default avatarIan Kent <raven@themaw.net>
    Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
    98d2b430
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7