From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3072C432C0 for ; Fri, 29 Nov 2019 11:13:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C0F78217BC for ; Fri, 29 Nov 2019 11:13:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="grK9S56o" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726778AbfK2LNA (ORCPT ); Fri, 29 Nov 2019 06:13:00 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:60200 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725892AbfK2LM7 (ORCPT ); Fri, 29 Nov 2019 06:12:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575025978; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bxScUU+tLhB/hy64e2JXaID7fYPwFs1dmqeZUURfU1Y=; b=grK9S56op4D4kvZ0Z4TrwspqLYeF/q+OF+H3t3a9dLUl1VMsL1ApNdKB/eFvLFg4TH7yFN eW8B2iDR7jHtfcRmxJBMGV3t6QWjh8z9/E2ab6p3nK7tDP0D5VexN2kQcInorKOXaxIzTE udEwoEWtu3CXu2V69J2kzJJSAmWvqrs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-173-GquHScysM--BQVo7FW-s3A-1; Fri, 29 Nov 2019 06:12:55 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 56E22107ACC7; Fri, 29 Nov 2019 11:12:53 +0000 (UTC) Received: from localhost (dhcp-12-102.nay.redhat.com [10.66.12.102]) by smtp.corp.redhat.com (Postfix) with ESMTP id 92A1360903; Fri, 29 Nov 2019 11:12:52 +0000 (UTC) Date: Fri, 29 Nov 2019 19:20:54 +0800 From: Zorro Lang To: Yang Xu Cc: ltp@lists.linux.it, linux-fsdevel@vger.kernel.org Subject: Re: [LTP] [PATCH] syscalls/newmount: new test case for new mount API Message-ID: <20191129112053.GF4601@dhcp-12-102.nay.redhat.com> Mail-Followup-To: Yang Xu , ltp@lists.linux.it, linux-fsdevel@vger.kernel.org References: <20191128173532.6468-1-zlang@redhat.com> <9c487d75-0de0-af8f-a439-d3ce9d965808@cn.fujitsu.com> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-MC-Unique: GquHScysM--BQVo7FW-s3A-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Fri, Nov 29, 2019 at 01:29:35PM +0800, Yang Xu wrote: >=20 >=20 > on 2019/11/29 11:39, Yang Xu wrote: > > --- /dev/null > > +++ b/include/lapi/newmount.h > > @@ -0,0 +1,106 @@ > > +/* > > + * Copyright (C) 2019 Red Hat, Inc. All rights reserved. > > + * > > + * This program is free software; you can redistribute it and/or > > + * modify it under the terms of the GNU General Public License as > > + * published by the Free Software Foundation; either version 2 of > > + * the License, or (at your option) any later version. > > + * > > + * This program is distributed in the hope that it would be useful, > > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > > + * GNU General Public License for more details. > > + * > > + * You should have received a copy of the GNU General Public License > > + * along with this program; if not, write the Free Software Foundation= , > > + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA > > + */ > > + > > +#ifndef __NEWMOUNT_H__ > > +#define __NEWMOUNT_H__ > > + > > +#include > > +#include > > +#include "lapi/syscalls.h" > > + > > +#if !defined(HAVE_FSOPEN) > When we run make autotools and ./configure, this macro is in > "include/config.h". You should include this header file like other lapi > files. Oh, thanks, I refered to the include/lapi/stat.h file, it doesn't include config.h, I don't know if it's needed. Thanks, Zorro > > +static inline int fsopen(const char *fs_name, unsigned int flags) > > +{ >=20 >=20