Home | History | Annotate | Download | only in progs

Lines Matching refs:argv

143 void do_brel_ma_create(int argc, char **argv)
150 printf(usage, argv[0]);
153 if (parse_block(argv[0], "max_blocks", argv[2], &max_blk))
155 retval = ext2fs_brel_memarray_create(argv[1], max_blk, &brel);
157 com_err(argv[0], retval, "while opening memarray brel");
163 void do_brel_free(int argc, char **argv)
165 if (check_brel(argv[0]))
172 void do_brel_put(int argc, char **argv)
179 if (check_brel(argv[0]))
183 printf(usage, argv[0]);
186 if (parse_block(argv[0], "old block", argv[1], &old))
188 if (parse_block(argv[0], "new block", argv[2], &new))
191 parse_block(argv[0], "owner block", argv[3], &owner))
194 parse_block(argv[0], "offset", argv[4], &offset))
207 com_err(argv[0], retval, "while calling ext2fs_brel_put");
213 void do_brel_get(int argc, char **argv)
220 if (check_brel(argv[0]))
223 printf(usage, argv[0]);
226 if (parse_block(argv[0], "block", argv[1], &blk))
230 com_err(argv[0], retval, "while calling ext2fs_brel_get");
237 void do_brel_start_iter(int argc, char **argv)
241 if (check_brel(argv[0]))
246 com_err(argv[0], retval, "while calling ext2fs_brel_start_iter");
252 void do_brel_next(int argc, char **argv)
258 if (check_brel(argv[0]))
263 com_err(argv[0], retval, "while calling ext2fs_brel_next");
274 void do_brel_dump(int argc, char **argv)
280 if (check_brel(argv[0]))
285 com_err(argv[0], retval, "while calling ext2fs_brel_start_iter");
292 com_err(argv[0], retval, "while calling ext2fs_brel_next");
303 void do_brel_move(int argc, char **argv)
309 if (check_brel(argv[0]))
312 printf(usage, argv[0]);
315 if (parse_block(argv[0], "old block", argv[1], &old))
317 if (parse_block(argv[0], "new block", argv[2], &new))
322 com_err(argv[0], retval, "while calling ext2fs_brel_move");
328 void do_brel_delete(int argc, char **argv)
334 if (check_brel(argv[0]))
337 printf(usage, argv[0]);
340 if (parse_block(argv[0], "block", argv[1], &blk))
345 com_err(argv[0], retval, "while calling ext2fs_brel_delete");
350 void do_irel_ma_create(int argc, char **argv)
357 printf(usage, argv[0]);
360 if (parse_inode(argv[0], "max_inodes", argv[2], &max_ino))
362 retval = ext2fs_irel_memarray_create(argv[1], max_ino, &irel);
364 com_err(argv[0], retval, "while opening memarray irel");
370 void do_irel_free(int argc, char **argv)
372 if (check_irel(argv[0]))
380 void do_irel_put(int argc, char **argv)
387 if (check_irel(argv[0]))
391 printf(usage, argv[0]);
394 if (parse_inode(argv[0], "old inode", argv[1], &old))
396 if (parse_inode(argv[0], "new inode", argv[2], &new))
398 if (parse_inode(argv[0], "max_refs", argv[3], &max_refs))
410 com_err(argv[0], retval, "while calling ext2fs_irel_put");
416 void do_irel_get(int argc, char **argv)
423 if (check_irel(argv[0]))
427 printf(usage, argv[0]);
430 if (parse_inode(argv[0], "inode", argv[1], &old))
435 com_err(argv[0], retval, "while calling ext2fs_irel_get");
442 void do_irel_get_by_orig(int argc, char **argv)
449 if (check_irel(argv[0]))
453 printf(usage, argv[0]);
456 if (parse_inode(argv[0], "original inode", argv[1], &orig))
461 com_err(argv[0], retval, "while calling ext2fs_irel_get_by_orig");
468 void do_irel_start_iter(int argc, char **argv)
472 if (check_irel(argv[0]))
477 com_err(argv[0], retval, "while calling ext2fs_irel_start_iter");
483 void do_irel_next(int argc, char **argv)
489 if (check_irel(argv[0]))
494 com_err(argv[0], retval, "while calling ext2fs_irel_next");
505 void do_irel_dump(int argc, char **argv)
511 if (check_irel(argv[0]))
516 com_err(argv[0], retval, "while calling ext2fs_irel_start_iter");
523 com_err(argv[0], retval, "while calling ext2fs_irel_next");
534 void do_irel_add_ref(int argc, char **argv)
543 if (check_irel(argv[0]))
547 printf(usage, argv[0]);
550 if (parse_inode(argv[0], "inode", argv[1], &ino))
552 if (parse_block(argv[0], "block", argv[2], &block))
554 if (parse_block(argv[0], "offset", argv[3], &offset))
565 com_err(argv[0], retval, "while calling ext2fs_irel_add_ref");
571 void do_irel_start_iter_ref(int argc, char **argv)
577 if (check_irel(argv[0]))
581 printf(usage, argv[0]);
585 if (parse_inode(argv[0], "inode", argv[1], &ino))
589 com_err(argv[0], retval, "while calling ext2fs_irel_start_iter_ref");
595 void do_irel_next_ref(int argc, char **argv)
600 if (check_irel(argv[0]))
605 com_err(argv[0], retval, "while calling ext2fs_irel_next_ref");
612 void do_irel_move(int argc, char **argv)
618 if (check_irel(argv[0]))
622 printf(usage, argv[0]);
625 if (parse_inode(argv[0], "old inode", argv[1], &old))
627 if (parse_inode(argv[0], "new inode", argv[2], &new))
632 com_err(argv[0], retval, "while calling ext2fs_irel_move");
638 void do_irel_delete(int argc, char **argv)
644 if (check_irel(argv[0]))
648 printf(usage, argv[0]);
651 if (parse_inode(argv[0], "inode", argv[1], &ino))
656 com_err(argv[0], retval, "while calling ext2fs_irel_delete");
711 void main(int argc, char **argv)
723 while ((c = getopt (argc, argv, "wR:f:")) != EOF) {
732 com_err(argv[0], 0, usage);