Re: [PATCH 4/4] fhandle: Improve error responses in name_to_handle_at()

2017-12-11 Thread J. Bruce Fields
On Mon, Dec 11, 2017 at 05:04:05PM +1100, NeilBrown wrote: > 1/ Always return the mnt_id, even if some other error occurs. >It can be useful without the file handle. >An application can initialise the memory to, e.g. -1 >and if there is some other value after name_to_handle_at() >re

[PATCH 4/4] fhandle: Improve error responses in name_to_handle_at()

2017-12-10 Thread NeilBrown
1/ Always return the mnt_id, even if some other error occurs. It can be useful without the file handle. An application can initialise the memory to, e.g. -1 and if there is some other value after name_to_handle_at() returns, then it is a valid mnt_id. If the value is unchanged, then