tmpfs on contemporary -current: panic: locked against myself

Nikolay Pavlov qpadla at gmail.com
Tue Nov 13 09:47:48 PST 2007


On Monday 12 November 2007 21:02:53 Xin LI wrote:
> Dag-Erling Smørgrav wrote:
> > Kostik Belousov <kostikbel at gmail.com> writes:
> >> The following patch fixed it for me.
> >>
> >> diff --git a/sys/fs/tmpfs/tmpfs_vfsops.c
> >> b/sys/fs/tmpfs/tmpfs_vfsops.c index 4a3cdec..55e9891 100644
> >> --- a/sys/fs/tmpfs/tmpfs_vfsops.c
> >> +++ b/sys/fs/tmpfs/tmpfs_vfsops.c
> >> @@ -201,7 +201,7 @@ tmpfs_mount(struct mount *mp, struct thread *td)
> >>  	/* Root node attributes. */
> >>  	uid_t	root_uid;
> >>  	gid_t	root_gid;
> >> -	mode_t	root_mode;
> >> +	int	root_mode;
> >>
> >>  	struct vattr	va;
> >
> > Alternatively:
> >
> > @@ -231,7 +231,7 @@
> >             vfs_scanopt(mp->mnt_optnew, "uid", "%d", &root_uid) != 1)
> >                 root_uid = va.va_uid;
> >         if (mp->mnt_cred->cr_ruid != 0 ||
> > -           vfs_scanopt(mp->mnt_optnew, "mode", "%o", &root_mode) !=
> > 1) +           vfs_scanopt(mp->mnt_optnew, "mode", "%ho", &root_mode)
> > != 1) root_mode = va.va_mode;
> >         if(vfs_scanopt(mp->mnt_optnew, "inodes", "%d", &nodes_max) !=
> > 1) nodes_max = 0;
>
> Oh...  My fault, thanks for pointing out.  I have just checked it into
> -HEAD.

It works for me. Thanks.

-- 
======================================================================  
- Best regards, Nikolay Pavlov. <<<-----------------------------------    
======================================================================  

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20071113/b34681dc/attachment.pgp


More information about the freebsd-current mailing list