exit(1);
}
- print_dir_entry((struct antfs_dir_entry*) (blast+pos));
if (((struct antfs_dir_entry*) blast)->fileno == 0) {
break;
}
memcpy(antfsdir + antfsdir_used, blast + pos, ANTFSDIRSIZE);
antfsdir[antfsdir_used].last_modified += clock_offset;
-/* print_dir_entry(&antfsdir[antfsdir_used]);*/
++antfsdir_used;
}
D("%d entries in directory\n", antfsdir_used);
D("=)== used: %d\n", antfsdir_used);
if (action && strcmp(action, "ls") == 0) {
+ int i;
+ for (i = 0; i < antfsdir_used; i++) {
+ print_dir_entry(&antfsdir[i]);
+ }
exit(0);
}