From owner-freebsd-net Thu Mar 7 22:18:43 2002 Delivered-To: freebsd-net@freebsd.org Received: from creme-brulee.marcuscom.com (rdu57-28-046.nc.rr.com [66.57.28.46]) by hub.freebsd.org (Postfix) with ESMTP id 179AB37B400 for ; Thu, 7 Mar 2002 22:18:36 -0800 (PST) Received: from shumai.marcuscom.com (shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.11.6/8.11.6) with ESMTP id g286HpK48145 for ; Fri, 8 Mar 2002 01:17:51 -0500 (EST) (envelope-from marcus@marcuscom.com) Subject: rt_setgate returning EDQUOT From: Joe Clarke To: freebsd-net@freebsd.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-OP4KzKbQiJ51tv1dS6aa" X-Mailer: Evolution/1.0.2 Date: 08 Mar 2002 01:18:40 -0500 Message-Id: <1015568320.27447.13.camel@shumai.marcuscom.com> Mime-Version: 1.0 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --=-OP4KzKbQiJ51tv1dS6aa Content-Type: multipart/mixed; boundary="=-m4kl+ohjrNwWcQXpTC9u" --=-m4kl+ohjrNwWcQXpTC9u Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Every so often when my VPN link provided by user ppp goes away, and when I restart it I see an error saying that a route cannot be added because my disc quota has been exceeded. This is coming from route.c in the rt_setgate() function at line 1001 on -current. My question is should this be a different error? EDEADLK seems more accurate, or at least EEXIST. Given this doesn't happen often, but it can still be confusing. From man intro(2): "EDQUOT Disc quota exceeded. A write(2) to an ordinary file, the creation of a directory or symbolic link, or the creation of a directory entry failed because the user's quota of disk blocks was exhausted, or the allocation of an inode for a newly created file failed because the user's quota of inodes was exhausted." It doesn't mention anything about a recursive routing problem. Attached are patches for both errnos above. Joe --=-m4kl+ohjrNwWcQXpTC9u Content-Disposition: attachment; filename=route.c.patch.EDEADLK Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable --- sys/net/route.c.orig Thu Mar 7 22:40:02 2002 +++ sys/net/route.c Thu Mar 7 22:41:54 2002 @@ -998,7 +998,7 @@ if (rt->rt_gwroute =3D=3D rt) { RTFREE(rt->rt_gwroute); rt->rt_gwroute =3D 0; - return EDQUOT; /* failure */ + return EDEADLK; /* failure */ } } =20 --=-m4kl+ohjrNwWcQXpTC9u Content-Disposition: attachment; filename=route.c.patch.EEXIST Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable --- sys/net/route.c.orig Thu Mar 7 22:40:02 2002 +++ sys/net/route.c Thu Mar 7 22:43:56 2002 @@ -998,7 +998,7 @@ if (rt->rt_gwroute =3D=3D rt) { RTFREE(rt->rt_gwroute); rt->rt_gwroute =3D 0; - return EDQUOT; /* failure */ + return EEXIST; /* failure */ } } =20 --=-m4kl+ohjrNwWcQXpTC9u-- --=-OP4KzKbQiJ51tv1dS6aa Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEABECAAYFAjyIV8AACgkQb2iPiv4Uz4fLXQCdF8XtllCOyREyrt3JYKSY4xKp pDQAoIowJhU//Za8vZnXHRGOkE+wQI51 =9poL -----END PGP SIGNATURE----- --=-OP4KzKbQiJ51tv1dS6aa-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message