From owner-freebsd-fs@FreeBSD.ORG Thu Apr 19 08:02:26 2007 Return-Path: X-Original-To: fs@freebsd.org Delivered-To: freebsd-fs@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C7BBA16A400 for ; Thu, 19 Apr 2007 08:02:26 +0000 (UTC) (envelope-from howard0su@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.225]) by mx1.freebsd.org (Postfix) with ESMTP id 885CB13C458 for ; Thu, 19 Apr 2007 08:02:26 +0000 (UTC) (envelope-from howard0su@gmail.com) Received: by nz-out-0506.google.com with SMTP id r28so397834nza for ; Thu, 19 Apr 2007 01:02:26 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ryYd2m2bDLZtoC7RB4cwpxGVFQmo/gIvp+QAPxQm3nsXZ57I7zYIf5M3ZOX6vxwdmXO+MTNUUO2DeNdXv9I7RCFyIhvuOaqhaO/sKhYTHTb/GLILIX6Z6tgtsWpmPUAexpHkOYh5OztbR2oR6RUDegEKXck2ovZBv+JbnO4KL3k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cK/qM86Lx321QdzbOqEQsBB3ef6/NXwQtOJQg47W4R/Crn35K27UdlkXw/ynKWORssGbweVcPKmzli0WqSpO8NCKXqWKboA3FV56PycFJEfWXyjWLqFavH3ndYU+7aoPjJ4dK6CsayQvtp6kL58XQWAs7jR795n+gbcE+9KyNro= Received: by 10.114.176.1 with SMTP id y1mr623922wae.1176969745550; Thu, 19 Apr 2007 01:02:25 -0700 (PDT) Received: by 10.114.241.12 with HTTP; Thu, 19 Apr 2007 01:02:25 -0700 (PDT) Message-ID: Date: Thu, 19 Apr 2007 01:02:25 -0700 From: "Howard Su" To: Glen , fs@freebsd.org In-Reply-To: <4626F339.5040602@nokia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4626EA38.6010703@nokia.com> <4626F339.5040602@nokia.com> Cc: Subject: Re: handle special file type in tmpfs 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: Thu, 19 Apr 2007 08:02:26 -0000 > Glen wrote: > > Hi Howard, > > > > May I ask if you are using the tmpfs port by Rohit Jalan? A link to > > his work can be found on this page: > > http://www.freebsd.org/projects/ideas/ Yes. The ideas page bring me to this working. > > > > I am currently using the BETA3 tmpfs port and have experienced an > > issue with the FIFO support for tmpfs. I believe that this is because > > the tmpfs_fifoops.c specifies an incomplete vnode operations vector > > (vop_vector) for tmpfs. The vop_vector allows you to specify all the > > vnode operations for a particular filesystem. I already fix that in my WIP. you can check the code in the perforce. http://perforce.freebsd.org/depotTreeBrowser.cgi?FSPC=//depot/user/howardsu/truss/sys/fs/tmpfs My working currently based on Beta3. > > > > If you check out ufs/ufs_vnops.c it specifies a global vop vector for > > most file types and then a different vop_vector for FIFO file types. > > Rohit's tmpfs port does a similar thing. I have populated the tmpfs > > vop_vector in this port and FIFO seems to work a better although I > > haven't fully tested it yet. Maybe this information helps you get to > > a solution. You are right. > > > > I am keen to get tmpfs into the Freebsd tree and have been > > communicating with Rohit regarding this. He currently doesn't have > > time to do further improvements and I have offered to help get this > > tmpfs port into Freebsd. I am awaiting a response to this (we only > > started talking last week). > > > > This port has a few outstanding items: > > > > * MP safeness (some locking may be required). I have started testing > > tmpfs on an MP system. Can you try my WIP?(I can send you the patch against -Current) I add some basic locking stuffs. I am glad to work with you together. Now I don't have a MP system to test. > > * Security audit (not sure what's required for this) > > * Quota support, ACL work is pending Do we really need this? What's user scenerio to use Quota or ACL for a TMPFS? I can be conveienced. > > * Two data I/O mechanisms are benchmarked, deciding which one to use > > is still pending You can help. I really help to see you have interesting. It will be better if we can work together. Besides the locking & fifo fixing, I also working on the following tasks: 1. Catch up the main tree changes related FS after Rohit post his patch. 2. Port regression test cases 3. Remove un-named union so that tmpfs can build in a kernel -- -Howard