From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.80 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796215137; b=5kAIb3v6FWQOdZ1I9CVRxsosXg24xFz7P7v0Mm5Lp8k+Q+ZS1chsgJslmffxc2RfDhWl rti9HJ4Qjbb1hACZQ7MjHPPYuI32hwHBPyiDQQduhIw5N856UArfL4EB0CT4ETzl7f85p Ui7hTZ9boz1F1lNEFP6Jls83KnS3lhcoqnUETGso7B/c6zXT2wnuoe1tcD6+NP81Fdix6 +HQcwrSLogLLVL03JynKbsOml2bd2S3dxGYkIjFXAXph41ct1/cZUMsLfuzEPIjIha4ZB J4+seTmoamAXhZF9BqYqVhXpgcIAee4MFIVvYKsNZcaEqP6rrDs8oZl0PONQUTuDCtA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796215137; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=adNIAuorcqw+ToJ3OZNjoD2pSmAcrYxkk0v/I7v86ow=; b=C9/yuHQq+PGFoxoGhC0K09trWAuA71oK7vEG4SaBNSeKeCUGSt0sa20m49NPdpCNF/hC uqfySFsqM7/0Ps8B53WZuzFQ+7uMndoCB8kgRmdanGXcHxBRfua/3/zawxL8u1rr4wtuf wxZcy0G8dFIOIcEh+jNJHdVwyjsdvppno96Mb4mSn32XbSFOTqivZBubQasUst862qknk 4R2k/s/chrH8VWdOt0nn7gYTrkE8ZruApacZOrKMCDfcgXWPWzmovlul52FWcajtTDJ1u f0uTk0YjR9QnX1HDk3hXj/V0SdpnqH3IGObOzOgXG78WuD6hz5fQ2/vil+6zYIgwdNQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=e6AL8Sz8; arc=none smtp.remote-ip=91.218.175.80 Received: from mta0.migadu.com (out-80.mta0.migadu.com [91.218.175.80]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E69AE606A690 for ; Wed, 2 Dec 2026 12:38:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E69AE606A690 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=e6AL8Sz8 X-Envelope-To: linux-fsdevel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=+nSheZwXqN7SZesVrwSYM+E/LKjspw/NLLpNsW/1w9s=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796215134; v=1; x=1796819934; b=e6AL8Sz8gwBjTkNC3ukrbTLh0q5N7AmNwbT0Z/J4RgoUlfxFDt84OUIY8opUWlbz6Dk3s72W sUfCtZvt8UDDy4MH7M4QcZguM4xKGL9F2vVmgD1iyJfgiNCzDgv1RQlAsuIKZ29T+iqUF+OdojW /MjX5TI/50XvvWV47jM7/pec= X-Envelope-To: linux-fsdevel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id e6b29bbaf8b749af; Wed, 02 Dec 2026 12:38:53 +0000 X-Mizu-Trace-ID: e6b29bbaf8b749af X-Migadu-Flow: FLOW_OUT From: Tao Cui To: brauner@kernel.org Cc: hughd@google.com, david@kernel.org, akpm@linux-foundation.org, linux-mm@kvack.org, baolin.wang@linux.alibaba.com, andrealmeid@igalia.com, krisman@suse.de, linux-fsdevel@vger.kernel.org, cui.tao@linux.dev, Tao Cui Subject: [PATCH v2 2/2] Documentation: tmpfs: document casefold option constraints Date: Wed, 2 Dec 2026 20:38:34 +0800 Message-ID: <20261202123834.2439906-3-cui.tao@linux.dev> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261202123834.2439906-1-cui.tao@linux.dev> References: <20261202123834.2439906-1-cui.tao@linux.dev> X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Tao Cui The casefold and strict_encoding options require CONFIG_UNICODE (both are refused without it), strict_encoding must be given together with casefold, and availability can be probed via /sys/fs/tmpfs/features/casefold. None of this was documented. Also disclose that both options only take effect at initial mount and are ignored on remount: shmem_reconfigure() never looks at the parsed encoding, so e.g. "remount,casefold=utf8-12.1.0" succeeds without changing anything, the same way as the mode, uid and gid options. Reviewed-by: Gabriel Krisman Bertazi Reviewed-by: Baolin Wang Reviewed-by: André Almeida Signed-off-by: Tao Cui --- Documentation/filesystems/tmpfs.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/filesystems/tmpfs.rst b/Documentation/filesystems/tmpfs.rst index d677e0428c3f..032fa55b0411 100644 --- a/Documentation/filesystems/tmpfs.rst +++ b/Documentation/filesystems/tmpfs.rst @@ -253,6 +253,15 @@ strict_encoding Enable strict encoding at this mount point (disabled by and directory with names containing invalid UTF-8 characters. ================= ============================================================== +These options require kernel support for casefolding (CONFIG_UNICODE) +and are refused without it. strict_encoding must be given together +with casefold on the same mount; a mount with strict_encoding but no +encoding fails. Whether the running kernel supports casefold at all +can be probed by reading /sys/fs/tmpfs/features/casefold. + +casefold and strict_encoding only take effect when given at initial +mount; on remount they are ignored. + This option doesn't render the entire filesystem case-insensitive. One needs to still set the casefold flag per directory, by flipping the +F attribute in an empty directory. Nevertheless, new directories will inherit the attribute. The -- 2.43.0