Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp588886pxy; Fri, 30 Apr 2021 11:43:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqVOgFB6IooNTa2gCQIc7atpWCYFm7QYa10KBz4bQwpiU3gfOh0C2FDbtadFWnJQN4mAuR X-Received: by 2002:a17:902:8c92:b029:e8:fa73:ad22 with SMTP id t18-20020a1709028c92b02900e8fa73ad22mr6463354plo.66.1619808239146; Fri, 30 Apr 2021 11:43:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619808239; cv=none; d=google.com; s=arc-20160816; b=sJI0cVxNNKRTnJRGbbbmF9vHnW69r2YICPei4PdDJlrlLdiC4U9AIfKwe5dEAD00KH z/KfMkbrB0TN28cF2qL9mMwzuRjLQILN5+/ho0uaytuMvfHO1MXPVmKQ6sJPHjKoL2v4 aQIo0wsWgxRpIU4e5L4cs75sIZThh/EO3SPzf2qP8V9yXW+piQ5YqOWlK7kSppMRh03y +dErAmzFsOFte+WmrLcQGLMAaIYqvsLvU+SI0YgXDXZ23r6PplxYTicLX4UIFMxhGR43 307vebWqpfX1W4K1rZfRcpEZTctpfNJJq8VdZxmDV98SxEUzx3eBigZNAxwWdAmEFq8q UYiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=dBsvXDXquw1zBTgS0vLX+6A7jTM++QDpHc4jhzohuzw=; b=tF78VkZ8DXV3OhKAidplyC7T1Jm4uedrBxVvbvlS5Bed5afdPJNIaf9XzA7yXLoAE4 m9YjNatUADlWchbGPpHALBfd9sE1/4C1C686Y+7zuBkrAIqhdDfMwlITHorApyr5BQhR cP4PY5mZjKxkU54BfdAbul37TN+AjSDhOQOE1XAnBLsT4Dk0oRX8hcJJXU13A+g3+KvI pevAVDrkODEZxrvhGOo1CmP/6CgX6Oybo0ghHWOXc/iXHCPhHMHPP2GaTvKa6DNXywcL ymQF/mewnDh+VMrRCO+gfGuhLVn1z+ug8JvgDz/wcKt+lM61may3fm5NFFQXF97W88ZV IGIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BDlNnYwK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d21si4953092pgv.176.2021.04.30.11.43.45; Fri, 30 Apr 2021 11:43:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BDlNnYwK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231140AbhD3SoD (ORCPT + 99 others); Fri, 30 Apr 2021 14:44:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbhD3SoC (ORCPT ); Fri, 30 Apr 2021 14:44:02 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C614DC06174A; Fri, 30 Apr 2021 11:43:13 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id b19-20020a05600c06d3b029014258a636e8so2172377wmn.2; Fri, 30 Apr 2021 11:43:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to; bh=dBsvXDXquw1zBTgS0vLX+6A7jTM++QDpHc4jhzohuzw=; b=BDlNnYwKejPczZXCKknRSlfOlr5NC+OJmcPLbve+nFGD4CRYj6lEQ2RUPBww4XZ/qQ xpPe0qvnGqa0mArabnez5buWksZTax9JAhLtEcZZ3CJ5gi2SMsIn+ddS1/UiIgfnHJb/ TXWY+H46MKIxQ86p+11BXNJFsEDnLeiBvAqgn97FDgtTVK1z6ydDO+4yZzIWVs5lW3ru 5togt3KBB67AIkNjFb5Ar4Ng05NIocrzMELdBkk+ikohu9ZOWLY5twy8Al4HBJyV9i+F 8Os/lVlxRJhMHDcTo6smuHC5Sg+M1QIWsvHei39rNMWv446C6HBssYkh4Ti8eibSdRqU 3XDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to; bh=dBsvXDXquw1zBTgS0vLX+6A7jTM++QDpHc4jhzohuzw=; b=O3KPgmQeo1hoiH2r/7X+5Uxtc69r2cCij7sI1O52urvbktCkt+1SYVD7oxxoxgx0cz +qH0cMWkxL9Lt3QBRaH6P9JI7LNUxfLyuA8IYui07eb+JXW9RhWtAi3iNAiB/7i2dIKW qIkEFQXbHMplagGzEvklpbLsXhqksNzE1eK1ecIt0eZumXeJ5B1dHM4r9LZl0gwP+8C8 mGO00E2HR8jQ+ms76R2FolquDF8n61OAH2+P82OY1JCSjm3JoSPAhjRYe/IVtmRTD29h rqnNdazYxP1GsytaqbkcbA4OGYsK7gEEfeZP1Zzvn6hQQBs0lTVU1GVrWtDL/7HOhQT/ 53lg== X-Gm-Message-State: AOAM5302VeCUZ9vZqC8+e6jpsI6VV7Tk+YcDDgDhPSSsoVMioFLG7YUo Tsy8KSCuPtNItsiO/0D7VMU= X-Received: by 2002:a7b:ce14:: with SMTP id m20mr4063683wmc.179.1619808192496; Fri, 30 Apr 2021 11:43:12 -0700 (PDT) Received: from pevik ([62.201.25.198]) by smtp.gmail.com with ESMTPSA id o17sm3603200wrg.80.2021.04.30.11.43.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Apr 2021 11:43:12 -0700 (PDT) Date: Fri, 30 Apr 2021 20:43:09 +0200 From: Petr Vorel To: Heiko Thiery Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Stephen Hemminger Subject: Re: [PATCH iproute2-next v2] lib/fs: fix issue when {name,open}_to_handle_at() is not implemented Message-ID: Reply-To: Petr Vorel References: <20210430062632.21304-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210430062632.21304-1-heiko.thiery@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Heiko, ... > +++ b/lib/fs.c > +int name_to_handle_at(int dirfd, const char *pathname, > + struct file_handle *handle, int *mount_id, int flags) > +{ > + return syscall(name_to_handle_at, 5, dirfd, pathname, handle, I overlooked this in v1. name_to_handle_at must be replaced by __NR_name_to_handle_at: (name_to_handle_at is the function name, not a syscall number). It also requires to include : #include ... return syscall(__NR_name_to_handle_at, 5, dirfd, pathname, handle, mount_id, flags); > + mount_id, flags); > +} > + > +int open_by_handle_at(int mount_fd, struct file_handle *handle, int flags) > +{ > + return syscall(open_by_handle_at, 3, mount_fd, handle, flags); And here needs to be __NR_open_by_handle_at Kind regards, Petr > +} > +#endif > + > /* return mount path of first occurrence of given fstype */ > static char *find_fs_mount(const char *fs_to_find) > {