Reverted lfsr_rat_t -> lfsr_rattr_t
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.
This commit is contained in:
@@ -814,7 +814,7 @@ typedef struct lfs {
|
|||||||
lfs_off_t file_limit;
|
lfs_off_t file_limit;
|
||||||
|
|
||||||
int8_t recycle_bits;
|
int8_t recycle_bits;
|
||||||
uint8_t rat_estimate;
|
uint8_t rattr_estimate;
|
||||||
uint8_t mdir_bits;
|
uint8_t mdir_bits;
|
||||||
|
|
||||||
// linked-list of opened mdirs
|
// linked-list of opened mdirs
|
||||||
|
|||||||
@@ -75,8 +75,8 @@ code = '''
|
|||||||
lfs_size_t bid = TEST_PRNG(&prng) % (sim_size+1);
|
lfs_size_t bid = TEST_PRNG(&prng) % (sim_size+1);
|
||||||
|
|
||||||
// add to btree
|
// add to btree
|
||||||
lfsr_btree_commit(&lfs, &btree, bid, LFSR_RATS(
|
lfsr_btree_commit(&lfs, &btree, bid, LFSR_RATTRS(
|
||||||
LFSR_RAT(
|
LFSR_RATTR(
|
||||||
LFSR_TAG_DATA, +1,
|
LFSR_TAG_DATA, +1,
|
||||||
LFSR_DATA_BUF(&(uint8_t){'a'+(i % 26)}, 1)))) => 0;
|
LFSR_DATA_BUF(&(uint8_t){'a'+(i % 26)}, 1)))) => 0;
|
||||||
|
|
||||||
@@ -1850,8 +1850,8 @@ code = '''
|
|||||||
lfs_size_t bid = TEST_PRNG(&prng) % (sim_size+1);
|
lfs_size_t bid = TEST_PRNG(&prng) % (sim_size+1);
|
||||||
|
|
||||||
// add to btree
|
// add to btree
|
||||||
lfsr_btree_commit(&lfs, &btree, bid, LFSR_RATS(
|
lfsr_btree_commit(&lfs, &btree, bid, LFSR_RATTRS(
|
||||||
LFSR_RAT(
|
LFSR_RATTR(
|
||||||
LFSR_TAG_DATA, +1,
|
LFSR_TAG_DATA, +1,
|
||||||
LFSR_DATA_BUF(&(uint8_t){'a'+(i % 26)}, 1)))) => 0;
|
LFSR_DATA_BUF(&(uint8_t){'a'+(i % 26)}, 1)))) => 0;
|
||||||
|
|
||||||
@@ -3625,8 +3625,8 @@ code = '''
|
|||||||
lfs_size_t bid = TEST_PRNG(&prng) % (sim_size+1);
|
lfs_size_t bid = TEST_PRNG(&prng) % (sim_size+1);
|
||||||
|
|
||||||
// add to btree
|
// add to btree
|
||||||
lfsr_btree_commit(&lfs, &btree, bid, LFSR_RATS(
|
lfsr_btree_commit(&lfs, &btree, bid, LFSR_RATTRS(
|
||||||
LFSR_RAT(
|
LFSR_RATTR(
|
||||||
LFSR_TAG_DATA, +1,
|
LFSR_TAG_DATA, +1,
|
||||||
LFSR_DATA_BUF(&(uint8_t){'a'+(i % 26)}, 1)))) => 0;
|
LFSR_DATA_BUF(&(uint8_t){'a'+(i % 26)}, 1)))) => 0;
|
||||||
|
|
||||||
|
|||||||
+297
-297
File diff suppressed because it is too large
Load Diff
+18
-18
@@ -977,8 +977,8 @@ code = '''
|
|||||||
lfsr_file_sync(&lfs, &file) => 0;
|
lfsr_file_sync(&lfs, &file) => 0;
|
||||||
|
|
||||||
// delete any bshrub/btree
|
// delete any bshrub/btree
|
||||||
lfsr_mdir_commit(&lfs, &file.b.o.mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &file.b.o.mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT(
|
LFSR_RATTR(
|
||||||
LFSR_TAG_RM | LFSR_TAG_SUB | LFSR_TAG_STRUCT, 0,
|
LFSR_TAG_RM | LFSR_TAG_SUB | LFSR_TAG_STRUCT, 0,
|
||||||
LFSR_DATA_NULL()))) => 0;
|
LFSR_DATA_NULL()))) => 0;
|
||||||
|
|
||||||
@@ -1094,20 +1094,20 @@ code = '''
|
|||||||
lfsr_file_sync(&lfs, &file) => 0;
|
lfsr_file_sync(&lfs, &file) => 0;
|
||||||
|
|
||||||
// create an empty bshrub
|
// create an empty bshrub
|
||||||
lfsr_mdir_commit(&lfs, &file.b.o.mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &file.b.o.mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_SHRUBCOMMIT(
|
LFSR_RATTR_SHRUBCOMMIT(
|
||||||
LFSR_TAG_SHRUBCOMMIT, 0,
|
LFSR_TAG_SHRUBCOMMIT, 0,
|
||||||
&file.b, 0, ((lfsr_rat_t[]){
|
&file.b, 0, ((lfsr_rattr_t[]){
|
||||||
LFSR_RAT(LFSR_TAG_DATA, +1, LFSR_DATA_BUF("?", 1))}),
|
LFSR_RATTR(LFSR_TAG_DATA, +1, LFSR_DATA_BUF("?", 1))}),
|
||||||
1))) => 0;
|
1))) => 0;
|
||||||
lfsr_mdir_commit(&lfs, &file.b.o.mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &file.b.o.mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_SHRUBCOMMIT(
|
LFSR_RATTR_SHRUBCOMMIT(
|
||||||
LFSR_TAG_SHRUBCOMMIT, 0,
|
LFSR_TAG_SHRUBCOMMIT, 0,
|
||||||
&file.b, 0, ((lfsr_rat_t[]){
|
&file.b, 0, ((lfsr_rattr_t[]){
|
||||||
LFSR_RAT(LFSR_TAG_RM, -1, LFSR_DATA_NULL())}),
|
LFSR_RATTR(LFSR_TAG_RM, -1, LFSR_DATA_NULL())}),
|
||||||
1))) => 0;
|
1))) => 0;
|
||||||
lfsr_mdir_commit(&lfs, &file.b.o.mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &file.b.o.mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_SHRUBTRUNK(
|
LFSR_RATTR_SHRUBTRUNK(
|
||||||
LFSR_TAG_SUB | LFSR_TAG_SHRUBTRUNK, 0,
|
LFSR_TAG_SUB | LFSR_TAG_SHRUBTRUNK, 0,
|
||||||
&file.b))) => 0;
|
&file.b))) => 0;
|
||||||
|
|
||||||
@@ -1225,13 +1225,13 @@ code = '''
|
|||||||
// create an empty btree
|
// create an empty btree
|
||||||
lfs_alloc_ckpoint(&lfs);
|
lfs_alloc_ckpoint(&lfs);
|
||||||
lfsr_rbyd_alloc(&lfs, &file.b.shrub) => 0;
|
lfsr_rbyd_alloc(&lfs, &file.b.shrub) => 0;
|
||||||
lfsr_rbyd_commit(&lfs, &file.b.shrub, 0, LFSR_RATS(
|
lfsr_rbyd_commit(&lfs, &file.b.shrub, 0, LFSR_RATTRS(
|
||||||
LFSR_RAT(LFSR_TAG_DATA, +1, LFSR_DATA_BUF("?", 1)))) => 0;
|
LFSR_RATTR(LFSR_TAG_DATA, +1, LFSR_DATA_BUF("?", 1)))) => 0;
|
||||||
lfsr_rbyd_commit(&lfs, &file.b.shrub, 0, LFSR_RATS(
|
lfsr_rbyd_commit(&lfs, &file.b.shrub, 0, LFSR_RATTRS(
|
||||||
LFSR_RAT(LFSR_TAG_RM, -1, LFSR_DATA_NULL()))) => 0;
|
LFSR_RATTR(LFSR_TAG_RM, -1, LFSR_DATA_NULL()))) => 0;
|
||||||
uint8_t buf[LFSR_BTREE_DSIZE];
|
uint8_t buf[LFSR_BTREE_DSIZE];
|
||||||
lfsr_mdir_commit(&lfs, &file.b.o.mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &file.b.o.mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT(
|
LFSR_RATTR(
|
||||||
LFSR_TAG_SUB | LFSR_TAG_BTREE, 0,
|
LFSR_TAG_SUB | LFSR_TAG_BTREE, 0,
|
||||||
LFSR_DATA_BTREE(&file.b.shrub, buf)))) => 0;
|
LFSR_DATA_BTREE(&file.b.shrub, buf)))) => 0;
|
||||||
|
|
||||||
|
|||||||
+42
-42
@@ -544,8 +544,8 @@ code = '''
|
|||||||
// note we're messing around with internals to do this! this
|
// note we're messing around with internals to do this! this
|
||||||
// is not a user API
|
// is not a user API
|
||||||
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
||||||
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATTRS(
|
||||||
LFSR_RAT(
|
LFSR_RATTR(
|
||||||
LFSR_TAG_RM | LFSR_TAG_MAGIC, 0,
|
LFSR_TAG_RM | LFSR_TAG_MAGIC, 0,
|
||||||
LFSR_DATA_NULL()))) => 0;
|
LFSR_DATA_NULL()))) => 0;
|
||||||
lfsr_unmount(&lfs) => 0;
|
lfsr_unmount(&lfs) => 0;
|
||||||
@@ -568,8 +568,8 @@ code = '''
|
|||||||
// note we're messing around with internals to do this! this
|
// note we're messing around with internals to do this! this
|
||||||
// is not a user API
|
// is not a user API
|
||||||
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
||||||
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATTRS(
|
||||||
LFSR_RAT(
|
LFSR_RATTR(
|
||||||
LFSR_TAG_MAGIC, 0,
|
LFSR_TAG_MAGIC, 0,
|
||||||
LFSR_DATA_BUF("lottlefs", 8)))) => 0;
|
LFSR_DATA_BUF("lottlefs", 8)))) => 0;
|
||||||
lfsr_unmount(&lfs) => 0;
|
lfsr_unmount(&lfs) => 0;
|
||||||
@@ -592,8 +592,8 @@ code = '''
|
|||||||
// note we're messing around with internals to do this! this
|
// note we're messing around with internals to do this! this
|
||||||
// is not a user API
|
// is not a user API
|
||||||
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
||||||
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATTRS(
|
||||||
LFSR_RAT(
|
LFSR_RATTR(
|
||||||
LFSR_TAG_VERSION, 0,
|
LFSR_TAG_VERSION, 0,
|
||||||
LFSR_DATA_BUF(((const uint8_t[2]){
|
LFSR_DATA_BUF(((const uint8_t[2]){
|
||||||
LFS_DISK_VERSION_MAJOR+1,
|
LFS_DISK_VERSION_MAJOR+1,
|
||||||
@@ -618,8 +618,8 @@ code = '''
|
|||||||
// note we're messing around with internals to do this! this
|
// note we're messing around with internals to do this! this
|
||||||
// is not a user API
|
// is not a user API
|
||||||
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
||||||
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATTRS(
|
||||||
LFSR_RAT(
|
LFSR_RATTR(
|
||||||
LFSR_TAG_VERSION, 0,
|
LFSR_TAG_VERSION, 0,
|
||||||
LFSR_DATA_BUF(((const uint8_t[2]){
|
LFSR_DATA_BUF(((const uint8_t[2]){
|
||||||
LFS_DISK_VERSION_MAJOR,
|
LFS_DISK_VERSION_MAJOR,
|
||||||
@@ -646,8 +646,8 @@ code = '''
|
|||||||
// is not a user API
|
// is not a user API
|
||||||
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
||||||
uint8_t rcompat_buf[LFSR_LE32_DSIZE];
|
uint8_t rcompat_buf[LFSR_LE32_DSIZE];
|
||||||
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATTRS(
|
||||||
LFSR_RAT(
|
LFSR_RATTR(
|
||||||
LFSR_TAG_RCOMPAT, 0,
|
LFSR_TAG_RCOMPAT, 0,
|
||||||
LFSR_DATA_LE32(
|
LFSR_DATA_LE32(
|
||||||
LFSR_RCOMPAT_COMPAT
|
LFSR_RCOMPAT_COMPAT
|
||||||
@@ -675,8 +675,8 @@ code = '''
|
|||||||
// is not a user API
|
// is not a user API
|
||||||
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
||||||
uint8_t wcompat_buf[LFSR_LE32_DSIZE];
|
uint8_t wcompat_buf[LFSR_LE32_DSIZE];
|
||||||
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATTRS(
|
||||||
LFSR_RAT(
|
LFSR_RATTR(
|
||||||
LFSR_TAG_WCOMPAT, 0,
|
LFSR_TAG_WCOMPAT, 0,
|
||||||
LFSR_DATA_LE32(
|
LFSR_DATA_LE32(
|
||||||
LFSR_WCOMPAT_COMPAT
|
LFSR_WCOMPAT_COMPAT
|
||||||
@@ -707,8 +707,8 @@ code = '''
|
|||||||
// is not a user API
|
// is not a user API
|
||||||
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
||||||
uint8_t ocompat_buf[LFSR_LE32_DSIZE];
|
uint8_t ocompat_buf[LFSR_LE32_DSIZE];
|
||||||
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATTRS(
|
||||||
LFSR_RAT(
|
LFSR_RATTR(
|
||||||
LFSR_TAG_OCOMPAT, 0,
|
LFSR_TAG_OCOMPAT, 0,
|
||||||
LFSR_DATA_LE32(
|
LFSR_DATA_LE32(
|
||||||
LFSR_OCOMPAT_COMPAT
|
LFSR_OCOMPAT_COMPAT
|
||||||
@@ -737,8 +737,8 @@ code = '''
|
|||||||
// is not a user API
|
// is not a user API
|
||||||
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
||||||
uint8_t wcompat_buf[LFSR_LE32_DSIZE];
|
uint8_t wcompat_buf[LFSR_LE32_DSIZE];
|
||||||
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATTRS(
|
||||||
LFSR_RAT(
|
LFSR_RATTR(
|
||||||
LFSR_TAG_WCOMPAT, 0,
|
LFSR_TAG_WCOMPAT, 0,
|
||||||
LFSR_DATA_LE32(
|
LFSR_DATA_LE32(
|
||||||
LFSR_WCOMPAT_COMPAT
|
LFSR_WCOMPAT_COMPAT
|
||||||
@@ -768,8 +768,8 @@ code = '''
|
|||||||
// is not a user API
|
// is not a user API
|
||||||
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
||||||
uint8_t rcompat_buf[LFSR_LE32_DSIZE];
|
uint8_t rcompat_buf[LFSR_LE32_DSIZE];
|
||||||
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATTRS(
|
||||||
LFSR_RAT(
|
LFSR_RATTR(
|
||||||
LFSR_TAG_RCOMPAT, 0,
|
LFSR_TAG_RCOMPAT, 0,
|
||||||
LFSR_DATA_LE32(
|
LFSR_DATA_LE32(
|
||||||
LFSR_RCOMPAT_COMPAT
|
LFSR_RCOMPAT_COMPAT
|
||||||
@@ -802,8 +802,8 @@ code = '''
|
|||||||
|
|
||||||
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
||||||
uint8_t rcompat_buf[LFSR_LE32_DSIZE];
|
uint8_t rcompat_buf[LFSR_LE32_DSIZE];
|
||||||
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATTRS(
|
||||||
LFSR_RAT_CAT(
|
LFSR_RATTR_CAT(
|
||||||
LFSR_TAG_RCOMPAT, 0,
|
LFSR_TAG_RCOMPAT, 0,
|
||||||
LFSR_DATA_LE32(LFSR_RCOMPAT_COMPAT, rcompat_buf),
|
LFSR_DATA_LE32(LFSR_RCOMPAT_COMPAT, rcompat_buf),
|
||||||
LFSR_DATA_BUF(overflow, sizeof(overflow))))) => 0;
|
LFSR_DATA_BUF(overflow, sizeof(overflow))))) => 0;
|
||||||
@@ -836,8 +836,8 @@ code = '''
|
|||||||
|
|
||||||
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
||||||
uint8_t wcompat_buf[LFSR_LE32_DSIZE];
|
uint8_t wcompat_buf[LFSR_LE32_DSIZE];
|
||||||
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATTRS(
|
||||||
LFSR_RAT_CAT(
|
LFSR_RATTR_CAT(
|
||||||
LFSR_TAG_WCOMPAT, 0,
|
LFSR_TAG_WCOMPAT, 0,
|
||||||
LFSR_DATA_LE32(LFSR_WCOMPAT_COMPAT, wcompat_buf),
|
LFSR_DATA_LE32(LFSR_WCOMPAT_COMPAT, wcompat_buf),
|
||||||
LFSR_DATA_BUF(overflow, sizeof(overflow))))) => 0;
|
LFSR_DATA_BUF(overflow, sizeof(overflow))))) => 0;
|
||||||
@@ -870,8 +870,8 @@ code = '''
|
|||||||
|
|
||||||
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
||||||
uint8_t ocompat_buf[LFSR_LE32_DSIZE];
|
uint8_t ocompat_buf[LFSR_LE32_DSIZE];
|
||||||
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATTRS(
|
||||||
LFSR_RAT_CAT(
|
LFSR_RATTR_CAT(
|
||||||
LFSR_TAG_OCOMPAT, 0,
|
LFSR_TAG_OCOMPAT, 0,
|
||||||
LFSR_DATA_LE32(LFSR_OCOMPAT_COMPAT, ocompat_buf),
|
LFSR_DATA_LE32(LFSR_OCOMPAT_COMPAT, ocompat_buf),
|
||||||
LFSR_DATA_BUF(overflow, sizeof(overflow))))) => 0;
|
LFSR_DATA_BUF(overflow, sizeof(overflow))))) => 0;
|
||||||
@@ -902,8 +902,8 @@ code = '''
|
|||||||
|
|
||||||
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
||||||
uint8_t rcompat_buf[LFSR_LE32_DSIZE];
|
uint8_t rcompat_buf[LFSR_LE32_DSIZE];
|
||||||
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATTRS(
|
||||||
LFSR_RAT_CAT(
|
LFSR_RATTR_CAT(
|
||||||
LFSR_TAG_RCOMPAT, 0,
|
LFSR_TAG_RCOMPAT, 0,
|
||||||
LFSR_DATA_LE32(LFSR_RCOMPAT_COMPAT, rcompat_buf),
|
LFSR_DATA_LE32(LFSR_RCOMPAT_COMPAT, rcompat_buf),
|
||||||
LFSR_DATA_BUF(overflow, sizeof(overflow))))) => 0;
|
LFSR_DATA_BUF(overflow, sizeof(overflow))))) => 0;
|
||||||
@@ -936,8 +936,8 @@ code = '''
|
|||||||
|
|
||||||
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
||||||
uint8_t wcompat_buf[LFSR_LE32_DSIZE];
|
uint8_t wcompat_buf[LFSR_LE32_DSIZE];
|
||||||
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATTRS(
|
||||||
LFSR_RAT_CAT(
|
LFSR_RATTR_CAT(
|
||||||
LFSR_TAG_WCOMPAT, 0,
|
LFSR_TAG_WCOMPAT, 0,
|
||||||
LFSR_DATA_LE32(LFSR_WCOMPAT_COMPAT, wcompat_buf),
|
LFSR_DATA_LE32(LFSR_WCOMPAT_COMPAT, wcompat_buf),
|
||||||
LFSR_DATA_BUF(overflow, sizeof(overflow))))) => 0;
|
LFSR_DATA_BUF(overflow, sizeof(overflow))))) => 0;
|
||||||
@@ -967,8 +967,8 @@ code = '''
|
|||||||
|
|
||||||
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
||||||
uint8_t ocompat_buf[LFSR_LE32_DSIZE];
|
uint8_t ocompat_buf[LFSR_LE32_DSIZE];
|
||||||
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATTRS(
|
||||||
LFSR_RAT_CAT(
|
LFSR_RATTR_CAT(
|
||||||
LFSR_TAG_OCOMPAT, 0,
|
LFSR_TAG_OCOMPAT, 0,
|
||||||
LFSR_DATA_LE32(LFSR_OCOMPAT_COMPAT, ocompat_buf),
|
LFSR_DATA_LE32(LFSR_OCOMPAT_COMPAT, ocompat_buf),
|
||||||
LFSR_DATA_BUF(overflow, sizeof(overflow))))) => 0;
|
LFSR_DATA_BUF(overflow, sizeof(overflow))))) => 0;
|
||||||
@@ -996,8 +996,8 @@ code = '''
|
|||||||
// is not a user API
|
// is not a user API
|
||||||
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
||||||
uint8_t geometry_buf[LFSR_GEOMETRY_DSIZE];
|
uint8_t geometry_buf[LFSR_GEOMETRY_DSIZE];
|
||||||
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATTRS(
|
||||||
LFSR_RAT(
|
LFSR_RATTR(
|
||||||
LFSR_TAG_GEOMETRY, 0,
|
LFSR_TAG_GEOMETRY, 0,
|
||||||
LFSR_DATA_GEOMETRY(
|
LFSR_DATA_GEOMETRY(
|
||||||
(&(lfsr_geometry_t){
|
(&(lfsr_geometry_t){
|
||||||
@@ -1026,8 +1026,8 @@ code = '''
|
|||||||
// is not a user API
|
// is not a user API
|
||||||
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
||||||
uint8_t geometry_buf[LFSR_GEOMETRY_DSIZE];
|
uint8_t geometry_buf[LFSR_GEOMETRY_DSIZE];
|
||||||
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATTRS(
|
||||||
LFSR_RAT(
|
LFSR_RATTR(
|
||||||
LFSR_TAG_GEOMETRY, 0,
|
LFSR_TAG_GEOMETRY, 0,
|
||||||
LFSR_DATA_GEOMETRY(
|
LFSR_DATA_GEOMETRY(
|
||||||
(&(lfsr_geometry_t){
|
(&(lfsr_geometry_t){
|
||||||
@@ -1056,8 +1056,8 @@ code = '''
|
|||||||
// is not a user API
|
// is not a user API
|
||||||
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
||||||
uint8_t name_limit_buf[LFSR_LLEB128_DSIZE];
|
uint8_t name_limit_buf[LFSR_LLEB128_DSIZE];
|
||||||
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATTRS(
|
||||||
LFSR_RAT(
|
LFSR_RATTR(
|
||||||
LFSR_TAG_NAMELIMIT, 0,
|
LFSR_TAG_NAMELIMIT, 0,
|
||||||
LFSR_DATA_LLEB128(INC_NAME_LIMIT, name_limit_buf)))) => 0;
|
LFSR_DATA_LLEB128(INC_NAME_LIMIT, name_limit_buf)))) => 0;
|
||||||
lfsr_unmount(&lfs) => 0;
|
lfsr_unmount(&lfs) => 0;
|
||||||
@@ -1081,8 +1081,8 @@ code = '''
|
|||||||
// is not a user API
|
// is not a user API
|
||||||
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
||||||
uint8_t file_limit_buf[LFSR_LEB128_DSIZE];
|
uint8_t file_limit_buf[LFSR_LEB128_DSIZE];
|
||||||
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATTRS(
|
||||||
LFSR_RAT_CAT(
|
LFSR_RATTR_CAT(
|
||||||
LFSR_TAG_FILELIMIT, 0,
|
LFSR_TAG_FILELIMIT, 0,
|
||||||
// it's a bit difficult to test this since file limit
|
// it's a bit difficult to test this since file limit
|
||||||
// is usually our integer limit, but we can force a
|
// is usually our integer limit, but we can force a
|
||||||
@@ -1107,8 +1107,8 @@ code = '''
|
|||||||
|
|
||||||
// create an unknown config
|
// create an unknown config
|
||||||
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
lfsr_mount(&lfs, LFS_M_RDWR, CFG) => 0;
|
||||||
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &lfs.mroot, LFSR_RATTRS(
|
||||||
LFSR_RAT(
|
LFSR_RATTR(
|
||||||
LFSR_TAG_CONFIG + 0x13, 0,
|
LFSR_TAG_CONFIG + 0x13, 0,
|
||||||
LFSR_DATA_BUF("oh no!", strlen("oh no!"))))) => 0;
|
LFSR_DATA_BUF("oh no!", strlen("oh no!"))))) => 0;
|
||||||
lfsr_unmount(&lfs) => 0;
|
lfsr_unmount(&lfs) => 0;
|
||||||
@@ -1153,8 +1153,8 @@ code = '''
|
|||||||
lfsr_did_t did;
|
lfsr_did_t did;
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => 0;
|
&mdir, NULL, &did) => 0;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_SUB | (LFSR_TAG_NAME + 0x13), 0,
|
LFSR_TAG_SUB | (LFSR_TAG_NAME + 0x13), 0,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
lfsr_unmount(&lfs) => 0;
|
lfsr_unmount(&lfs) => 0;
|
||||||
|
|||||||
+322
-322
File diff suppressed because it is too large
Load Diff
+60
-60
@@ -4565,43 +4565,43 @@ code = '''
|
|||||||
path = "coffee/drip";
|
path = "coffee/drip";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "coffee/coldbrew";
|
path = "coffee/coldbrew";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "coffee/turkish";
|
path = "coffee/turkish";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "coffee/tubruk";
|
path = "coffee/tubruk";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "coffee/vietnamese";
|
path = "coffee/vietnamese";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "coffee/thai";
|
path = "coffee/thai";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
|
|
||||||
@@ -4745,43 +4745,43 @@ code = '''
|
|||||||
path = "drip";
|
path = "drip";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "coldbrew";
|
path = "coldbrew";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "turkish";
|
path = "turkish";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "tubruk";
|
path = "tubruk";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "vietnamese";
|
path = "vietnamese";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "thai";
|
path = "thai";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
|
|
||||||
@@ -5035,43 +5035,43 @@ code = '''
|
|||||||
path = "coffee/drip";
|
path = "coffee/drip";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "coffee/coldbrew";
|
path = "coffee/coldbrew";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "coffee/turkish";
|
path = "coffee/turkish";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "coffee/tubruk";
|
path = "coffee/tubruk";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "coffee/vietnamese";
|
path = "coffee/vietnamese";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "coffee/thai";
|
path = "coffee/thai";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
|
|
||||||
@@ -5271,43 +5271,43 @@ code = '''
|
|||||||
path = "coffee/drip";
|
path = "coffee/drip";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "coffee/coldbrew";
|
path = "coffee/coldbrew";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "coffee/turkish";
|
path = "coffee/turkish";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "coffee/tubruk";
|
path = "coffee/tubruk";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "coffee/vietnamese";
|
path = "coffee/vietnamese";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "coffee/thai";
|
path = "coffee/thai";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
|
|
||||||
@@ -5507,43 +5507,43 @@ code = '''
|
|||||||
path = "coffee/drip";
|
path = "coffee/drip";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "coffee/coldbrew";
|
path = "coffee/coldbrew";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "coffee/turkish";
|
path = "coffee/turkish";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "coffee/tubruk";
|
path = "coffee/tubruk";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "coffee/vietnamese";
|
path = "coffee/vietnamese";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
path = "coffee/thai";
|
path = "coffee/thai";
|
||||||
lfsr_mtree_pathlookup(&lfs, &path,
|
lfsr_mtree_pathlookup(&lfs, &path,
|
||||||
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
&mdir, NULL, &did) => LFS_ERR_NOENT;
|
||||||
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATS(
|
lfsr_mdir_commit(&lfs, &mdir, LFSR_RATTRS(
|
||||||
LFSR_RAT_NAME(
|
LFSR_RATTR_NAME(
|
||||||
LFSR_TAG_NAME + 0x13, +1,
|
LFSR_TAG_NAME + 0x13, +1,
|
||||||
did, path, lfsr_path_namelen(path)))) => 0;
|
did, path, lfsr_path_namelen(path)))) => 0;
|
||||||
|
|
||||||
|
|||||||
+1271
-1271
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user