From owner-freebsd-current@FreeBSD.ORG Mon Oct 25 19:19:40 2010 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 7EE4D1065673 for ; Mon, 25 Oct 2010 19:19:40 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [IPv6:2001:470:a803::1]) by mx1.freebsd.org (Postfix) with ESMTP id 25E5D8FC1A for ; Mon, 25 Oct 2010 19:19:40 +0000 (UTC) Received: from mail.geekcn.org (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id 2F991A68723; Tue, 26 Oct 2010 03:19:39 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by mail.geekcn.org (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with LMTP id ONZxhlIprVVY; Tue, 26 Oct 2010 03:19:32 +0800 (CST) Received: from delta.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 2BF2EA5A892; Tue, 26 Oct 2010 03:19:30 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:subject:x-enigmail-version:openpgp:content-type; b=RI/TcP5upr49b/vtz5Gtc70Cq2v6YPwf0Xtb7YNd/MO+XIox5Zhu4+NvkpXXpyIx/ YHCS6RqIkWsSdorlZowOw== Message-ID: <4CC5D83E.8030505@delphij.net> Date: Mon, 25 Oct 2010 12:19:26 -0700 From: Xin LI Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.14) Gecko/20101020 Thunderbird/3.0.9 ThunderBrowse/3.3.2 MIME-Version: 1.0 To: FreeBSD Current X-Enigmail-Version: 1.0.1 OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: multipart/mixed; boundary="------------080707000109090009040800" Cc: Subject: [RFC] More meaningful information about ENOEXEC for kldload(8) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2010 19:19:40 -0000 This is a multi-part message in MIME format. --------------080707000109090009040800 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, Here is a simple patch that adds more meaning messages when kldload hits ENOEXEC. Before patch: kldload: can't load geom_eli.ko: Exec format error After patch: kldload: can't load geom_eli.ko: Exec format error kldload: Dependendent kernel module cannot be loaded from kern.module_path? Comments? Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iQEcBAEBCAAGBQJMxdg+AAoJEATO+BI/yjfBEasH/1vKrCT/HX0xEUFYLEK5mjNr iZPJVIpe5R9jRWLzb1065qMQR5eMgiotig9p/ymOebq3azQAsDagOJDzzYa46ReS yNlUYq6GnVHsOh15cBHxtRBkuJ0Q3jWammPAXf0oYmvFrPBQstLp7iyhS7PZUUBb 7DnFMPLh3FSiovli6JFwhHpYQSDwz7K4UPzj/Un0DwuMoz8fyGoyOz8ZRqAY6D5g GwesbqBhjDaOuwJNFaNcjoEK4Eq/iwkotZCz7l38Skmlle7wwycuyYdEIuk9feiS /dn4CyhzKwNVbVPqZOEJ99bAuxJUwsfDEpGeYLH97rGqz7U4Y6LM18R/fip+0DM= =qeYL -----END PGP SIGNATURE----- --------------080707000109090009040800 Content-Type: text/plain; name="kldload.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="kldload.diff" SW5kZXg6IGtsZGxvYWQuYwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBrbGRsb2FkLmMJKHJldmlzaW9u IDIxNDE0NikKKysrIGtsZGxvYWQuYwkod29ya2luZyBjb3B5KQpAQCAtMzMsNiArMzMsNyBA QAogI2luY2x1ZGUgPHN5cy9zeXNjdGwuaD4KICNpbmNsdWRlIDxzeXMvc3RhdC5oPgogI2lu Y2x1ZGUgPGVyci5oPgorI2luY2x1ZGUgPGVycm5vLmg+CiAjaW5jbHVkZSA8c3RkaW8uaD4K ICNpbmNsdWRlIDxzdGRsaWIuaD4KICNpbmNsdWRlIDxzdHJpbmcuaD4KQEAgLTE3MSw2ICsx NzIsOSBAQAogCQkJZmlsZWlkID0ga2xkbG9hZChhcmd2WzBdKTsKIAkJCWlmIChmaWxlaWQg PCAwKSB7CiAJCQkJd2FybigiY2FuJ3QgbG9hZCAlcyIsIGFyZ3ZbMF0pOworCQkJCWlmIChl cnJubyA9PSBFTk9FWEVDICYmICFxdWlldCkKKwkJCQkJd2FybngoIkRlcGVuZGVuZGVudCBr ZXJuZWwgbW9kdWxlIGNhbid0IgorCQkJCQkgICAgImJlIGxvYWRlZCBmcm9tIGtlcm4ubW9k dWxlX3BhdGg/Iik7CiAJCQkJZXJyb3JzKys7CiAJCQl9IGVsc2UgewogCQkJCWlmICh2ZXJi b3NlKQo= --------------080707000109090009040800--