Hi, all this changes obtained from FreeBSD project This patch is required for futher smbfs code syncing.