From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.6 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DCB62C433EF for ; Tue, 31 May 2022 18:41:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347105AbiEaSlq (ORCPT ); Tue, 31 May 2022 14:41:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347082AbiEaSli (ORCPT ); Tue, 31 May 2022 14:41:38 -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 79155915BB for ; Tue, 31 May 2022 11:41:37 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id x17so10781859wrg.6 for ; Tue, 31 May 2022 11:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yYizjhpptmJ3gJ2nYolv0UobnAZmjN42VSqblJmcmmM=; b=61BmzmrhJzkorY5mMUVc/VhaMMSTg/F+8KYmJxWuIUAZkOMXHH3tgrkva4vRthXRoy keL/YbreHHmOU2wZ7lk32CPaJh8iIF89S3ZR0/u8ZCv/i8Ma8yZpLAOfRsC55T5D680J 38Y8ZCQj9sOed9MeMUTp8WqcZD8jk83c2Xy3XpcbRQNjav+mn+i7lXxp1WGzo03aa80Z JAPiSRv8ZCIY4l96YskqjXCsxEbCaVTkJz+3xqIh4aeGttzJvnR+S0QdnRX65cNUZbsf 8L0SMoO6moUlRQIJLBTKO9GOZLuY3NfN/XZz2dVUWKCSo3gXiQ4/dQzXpsv6lOL0gYeL jeWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yYizjhpptmJ3gJ2nYolv0UobnAZmjN42VSqblJmcmmM=; b=FPTNXUzqQnWRaS2scul/mYxpcB3+iv4wU2HZHBGYjOZY72hgVHxzctsdEs4GxFA4Lz 6O+nWlkELyAg80ibh0vmmLuOtkDiFVDxweB5PJEPH4PDBtUqzptmnJ4KgycDJ7/qS3QB i5LjLNW7txbXqBhu9GCxu4+aGLSzpf5+8TolLhQAQH7DAKjmKzk/RsgKNHxRITMcvovO hMEK3MoOTSx4WzeG+USbjb4QkLn8ZJNvTx8AHg5JJmCDT9FFDr28aUE9v4YcwX3dafqW zJjN51AaCOy5DurJ+9Ex50PLI0Rt+vf/yCZNgbvz+1by4tDE51OEGcKmfkExiDklFdDR xvvg== X-Gm-Message-State: AOAM531TXvSNr1+n0HMaiXS3lUokEHVklEz70hummNrgfRS7YZgZujyJ XGUyqILk5/hFsQamaZ4I/mWbrtUfhtH+oOTr X-Google-Smtp-Source: ABdhPJyuUBcBs0najrLb47SG8Xhyus+J+Xa0zxKEtakIQBe1mLyq/BSxvQvt28dTSZuREq/UGE4bGA== X-Received: by 2002:a05:6000:1887:b0:20f:de1d:9fc3 with SMTP id a7-20020a056000188700b0020fde1d9fc3mr37261401wri.111.1654022496004; Tue, 31 May 2022 11:41:36 -0700 (PDT) Received: from usaari01.cust.communityfibre.co.uk ([2a02:6b6a:b497:0:359:2800:e38d:e04f]) by smtp.gmail.com with ESMTPSA id o16-20020a05600c059000b00397342bcfb7sm2831877wmd.46.2022.05.31.11.41.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 11:41:35 -0700 (PDT) From: Usama Arif To: io-uring@vger.kernel.org, axboe@kernel.dk, linux-kernel@vger.kernel.org Cc: fam.zheng@bytedance.com, Usama Arif Subject: [PATCH 0/5] io_uring: add opcodes for current working directory Date: Tue, 31 May 2022 19:41:20 +0100 Message-Id: <20220531184125.2665210-1-usama.arif@bytedance.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org 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. Thanks! Usama Arif (5): io_uring: add rename opcode for current working directory io_uring: add unlink opcode for current working directory io_uring: add mkdir opcode for current working directory io_uring: add symlink opcode for current working directory io_uring: add link opcode for current working directory fs/io_uring.c | 116 ++++++++++++++++++++++++---------- include/uapi/linux/io_uring.h | 5 ++ 2 files changed, 89 insertions(+), 32 deletions(-) -- 2.25.1