Found (and fixed) by Anand Avati <avati@redhat.com> whilst writing his GlusterFS VFS modules. unix_convert() depends on errno not being modified by called functions in some code paths. Patch to follow. Jeremy.
Created attachment 8831 [details] git-am fix for master and 4.0.next.
Created attachment 8833 [details] Patch with cherry-pick info Patch with cherry-pick info
Comment on attachment 8833 [details] Patch with cherry-pick info LGTM.
Re-assigning to Karolin for inclusion in 4.0.next. Jeremy.
Pushed to autobuild-v4-0-test.
Pushed to v4-0-test. Closing out bug report. Thanks!