Re: rename on socket fails :-(

From: Michael Butler <imb_at_protected-networks.net>
Date: Fri, 18 Feb 2011 20:28:03 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/18/11 18:22, Kostik Belousov wrote:
> 
> The patch below fixed the bug for the test extracted from your kdump.
> 
> diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c
> index 084971e..34b1758 100644
> --- a/sys/ufs/ufs/ufs_vnops.c
> +++ b/sys/ufs/ufs/ufs_vnops.c
> _at__at_ -1295,7 +1295,9 _at__at_ relock:
>  			newparent = tdp->i_number;
>  		doingdirectory = 1;
>  	}
> -	if (fvp->v_mountedhere != NULL || (tvp && tvp->v_mountedhere != NULL)) {
> +	if ((fvp->v_type == VDIR && fvp->v_mountedhere != NULL) ||
> +	    (tvp != NULL && tvp->v_type == VDIR &&
> +	    tvp->v_mountedhere != NULL)) {
>  		error = EXDEV;
>  		goto unlockout;
>  	}

To confirm - this fixes the issue - thanks!

	imb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iEYEARECAAYFAk1fHKMACgkQQv9rrgRC1JKt+ACgv6Cx9NVZapjDn0bMUskLs7jM
ym8An0YIQKWY0dcJ12qX9zV4c6ePzgD+
=JQxR
-----END PGP SIGNATURE-----
Received on Sat Feb 19 2011 - 00:28:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:11 UTC