Re: Upcoming: Notifications, FS notifications and fsinfo()
From: Karel Zak
Date: Wed Apr 01 2020 - 04:43:59 EST
On Tue, Mar 31, 2020 at 10:54:23PM +0100, David Howells wrote:
> Karel Zak <kzak@xxxxxxxxxx> 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@xxxxxxxxxx>
http://karelzak.blogspot.com