From owner-freebsd-hackers Thu Oct 22 16:40:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA23189 for freebsd-hackers-outgoing; Thu, 22 Oct 1998 16:40:17 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from knecht.Sendmail.ORG (knecht.sendmail.org [209.31.233.160]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA23184 for ; Thu, 22 Oct 1998 16:40:15 -0700 (PDT) (envelope-from mckusick@flamingo.McKusick.COM) Received: from flamingo.McKusick.COM (root@flamingo.mckusick.com [209.31.233.178]) by knecht.Sendmail.ORG (8.9.1/8.9.1) with ESMTP id QAA28824; Thu, 22 Oct 1998 16:39:46 -0700 (PDT) Received: from flamingo.McKusick.COM (mckusick@localhost [127.0.0.1]) by flamingo.McKusick.COM (8.8.5/8.8.5) with ESMTP id PAA19166; Thu, 22 Oct 1998 15:54:18 -0700 (PDT) Message-Id: <199810222254.PAA19166@flamingo.McKusick.COM> To: Don Lewis Subject: Re: softupdates and sync cc: dag-erli@ifi.uio.no, hackers@FreeBSD.ORG In-reply-to: Your message of "Thu, 22 Oct 1998 15:37:38 PDT." <199810222237.PAA17114@salsa.gv.tsc.tdk.com> Date: Thu, 22 Oct 1998 15:54:18 -0700 From: Kirk McKusick Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG From: Don Lewis Date: Thu, 22 Oct 1998 15:37:38 -0700 In-Reply-To: Kirk McKusick "Re: softupdates and sync" (Oct 19, 8:42pm) To: Kirk McKusick , dag-erli@ifi.uio.no Subject: Re: softupdates and sync Cc: hackers@FreeBSD.ORG I wonder if this is related to: On Oct 14, 5:06pm, Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= wrote: } Subject: SoftUpdates anomaly: what happens when you 'mount -u -o ro /usr'? ... Down-grading to read-only goes through the same process as unmounting. In particular it calls softdep_flushfiles which sync's the filesystem and flushes all the related background jobs from the work queue. If the deleted files had been on the work queue, they would have been flushed. That implies to me that they had not gotten to the work queue. Something very fishy is going on here, because this behavior does not show up in any of the other soft updates ports. My guess is that if you remove a bunch of files, then downgrade the filesystem, and finally run fsck -f (or whatever your option is to force it to run in the face of the clean flag being set), that you will have lost files. You will likely get the same effect if you do an unmount rather than a downgrade. Kirk McKusick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message