Skip site navigation (1)Skip section navigation (2)
Date:      08 Mar 2002 01:18:40 -0500
From:      Joe Clarke <marcus@marcuscom.com>
To:        freebsd-net@freebsd.org
Subject:   rt_setgate returning EDQUOT
Message-ID:  <1015568320.27447.13.camel@shumai.marcuscom.com>

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

--=-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




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