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=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham 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 93031C4338F for ; Fri, 30 Jul 2021 03:35:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 73F5361019 for ; Fri, 30 Jul 2021 03:35:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235391AbhG3DfS (ORCPT ); Thu, 29 Jul 2021 23:35:18 -0400 Received: from mail-pj1-f48.google.com ([209.85.216.48]:40678 "EHLO mail-pj1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230158AbhG3DfR (ORCPT ); Thu, 29 Jul 2021 23:35:17 -0400 Received: by mail-pj1-f48.google.com with SMTP id u9-20020a17090a1f09b029017554809f35so18732176pja.5 for ; Thu, 29 Jul 2021 20:35:12 -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:mime-version :content-transfer-encoding; bh=dGfizDAyuiq57tvL5Gn5eEbFu2Nm1OH4ChRU0gczuQA=; b=bwyK3YCalE1R8K2qUWq26I9eW1ZE1GrZtDPy3k3hcHxewSo6lvduO1ZDHvlj7G2scA G18KOAvRb9Lh/vWyUk9Yk4wVSSo8wakKp0vSPNiDQIM86EV53x0uHg6MIertVi7a6o5p q9XV+A/oejzvE0eH7S3hGoTZoqXw3rVjN5lJcXdsCTNerJK5bbTWWply00dtIkMxp85K ZZwNkX14atMkzdkiKBHdxK4G834HCY42lLpac2+ZkuPQ8iXHZq+GHwvaJjqLJg3+nkta 2ug51MisuwYFDFq9n2XeSO2P3PcRa9Xcxf6m6XZiGDXKj7v/bvZXEPqMK0+wCZHzmu+3 gf2Q== X-Gm-Message-State: AOAM532oSc4shiNkvczJwMSWIMc9OHEbJmL7pJf64j19keEtXKLgt0gU NZYwuArhbqoWe+eJsNifWEw= X-Google-Smtp-Source: ABdhPJyTZobtotAeI6XnrVVHQSnu8IOswDM9K6UFB8JNd0W36pSr8Q81khUoH1QMtyVYNsE2Lzk+uA== X-Received: by 2002:a63:6ca:: with SMTP id 193mr376097pgg.265.1627616111830; Thu, 29 Jul 2021 20:35:11 -0700 (PDT) Received: from asus.hsd1.ca.comcast.net ([2601:647:4000:d7:3f66:df55:a341:f79d]) by smtp.gmail.com with ESMTPSA id y7sm292830pfi.204.2021.07.29.20.35.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jul 2021 20:35:10 -0700 (PDT) From: Bart Van Assche To: Christoph Hellwig Cc: Joel Becker , linux-kernel@vger.kernel.org, Bodo Stroesser , "Martin K . Petersen" , Brendan Higgins , Bart Van Assche Subject: [PATCH v3 0/3] Restore the kernel v5.13 text attribute write behavior Date: Thu, 29 Jul 2021 20:35:01 -0700 Message-Id: <20210730033504.8228-1-bvanassche@acm.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christoph, This patch series restores the v5.13 text attribute write behavior and also adds unit tests for configfs. Please consider these patches for inclusion in the Linux kernel. Thanks, Bart. Changes compared to v2: - Modified description of patch 2/3. Changes compared to v1: - Instead of making the text attribute write behavior POSIX compliant, restore the v5.13 behavior. - Added more unit tests. Bart Van Assche (3): configfs: Restore the kernel v5.13 text attribute write behavior kunit: Add support for suite initialization and cleanup configfs: Add unit tests fs/configfs/Kconfig | 8 + fs/configfs/Makefile | 2 + fs/configfs/configfs-test.c | 427 ++++++++++++++++++++++++++++++++++++ fs/configfs/file.c | 18 +- include/kunit/test.h | 4 + lib/kunit/test.c | 14 ++ 6 files changed, 461 insertions(+), 12 deletions(-) create mode 100644 fs/configfs/configfs-test.c