From owner-freebsd-fs@FreeBSD.ORG Mon Jun 6 03:31:48 2005 Return-Path: X-Original-To: fs@FreeBSD.ORG Delivered-To: freebsd-fs@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2819316A41C; Mon, 6 Jun 2005 03:31:48 +0000 (GMT) (envelope-from sobomax@web.portaone.com) Received: from www.portaone.com (web.portaone.com [195.70.151.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CA5843D4C; Mon, 6 Jun 2005 03:31:46 +0000 (GMT) (envelope-from sobomax@web.portaone.com) Received: from www.portaone.com (localhost [127.0.0.1]) by www.portaone.com (8.12.11/8.12.11) with ESMTP id j563VjQC081205 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 6 Jun 2005 05:31:45 +0200 (CEST) (envelope-from sobomax@web.portaone.com) Received: (from sobomax@localhost) by www.portaone.com (8.12.11/8.12.11/Submit) id j563Vj8F081204; Mon, 6 Jun 2005 05:31:45 +0200 (CEST) (envelope-from sobomax) Date: Mon, 6 Jun 2005 05:31:45 +0200 From: Maxim Sobolev To: Suleiman Souhlal Message-ID: <20050606033145.GA80739@www.portaone.com> References: <82ACAD58-B179-44E2-852F-60F25C0BBBC1@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <82ACAD58-B179-44E2-852F-60F25C0BBBC1@FreeBSD.org> User-Agent: Mutt/1.5.8i X-Virus-Scanned: ClamAV 0.83/915/Sun Jun 5 20:15:22 2005 on www.portaone.com X-Virus-Status: Clean Cc: current@FreeBSD.ORG, fs@FreeBSD.ORG Subject: Re: [PATCH] IFS: Inode FileSystem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jun 2005 03:31:48 -0000 Are there any real users of this FS? If my memory serves, Adrian's plan was to add IFS support into the squid. I wonder if it had happened and whether or not it actually provides any real performance benefit. -Maxim On Sun, Jun 05, 2005 at 02:03:10PM -0400, Suleiman Souhlal wrote: > Hi, > > IFS is basically FFS, minus the namespace. Files are referenced by > their inode number, thus making file lookup very fast. This is very > useful for things that keep the file names in their own database > anyway, such as web or news caches. > > Files are created by opening the "newfile" file: > > fd = open("newfile", O_CREAT|O_RDWR, 0644); > fstat(fd, &st); > printf("new file is %d\n", (int)st.st_ino); > > Once a file has been created it is possible to accessing by just > opening it the file named after the inode number. For example: > > fd = open("5", O_RDWR); > > This filesystem was imported back in the year 2000, by Adrian Chadd > (adrian@) and removed in 2002, before the introduction of UFS2 in > order not to slow down the development of UFS2. > > I have fixed it so that it is usable on -CURRENT. You can find the > kernel bits at http://people.freebsd.org/~ssouhlal/testing/ > ifs-20050605-2.diff and the userland bits at http:// > 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/ > mount_ufs to src/sbin/mount_ifs, before applying the userland patch). > > You can use the regular newfs(8) to create such a filesystem. You > might also want to specify the -n option, so that the .snap directory > is not created at newfs, since directories are useless, in IFS. If > you don't you'll end up with a useless inode, which is not really a > big deal. > Once the filesystem is created, you can mount it with mount_ifs. > > You can find additional comments in src/sys/ufs/ifs/README in the patch. > > Is anyone interested in seeing this committed? > > Bye, > -- > Suleiman Souhlal | ssouhlal@vt.edu > The FreeBSD Project | ssouhlal@FreeBSD.org > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > >