Some VFS modules like GPFS will always return success from SMB_VFS_GET_DOS_ATTRIBUTES() but only set a subset of the attributes. It neither sets FILE_ATTRIBUTE_NORMAL nor FILE_ATTRIBUTE_DIRECTORY. We already handle the case that the VFS stack returns with result==0 and then add the FILE_ATTRIBUTE_NORMAL, regardless of the type of the filesystem object. Have patch, need bug number.
Created attachment 12505 [details] git-am fix for 4.5.next, 4.4.next.
Reassigning to Karolin for inclusion in 4.4 and 4.5.
(In reply to Ralph Böhme from comment #2) Pushed to autobuild-v4-{5,4}-test.
(In reply to Karolin Seeger from comment #3) Pushed to both branches. Closing out bug report. Thanks!