From owner-freebsd-fs@FreeBSD.ORG Tue Aug 12 18:44:03 2008 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 010181065678 for ; Tue, 12 Aug 2008 18:44:03 +0000 (UTC) (envelope-from root@dchagin.dialup.corbina.ru) Received: from contrabass.post.ru (contrabass.post.ru [85.21.78.5]) by mx1.freebsd.org (Postfix) with ESMTP id B62838FC13 for ; Tue, 12 Aug 2008 18:44:02 +0000 (UTC) (envelope-from root@dchagin.dialup.corbina.ru) Received: from corbina.ru (mail.post.ru [195.14.50.16]) by contrabass.post.ru (Postfix) with ESMTP id 8E9BD16A65B for ; Tue, 12 Aug 2008 22:20:33 +0400 (MSD) X-Virus-Scanned: by cgpav Uf39PSi9pFi9oFi9 Received: from [10.208.17.3] (HELO dchagin.dialup.corbina.ru) by corbina.ru (CommuniGate Pro SMTP 5.1.14) with ESMTPS id 945812533 for freebsd-fs@freebsd.org; Tue, 12 Aug 2008 22:20:33 +0400 Received: from dchagin.dialup.corbina.ru (localhost.chd.net [127.0.0.1]) by dchagin.dialup.corbina.ru (8.14.2/8.14.2) with ESMTP id m7CIKX6n007146 for ; Tue, 12 Aug 2008 22:20:33 +0400 (MSD) (envelope-from root@dchagin.dialup.corbina.ru) Received: (from root@localhost) by dchagin.dialup.corbina.ru (8.14.2/8.14.2/Submit) id m7CIKSCH007145 for freebsd-fs@freebsd.org; Tue, 12 Aug 2008 22:20:28 +0400 (MSD) (envelope-from root) Date: Tue, 12 Aug 2008 22:20:28 +0400 From: Chagin Dmitry To: freebsd-fs@freebsd.org Message-ID: <20080812182028.GA7047@dchagin.dialup.corbina.ru> Mail-Followup-To: freebsd-fs@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: new file system (my experiments) 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: Tue, 12 Aug 2008 18:44:03 -0000 Hi I experiment resalization of new file system based on tmpfs - shmfs for Linux emulation layer. for the beginning has simply copied current source codes to compat/lintmps, has compiled a module and tried to mount: mount -t lintmpfs lintmpfs /compat/linux/dev/shm and has received a panic: #11 0xffffffff803b6ade in calltrap () at /usr/local/root/pub/linux_shmfs/sys/amd64/amd64/exception.S:217 ---Type to continue, or q to quit--- #12 0xffffffff802a794b in vfs_filteropt (opts=0x0, legal=0xffffffff808497e0) at /usr/local/root/pub/linux_shmfs/sys/kern/vfs_mount.c:1812 #13 0xffffffff80847015 in tmpfs_mount (mp=0xffffff0001a3a000, td=0xffffff004dcb56c0) at /usr/local/root/pub/linux_shmfs/sys/modules/lintmpfs/../../compat/lintmpf s/lintmpfs_vfsops.c:206 #14 0xffffffff802a947f in vfs_donmount (td=0xffffff004dcb56c0, fsflags=0, fsoptions=0xffffff000190e800) at /usr/local/root/pub/linux_shmfs/sys/kern/vfs_mount.c:1010 #15 0xffffffff802aaa46 in nmount (td=0xffffff004dcb56c0, uap=0xfffffffe7e7fcbf0) at /usr/local/root/pub/linux_shmfs/sys/kern/vfs_mount.c:417 #16 0xffffffff803d4e47 in syscall (frame=0xfffffffe7e7fcc80) at /usr/local/root/pub/linux_shmfs/sys/amd64/amd64/trap.c:902 #17 0xffffffff803b6ceb in Xfast_syscall () (kgdb) f 12 #12 0xffffffff802a794b in vfs_filteropt (opts=0x0, legal=0xffffffff808497e0) at /usr/local/root/pub/linux_shmfs/sys/kern/vfs_mount.c:1812 1812 { (kgdb) list *0xffffffff802a794b 0xffffffff802a794b is in vfs_filteropt (/usr/local/root/pub/linux_shmfs/sys/kern /vfs_mount.c:1818). 1813 struct vfsopt *opt; 1814 char errmsg[255]; 1815 const char **t, *p, *q; 1816 int ret = 0; 1817 1818 TAILQ_FOREACH(opt, opts, link) { 1819 p = opt->name; 1820 q = NULL; 1821 if (p[0] == 'n' && p[1] == 'o') 1822 q = p + 2; (kgdb) (kgdb) up #13 0xffffffff80847015 in tmpfs_mount (mp=0xffffff0001a3a000, td=0xffffff004dcb56c0) at /usr/local/root/pub/linux_shmfs/sys/modules/lintmpfs/../../compat/lintmpf s/lintmpfs_vfsops.c:206 206 if (vfs_filteropt(mp->mnt_optnew, lintmpfs_opts)) (kgdb) Problem in that mp->mnt_optnew is 0, but tmpfs works correctly. I shall not understand that I have missied... -- Have fun! chd