From: Jim McDonough Date: Sat, 21 Sep 2013 15:36:10 +0000 (-0500) Subject: [CIFS] Provide sane values for nlink X-Git-Tag: v3.12-rc4~9^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74d290da476f672ad756634d12aa707375d3564d;p=pandora-kernel.git [CIFS] Provide sane values for nlink Since we don't get info about the number of links from the readdir linfo levels, stat() will return 0 for st_nlink, and in particular, samba re-exported shares will show directories as files (as samba is keying off st_nlink before evaluating how to set the dos modebits) when doing a dir or ls. Copy nlink to the inode, unless it wasn't provided. Provide sane values if we don't have an existing one and none was provided. Signed-off-by: Jim McDonough Reviewed-by: Jeff Layton Reviewed-by: David Disseldorp Signed-off-by: Steve French --- Reading git-diff-tree failed