From owner-freebsd-current@FreeBSD.ORG Tue Nov 13 17:47:48 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0854416A418 for ; Tue, 13 Nov 2007 17:47:48 +0000 (UTC) (envelope-from qpadla@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.250]) by mx1.freebsd.org (Postfix) with ESMTP id CFC1C13C4B0 for ; Tue, 13 Nov 2007 17:47:44 +0000 (UTC) (envelope-from qpadla@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so338116ana for ; Tue, 13 Nov 2007 09:47:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:reply-to:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:message-id; bh=a/WBcQFeiNsA3ZjjcPmcylgomu5MGvjwPbS5wYwxwfA=; b=ULF3MZ370WZqMoHWM4a9bATdDNBsbvl1gQ/vaxsXYeDTj3157PT9ZGX4oEixtGIOHtcEINQALvxBIaJJm4E712uGuhaQkxWVfuQO8CRNJlto4g9GwAIGbCC2Bw5wK6KVOUjF8hB5qonhRO8uL+0fQDohOQTP7yplVgHF7dehJLw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:reply-to:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:message-id; b=OTzvOilgZ5q1GelF8DP3pyQu5D7p7+yA+KwRJAGRfHFE59LJAxui4eKPtrvLegUncRnM3tv32MUbL2yWmXY7CVvpQjUM683pEsGO1DdldbWe3urzjQ11YAeHKdl72HyDSm+Nikq3OLJe+lx0z49AdYjYwZAp1AjBeSzRtmxAG1g= Received: by 10.100.209.11 with SMTP id h11mr10207569ang.1194976057578; Tue, 13 Nov 2007 09:47:37 -0800 (PST) Received: from orion ( [89.162.141.1]) by mx.google.com with ESMTPS id f6sm282506nfh.2007.11.13.09.47.35 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 13 Nov 2007 09:47:36 -0800 (PST) From: Nikolay Pavlov To: freebsd-current@freebsd.org, d@delphij.net Date: Tue, 13 Nov 2007 19:47:26 +0200 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) References: <20070917194009.W84177@woozle.rinet.ru> <86k5onwmij.fsf@ds4.des.no> <4738A35D.3080408@delphij.net> In-Reply-To: <4738A35D.3080408@delphij.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5923655.ZHzqeGDK9F"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200711131947.32392.qpadla@gmail.com> Cc: Kostik Belousov , Dag-Erling =?utf-8?q?Sm=C3=B8rgrav?= , delphij@freebsd.org, Dmitry Morozovsky Subject: Re: tmpfs on contemporary -current: panic: locked against myself X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: qpadla@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2007 17:47:48 -0000 --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 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--