From owner-freebsd-fs@FreeBSD.ORG Thu Apr 19 04:22:52 2007 Return-Path: X-Original-To: freebsd-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 8106E16A404 for ; Thu, 19 Apr 2007 04:22:52 +0000 (UTC) (envelope-from Glen.Leeder@nokia.com) Received: from mgw-ext14.nokia.com (smtp.nokia.com [131.228.20.173]) by mx1.freebsd.org (Postfix) with ESMTP id 0A5B613C4BC for ; Thu, 19 Apr 2007 04:22:51 +0000 (UTC) (envelope-from Glen.Leeder@nokia.com) Received: from esebh105.NOE.Nokia.com (esebh105.ntc.nokia.com [172.21.138.211]) by mgw-ext14.nokia.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id l3J445oq014080 for ; Thu, 19 Apr 2007 07:04:18 +0300 Received: from siebh101.NOE.Nokia.com ([172.30.195.27]) by esebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 19 Apr 2007 07:04:12 +0300 Received: from syebe101.NOE.Nokia.com ([172.30.128.65]) by siebh101.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 19 Apr 2007 12:04:10 +0800 Received: from [172.30.10.229] ([172.30.10.229]) by syebe101.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 19 Apr 2007 14:04:09 +1000 Message-ID: <4626EA38.6010703@nokia.com> Date: Thu, 19 Apr 2007 14:04:08 +1000 From: Glen User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 19 Apr 2007 04:04:09.0320 (UTC) FILETIME=[C7F9D680:01C78237] X-eXpurgate-Category: 1/0 X-eXpurgate-ID: 149371::070419070418-36C48BB0-2705F2BA/0-0/0-0 X-Nokia-AV: Clean Subject: Fwd: 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 04:22:52 -0000 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/ 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. 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. 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. * Security audit (not sure what's required for this) * Quota support, ACL work is pending * Two data I/O mechanisms are benchmarked, deciding which one to use is still pending I may be looking to address these items over the coming weeks. Regards, Glen