/* * clri filsys inumber ... */ #include #include #define ISIZE (sizeof(struct dinode)) #define BSIZE 512 #define NI (BSIZE/ISIZE) struct ino { char junk[ISIZE]; }; struct ino buf[NI]; int status; main(argc, argv) char *argv[]; { register i, f; unsigned n; int j, k; long off; if(argc < 3) { printf("usage: clri filsys inumber ...\n"); exit(4); } f = open(argv[1], 2); if(f < 0) { printf("cannot open %s\n", argv[1]); exit(4); } for(i=2; i '9') return(0); return(1); }