From owner-freebsd-current Thu Dec 7 16: 5:54 2000 From owner-freebsd-current@FreeBSD.ORG Thu Dec 7 16:05:52 2000 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-176-64.dsl.snfc21.pacbell.net [63.202.176.64]) by hub.freebsd.org (Postfix) with ESMTP id 26CDF37B400 for ; Thu, 7 Dec 2000 16:05:52 -0800 (PST) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.11.0/8.11.1) with ESMTP id eB80Ew900494; Thu, 7 Dec 2000 16:14:58 -0800 (PST) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200012080014.eB80Ew900494@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Matthew Thyer Cc: "John W. De Boskey" , freebsd-current@freebsd.org Subject: Re: write(2) returns error saying read only filesystem when trying to write to a partition In-reply-to: Your message of "Fri, 08 Dec 2000 08:43:36 +1030." <3A300B90.F20A6120@dsto.defence.gov.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 07 Dec 2000 16:14:58 -0800 From: Mike Smith Sender: msmith@mass.osd.bsdi.com Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > CC: to -current as that's what I'm running. > > "John W. De Boskey" wrote: > > > > Hi, > > > > I can't answer your questions directly, but you might want > > to checkout the sources to newfs (/usr/src/sbin/newfs/newfs.c or > > http://www.FreeBSD.org/cgi/cvsweb.cgi/src/sbin/newfs/newfs.c?annotate=1.31 > > line 417). > > > > I'll be glad to review your program if you would like. > > I'm not after a review, I'd like FreeBSD-CURRENT fixed. > > The program works on Compaq True64 UNIX v 4.0d > It also works on Solaris 7 (only tested sparc). > > So it seems FreeBSD is broken here. FreeBSD just behaves differently. If you want to write to the whole disk, open the whole-disk device, not the 'c' partition. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message