|
|
1.1 ! root 1: /* ! 2: * markbad name b1 ... ! 3: * make a file with blocks b1 ... in it, ! 4: * escaping the ordinary allocation mechanism. ! 5: * Used to capture bad disk blocks. ! 6: */ ! 7: ! 8: ! 9: main(argc, argv) ! 10: char **argv; ! 11: { ! 12: if (argc != 3) { ! 13: printf("markbad filename block\n"); ! 14: exit(1); ! 15: } ! 16: if(mknod(argv[1], 0, atoi(argv[2]))<0) { ! 17: printf("refused\n"); ! 18: exit(1); ! 19: } ! 20: exit(0); ! 21: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.