diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2019-12-24 13:25:37 +1100 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2020-02-21 14:03:07 +1100 |
commit | 337296bc336d7e9a4753762f27b5ca0822aba99b (patch) | |
tree | bdb2ad36a7bb980ecd89402d465ab633093ef1dc /slof/fs | |
parent | 8bce323185e253a91b9e62b5b748b8c46e232357 (diff) | |
download | SLOF-337296bc336d7e9a4753762f27b5ca0822aba99b.zip SLOF-337296bc336d7e9a4753762f27b5ca0822aba99b.tar.gz SLOF-337296bc336d7e9a4753762f27b5ca0822aba99b.tar.bz2 |
ext2: Rename group-desc-size
A le32 value at 0x20 offset in supernode is:
0x20 __le32 s_blocks_per_group Blocks per group
Size of group descriptors is a le16 value at 0xfe.
Rename group-desc-size according to the ext2/4 spec.
This should cause no behavioral change.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'slof/fs')
-rw-r--r-- | slof/fs/packages/ext2-files.fs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/slof/fs/packages/ext2-files.fs b/slof/fs/packages/ext2-files.fs index 392615d..055e636 100644 --- a/slof/fs/packages/ext2-files.fs +++ b/slof/fs/packages/ext2-files.fs @@ -16,7 +16,7 @@ INSTANCE VARIABLE inode-size INSTANCE VARIABLE block-size INSTANCE VARIABLE inodes/group -INSTANCE VARIABLE group-desc-size +INSTANCE VARIABLE blocks-per-group INSTANCE VARIABLE group-descriptors : seek s" seek" $call-parent ; @@ -128,11 +128,11 @@ CREATE mode-chars 10 allot s" ?pc?d?b?-?l?s???" mode-chars swap move ELSE data @ 58 + w@-le inode-size ! THEN - data @ 20 + l@-le group-desc-size ! + data @ 20 + l@-le blocks-per-group ! \ Read the group descriptor table: first-block @ 1+ block-size @ * - group-desc-size @ + blocks-per-group @ read-data data @ group-descriptors ! @@ -189,7 +189,7 @@ INSTANCE VARIABLE current-pos : close inode @ inode-size @ free-mem - group-descriptors @ group-desc-size @ free-mem + group-descriptors @ blocks-per-group @ free-mem free-data blocks @ ?dup IF #blocks @ 4 * free-mem THEN ; |