• Home
  • Raw
  • Download

Lines Matching refs:argv

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