Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1278983lfc; Wed, 1 Jun 2022 14:01:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsB8xJPR3GPMa+hLHgWlcsgg6QwRg80mwDq11NtatlzTK1iIz2E+KwpZ0ET3bgTXTKwRPx X-Received: by 2002:a17:90b:4c06:b0:1e3:17fa:e387 with SMTP id na6-20020a17090b4c0600b001e317fae387mr15770250pjb.53.1654117294365; Wed, 01 Jun 2022 14:01:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654117294; cv=none; d=google.com; s=arc-20160816; b=zapcc9Gp7a2OHkrQfkisxLSWIoeCXOvK1IaXT4mmJ+n+kt4PXFjoH27ujbGDE4LspR CslHqb8YoUG2O2x8IgXgSujgrj/uinbwuBL9A1lBzm8ktVzyRCvt/wJETHolOFGmjrB2 cVtXPKT0Bjlc52v63xPualZJvHV1pAzXAmJ/05xc8mwgLEeMt1zVwL32MdZLqw5/+JUg mYHaebteK+EaN5H7SdMnLy3AYsk6XQrZy8a3R91fKrH86+7kJF0YxOb2uYNnaCuCsODX oT3WcqiBJIajesNyYXJ8Y5US63Rz/Rpbt+ELsLt6yAgQZLfdyE3MoQ6bez79PWjUAILn cHAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3jqFKxuM0VdeJ/MyByEyz+wyq2IRR/BBVsyEiN0wEB8=; b=05ELa1dTJgldCeFylogfKI+g5QJJ8x1ayFXswgfZuVpUVpo4eSD06mOLlte/f3L3U2 dLUp5+mRnpIcrJjslZhU1ztdFg/cFKi7t9q1ROodgIpKLhxL+4cq9YfJtMTqtvBA4noW glDszJQeGXSOzgNrs6vzBHVMNT6qR0xaGoEbucc/raZiUgmrUOyp0AiBPjAaNzWo8sfv HRGu1mLjgpGI52AHtTb1sKiGaADEVsJEMLGGGCdPVD+L/QYkr5Bgo6NbihRzhpBt0kfx U21VuTz39LWaY4hO33lD93DWdQh3YaHbgASkElGDjT8FtGV+Czr23g3/L7AjY9ErNTn7 fpBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=WEETQz6q; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id kx4-20020a17090b228400b001e2d8f841f3si3068839pjb.68.2022.06.01.14.01.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 14:01:34 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=WEETQz6q; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AAED32DABDC; Wed, 1 Jun 2022 13:06:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347183AbiEaS6V (ORCPT + 99 others); Tue, 31 May 2022 14:58:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345970AbiEaS6T (ORCPT ); Tue, 31 May 2022 14:58:19 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28F465623B for ; Tue, 31 May 2022 11:58:17 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id h5so11809243wrb.0 for ; Tue, 31 May 2022 11:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=3jqFKxuM0VdeJ/MyByEyz+wyq2IRR/BBVsyEiN0wEB8=; b=WEETQz6q/FWDtvpNTT4MeaxxeAJrhldu2uL5U/wiI5BGoF0Gn/2MkEqnlWTohkqfNL zUwt7LiMyWJxJS0M5FUEsSiecRclKm84gYN+DeZ+Ef/BbWtLVf+kpvoUai3Kp5phExa8 NEJuRtL0p1mu6H4M1zWhFFLRldtWTBvdeX33agqaG5394MPaPY91cQ3/UYn7U4b2Kjr9 2ulNax3VDLzItei+PR72dqILLCSQBS8Zn3XeMEwikeWWodb7dCLPPKcqytvor/+I8rj0 mpEeMSYVX43ZatslYop6VK2XHssgPqsdwuoRTRCtwAd55TAj4ZWVh6CKxHuJKPkFhs59 lmzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=3jqFKxuM0VdeJ/MyByEyz+wyq2IRR/BBVsyEiN0wEB8=; b=45nk9rsnOZnBUuAbSAGkOQNxi18B49CsMrYwXViAOn5WUi4NjOFPCGqA6TMQMDrRzC VFcKyHniNI0mpf/lu/31+twjukc60ixB3fXVp0PcqmIFvAMANo+alNeU2WXi2oC6FoKR EzlimK9gflj9wLWjmqh9kT5loHy+3wzgl5I+NW/lt1vleH3RrdFjJr74kEUE+hKRN7VI RaWGnDoqVZqrTVWYNcPsuUzu05bGgAMoE/65bnbFhdeq7w2JiOZHW7SjS32zSfAeSZEF Mr0SuMuDVbjHVVpbKjmJ3ffu5wio/CDQsE67Y/yVGU4muay3S/NCN6nsuzgzJQR/t7Fk Qyeg== X-Gm-Message-State: AOAM532POqOH8uquqiCJ1EQabjFQM1kp7oW+LfTWS6kZCaxuTHH5YPfk om0dUtpSF6Xnv0BPLhTTuA7Cjg== X-Received: by 2002:a05:6000:1542:b0:20f:f4fc:4cd3 with SMTP id 2-20020a056000154200b0020ff4fc4cd3mr29118402wry.299.1654023495617; Tue, 31 May 2022 11:58:15 -0700 (PDT) Received: from [10.188.163.71] (cust-east-parth2-46-193-73-98.wb.wifirst.net. [46.193.73.98]) by smtp.gmail.com with ESMTPSA id f8-20020a5d64c8000000b0020d07958bb3sm12599259wri.3.2022.05.31.11.58.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 May 2022 11:58:15 -0700 (PDT) Message-ID: Date: Tue, 31 May 2022 12:58:14 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH 0/5] io_uring: add opcodes for current working directory Content-Language: en-US To: Usama Arif , io-uring@vger.kernel.org, linux-kernel@vger.kernel.org Cc: fam.zheng@bytedance.com References: <20220531184125.2665210-1-usama.arif@bytedance.com> From: Jens Axboe In-Reply-To: <20220531184125.2665210-1-usama.arif@bytedance.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/31/22 12:41 PM, Usama Arif wrote: > This provides consistency between io_uring and the respective I/O syscall > and avoids having the user of liburing specify the cwd in sqe when working > with current working directory, for e.g. the user can directly call with > IORING_OP_RENAME instead of IORING_OP_RENAMEAT and providing AT_FDCWD in > sqe->fd and sqe->len, similar to syscall interface. > > This is done for rename, unlink, mkdir, symlink and link in this > patch-series. > > The tests for these opcodes in liburing are present at > https://github.com/uarif1/liburing/tree/cwd_opcodes. If the patches are > acceptable, I am happy to create a PR in above for the tests. Can't we just provide prep helpers for them in liburing? -- Jens Axboe