You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In many cases, after creating a new file or directory, the nfs layer queries for file attributes of the newly created object. Typically, the filesysem implementation alredy has those attributes, however create operations return only the inode, thus extra getattr is required.
I propose to change the interface and instead of an Inode retun a CreateResult, like:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In many cases, after creating a new file or directory, the nfs layer queries for file attributes of the newly created object. Typically, the filesysem implementation alredy has those attributes, however create operations return only the inode, thus extra getattr is required.
I propose to change the interface and instead of an Inode retun a CreateResult, like:
If filesysem cant provide stat, then the will be empty, and calling code will fall back calling getattr.
Beta Was this translation helpful? Give feedback.
All reactions