From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harry Kalogirou Subject: Re: Swap support Date: 23 Apr 2002 09:56:29 +0300 Sender: linux-8086-owner@vger.kernel.org Message-ID: <1019544987.479.168.camel@cool> References: <20020422160057.O88916-100000@agora.rdrop.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ajOOPVfspjq+A5HQMxqi" Return-path: In-Reply-To: <20020422160057.O88916-100000@agora.rdrop.com> List-Id: To: Dan Olson Cc: Linux 8086 --=-ajOOPVfspjq+A5HQMxqi Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable =D4=E7=ED =D4=F1=E9, 23-04-2002 =F3=F4=E9=F2 02:03, =EF/=E7 Dan Olson =DD= =E3=F1=E1=F8=E5: > > 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. >=20 > Why not just work towards having a swap partition/file system like that o= f > 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 mak= e > 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. >=20 I just said that the ramdisk driver doesn't report it's size, others report it just fine. There is a little structure that contains the size ,among other things, of the device but ramdisk doesn't seem to update it. Harry --=-ajOOPVfspjq+A5HQMxqi Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8xQWaXrjIZPA34x8RAjSyAKDQh3vOFV+zQaqHMaBe/g9LIqgMFwCgy1e5 m6nWY1ypnKTUqVio0DH/R7c= =rJR/ -----END PGP SIGNATURE----- --=-ajOOPVfspjq+A5HQMxqi--