From owner-freebsd-current Tue Feb 3 23:17:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA03174 for current-outgoing; Tue, 3 Feb 1998 23:17:13 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp01.primenet.com (smtp01.primenet.com [206.165.6.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA03169 for ; Tue, 3 Feb 1998 23:17:12 -0800 (PST) (envelope-from tlambert@usr08.primenet.com) Received: (from daemon@localhost) by smtp01.primenet.com (8.8.8/8.8.8) id AAA01024; Wed, 4 Feb 1998 00:17:08 -0700 (MST) Received: from usr08.primenet.com(206.165.6.208) via SMTP by smtp01.primenet.com, id smtpd001013; Wed Feb 4 00:17:01 1998 Received: (from tlambert@localhost) by usr08.primenet.com (8.8.5/8.8.5) id AAA04564; Wed, 4 Feb 1998 00:16:59 -0700 (MST) From: Terry Lambert Message-Id: <199802040716.AAA04564@usr08.primenet.com> Subject: Re: sb being written to r/o disks. To: julian@whistle.com (Julian Elischer) Date: Wed, 4 Feb 1998 07:16:59 +0000 (GMT) Cc: mckusick@mckusick.com, current@FreeBSD.ORG In-Reply-To: <34D7B6B0.31DFF4F5@whistle.com> from "Julian Elischer" at Feb 3, 98 04:30:41 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe current" > something is doing syncronous writes to a r/o FS.. > who? that's easy.. > > # mount -u -ordonly / > Breakpoint at _mount: pushl %ebp > db> b bwrite > db> c > Breakpoint at _bwrite: pushl %ebp > db> tr > _bwrite(f245ccf4,0) at _bwrite > _ffs_sbupdate(f045f200,1) at _ffs_sbupdate+0xb0 > _ffs_mount(f045fc00,efbfd268,efbfd1cc,f3666eb8,f364e740) at > _ffs_mount+0x1e5 > _mount(f364e740,f3666f94,0,efbfd268,1201) at _mount+0x416 > _syscall(27,27,1201,efbfd268,efbfd238) at _syscall+0x187 > _Xsyscall() at _Xsyscall+0x35 > --- syscall 0x15, eip = 0x6a95, esp = 0xefbfd188, ebp = 0xefbfd238 --- > db> > > apparently _ffs_sbupdate() doesn't know to check if the fs is readonly.. This is kind of well known; this is because R/O FS's get their "last mounted on" information updated. This is probably a bad thing. Probably the "last mounted on" information for a R/O FS should be set by newfs. It really means "please mount me here". Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.