From owner-freebsd-current@FreeBSD.ORG Mon Jun 6 16:40:31 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97E8F16A41C; Mon, 6 Jun 2005 16:40:31 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A80B43D48; Mon, 6 Jun 2005 16:40:31 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j56GeUQJ024411; Mon, 6 Jun 2005 09:40:30 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j56GeU5f024409; Mon, 6 Jun 2005 09:40:30 -0700 Date: Mon, 6 Jun 2005 09:40:30 -0700 From: Brooks Davis To: Suleiman Souhlal Message-ID: <20050606164030.GB22790@odin.ac.hmc.edu> References: <82ACAD58-B179-44E2-852F-60F25C0BBBC1@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xXmbgvnjoT4axfJE" Content-Disposition: inline In-Reply-To: <82ACAD58-B179-44E2-852F-60F25C0BBBC1@FreeBSD.org> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: current@freebsd.org, fs@freebsd.org Subject: Re: [PATCH] IFS: Inode FileSystem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jun 2005 16:40:31 -0000 --xXmbgvnjoT4axfJE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 05, 2005 at 02:03:10PM -0400, Suleiman Souhlal wrote: > Hi, >=20 > IFS is basically FFS, minus the namespace. Files are referenced by =20 > their inode number, thus making file lookup very fast. This is very =20 > useful for things that keep the file names in their own database =20 > anyway, such as web or news caches. >=20 > Files are created by opening the "newfile" file: >=20 > fd =3D open("newfile", O_CREAT|O_RDWR, 0644); > fstat(fd, &st); > printf("new file is %d\n", (int)st.st_ino); >=20 > Once a file has been created it is possible to accessing by just =20 > opening it the file named after the inode number. For example: >=20 > fd =3D open("5", O_RDWR); >=20 > This filesystem was imported back in the year 2000, by Adrian Chadd =20 > (adrian@) and removed in 2002, before the introduction of UFS2 in =20 > order not to slow down the development of UFS2. >=20 > I have fixed it so that it is usable on -CURRENT. You can find the =20 > kernel bits at http://people.freebsd.org/~ssouhlal/testing/=20 > ifs-20050605-2.diff and the userland bits at http://=20 > people.freebsd.org/~ssouhlal/testing/ifs-20050605-userland-2.diff . > (You need to copy src/sbin/fsck_ffs to src/sbin/fsck_ifs and src/sbin/=20 > mount_ufs to src/sbin/mount_ifs, before applying the userland patch). >=20 > You can use the regular newfs(8) to create such a filesystem. You =20 > might also want to specify the -n option, so that the .snap directory =20 > is not created at newfs, since directories are useless, in IFS. If =20 > you don't you'll end up with a useless inode, which is not really a =20 > big deal. > Once the filesystem is created, you can mount it with mount_ifs. >=20 > You can find additional comments in src/sys/ufs/ifs/README in the patch. >=20 > Is anyone interested in seeing this committed? I would very much like to see this committed. The vast majority of high performance computing data management systems could strongly benefit from a system like IFS. If it's in the tree and usable in a shipping release, that gives us a powerful edge in convincing people to use FreeBSD as a backed for such a system. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --xXmbgvnjoT4axfJE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD4DBQFCpHxzXY6L6fI4GtQRAvWPAJ4/VfOFmgzhvpFLW+i4PVFka3V/OgCYt2VT ZhlnhX9bXIpCWOnUEMnHqA== =MngO -----END PGP SIGNATURE----- --xXmbgvnjoT4axfJE--