Subject: Re: Redoing file system suspension API (update)
To: None <tech-kern@netbsd.org>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 06/21/2006 14:43:26
--yudcn1FV7Hsu/q59
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Wed, Jun 21, 2006 at 04:05:53PM +0200, Juergen Hannken-Illjes wrote:
> On Wed, Jun 21, 2006 at 09:45:36PM +0900, YAMAMOTO Takashi wrote:
> >=20
> > i think it's better not to take the gate multiple times.
>=20
> Ok, is it sufficient to track nd.ni_dvp in lookup() and move to nd.ni_vp =
if
> it has a different mount (this is namei() on a mount point, should be the=
only
> case where nd.ni_vp->v_mount !=3D nd.ni_dvp->v_mount)?
As indicated in sys_unlink(), you can't delete the root of a file system.=
=20
So if the two mount points differ, you aren't doing the removal.
Take care,
Bill
--yudcn1FV7Hsu/q59
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)
iD8DBQFEmb1+Wz+3JHUci9cRAuPtAJ4/oMQMC1pbN3ytcFPqQjldOHkOoACdFT43
gLD9/bslnRklF4TeohQ1yj4=
=CEyo
-----END PGP SIGNATURE-----
--yudcn1FV7Hsu/q59--