From owner-freebsd-current Thu Jan 23 16:12: 2 2003 Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 931) id 1D1CB37B401; Thu, 23 Jan 2003 16:12:01 -0800 (PST) Date: Thu, 23 Jan 2003 16:12:01 -0800 From: Juli Mallett To: current@FreeBSD.org Subject: Re: Test this! Patch to make newfs(8) use libufs. Message-ID: <20030123161201.A68445@FreeBSD.org> References: <20030123142924.A61481@FreeBSD.org> <20030123153811.A66302@FreeBSD.org> <20030123154921.A66976@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030123154921.A66976@FreeBSD.org>; from jmallett@FreeBSD.org on Thu, Jan 23, 2003 at 03:49:21PM -0800 Organisation: The FreeBSD Project X-Alternate-Addresses: , , , , X-Towel: Yes X-LiveJournal: flata, jmallett X-Negacore: Yes Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * De: Juli Mallett [ Data: 2003-01-23 ] [ Subjecte: Re: Test this! Patch to make newfs(8) use libufs. ] > I just went to do this, and found that pwrite is failing, saying EBADF. > Could this be because of the failed ioctl? I'm not sure why this is > happening. Any thoughts would be appreciated. It was because bwrite/sbwrite were wrong wrt which opened things writable. Now the patch at the URL elsewhere in this thread works. The remaining bug was that disk.d_bsize had to be set to the sectorsize, or things to work as newfs needs them to. Where can I pick up my dunce cap? Here's the URL once more: http://people.freebsd.org/~jmallett/newfs-libufs.diff Thanx, juli. -- Juli Mallett AIM: BSDFlata -- IRC: juli on EFnet. OpenDarwin, Mono, FreeBSD Developer. ircd-hybrid Developer, EFnet addict. FreeBSD on MIPS-Anything on FreeBSD. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message