Some cleanup items
- Adopted *_IS* naming convention for sign-bit macros. - Made all struct initializing macros function-like, including the *_NULL() macros. - Renamed ggrm/dgrm -> grm_g/grm_d. - Renamed lfsr_mroot_commit_ -> lfsr_mroot_commit. - Renamed LFSR_FILE_BSPROUT -> LFSR_FILE_ISDIRECT. - Renamed LFSR_BSPROUT_NULL -> LFSR_FILE_BNULL(). - Dropped *_unerase functions for explicitly setting eoff=-1.
This commit is contained in:
+82
-82
@@ -24,7 +24,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdir worked with stat
|
||||
@@ -74,7 +74,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// and check that this didn't interfere with our original directory
|
||||
@@ -120,7 +120,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// and check that this didn't interfere with our original directory
|
||||
@@ -170,7 +170,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// and check that this didn't interfere with our original directory
|
||||
@@ -242,7 +242,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdir worked with stat
|
||||
@@ -297,7 +297,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// and check that this didn't interfere with our original directory
|
||||
@@ -351,7 +351,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// and check that this didn't interfere with our original directory
|
||||
@@ -443,7 +443,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdir worked
|
||||
@@ -573,7 +573,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdirs worked
|
||||
@@ -656,7 +656,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -719,7 +719,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -788,7 +788,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -895,7 +895,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1023,7 +1023,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1125,7 +1125,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// test that our directories match our simulation
|
||||
@@ -1272,7 +1272,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdirs worked
|
||||
@@ -1433,7 +1433,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdirs worked
|
||||
@@ -1596,7 +1596,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdirs worked
|
||||
@@ -1759,7 +1759,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdirs worked
|
||||
@@ -1837,7 +1837,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdir worked with stat
|
||||
@@ -1869,7 +1869,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that remove worked with stat
|
||||
@@ -1920,7 +1920,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// and check that this didn't interfere with our original directory
|
||||
@@ -1975,7 +1975,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// and check that this didn't interfere with our original directory
|
||||
@@ -2063,7 +2063,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdir worked with stat
|
||||
@@ -2093,7 +2093,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that remove worked with stat
|
||||
@@ -2144,7 +2144,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// and check that this didn't interfere with our original directory
|
||||
@@ -2236,7 +2236,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdir worked
|
||||
@@ -2277,7 +2277,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our remove worked
|
||||
@@ -2313,7 +2313,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our remove worked
|
||||
@@ -2344,7 +2344,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our remove worked
|
||||
@@ -2459,7 +2459,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdirs worked
|
||||
@@ -2520,7 +2520,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our remove worked
|
||||
@@ -2576,7 +2576,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our remove worked
|
||||
@@ -2617,7 +2617,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our remove worked
|
||||
@@ -2670,7 +2670,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdir worked
|
||||
@@ -2713,7 +2713,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2785,7 +2785,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdir worked
|
||||
@@ -2828,7 +2828,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2911,7 +2911,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdirs worked
|
||||
@@ -2988,7 +2988,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3003,7 +3003,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3122,7 +3122,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdirs worked
|
||||
@@ -3231,7 +3231,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3246,7 +3246,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3261,7 +3261,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3407,7 +3407,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdir worked
|
||||
@@ -3455,7 +3455,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3575,7 +3575,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// test that our directories match our simulation
|
||||
@@ -3644,7 +3644,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdir worked with stat
|
||||
@@ -3676,7 +3676,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that rename worked with stat
|
||||
@@ -3726,7 +3726,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdir worked with stat
|
||||
@@ -3761,7 +3761,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that rename worked with stat
|
||||
@@ -3809,7 +3809,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdir worked with stat
|
||||
@@ -3841,7 +3841,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that rename worked with stat
|
||||
@@ -3900,7 +3900,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// and check that this didn't interfere with our original directory
|
||||
@@ -3956,7 +3956,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// and check that this didn't interfere with our original directory
|
||||
@@ -4065,7 +4065,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdir worked with stat
|
||||
@@ -4095,7 +4095,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that rename worked with stat
|
||||
@@ -4149,7 +4149,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// and check that this didn't interfere with our original directory
|
||||
@@ -4278,7 +4278,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdir worked
|
||||
@@ -4319,7 +4319,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our rename worked
|
||||
@@ -4360,7 +4360,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our rename worked
|
||||
@@ -4401,7 +4401,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our rename worked
|
||||
@@ -4624,7 +4624,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdirs worked
|
||||
@@ -4685,7 +4685,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our rename worked
|
||||
@@ -4746,7 +4746,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our rename worked
|
||||
@@ -4807,7 +4807,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our rename worked
|
||||
@@ -4896,7 +4896,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdir worked
|
||||
@@ -4943,7 +4943,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5011,7 +5011,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdir worked
|
||||
@@ -5058,7 +5058,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5133,7 +5133,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdirs worked
|
||||
@@ -5211,7 +5211,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
for (lfs_size_t j = 0; j < N; j++) {
|
||||
@@ -5230,7 +5230,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5345,7 +5345,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdirs worked
|
||||
@@ -5454,7 +5454,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
for (lfs_size_t j = 0; j < N; j++) {
|
||||
@@ -5473,7 +5473,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
for (lfs_size_t k = 0; k < N; k++) {
|
||||
@@ -5494,7 +5494,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5634,7 +5634,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// check that our mkdir worked
|
||||
@@ -5690,7 +5690,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// update old_name's path
|
||||
@@ -5837,7 +5837,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// test that our directories match our simulation
|
||||
@@ -5992,7 +5992,7 @@ code = '''
|
||||
lfsr_unmount(&lfs) => 0;
|
||||
lfsr_mount(&lfs, CFG) => 0;
|
||||
// grm should be zero here
|
||||
assert(lfs.ggrm[0] == 0);
|
||||
assert(lfs.grm_g[0] == 0);
|
||||
}
|
||||
|
||||
// test that our directories match our simulation
|
||||
|
||||
Reference in New Issue
Block a user