From owner-cvs-all Fri Nov 1 7:33:39 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B21C37B401; Fri, 1 Nov 2002 07:33:38 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C55143EA9; Fri, 1 Nov 2002 07:33:38 -0800 (PST) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id gA1FWCmV017923; Fri, 1 Nov 2002 07:32:12 -0800 (PST) (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gA1FWCA4017922; Fri, 1 Nov 2002 07:32:12 -0800 (PST) Message-Id: <200211011532.gA1FWCA4017922@repoman.freebsd.org> From: Poul-Henning Kamp Date: Fri, 1 Nov 2002 07:32:12 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/fs/specfs spec_vnops.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG phk 2002/11/01 07:32:12 PST Modified files: sys/fs/specfs spec_vnops.c Log: Put a KASSERT in specfs::strategy() to check that the incoming buffer has a valid b_iocmd. Valid is any one of BIO_{READ,WRITE,DELETE}. I have seen at least one case where the bio_cmd field was zero once the request made it into GEOM. Putting the KASSERT here allows us to spot the culprit in the backtrace. Revision Changes Path 1.185 +8 -2 src/sys/fs/specfs/spec_vnops.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message