/* truncate the log; manually inspect to see that the log has shrunk * to nothing */ #include "rvm.h" #include #include #include int main(int argc, char **argv) { rvm_t rvm; printf("Before Truncation:\n"); system("ls -l rvm_segments"); rvm = rvm_init("rvm_segments"); rvm_truncate_log(rvm); printf("\nAfter Truncation:\n"); system("ls -l rvm_segments"); return 0; }