From owner-svn-src-all@FreeBSD.ORG Mon Jan 16 11:54:00 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 644681065670; Mon, 16 Jan 2012 11:54:00 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8E6D68FC16; Mon, 16 Jan 2012 11:53:59 +0000 (UTC) Received: by eaai10 with SMTP id i10so466701eaa.13 for ; Mon, 16 Jan 2012 03:53:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:organization:references:sender:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=leUqLaXRQpqQLpQfMMokKQsR4DrvwoCIHpGJHvTITGw=; b=COpcuxrunVEyRK5gjmPBxMVYtPnW6pK3eC85bqD1Gy+8Q0U1C2KKSHyMJBa3sOnxVM 1Qxb+/PJHWMmquTf5xg68zQ/oEZAicEM2wZtC/ORg2LAgBtt9ynFbF1dORdCkrIC6Kd5 90o6YrhvfKtRbM1R6SET7bPuj0JU9mkDdRu1Q= Received: by 10.213.112.203 with SMTP id x11mr141221ebp.59.1326714838242; Mon, 16 Jan 2012 03:53:58 -0800 (PST) Received: from localhost ([94.27.39.186]) by mx.google.com with ESMTPS id e12sm71386301eea.5.2012.01.16.03.53.55 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 Jan 2012 03:53:56 -0800 (PST) From: Mikolaj Golub To: Kevin Lo Organization: TOA Ukraine References: <201201161025.q0GAPNDq027693@svn.freebsd.org> Sender: Mikolaj Golub Date: Mon, 16 Jan 2012 13:53:53 +0200 In-Reply-To: <201201161025.q0GAPNDq027693@svn.freebsd.org> (Kevin Lo's message of "Mon, 16 Jan 2012 10:25:23 +0000 (UTC)") Message-ID: <86mx9nsw1a.fsf@in138.ua3> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r230208 - head/sys/fs/tmpfs X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jan 2012 11:54:00 -0000 On Mon, 16 Jan 2012 10:25:23 +0000 (UTC) Kevin Lo wrote: KL> Author: kevlo KL> Date: Mon Jan 16 10:25:22 2012 KL> New Revision: 230208 KL> URL: http://svn.freebsd.org/changeset/base/230208 KL> Log: KL> Add nfs export support to tmpfs(5) KL> KL> Reviewed by: kib KL> Modified: KL> head/sys/fs/tmpfs/tmpfs_vfsops.c KL> Modified: head/sys/fs/tmpfs/tmpfs_vfsops.c KL> ============================================================================== KL> --- head/sys/fs/tmpfs/tmpfs_vfsops.c Mon Jan 16 09:53:24 2012 (r230207) KL> +++ head/sys/fs/tmpfs/tmpfs_vfsops.c Mon Jan 16 10:25:22 2012 (r230208) KL> @@ -150,10 +150,8 @@ tmpfs_mount(struct mount *mp) KL> return (EINVAL); KL> KL> if (mp->mnt_flag & MNT_UPDATE) { KL> - /* XXX: There is no support yet to update file system KL> - * settings. Should be added. */ KL> - KL> - return EOPNOTSUPP; KL> + if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0)) KL> + return (0); Shouldn't we still return EOPNOTSUPP here? KL> } KL> KL> vn_lock(mp->mnt_vnodecovered, LK_SHARED | LK_RETRY); -- Mikolaj Golub