Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp640732ybi; Wed, 19 Jun 2019 05:33:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqy46oplYuLoXvuOqueC14J22wpFx9LVCqGvWXKIcOKI3d/DzpAeKZRHplcgLkDLVSs9TrCJ X-Received: by 2002:a63:31d1:: with SMTP id x200mr2287668pgx.312.1560947593949; Wed, 19 Jun 2019 05:33:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560947593; cv=none; d=google.com; s=arc-20160816; b=fd66mNU1KvJL5pSZJTg3U6ggYDyTT98bzKEpO6xPXTutSNukPA/kg9xnd3lOQl7LxV h20JgALXGcCzE6/UZmX2PrMYNaMR84pILvJLFxtIdXNDXyKrJuatbF93JEz3OuhzmGVg 1Zs3L6McsKyEIZCJKt+vE8icgUlPhl+5FtE1bR2H1w1C9HfX7SqoHE+2j+KpIMWxbXxE wP6h7ODzMgSD933lddyHRK37SDZ2mnLcNqwtIAGyoG68CTrJlegLHl5wtyoqxt5nOCx3 qcgPbXov9olY07ewk7xnxRFKkTzJzSiOsWAksTS89lthNH73KIM60l8c1BbW4V5Ss0Cc HTlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=cdQVoNmmq/tpICs94VWnUfb4xhH0uHVfAUpoN+yDuN4=; b=HCvda8J0TW3XBey5cqWTQS3lLXbItxXbqObVq1zybuwOQCXCn0ILYfdIm4BCm2DLYY wYwsBlc27sg4nV24ry4+14msGWFXzGJkeyn1jztdL5nKQ+LQYlK07XO3biSgc0e2NlV3 8qe0WIX7yge9ATTCpIWO1uACwF3gU7dowV8icALy7FTwTPE3bdxQfdHA5gvV5AZXTT2e /gDBH8mveqaFNv2mBfbeJ9L3lQjKD3edIgWL3kKQFhN1YfbA+LucqBnWq766IkZVx4zn Fw+j5n8OXneo7Q8fogpKFHaIDutmfvhp3A9iwhTxx33KDKBjpRt0Ke+eiEq27HqDgV77 zY+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b12si1086782pgj.597.2019.06.19.05.32.58; Wed, 19 Jun 2019 05:33:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731943AbfFSMbG (ORCPT + 99 others); Wed, 19 Jun 2019 08:31:06 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:38243 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731845AbfFSMak (ORCPT ); Wed, 19 Jun 2019 08:30:40 -0400 Received: by mail-wr1-f66.google.com with SMTP id d18so3212502wrs.5 for ; Wed, 19 Jun 2019 05:30:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cdQVoNmmq/tpICs94VWnUfb4xhH0uHVfAUpoN+yDuN4=; b=DnWe2at0dLok+t5fMobLMYlffKBP56+wg6ra7wExpF00ynQ4XYIhPJRmCj5R4qHdBo cLwleIAHCxEuBFXXILFSLDR4fN72Fv3GLPt35pMHeE7U6Hr0xXaDRBDeBCVOa4Jj/cWR MMry++3Xd3yf3WMTUIuvwch++HBeLPT4napY83srcPD9cX6qnvv4dVvYOfmVo9tdRWnY 7zo9MDKX8vbSuUFQgYyv2UBovWSFVJIKsoBNklVLMBePOZ6IyMIXEb89GctcHPxlOBKS NnJNtTxjpEfLCOelrzqNj9dWgNYSiH4/6Gwews/Ed1tThKQQWoW64+pk9ASs2DZe+QJj lhhA== X-Gm-Message-State: APjAAAVasL69vcSgzYeH/hYjxTs+MM8VPIhjwe1OjRZCtjx0AdbLP9kw AWB+uGQ6HpfECi5DXvXvt9IQyA== X-Received: by 2002:adf:efcb:: with SMTP id i11mr37772543wrp.188.1560947438884; Wed, 19 Jun 2019 05:30:38 -0700 (PDT) Received: from miu.piliscsaba.redhat.com (catv-212-96-48-140.catv.broadband.hu. [212.96.48.140]) by smtp.gmail.com with ESMTPSA id 11sm1837513wmd.23.2019.06.19.05.30.37 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 19 Jun 2019 05:30:38 -0700 (PDT) From: Miklos Szeredi To: David Howells Cc: Al Viro , Ian Kent , linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 09/13] mqueue: don't ignore options Date: Wed, 19 Jun 2019 14:30:15 +0200 Message-Id: <20190619123019.30032-9-mszeredi@redhat.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190619123019.30032-1-mszeredi@redhat.com> References: <20190619123019.30032-1-mszeredi@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The options "sync", "async", "dirsync", "lazytime", "nolazytime", "mand" and "nomand" make no sense for the mqueue filesystem. If these options are supplied to fsconfig(FSCONFIG_SET_FLAG), then return -EINVAL instead of silently ignoring the option. Any implementation, such as mount(8) that needs to parse this option without failing should simply ignore the return value from fsconfig(). Signed-off-by: Miklos Szeredi --- ipc/mqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 557aa887996a..1e8567c20d6a 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c @@ -1577,7 +1577,7 @@ static const struct super_operations mqueue_super_ops = { static const struct fs_context_operations mqueue_fs_context_ops = { .free = mqueue_fs_context_free, - .parse_param = vfs_parse_sb_flag, + .parse_param = vfs_parse_ro_rw, .get_tree = mqueue_get_tree, }; -- 2.21.0