From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David H. Lynch Jr." Subject: Writing a VFS driver Date: Sun, 07 Jan 2007 17:36:48 -0500 Message-ID: <45A17600.6090004@dlasys.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from 24.152.213.223.res-cmts.eph.ptd.net ([24.152.213.223]:34236 "EHLO 24.152.213.223.res-cmts.eph.ptd.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965235AbXAGWh5 (ORCPT ); Sun, 7 Jan 2007 17:37:57 -0500 Received: from l-dhlii.dlasys.net ([206.223.20.141]:3284) by mx.dlasys.net with esmtpa (Exim 4.63 #1 (Debian)) id 1H3hSd-0005Mm-7U by authid with plain_server for ; Sun, 07 Jan 2007 18:29:55 -0500 To: linux-fsdevel@vger.kernel.org Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org I am trying to write a vfs driver for a fairly simple filesystem. I have been looking for a good sample to start from an most of what I have seen is either too simple or too complex. I do not need subdirectories, hard links, symbolic links, ACL's. I am supporting an existing ROM filesystem that has no superblock, Files start with a directory header that has the filename and other attributes as text strings, the header is followed by the file data. The data runs contiguously until the end of file and is then 0xff filled to the next 2000h boundary. I already have a working mtd block device to access the ROM (actually write protected flash) I am looking for something really simple to start from, but also something that actually uses an underlying block device. All the "tutorial" examples I have tripped over (rkfs, ols2006 samplefs) seem to impliment in memory filesystems - unless I am mis-understanding how VFS to block device mapping works. -- Dave Lynch DLA Systems Software Development: Embedded Linux 717.627.3770 dhlii@dlasys.net http://www.dlasys.net fax: 1.253.369.9244 Cell: 1.717.587.7774 Over 25 years' experience in platforms, languages, and technologies too numerous to list. "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." Albert Einstein