linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] doc: idmappings: fix an error and rephrase a paragraph
@ 2023-08-16  3:32 GONG, Ruiqi
  2023-08-16  7:36 ` Christian Brauner
  0 siblings, 1 reply; 2+ messages in thread
From: GONG, Ruiqi @ 2023-08-16  3:32 UTC (permalink / raw)
  To: Christian Brauner, Seth Forshee, Jonathan Corbet
  Cc: linux-fsdevel, linux-doc, linux-kernel, Wang Lei, gongruiqi1

From: "GONG, Ruiqi" <gongruiqi1@huawei.com>

If the modified paragraph is referring to the idmapping mentioned in the
previous paragraph (i.e. `u0:k10000:r10000`), then it is `u0` that the
upper idmapset starts with, not `u1000`.

Fix this error and rephrase this paragraph a bit to make this reference
more explicit.

Reported-by: Wang Lei <wanglei249@huawei.com>
Signed-off-by: GONG, Ruiqi <gongruiqi1@huawei.com>
---
 Documentation/filesystems/idmappings.rst | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Documentation/filesystems/idmappings.rst b/Documentation/filesystems/idmappings.rst
index f3d168c9f0b9..d095c5838f94 100644
--- a/Documentation/filesystems/idmappings.rst
+++ b/Documentation/filesystems/idmappings.rst
@@ -146,9 +146,10 @@ For the rest of this document we will prefix all userspace ids with ``u`` and
 all kernel ids with ``k``. Ranges of idmappings will be prefixed with ``r``. So
 an idmapping will be written as ``u0:k10000:r10000``.
 
-For example, the id ``u1000`` is an id in the upper idmapset or "userspace
-idmapset" starting with ``u1000``. And it is mapped to ``k11000`` which is a
-kernel id in the lower idmapset or "kernel idmapset" starting with ``k10000``.
+For example, within this idmapping, the id ``u1000`` is an id in the upper
+idmapset or "userspace idmapset" starting with ``u0``. And it is mapped to
+``k11000`` which is a kernel id in the lower idmapset or "kernel idmapset"
+starting with ``k10000``.
 
 A kernel id is always created by an idmapping. Such idmappings are associated
 with user namespaces. Since we mainly care about how idmappings work we're not
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] doc: idmappings: fix an error and rephrase a paragraph
  2023-08-16  3:32 [PATCH] doc: idmappings: fix an error and rephrase a paragraph GONG, Ruiqi
@ 2023-08-16  7:36 ` Christian Brauner
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2023-08-16  7:36 UTC (permalink / raw)
  To: Seth Forshee, Jonathan Corbet, GONG, Ruiqi
  Cc: Christian Brauner, linux-fsdevel, linux-doc, linux-kernel,
	Wang Lei, gongruiqi1

On Wed, 16 Aug 2023 11:32:10 +0800, GONG, Ruiqi wrote:
> If the modified paragraph is referring to the idmapping mentioned in the
> previous paragraph (i.e. `u0:k10000:r10000`), then it is `u0` that the
> upper idmapset starts with, not `u1000`.

Yes, correct. Thanks!

> 
> Fix this error and rephrase this paragraph a bit to make this reference
> more explicit.
> 
> [...]

Applied to the vfs.misc branch of the vfs/vfs.git tree.
Patches in the vfs.misc branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.misc

[1/1] doc: idmappings: fix an error and rephrase a paragraph
      https://git.kernel.org/vfs/vfs/c/21238b550dd6

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-16  7:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-16  3:32 [PATCH] doc: idmappings: fix an error and rephrase a paragraph GONG, Ruiqi
2023-08-16  7:36 ` Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).