Implementation status for each section
This commit is contained in:
parent
bb4b5eba03
commit
b58063ef63
40
README.md
40
README.md
@ -328,13 +328,13 @@ const PackedList = struct {
|
||||
members: [length]varint,
|
||||
}
|
||||
const Groupmembers = PackedList;
|
||||
const AdditionalGids = PackedList;
|
||||
const Username2gids = PackedList;
|
||||
```
|
||||
|
||||
A packed list is a list of varints.
|
||||
|
||||
Section `AdditionalGidsIndex` stores an index from `hash(username)` to `offset`
|
||||
in AdditionalGids.
|
||||
Section `Username2gidsIndex` stores an index from `hash(username)` to `offset`
|
||||
in Username2gids.
|
||||
|
||||
Complete file structure
|
||||
-----------------------
|
||||
@ -348,23 +348,23 @@ storing plain `u32` for easier inspection.
|
||||
Each section is padded to 64 bytes.
|
||||
|
||||
```
|
||||
SECTION SIZE DESCRIPTION
|
||||
Header 48 see "Turbonss header" section
|
||||
bdz_gid2group ? gid->group bdz
|
||||
bdz_uid2user ? uid->user bdz
|
||||
bdz_groupname2group ? groupname->group bdz
|
||||
bdz_name2user ? username->user bdz
|
||||
idx_gid2group len(group)*32 bdz->offset gid2group
|
||||
idx_groupname2group len(group)*32 bdz->offset groupname2group
|
||||
idx_uid2user len(user)*32 bdz->offset uid2user
|
||||
idx_name2user len(user)*32 bdz->offset name2user
|
||||
idx_username2gids len(user)*32 Per-user gidlist index
|
||||
ShellIndex len(shells)*2 Shell index array
|
||||
ShellBlob <= 4032 Shell data blob (max 63*64 bytes)
|
||||
Groups ? packed Group entries (8b padding)
|
||||
Users ? packed User entries (8b padding)
|
||||
Groupmembers ? per-group memberlist (32b padding)
|
||||
AdditionalGids ? Per-user gidlist entries
|
||||
STATUS SECTION SIZE DESCRIPTION
|
||||
✅ Header 48 see "Turbonss header" section
|
||||
bdz_gid2group ? gid->group bdz
|
||||
bdz_uid2user ? uid->user bdz
|
||||
bdz_groupname2group ? groupname->group bdz
|
||||
bdz_name2user ? username->user bdz
|
||||
idx_gid2group len(group)*29/8 bdz->offset Groups
|
||||
idx_groupname2group len(group)*29/8 bdz->offset Groups
|
||||
idx_uid2user len(user)*29/8 bdz->offset Users
|
||||
idx_name2user len(user)*29/8 bdz->offset Users
|
||||
idx_username2gids len(user)*29/8 bdz->offset Username2gids
|
||||
✅ ShellIndex len(shells)*2 Shell index array
|
||||
✅ ShellBlob <= 4032 Shell data blob (max 63*64 bytes)
|
||||
Groups ? packed Group entries (8b padding)
|
||||
✅ Users ? packed User entries (8b padding)
|
||||
Groupmembers ? per-group memberlist (32b padding)
|
||||
Username2gids ? Per-user gidlist entries (8b padding)
|
||||
```
|
||||
|
||||
[git-subtrac]: https://apenwarr.ca/log/20191109
|
||||
|
@ -3,5 +3,6 @@ test "turbonss test suite" {
|
||||
_ = @import("shell.zig");
|
||||
_ = @import("header.zig");
|
||||
_ = @import("user.zig");
|
||||
_ = @import("group.zig");
|
||||
_ = @import("padding.zig");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user