Module Name: src Committed By: riz Date: Mon Dec 10 21:12:51 UTC 2012
Modified Files: src/sys/fs/smbfs [netbsd-6]: smbfs_node.c smbfs_node.h smbfs_vnops.c Log Message: Pull up following revision(s) (requested by nakayama in ticket #731): sys/fs/smbfs/smbfs_node.h: revision 1.13 sys/fs/smbfs/smbfs_node.c: revision 1.48 sys/fs/smbfs/smbfs_node.c: revision 1.49 sys/fs/smbfs/smbfs_vnops.c: revision 1.83 sys/fs/smbfs/smbfs_vnops.c: revision 1.84 Various fixes for smbfs: - Implement NGONE to fix caching issue described in PR kern/25070. Mostly taken from FreeBSD r125637. - Revert revision 1.70 of smbfs_vnops.c to fix setattr to opened direcotry. In case of SMB_CAP_NT_SMBS, NOPEN is set after smbfs_smb_ntcreatex() call. If NOPEN is set in front, it will immediately return by condition at do_open label. - In smbfs_close(), call smbfs_smb_close() and drop NOPEN bit in the case of direcotry. Otherwise smbfs_rmdir() fails when the directory was opened. - Remove redundant vput() before vgone(). - Avoid unnecessary mutex_exit() in smbfs_node_alloc(). - Set NGONE bit to from-name vnode to invalidate the smbnode cache. To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.47.8.1 src/sys/fs/smbfs/smbfs_node.c cvs rdiff -u -r1.12 -r1.12.94.1 src/sys/fs/smbfs/smbfs_node.h cvs rdiff -u -r1.78.2.1 -r1.78.2.2 src/sys/fs/smbfs/smbfs_vnops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.