From owner-freebsd-hackers Wed Jan 21 01:11:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA06891 for hackers-outgoing; Wed, 21 Jan 1998 01:11:47 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ibd.dbio.ro (ibd.dbio.ro [193.231.0.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA06877 for ; Wed, 21 Jan 1998 01:11:35 -0800 (PST) (envelope-from calin@ibd.dbio.ro) Received: from localhost (calin@localhost) by ibd.dbio.ro (8.8.7/8.8.7) with SMTP id JAA05125 for ; Wed, 21 Jan 1998 09:09:42 +0200 (EET) (envelope-from calin@ibd.dbio.ro) Date: Wed, 21 Jan 1998 09:09:41 +0200 (EET) From: Calin Andrian To: freebsd-hackers@FreeBSD.ORG Subject: Re: APC BackUPS driver In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk On Tue, 20 Jan 1998, Bruce M. Walter wrote: > > I have a DPT SCSI RAID controller here whose driver uses > at_shutdown/POSTSYNC to flush it's (enormous!) internal disk buffers. > When the power goes off during this it insures lost data. I didn't get > bit by this with your code (I did it all by myself ;) but just wanted to > warn you in case you wanted to put a note in your tarball. > > I have a solution which works in all cases and supports any cable > configuration, but requires a kernel patch :( I've been looking for a way > around this and will let you know if I find one. Keep up the good work. I didn't think there could be any real trouble. I looked through the standard kernel sources and didn't find any critical devices wanting to do anything at shutdown. On the other hand, I gave it a moment's thought about patching kern_shutdown.c but quit really quick. Now that you opened my eyes I think that maybe it's time to add another option (and list of routines - or only ONE routine) to at_shutdown. Something like at_shutdown(func, arg, SHUTDOWN_FOR_REAL) ment specifically for shutting down power. I'll look into it. I'd like to work on it now that I already started this UPS matter. Later, Calin