From owner-freebsd-geom@FreeBSD.ORG Thu May 22 19:46:03 2008 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D51111065679 for ; Thu, 22 May 2008 19:46:03 +0000 (UTC) (envelope-from marauder@pi.avalonnetworks.us) Received: from pi.avalonnetworks.us (pi.avalonnetworks.us [76.164.27.10]) by mx1.freebsd.org (Postfix) with ESMTP id B15B68FC20 for ; Thu, 22 May 2008 19:46:03 +0000 (UTC) (envelope-from marauder@pi.avalonnetworks.us) Received: from Project_Infinity-MTA by pi.avalonnetworks.us with Novell_GroupWise; Thu, 22 May 2008 13:25:21 -0600 Message-Id: <48357420.5689.0089.0@pi.avalonnetworks.us> X-Mailer: Novell GroupWise Internet Agent 7.0 Date: Thu, 22 May 2008 13:24:49 -0600 From: "Marauder" To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Unable to write to drive X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 May 2008 19:46:03 -0000 Hi all, I have a problem that is driving me crazy. Hopefully I'm submitting this = question to the correct place.=20 My problem is... I have opened the drive /dev/ad0 with open("/dev/ad0", = O_WRONLY) and it return's a valid file descriptor. The I attempt to write = using the file descriptor returned. The write fails with errno=3D22 = (EINVAL) I have attempted to first open /dev/io with READ/WRITE access to see if = that help's. No luck I have attempted to lock the section of the drive I would like to write to = with lockf. No luck If anybody has any idea's or suggestions I would greatly appreciate them. Thanx