Skip to contentSkip to conversation

docs: Add small intro to idmap examples

PATCH In review Rodrigo Campos 2 participants 4 messages Apr 29, 2022 – May 13, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: Add small intro to idmap examples

When reading the documentation, I didn't understand why this list examples of things that fail without using the mount idmap feature. It seems pretty pointless and I doubted if I was missing something, until I finished the examples, the next section and saw the examples revisited. After that, it all made sense.

Let's add one small sentence before, so the reader knows where this is going and why examples that don't might seem relevant are used.

---
 Documentation/filesystems/idmappings.rst | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/filesystems/idmappings.rst +5 -0
index 7a879ec3b6bf..c1db8748389c 100644
@@ -369,6 +369,11 @@ kernel maps the caller's userspace id down into a kernel id according to the
 caller's idmapping and then maps that kernel id up according to the
 filesystem's idmapping.
 
+Let's see some examples with caller/filesystem idmapping but without mount
+idmappings. This will exhibit some problems we can hit. After that we will
+revisit/reconsider these examples, this time using mount idmappings, to see how
+they can solve the problems we observed before.
+
 Example 1
 ~~~~~~~~~
 
Signature · 1 line
2.35.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Rodrigo Campos

When reading the documentation, I didn't understand why this list examples of things that fail without using the mount idmap feature. It seems pretty pointless and I doubted if I was missing something, until I finished the examples, the next section and saw the examples revisited. After that, it all made sense.

Let's add one small sentence before, so the reader knows where this is going and why examples that don't might seem relevant are used.

---

Good idea. Thank you!
(Will pick up next week. Just back from LSFMM.)