]> git.ipfire.org Git - thirdparty/systemd.git/commit
docs: fix conversion / calculation errors
authorMarien Zwart <marienz@google.com>
Sun, 19 Oct 2025 13:41:08 +0000 (00:41 +1100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 6 Nov 2025 14:13:33 +0000 (14:13 +0000)
commit3fb23fcc4b7586589f64dceaf40d689b6f32b64a
tree81abd43f8528babd3571bbf8d5d4341202881e4a
parent1b6ab516e3503006345d5944e8cb4c20ef9f6b20
docs: fix conversion / calculation errors

0x1770 is 6000, not 60000. It looks like 60000 is intended (the next
range starts at 60000 in both decimal and hex), so use that.

1000 to 60000 is 59001 users, as the range is inclusive on both sides.
Similar off-by-one for one of the "unused" ranges. After these changes,
the sizes of the ranges up to and including the "-1" ID sum up to 65536,
as expected.

I'm not sure where the size of the unused range after the container UID
range came from, but it is not correct (the "Container UID" and this
reserved range combined would be larger than the "HIC SVNT LEONES" 2^31
to 2^32-2 range...). Fix it.

It is unfortunate that the first half of this table makes more sense in
decimal while the second half makes more sense in hex (which would also
make the size in 65536 chunks easy to obtain): I'm tempted to add a
"sizes in hex" column...

(cherry picked from commit 1599b6fbe2aec1431c026fdbdc510e704e9fe8dd)
docs/UIDS-GIDS.md