Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Apr 2010 16:03:43 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Jaakko Heinonen <jh@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r206560 - head/sys/fs/devfs
Message-ID:  <20100414130343.GO2415@deviant.kiev.zoral.com.ua>
In-Reply-To: <20100414124912.GA2950@a91-153-117-195.elisa-laajakaista.fi>
References:  <201004131853.o3DIrdOT035078@svn.freebsd.org> <20100414084037.GK2415@deviant.kiev.zoral.com.ua> <20100414124912.GA2950@a91-153-117-195.elisa-laajakaista.fi>

next in thread | previous in thread | raw e-mail | index | archive | help

--MU/JeB64KdLsYIeZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Apr 14, 2010 at 03:49:13PM +0300, Jaakko Heinonen wrote:
>=20
> Thank you for your comments.
>=20
> On 2010-04-14, Kostik Belousov wrote:
> > The make_dev_credf() signature can be changed to return int error code
> > instead of void, and a flag, lets call it MAKEDEV_CHECKNAME, added,
>=20
> make_dev_credf() returns struct cdev *, not void.
Oops, forgot about this. We will need to change its signature more
radically, but I still think that this worth it.

>=20
> > that specifies that make_dev_credf() is allowed to fail with error
> > EINVAL if supplied name is not sane. If flag is not supplied,
> > make_dev_credf() should KASSERT or even just panic(9) if name
> > does not pass internal validation.
>=20
> Otherwise sounds reasonable suggestion. However changes are needed in
> devfs. Currently devfs_populate_loop() is not along the make_dev*()
> code path but make_dev(9) increases a generation counter and
> devfs_populate_loop() gets called sometimes later. To make things more
> complex there may be several devfs mounts with different symlinks (files).
Right, my point of my suggestion was to not modify populate_loop() at all.

>=20
> Actually my change doesn't work correctly in all cases with multiple
> devfs mounts and has another bug with cdp use counts. I am considering
> reverting the change.
>=20
> --=20
> Jaakko

--MU/JeB64KdLsYIeZ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)

iEYEARECAAYFAkvFvS4ACgkQC3+MBN1Mb4jP6gCeIrq+1mGt6ZA00453/M3EWYBg
3m8AoN6neQ1qNvWkkvFI1QDpD3Pd4YHL
=2xwd
-----END PGP SIGNATURE-----

--MU/JeB64KdLsYIeZ--



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