kern/126287: [ufs] [panic] Kernel panics while mounting an UFS
	filesystem with snapshot enabled
    Dag-Erling Smørgrav 
    des at des.no
       
    Thu Aug  7 23:09:13 UTC 2008
    
    
  
Kostik Belousov <kostikbel at gmail.com> writes:
> @@ -169,7 +169,8 @@ ffs_mount(struct mount *mp, struct thread *td)
>  		 * persist "snapshot" in the options list.
>  		 */
>  		vfs_deleteopt(mp->mnt_optnew, "snapshot");
> -		vfs_deleteopt(mp->mnt_opt, "snapshot");
> +		if (mp->mnt_opt != NULL)
> +			vfs_deleteopt(mp->mnt_opt, "snapshot");
>  	}
>  
>  	MNT_ILOCK(mp);
I would suggest also adding a KASSERT to vfs_deleteopt().
DES
-- 
Dag-Erling Smørgrav - des at des.no
    
    
More information about the freebsd-fs
mailing list