From owner-freebsd-current@FreeBSD.ORG Wed Jul 4 19:15:37 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E5BF01065672; Wed, 4 Jul 2012 19:15:37 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7F0AC8FC14; Wed, 4 Jul 2012 19:15:36 +0000 (UTC) Received: by lbon10 with SMTP id n10so13561785lbo.13 for ; Wed, 04 Jul 2012 12:15:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=xc3N3/5bfTL3ukLflXlk1zMLE1kiGtwB09SZRagzS6s=; b=ktieQwlBKORf4uBtqaMCyXpLzr0jJFnJJ64Ev+77ztD1MB23JdeRbGgE91dQfNhdDa 7RmMHsFXocPaewrR5D8cbCqTYDb2Fbjau9ig2DtHBmbvoi2o1H/+54KSCogw33AqJVFT x4lMwoMiV4YrYqAwsRZgs8gqooL7wkZfCekSduNqQi2GFYd4M1HubHqqXTE92dW+esm3 A6unC3ktUPTVtcF6GIe490pG1Ea7LCLsH08wVJ9P6HQawhPhtnHvjT+bahumJLP32fM7 DjmAPdlFUQQveSqLHUKnoQQ3JuRNSncCMX3zWH+vidrPbLySEhsKrhpbogM8me1Jas2I ue6Q== MIME-Version: 1.0 Received: by 10.112.11.100 with SMTP id p4mr10649516lbb.35.1341429335301; Wed, 04 Jul 2012 12:15:35 -0700 (PDT) Sender: asmrookie@gmail.com Received: by 10.112.27.65 with HTTP; Wed, 4 Jul 2012 12:15:35 -0700 (PDT) In-Reply-To: References: Date: Wed, 4 Jul 2012 20:15:35 +0100 X-Google-Sender-Auth: 1mjJI24TgxwgjsoHfdJ21le5nI8 Message-ID: From: Attilio Rao To: FreeBSD FS , freebsd-current@freebsd.org, Peter Holm , =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= , Vivien Botton Content-Type: text/plain; charset=UTF-8 Cc: Subject: Re: MPSAFE VFS -- List of upcoming actions X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jul 2012 19:15:38 -0000 2012/6/29 Attilio Rao : > As already published several times, according to the following plan: > http://wiki.freebsd.org/NONMPSAFE_DEORBIT_VFS > I still haven't heard from Vivien or Edward, anyway as NTFS is basically only used RO these days (also the mount_ntfs code just permits RO mounting) I stripped all the uncomplete/bogus write support with the following patch: http://www.freebsd.org/~attilio/ntfs_remove_write.patch This is an attempt to make the code smaller and possibly just focus on the locking that really matter (as read-only filesystem). On some points of the patch I'm a bit less sure as we could easily take into account also write for things like vaccess() arguments, and make easier to re-add correct write support at some point in the future, but still force RO, even if the approach used in the patch is more correct IMHO. As an added bonus this patch cleans some dirty code in the mount operation and fixes a bug as vfs_mountedfrom() is called before real mounting is completed and can still fail. The patch has been kindly tested by pho@. If none has objections I will commit it friday evening. Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein