Messages in this thread | | | Date | Wed, 1 Apr 2020 10:43:46 +0200 | From | Karel Zak <> | Subject | Re: Upcoming: Notifications, FS notifications and fsinfo() |
| |
On Tue, Mar 31, 2020 at 10:54:23PM +0100, David Howells wrote: > Karel Zak <kzak@redhat.com> wrote: > > > - improve fsinfo() to provide set (list) of the attributes by one call > > That would be my preferred way. I wouldn't want to let the user pin copies of > state, and I wouldn't want to make open(O_PATH) do it automatically.
You can create cow object on first fsinfo() call, ideally add some flags to control this behavior -- but you're right, this way is complicated to implement and possibly dangerous.
I guess return some vector of attributes in one fsinfo() will be good enough.
Karel
-- Karel Zak <kzak@redhat.com> http://karelzak.blogspot.com
| |