Skip to content

Commit

Permalink
Reverted lfsr_rat_t -> lfsr_rattr_t
Browse files Browse the repository at this point in the history
This is the correct name for our rbyd attr type, even if it requires a
bit more typing.

lfsr_attr_t would be a better name, but that conflicts with our
user-facing attrs.
  • Loading branch information
geky committed Feb 8, 2025
1 parent ed28fab commit 7ac4946
Show file tree
Hide file tree
Showing 9 changed files with 2,410 additions and 2,405 deletions.
781 changes: 393 additions & 388 deletions lfs.c

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ typedef struct lfs {
lfs_off_t file_limit;

int8_t recycle_bits;
uint8_t rat_estimate;
uint8_t rattr_estimate;
uint8_t mdir_bits;

// linked-list of opened mdirs
Expand Down
12 changes: 6 additions & 6 deletions tests/test_badblocks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ code = '''
lfs_size_t bid = TEST_PRNG(&prng) % (sim_size+1);
// add to btree
lfsr_btree_commit(&lfs, &btree, bid, LFSR_RATS(
LFSR_RAT(
lfsr_btree_commit(&lfs, &btree, bid, LFSR_RATTRS(
LFSR_RATTR(
LFSR_TAG_DATA, +1,
LFSR_DATA_BUF(&(uint8_t){'a'+(i % 26)}, 1)))) => 0;
Expand Down Expand Up @@ -1850,8 +1850,8 @@ code = '''
lfs_size_t bid = TEST_PRNG(&prng) % (sim_size+1);
// add to btree
lfsr_btree_commit(&lfs, &btree, bid, LFSR_RATS(
LFSR_RAT(
lfsr_btree_commit(&lfs, &btree, bid, LFSR_RATTRS(
LFSR_RATTR(
LFSR_TAG_DATA, +1,
LFSR_DATA_BUF(&(uint8_t){'a'+(i % 26)}, 1)))) => 0;
Expand Down Expand Up @@ -3625,8 +3625,8 @@ code = '''
lfs_size_t bid = TEST_PRNG(&prng) % (sim_size+1);
// add to btree
lfsr_btree_commit(&lfs, &btree, bid, LFSR_RATS(
LFSR_RAT(
lfsr_btree_commit(&lfs, &btree, bid, LFSR_RATTRS(
LFSR_RATTR(
LFSR_TAG_DATA, +1,
LFSR_DATA_BUF(&(uint8_t){'a'+(i % 26)}, 1)))) => 0;
Expand Down
Loading

0 comments on commit 7ac4946

Please sign in to comment.