From owner-freebsd-fs@FreeBSD.ORG Fri Jul 2 18:42:39 2004 Return-Path: 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 9491816A4CE for ; Fri, 2 Jul 2004 18:42:39 +0000 (GMT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AB8F43D41 for ; Fri, 2 Jul 2004 18:42:39 +0000 (GMT) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id C2EC35C856; Fri, 2 Jul 2004 11:40:20 -0700 (PDT) Date: Fri, 2 Jul 2004 11:40:20 -0700 From: Alfred Perlstein To: fs@freebsd.org Message-ID: <20040702184020.GC95729@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: tweaking mounted filesystems by fsid X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 18:42:39 -0000 Hi. The last year or so I spent bringing file system improvements into OS X. The mechanism I used to tweak filesystems was sysctl. I created a node that would route a request to a filesystem based on a fsid. This would allow tweaking of filesystems without entering the namespace. I realize we have the nmount syscall. I have several questions about it. 1) can I muck with it so that it functions like unmount(2) by taking the "FSID:val0:val1" parameter in order to properly route requests? 2) what if i want to pass binary data? I can do that right? I assume by just passing the binary gook via the value of the key value pair. Any comments? On of the issues I have is that I need the call to be callable from both inside and outside of the kernel, I'm guessing this can be taken care of by the internal options... Ideas people? Use nmount or sysctl? FYI, the stuff that depends on this is filesystem mobility, filesystem notifications and autofs. -- - Alfred Perlstein - Research Engineering Development Inc. - email: bright@mu.org cell: 408-480-4684