linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] fsinfo: Add mount topology query [ver #15]
@ 2019-06-28 15:46 David Howells
  2019-06-28 15:47 ` [PATCH 1/6] vfs: Allow fsinfo() to look up a mount object by ID " David Howells
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: David Howells @ 2019-06-28 15:46 UTC (permalink / raw)
  To: viro
  Cc: dhowells, raven, mszeredi, christian, linux-api, linux-fsdevel,
	linux-kernel


Here's a set of patches that builds upon the previously posted fsinfo()
interface to:

 (a) Make it possible to invoke a query based on a mount ID rather than a
     path.  This is done by setting AT_FSINFO_MOUNTID_PATH and pointing the
     pathname argument to the mount ID as a string.

     A pathname is not a unique handle into the mount topology tree.  It's
     possible for there to be multiple overlying mounts at any particular
     point in the tree, and only the topmost can be directly accessed (the
     bottom might be inferrable from the parent).

     Usage of the mount ID permits all mount objects to be queried.  It
     would be possible to restrict the query based on the method used to
     address the object, though I haven't done this for now.

 (b) Provide a change ID for each mount object that is incremented each
     time a change is applied to that mount object.

 (c) Allow the mount topology to be queried.  The mount topology
     information returned is sprinkled with change IDs to make it easier to
     check for changes during multiple queries.  A future notification
     mechanism will also help with this.

 (d) Provide a system-unique superblock identifier that can be used to
     check to see if a mount object references the same superblock as it
     used to or as another mount object without relying on device numbers -
     which might not be seen to change over an unmount-mount combo.

A sample is also provided that allows the mount topology tree at a point to
be listed.

The patches can be found here also:

	https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git

on branch:

	fsinfo-mount

[!] Note that this depends on the fsinfo branch.


===================
SIGNIFICANT CHANGES
===================

 ver #15:

 (*) Split from the fsinfo-core branch.

 (*) Rename notify_counter to change_counter as there's no notification
     stuff here (that's in separate branches).

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-07-03  1:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-28 15:46 [PATCH 0/6] fsinfo: Add mount topology query [ver #15] David Howells
2019-06-28 15:47 ` [PATCH 1/6] vfs: Allow fsinfo() to look up a mount object by ID " David Howells
2019-06-28 15:47 ` [PATCH 2/6] vfs: Introduce a non-repeating system-unique superblock " David Howells
2019-06-28 15:47 ` [PATCH 3/6] vfs: Add mount change counter " David Howells
2019-06-28 15:47 ` [PATCH 4/6] vfs: Allow mount information to be queried by fsinfo() " David Howells
2019-07-03  1:09   ` Ian Kent
2019-07-03  1:24     ` Ian Kent
2019-07-03  1:42       ` Ian Kent
2019-06-28 15:47 ` [PATCH 5/6] vfs: fsinfo sample: Mount listing program " David Howells
2019-06-28 15:47 ` [PATCH 6/6] fsinfo: Add documentation for mount and sb watches " David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).