From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Olson Subject: Re: Swap support Date: Mon, 22 Apr 2002 16:03:53 -0700 (PDT) Sender: linux-8086-owner@vger.kernel.org Message-ID: <20020422160057.O88916-100000@agora.rdrop.com> References: Mime-Version: 1.0 Return-path: In-Reply-To: List-Id: Content-Type: TEXT/PLAIN; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Linux 8086 > So what you're basically saying is that all storage device drivers need > to include a facility where they can be asked the size of the drive > they're controlling, if I'm understanding that right? After all, it's > not something that could safely be left to even the most experienced > system admin to specify, so there needs to be some means for the swap > system to ask the underlying device/file what its size is. Why not just work towards having a swap partition/file system like that of Linux? Then any type of drive (hard drive, RAM drive, even floppy) could be used for swap, and the size would be known. Seems like that might make things easier in the end as well, as the same code could be used for either swap or a file system on the different types of media available. Of course raw access is fine for now, just pick a default size for testing. Dan