From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 23 08:58:15 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE18516A4CF for ; Fri, 23 Jan 2004 08:58:15 -0800 (PST) Received: from hotmail.com (bay1-f30.bay1.hotmail.com [65.54.245.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BAEF43D1D for ; Fri, 23 Jan 2004 08:58:15 -0800 (PST) (envelope-from rob_macgregor@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 23 Jan 2004 08:58:14 -0800 Received: from 82.33.62.105 by by1fd.bay1.hotmail.msn.com with HTTP; Fri, 23 Jan 2004 16:58:14 GMT X-Originating-IP: [82.33.62.105] X-Originating-Email: [rob_macgregor@hotmail.com] X-Sender: rob_macgregor@hotmail.com From: "Rob MacGregor" To: freebsd-hackers@freebsd.org Date: Fri, 23 Jan 2004 16:58:14 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 23 Jan 2004 16:58:14.0776 (UTC) FILETIME=[175B7F80:01C3E1D2] X-Mailman-Approved-At: Fri, 23 Jan 2004 11:01:12 -0800 Subject: Patch for MDMFS.C X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jan 2004 16:58:16 -0000 Having wanted to mount a mfs file system with a specific user and mode I discovered that mdmfs.c doesn't support such an option when called as mount_mfs. So, in a fit of lunacy/desparation I made a quick mod to it to provide such support, by disabling the automatic compat mode if another flag was given (it was either that or create mount_md). I had to use -Z as just about everything else was used, but it means that the following now works: md /var/spool/MIMEDefang mfs rw,async,-Z,-s256m,-p0700,-wmailnull:mailnull 2 0 I've attached a patch that supports this for people's thoughts and comments. I'm afraid I didn't patch the man page, primarily because it's been too long and I suspect I'd break things. If my providing a patch for the man page is important then I'll see about doing that too. I don't follow this list I'm afraid, so if you want me to see something you'll need to CC me. TIA -- Rob | What part of "no" was it you didn't understand? _________________________________________________________________ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger