Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Nov 2007 19:47:26 +0200
From:      Nikolay Pavlov <qpadla@gmail.com>
To:        freebsd-current@freebsd.org, d@delphij.net
Cc:        Kostik Belousov <kostikbel@gmail.com>, Dag-Erling =?utf-8?q?Sm=C3=B8rgrav?= <des@des.no>, delphij@freebsd.org, Dmitry Morozovsky <marck@rinet.ru>
Subject:   Re: tmpfs on contemporary -current: panic: locked against myself
Message-ID:  <200711131947.32392.qpadla@gmail.com>
In-Reply-To: <4738A35D.3080408@delphij.net>
References:  <20070917194009.W84177@woozle.rinet.ru> <86k5onwmij.fsf@ds4.des.no> <4738A35D.3080408@delphij.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart5923655.ZHzqeGDK9F
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Monday 12 November 2007 21:02:53 Xin LI wrote:
> Dag-Erling Sm=C3=B8rgrav wrote:
> > Kostik Belousov <kostikbel@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) !=3D 1)
> >                 root_uid =3D va.va_uid;
> >         if (mp->mnt_cred->cr_ruid !=3D 0 ||
> > -           vfs_scanopt(mp->mnt_optnew, "mode", "%o", &root_mode) !=3D
> > 1) +           vfs_scanopt(mp->mnt_optnew, "mode", "%ho", &root_mode)
> > !=3D 1) root_mode =3D va.va_mode;
> >         if(vfs_scanopt(mp->mnt_optnew, "inodes", "%d", &nodes_max) !=3D
> > 1) nodes_max =3D 0;
>
> Oh...  My fault, thanks for pointing out.  I have just checked it into
> -HEAD.

It works for me. Thanks.

=2D-=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20
=2D Best regards, Nikolay Pavlov. <<<-----------------------------------   =
=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20


--nextPart5923655.ZHzqeGDK9F
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBHOeM0/2R6KvEYGaIRAq0VAJwP1xNsRruUjUv6e2KXKi43VDZluQCfRbfU
hBWqcmnagGd9EP3xLA/eZHs=
=RwKY
-----END PGP SIGNATURE-----

--nextPart5923655.ZHzqeGDK9F--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711131947.32392.qpadla>