From owner-freebsd-fs@FreeBSD.ORG Tue Oct 15 11:47:20 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1040B268 for ; Tue, 15 Oct 2013 11:47:20 +0000 (UTC) (envelope-from araujobsdport@gmail.com) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8F1A92919 for ; Tue, 15 Oct 2013 11:47:19 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id l12so4856076wiv.2 for ; Tue, 15 Oct 2013 04:47:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=0f+3xdJ5Z/4nIq+6+Lf3h39Iv7FeziM6Np2SnbX+X7I=; b=Y1c57FJESa2iQRcQPmMtwhonhXxqv98eHP/p7S/6SQOWEOYxxwlApda9NjYzkLPTEj NtlVUQJd+uSPO0Qp7vAPYvTB51yqhAzw+1JqrRrFa+MhlGBl+X84m4Qfshbf8pFOFmv4 HF/L2INyvX/1yidqUuomiF0rQe58D8N8amJzMmTfJGJHYaV3JUM8+BHBn52sQtSYMvlj LfjALisCKEnFNz3S7tgri0jlR41BDG8YfSFqcadl+HZZOI9G3QCYbNoD4AKT3/44hJF8 V0GfBWbDPUa02WHsCfuVIxzmANHSUq+1DLyn2NELLpdTcuti7emYs0c1u3dAisDqyD1y jVag== MIME-Version: 1.0 X-Received: by 10.194.109.35 with SMTP id hp3mr1570644wjb.55.1381837637517; Tue, 15 Oct 2013 04:47:17 -0700 (PDT) Received: by 10.216.67.16 with HTTP; Tue, 15 Oct 2013 04:47:16 -0700 (PDT) In-Reply-To: References: <1345367028.18318718.1378328159276.JavaMail.root@uoguelph.ca> Date: Tue, 15 Oct 2013 19:47:16 +0800 Message-ID: Subject: Re: fixing "umount -f" for the NFS client From: Marcelo Araujo To: Benjamin Kaduk Content-Type: multipart/mixed; boundary=089e010d857485b28b04e8c62591 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-fs X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: araujo@FreeBSD.org List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Oct 2013 11:47:20 -0000 --089e010d857485b28b04e8c62591 Content-Type: text/plain; charset=ISO-8859-1 2013/9/5 Benjamin Kaduk > On Wed, 4 Sep 2013, Rick Macklem wrote: > > Benjamin Kaduk wrote: >> >>> >>> I think there are spare vfsops fields, so the MFC can be done in an >>> ABI-compatible way. The new routine is for optional functionality, >>> so it >>> seems fine. >>> >>> There are spares vfs ops in 10/current, but not in stable/9. An MFC will >> result in a VFS ABI change. (Since 10.0 hasn't been released yet, I didn't >> use one of the recently added spares.) >> > > Oh, right, I was looking at 10/current. > > Unless there are pressing calls for the feature in the stable branches, > it's probably best to hold off on the MFC, then. OpenAFS has encountered a > few KBI incompatibilities over the years (mostly in the networking bits, if > I remember correctly), and we can deal in the future, but not having to is > nice. > > Hello Guys, Is it possible to have it on 9-STABLE? I tried to port the changes of revision 255136 made by rmacklem@ to a 9.1-RELEASE but the bug is still there. * * Any change to make it works on 9.1, 9.2 or 9-STABLE? The patch attached is based on 9.1-RELEASE. Best Regards, -- Marcelo Araujo araujo@FreeBSD.org --089e010d857485b28b04e8c62591 Content-Type: application/octet-stream; name="nfs_purge.patch" Content-Disposition: attachment; filename="nfs_purge.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hmt2flmd0 ZGlmZiAtciBmYTM4NDIwNWJiY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IGRvIHsgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgXAorCWlmICgqKE1QKS0+bW50X29wLT52ZnNfcHVyZ2UgIT0g TlVMTCkgeyAgICAgICAgICAgICAgICAgICAgICAgICBcCisJCSgqKE1QKS0+bW50X29wLT52ZnNf cHVyZ2UpKE1QKTsgICAgICAgICAgICAgICAgICAgICAgICAgXAorCX0gICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcCit9IHdoaWxl ICgwKQorCisKICNkZWZpbmUgVkZTX0tOT1RFX0xPQ0tFRCh2cCwgaGludCkgZG8JCQkJCVwKIHsJ CQkJCQkJCQlcCiAJaWYgKCgodnApLT52X3ZmbGFnICYgVlZfTk9LTk9URSkgPT0gMCkJCQkJXAo= --089e010d857485b28b04e8c62591--